/* ==========================================================================
   TCTT Vereinsverleih — "dive instrument" design system
   Deep-water navy/teal, one confident action color, coral reserved for
   safety-relevant gear. Mobile-first.
   ========================================================================== */

:root {
  /* Water column */
  --abyss:   #082230;
  --ink:     #0c2a3a;
  --deep:    #0f3a50;
  --deep-2:  #0b3143;
  --slate:   #4a626f;
  --muted:   #526b78;

  /* Action + accents */
  --accent:        #0d7d8e;   /* primary action (teal/cyan) */
  --accent-strong: #0a616f;   /* action hover — stays readable with white text */
  --accent-soft:   #e2f2f4;
  --accent-line:   #bfe0e4;

  /* Safety / attention (used sparingly, only for safety-relevant gear) */
  --coral:     #c2543a;
  --coral-bg:  #fbe9e3;

  --ok:      #1c7a4b;
  --ok-bg:   #e2f3ea;
  --warn:    #8a5a00;
  --warn-bg: #fbeed2;
  --err:     #b23a2c;
  --err-bg:  #fbe6e2;

  /* Surfaces */
  --bg:       #eaf1f2;
  --bg-2:     #dfe9eb;
  --card:     #ffffff;
  --line:     #d7e2e5;
  --line-soft:#e6eef0;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(8,34,48,.06);
  --shadow:    0 2px 6px rgba(8,34,48,.06), 0 12px 28px rgba(8,34,48,.07);
  --shadow-lg: 0 8px 40px rgba(8,34,48,.16);

  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --maxw: 940px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  /* Match the sticky topbar so overscrolling past the top shows the bar's
     colour, not white; and disable the rubber-band bounce where supported. */
  background: var(--abyss);
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 78% -12%, #f2f8f8 0%, rgba(242,248,248,0) 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.012em; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); font-weight: 750; margin: .1rem 0 1.1rem; }
h2 { font-size: 1.22rem; font-weight: 700; margin: 1.5rem 0 .7rem; }
h3 { font-size: 1.02rem; font-weight: 700; margin: 1rem 0 .5rem; }
p  { margin: .5rem 0; }

/* ---- top bar / nav -------------------------------------------------------*/
.topbar {
  background: linear-gradient(120deg, var(--abyss), var(--deep));
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.1rem;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 14px rgba(8,34,48,.22);
}
.brand { color: #fff; display: inline-flex; align-items: center; gap: .6rem; }
.brand:hover { text-decoration: none; color: #fff; }
.brand-badge {
  display: inline-flex; width: 34px; height: 34px; border-radius: 9px; flex: none;
  box-shadow: 0 2px 7px rgba(8,34,48,.35), inset 0 0 0 1px rgba(255,255,255,.16);
  transition: transform .15s ease;
}
.brand:hover .brand-badge { transform: translateY(-1px) rotate(-2deg); }
.brand-badge svg { display: block; border-radius: 9px; }
.brand-word { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.brand-sub { font-weight: 500; font-size: .74rem; opacity: .82; letter-spacing: .02em; margin-top: .12rem; }

.nav-toggle {
  position: relative;
  margin-left: auto; background: rgba(255,255,255,.10); border: 0; color: #fff;
  font-size: 1.15rem; cursor: pointer; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center; transition: background .15s ease;
}
.nav-toggle:hover { background: rgba(255,255,255,.2); }
/* Unread-notification count on the collapsed hamburger (mobile only, since the
   toggle itself is hidden on desktop). */
.nav-toggle-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--coral); color: #fff; font-size: .72rem; font-weight: 700;
  line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px var(--abyss);
}

.mainnav { display: none; flex-direction: column; gap: .12rem; width: 100%; order: 3; padding-top: .5rem; }
body.nav-open .mainnav { display: flex; }
.mainnav a, .mainnav .linklike {
  color: #e8f4f6; padding: .62rem .55rem; border-radius: 9px; font-size: .98rem;
  font-weight: 500; transition: background .14s ease, color .14s ease; display: inline-flex; align-items: center;
}
.mainnav a:hover, .mainnav .linklike:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.linklike { background: none; border: 0; cursor: pointer; font: inherit; text-align: left; }
.logout-form { margin: 0; }
.nav-bell .badge {
  background: var(--accent); color: #fff; border-radius: 999px; padding: 0 .42rem;
  margin-left: .4rem; font-size: .76rem; font-weight: 700; min-width: 1.3em; text-align: center;
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .mainnav { display: flex; flex-direction: row; align-items: center; width: auto; order: 0; margin-left: auto; padding-top: 0; gap: .1rem; }
  .mainnav a, .mainnav .linklike { font-size: .93rem; padding: .5rem .6rem; }
}

/* ---- layout --------------------------------------------------------------*/
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 1.35rem 1.05rem 2rem; flex: 1 0 auto; }
.footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 1.4rem 1rem 2rem; }
.footer a { color: var(--slate); }
.footer-sep { margin: 0 .4rem; opacity: .5; }

/* ---- cards ---------------------------------------------------------------*/
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.25rem 1.3rem; margin-bottom: 1.1rem; border: 1px solid var(--line-soft);
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card-lead { max-width: 480px; margin: 2.2rem auto; }

.grid { display: grid; gap: .95rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Stat / status tiles */
.stat {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #0f3a50 0%, #0b2c3d 100%);
  color: #eaf6f7; border: 0; padding: 1.2rem 1.25rem;
}
.stat .num { font-size: 2.5rem; font-weight: 780; line-height: 1; letter-spacing: -0.02em; display: block; color: #fff; }
.stat .lbl { color: #b7d6dc; font-size: .9rem; margin-top: .35rem; display: block; }
.stat::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.08);
}
.stat.stat-plain { background: var(--card); color: var(--ink); border: 1px solid var(--line-soft); }
.stat.stat-plain .num { color: var(--deep); }
.stat.stat-plain .lbl { color: var(--muted); }

/* ---- forms ---------------------------------------------------------------*/
label { display: block; font-weight: 600; margin: .7rem 0 .3rem; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=number], input[type=search], select, textarea {
  width: 100%; padding: .72rem .8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: #fff; color: var(--ink); transition: border-color .14s ease, box-shadow .14s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--accent-line); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 3rem; resize: vertical; }
.help { color: var(--slate); font-size: .95rem; margin-top: .3rem; line-height: 1.5; }
.checkline { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; margin: .55rem 0; cursor: pointer; }
.checkline input[type=checkbox] { width: 1.35rem; height: 1.35rem; margin-top: .1rem; flex: none; accent-color: var(--accent); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .95rem 1rem 1.05rem; margin: 0; }
legend {
  font-weight: 750; color: var(--deep); padding: 0 .5rem; font-size: 1.02rem;
}
legend .legend-sub { font-weight: 500; color: var(--muted); font-size: .85rem; }

/* File input (CSV upload) */
input[type=file] {
  width: 100%; font: inherit; color: var(--slate);
  border: 1.5px dashed var(--accent-line); border-radius: var(--radius-sm);
  padding: .7rem; background: var(--accent-soft);
}
input[type=file]::file-selector-button {
  font: inherit; font-weight: 600; margin-right: .8rem; cursor: pointer;
  background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: .55rem .9rem;
  transition: background .14s ease;
}
input[type=file]::file-selector-button:hover { background: var(--accent-strong); }

/* ---- buttons -------------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  background: var(--accent); color: #fff; border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: .74rem 1.15rem; font: inherit; font-weight: 650; cursor: pointer; letter-spacing: -0.005em;
  transition: background .15s ease, transform .04s ease, box-shadow .15s ease; box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-strong); color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(10,97,111,.25); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.btn-block { width: 100%; }
.btn + .btn { margin-left: .5rem; }

/* Secondary: light chip that stays readable on hover (fixes the contrast bug) */
.btn-secondary { background: #fff; color: var(--deep); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--accent-soft); color: var(--deep); border-color: var(--accent-line); box-shadow: none; }
.btn-danger { background: var(--err); }
.btn-danger:hover { background: #8f2c21; }
.btn-sm { padding: .45rem .75rem; font-size: .88rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.btn-row .btn + .btn { margin-left: 0; }

/* ---- flashes -------------------------------------------------------------*/
.messages { margin-bottom: .3rem; }
.flash { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: .7rem; border: 1px solid; display: flex; gap: .5rem; font-weight: 500; }
.flash-success { background: var(--ok-bg); border-color: #bfe3cd; color: var(--ok); }
.flash-error, .flash-danger { background: var(--err-bg); border-color: #f0c4bf; color: var(--err); }
.flash-warning { background: var(--warn-bg); border-color: #ecd9a3; color: var(--warn); }
.flash-info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-strong); }

/* ---- pills / badges ------------------------------------------------------*/
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .01em; }
.pill-active   { background: var(--accent-soft); color: var(--accent-strong); }
.pill-return   { background: var(--warn-bg); color: var(--warn); }
.pill-inspect  { background: #ece4fb; color: #6238a8; }
.pill-completed{ background: var(--ok-bg); color: var(--ok); }
.pill-cancelled{ background: #e9eef0; color: var(--slate); }
.pill-safety   { background: var(--coral-bg); color: var(--coral); }
.pill-avail    { background: var(--ok-bg); color: var(--ok); }
.pill-out      { background: #e9eef0; color: var(--slate); }

/* ---- item rows / lists ---------------------------------------------------*/
.itemrow { display: flex; gap: .8rem; align-items: center; padding: .75rem .85rem; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); margin-bottom: .55rem; background: #fff; transition: border-color .14s ease, box-shadow .14s ease; }
.itemrow:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.itemrow .meta { color: var(--muted); font-size: .9rem; }
.cat-head { margin: 1.3rem 0 .5rem; font-size: .92rem; color: var(--deep); font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.cat-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.catalog-search-wrap { margin-bottom: .55rem; }
.itemrow-right { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; flex: none; }
.rent-count { font-size: .82rem; font-weight: 600; color: var(--slate); white-space: nowrap; }
.catalog-empty { padding: 1rem 0; }
.catalog-item[hidden], .catalog-group[hidden] { display: none; }

/* ---- equipment picker (searchable multi-select) --------------------------*/
.picker { display: grid; gap: .7rem; }
.picker-search-wrap { position: relative; }
.picker-search-wrap::before {
  content: "⌕"; position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 1.15rem; pointer-events: none;
}
.picker-search-wrap .picker-search { padding-left: 2.4rem; }
.picker-count { font-size: .9rem; color: var(--muted); }
.picker-count b { color: var(--deep); }

.picker-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.picker-filter {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--slate);
  border-radius: 999px; padding: .35rem .8rem; transition: all .14s ease;
}
.picker-filter:hover { border-color: var(--accent-line); color: var(--deep); }
.picker-filter.is-active { background: var(--deep); color: #fff; border-color: var(--deep); }

.picker-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.picker-chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--deep); color: #fff;
  border-radius: 999px; padding: .35rem .4rem .35rem .8rem; font-size: .9rem; font-weight: 600;
}
.chip.chip-safety { background: var(--coral); }
.chip.chip-custom { background: var(--slate); }
.chip .chip-x {
  border: 0; background: rgba(255,255,255,.18); color: #fff; width: 1.35rem; height: 1.35rem;
  border-radius: 50%; cursor: pointer; font-size: .95rem; line-height: 1; display: grid; place-items: center;
}
.chip .chip-x:hover { background: rgba(255,255,255,.34); }

.picker-panel {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  max-height: 340px; overflow-y: auto; box-shadow: inset 0 -8px 12px -12px rgba(8,34,48,.25);
}
.picker-group { position: sticky; top: 0; background: #f3f8f9; color: var(--deep); font-weight: 700; font-size: .875rem; padding: .4rem .9rem; border-bottom: 1px solid var(--line-soft); z-index: 1; }
.picker-option {
  width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-soft);
  padding: .7rem .9rem; cursor: pointer; font: inherit; display: flex; align-items: center; gap: .6rem; color: var(--ink);
}
.picker-option:hover { background: var(--accent-soft); }
.picker-option .po-name { font-weight: 600; }
.picker-option .po-meta { color: var(--muted); font-size: .9rem; }
.picker-option .po-plus { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 1.2rem; }
.picker-option[hidden] { display: none; }
.picker-empty { padding: 1rem .9rem; color: var(--muted); font-size: .9rem; }

/* ---- tables --------------------------------------------------------------*/
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--line-soft); }
th { color: var(--muted); font-size: .875rem; font-weight: 700; }
tbody tr:hover { background: #f6fafb; }

/* ---- signature pad -------------------------------------------------------*/
.sigpad-wrap { border: 2px dashed var(--accent-line); border-radius: var(--radius-sm); background: linear-gradient(180deg, #fbfdfe, #f4fafb); padding: .45rem; touch-action: none; }
.sigpad { width: 100%; height: 190px; border-radius: 8px; background: #fff; display: block; touch-action: none; box-shadow: inset 0 0 0 1px var(--line-soft); }
.sig-actions { display: flex; justify-content: space-between; align-items: center; margin-top: .45rem; gap: .5rem; }
.sigpad-wrap.sig-missing { border-color: var(--err); background: var(--err-bg); }
.sig-warning { color: var(--err); font-weight: 600; margin-top: .5rem; }
.sig-img { max-width: 260px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* ---- misc ---------------------------------------------------------------*/
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem .9rem; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.terms { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; background: #f9fcfc; font-size: .9rem; }
.terms p { margin: .35rem 0; }
.terms strong { color: var(--deep); }
.hashline { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; word-break: break-all; color: var(--slate); background: #f4f8f9; padding: .5rem .65rem; border-radius: 8px; border: 1px solid var(--line-soft); }

/* Step heading inside forms */
.step { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; }
.step + .help { margin-top: 0; }
.step .step-n { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem; display: grid; place-items: center; }

/* Password rule checklist */
.pwrules { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .3rem; }
.pwrules li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); transition: color .15s ease; }
.pwrules li .tick { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: .75rem; color: transparent; flex: none; transition: all .15s ease; }
.pwrules li.met { color: var(--ok); }
.pwrules li.met .tick { background: var(--ok); border-color: var(--ok); color: #fff; }

/* Borrow: per-tank condition-at-issue rows */
.tank-issue-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .45rem 0; border-bottom: 1px solid var(--line-soft); }
.tank-issue-row .tir-name { font-weight: 600; min-width: 4rem; }
.tank-issue-row input[type=text] { max-width: 8rem; }

/* Return form: one "apply to all" button per item box (top-right) */
.itembox { position: relative; padding-top: 1.15rem; }
.apply-all-box {
  position: absolute; top: .7rem; right: .8rem;
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  white-space: nowrap; border: 1.5px solid var(--accent-line); background: var(--accent-soft);
  color: var(--accent-strong); border-radius: 999px; padding: .32rem .75rem; transition: all .14s ease;
}
.apply-all-box:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.apply-all-box.applied { background: var(--ok); border-color: var(--ok); color: #fff; }
@media (max-width: 520px) {
  .apply-all-box { position: static; display: inline-block; margin: .2rem 0 .5rem; }
}

/* Attention notice (e.g. inspection intro) — stronger than a flash */
.notice { border-radius: var(--radius-sm); padding: .9rem 1.05rem; margin-bottom: 1.1rem; line-height: 1.5; }
.notice-attention {
  background: linear-gradient(120deg, #0e7c8b, #0a616f); color: #fff;
  box-shadow: 0 6px 18px rgba(10,97,111,.28); border: 1px solid rgba(255,255,255,.14);
}
.notice-attention strong { color: #fff; }

/* Notifications — colour-coded while unread, neutral once read */
.note {
  display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line-soft); border-left: 5px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); padding: .95rem 1.1rem; margin-bottom: .7rem;
}
.note-body { flex: 1; min-width: 0; }
.note-actions { display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; flex: none; }
.note-actions form { margin: 0; }
.note-good  { border-left-color: var(--ok);   background: var(--ok-bg); }
.note-warn  { border-left-color: var(--warn); background: var(--warn-bg); }
.note-bad   { border-left-color: var(--err);  background: var(--err-bg); }
.note-info  { border-left-color: var(--accent); background: var(--accent-soft); }
.note-read  { border-left-color: var(--line); background: var(--card); opacity: .8; }
.note-read .note-body strong { font-weight: 600; color: var(--slate); }

/* Dashboard primary call-to-action */
.cta-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, #12879a 0%, #0a5f6d 58%, #0b3446 100%);
  color: #fff; border-radius: var(--radius); padding: 1.35rem 1.4rem; margin-bottom: 1.1rem;
  box-shadow: 0 6px 22px rgba(8,34,48,.22); border: 1px solid rgba(255,255,255,.10);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-hero:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(8,34,48,.32); text-decoration: none; color: #fff; }
.cta-hero:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.cta-hero-wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-hero-ic {
  position: relative; flex: none; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.16); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.cta-hero-text { position: relative; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cta-hero-title { font-size: 1.32rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.cta-hero-sub { font-size: .95rem; opacity: .85; }
.cta-hero-go {
  position: relative; flex: none; margin-left: auto; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.14); display: grid; place-items: center;
  transition: background .15s ease, transform .15s ease;
}
.cta-hero:hover .cta-hero-go { background: rgba(255,255,255,.26); transform: translateX(3px); }
@media (max-width: 480px) { .cta-hero-sub { display: none; } }

/* Floating help / contact button */
.help-fab { position: fixed; right: 1.05rem; bottom: 1.05rem; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.help-fab-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(150deg, #1aa7ba, #0a5f6d); color: #fff;
  font-size: 1.7rem; font-weight: 700; line-height: 1;
  box-shadow: 0 6px 20px rgba(8,34,48,.34), inset 0 0 0 1px rgba(255,255,255,.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.help-fab-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(8,34,48,.4); }
.help-fab-btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.help-fab.open .help-fab-btn { background: linear-gradient(150deg, #0a5f6d, #07343d); }

.help-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: .7rem; width: min(19rem, calc(100vw - 2.1rem));
  display: flex; flex-direction: column; gap: .35rem;
}
.help-panel[hidden] { display: none; }
.help-panel-head { font-weight: 700; color: var(--deep); padding: .3rem .5rem .45rem; }
.help-opt {
  display: flex; align-items: center; gap: .6rem; padding: .65rem .7rem;
  border-radius: 10px; background: #f4f8f9; color: var(--ink); font-weight: 600;
  border: 1px solid var(--line-soft); transition: background .14s ease, border-color .14s ease;
}
.help-opt:hover { background: var(--accent-soft); border-color: var(--accent-line); text-decoration: none; color: var(--deep); }
.help-opt-ic { width: 1.5rem; height: 1.5rem; border-radius: 8px; display: grid; place-items: center; color: #fff; background: var(--slate); flex: none; font-size: .95rem; }
.help-opt-wa .help-opt-ic { background: #25d366; }
.help-opt-sig .help-opt-ic { background: #3a76f0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
