/* ==========================================================================
   Flido — Individual Verification Pilot
   Mobile-first, aligned with the main site brand tokens.
   ========================================================================== */

:root {
  --brand-teal: #0E5650;
  --brand-yellow: #FFE100;
  --brand-teal-deep: #0A4642;
  --brand-teal-ink: #0E5650;
  --brand-gradient: linear-gradient(135deg, #0E5650 0%, #1A1409 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(14,86,80,.10) 0%, rgba(14,86,80,.04) 100%);

  --ink-900: #1A1409;
  --ink-700: #3A2E1A;
  --ink-500: #6B5C42;
  --ink-400: #8A7A5E;
  --ink-300: #B5A98E;
  --ink-200: #D9CFB4;
  --ink-100: #E7DFCB;
  --ink-50:  #F0EBDE;
  --paper:   #FFFCF3;
  --bg:      #F4EFE2;

  --ok:    #0F7A3D;
  --warn:  #C2740B;
  --bad:   #B91C1C;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(26,20,9,.06), 0 1px 1px rgba(26,20,9,.04);
  --shadow-md: 0 8px 24px rgba(26,20,9,.08);
  --shadow-lg: 0 20px 56px rgba(26,20,9,.12);
  --shadow-brand: 0 18px 40px rgba(14,86,80,.20);

  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;

  --container: 720px;
  --nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .35em; line-height: 1.18; letter-spacing: -.015em; font-weight: 800; color: var(--ink-900); }
h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
h2 { font-size: clamp(1.3rem, 4.4vw, 1.7rem); }
h3 { font-size: clamp(1.05rem, 3.2vw, 1.25rem); font-weight: 700; }
p  { margin: 0 0 .9em; color: var(--ink-700); }
.muted { color: var(--ink-500); }
.small { font-size: .85rem; }
.center { text-align: center; }
.text-shine { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Layout */
.shell {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px 120px;
}
@media (min-width: 720px) { .shell { padding: 0 24px 160px; } }
@media (max-width: 380px) { .shell { padding: 0 12px 110px; } }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,252,243,.86);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid rgba(26,20,9,.06);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-900);
  font-weight: 800;
}
/* Text block sized to exactly match the 32px logo badge so the "I" of
   Flido aligns with the top edge and the sub-label aligns with the bottom. */
.brand-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 32px;
  line-height: 1;
}
.brand .logo {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-gradient);
  color: var(--ink-900);
  font-weight: 900;
  font-size: 1rem;
  box-shadow: var(--shadow-brand);
}
.brand .logo .logo-mark { width: 72%; height: auto; display: block; }
.brand .name { font-size: 1.05rem; letter-spacing: -.01em; }
.brand .sub  { font-size: .68rem; color: var(--ink-500); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.small { min-height: 40px; padding: 9px 16px; font-size: .88rem; }
.btn.block { width: 100%; }
.btn-primary { background: var(--brand-teal); color: var(--paper); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-teal-deep); box-shadow: 0 22px 44px rgba(14,86,80,.28); }
.btn-secondary { background: var(--paper); color: var(--ink-900); border-color: var(--ink-200); }
.btn-secondary:hover { border-color: var(--brand-teal); }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: transparent; }
.btn-ghost:hover { background: var(--ink-50); }
.btn-wa {
  background: #25D366; color: #fff; border-color: #25D366;
  box-shadow: 0 14px 30px rgba(37,211,102,.32);
}
.btn-wa:hover { background: #1FB957; border-color: #1FB957; }
.btn-link { background: transparent; border: none; padding: 0; min-height: 0; color: var(--brand-teal-deep); font-weight: 700; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
@media (min-width: 720px) { .card { padding: 24px; } }
.card.soft { background: var(--ink-50); border-color: transparent; }
.card.brand-soft { background: var(--brand-gradient-soft); border: 1px solid rgba(14,86,80,.22); }
.card + .card { margin-top: 14px; }

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dashboard-head h3 { margin: 0; }
.case-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.case-card {
  display: grid;
  gap: 14px;
}
.case-card .case-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.case-card .case-top > .pill {
  flex-shrink: 0;
  max-width: 100%;
}
.case-card .case-title {
  display: grid;
  gap: 4px;
}
.case-card .case-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.case-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 640px) {
  .case-meta { grid-template-columns: repeat(3, 1fr); }
}
.case-meta .k {
  display: block;
  color: var(--ink-500);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.case-meta .v {
  display: block;
  color: var(--ink-900);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.journey-toolbar {
  display: flex;
  justify-content: flex-start;
  margin: 16px 0 12px;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brand-teal-ink);
  background: var(--brand-gradient-soft);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

/* Forms */
.field { display: block; margin-bottom: 14px; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.field .hint { display: block; font-size: .78rem; color: var(--ink-500); margin-top: 6px; }
.field .err  { display: none; font-size: .8rem; color: var(--bad); margin-top: 6px; font-weight: 600; }
.field.is-invalid .err { display: block; }
.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea {
  border-color: var(--bad);
  background: rgba(220,38,38,.04);
  box-shadow: 0 0 0 4px rgba(220,38,38,.10);
}
.field.is-invalid > label { color: var(--bad); }

/* Invalid opt-grid container (id types, address types, consent) */
.opt-grid.is-invalid {
  border-radius: var(--radius-md);
  outline: 2px solid rgba(220,38,38,.55);
  outline-offset: 4px;
  background: rgba(220,38,38,.04);
  padding: 8px;
  margin-left: -8px;
  margin-right: -8px;
}
.opt-grid.is-invalid .opt-card { border-color: rgba(220,38,38,.45); }

.input, .select, .textarea {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  min-height: 48px;
  font-size: 1rem;
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 4px rgba(14,86,80,.14);
}
.textarea { min-height: 100px; resize: vertical; }
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .row.cols-2 { grid-template-columns: 1fr 1fr; } }

/* Pills / chips */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
}
.pill.ok    { background: rgba(22,163,74,.12);  color: var(--ok); }
.pill.warn  { background: rgba(245,158,11,.14); color: #B45309; }
.pill.bad   { background: rgba(220,38,38,.10);  color: var(--bad); }
.pill.flow  { background: rgba(14,86,80,.14);  color: var(--brand-teal-ink); }
.pill.muted { background: var(--ink-100);        color: var(--ink-500); }

/* Stepper — sticky below the top bar so user always sees their progress */
.stepper {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255,252,243,.94);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border: 1px solid var(--ink-100);
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  z-index: 30;
  margin: 12px 0 20px;
  box-shadow: 0 6px 16px rgba(26,20,9,.06);
}
.stepper .dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: .6rem;
  font-weight: 700;
  color: var(--ink-400);
  text-align: center;
  line-height: 1.2;
}
.stepper .dot .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink-100);
  color: var(--ink-500);
  font-size: .72rem;
  font-weight: 800;
}
.stepper .dot.done .num { background: var(--brand-gradient); color: var(--paper); }
.stepper .dot.active .num {
  background: var(--brand-teal); color: var(--paper);
  box-shadow: 0 0 0 4px rgba(14,86,80,.18);
}
.stepper .dot.active { color: var(--ink-900); }
/* Hide dot labels on tiny screens — number bubble alone is enough */
@media (max-width: 380px) {
  .stepper .dot > span:not(.num) { display: none; }
  .stepper { padding: 8px; }
}
@media (min-width: 720px) {
  .stepper .dot { font-size: .68rem; }
  .stepper .dot .num { width: 26px; height: 26px; font-size: .78rem; }
}

/* When the user submit-fails, scrollIntoView mustn't tuck the field under
   the sticky topbar + stepper. Approximate sticky height is ~150px. */
#step-details .field,
#step-details .opt-grid,
.step-panel .step-head { scroll-margin-top: 160px; }

/* Step header */
.step-head { margin: 4px 0 18px; padding-top: 4px; }
.step-head .eyebrow { margin-bottom: 8px; }

/* Banner: error notice at top of forms needs breathing room before the
   first card so the heading copy doesn't kiss the next field. */
.notice.bad { line-height: 1.45; }
#detailsErrorBanner,
#selfKycDeclinedBanner { margin-bottom: 18px; }

/* Step navigation footer — keep the Back / Save buttons spaced from the
   sticky stepper so they never visually collide with the "Step X of 7" pill. */
.step-nav { margin-top: 24px; padding-top: 4px; }
@media (min-width: 720px) { .step-nav { margin-top: 28px; } }

/* Persona / option grid (for service / vocation / id pickers) */
.opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
@media (min-width: 600px) { .opt-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.opt-grid.full { grid-template-columns: 1fr; }
.opt-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1.5px solid var(--ink-200);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease, background .15s ease;
}
.opt-card:hover { border-color: var(--brand-teal); transform: translateY(-1px); }
.opt-card .ico {
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.opt-card strong { font-size: .98rem; color: var(--ink-900); }
.opt-card span { font-size: .8rem; color: var(--ink-500); line-height: 1.4; }
.opt-card[aria-checked="true"] {
  background: var(--brand-gradient-soft);
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(14,86,80,.12);
}
/* Tighter opt-card on tiny phones so labels don't wrap awkwardly */
@media (max-width: 380px) {
  .opt-card { padding: 12px 10px; }
  .opt-card strong { font-size: .92rem; }
  .opt-card span { font-size: .76rem; }
}

/* Photo upload: stack vertically on tiny phones to give text room */
@media (max-width: 380px) {
  .photo-up {
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding: 12px;
  }
  .photo-up .preview { width: 72px; height: 72px; }
}

/* Step nav: vertical stack on very narrow screens so buttons aren't cramped */
@media (max-width: 380px) {
  .step-nav { flex-direction: column-reverse; }
  .step-nav .btn { width: 100%; }
}

/* Process explainer list */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.process-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--ink-50);
  border-radius: var(--radius-md);
  font-size: .92rem;
  color: var(--ink-700);
}
.process-list li .ico {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  font-size: 1rem;
}

/* Photo upload */
.photo-up {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1.5px dashed var(--ink-200);
  border-radius: var(--radius-md);
  background: var(--ink-50);
  transition: border-color .15s ease, background .15s ease;
}
.photo-up:hover { border-color: var(--brand-teal); }
.photo-up .preview {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--paper) center/cover no-repeat;
  border: 1px solid var(--ink-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-300);
  font-size: 1.6rem;
  overflow: hidden;
}
.photo-up label.btn { cursor: pointer; }
.photo-up input[type="file"] { display: none; }

/* OTP boxes */
.otp-row {
  display: flex;
  gap: 8px;
  margin: 8px 0 12px;
}
.otp-row input {
  width: 100%;
  height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.otp-row input:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 4px rgba(14,86,80,.14);
}

/* Notice / banners */
.notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: .9rem;
  border: 1px solid transparent;
}
.notice .ico { flex: 0 0 auto; font-size: 1.15rem; line-height: 1.2; }
.notice.info  { background: rgba(14,86,80,.10); border-color: rgba(14,86,80,.22); color: var(--brand-teal-ink); }
.notice.warn  { background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.22); color: #92400E; }
.notice.bad   { background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.22); color: var(--bad); }
.notice.ok    { background: rgba(22,163,74,.10); border-color: rgba(22,163,74,.22); color: var(--ok); }

/* Cost block */
.cost {
  display: grid;
  gap: 8px;
}
.cost .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
  color: var(--ink-700);
}
.cost .row.total {
  border-top: 1px dashed var(--ink-200);
  padding-top: 10px;
  margin-top: 4px;
  font-weight: 800;
  color: var(--ink-900);
  font-size: 1.1rem;
}

/* QR */
.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: var(--ink-50);
  border-radius: var(--radius-md);
  border: 1px dashed var(--ink-200);
  text-align: center;
}
.qr-box .qr {
  width: 220px;
  height: 220px;
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-100);
  padding: 12px;
}
.qr-box .upi-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9rem;
  color: var(--ink-700);
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.timeline li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
}
.timeline li .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink-200);
  margin: 0 7px;
}
.timeline li.done .dot   { background: var(--ok); }
.timeline li.active .dot { background: var(--brand-teal); box-shadow: 0 0 0 4px rgba(14,86,80,.16); }
.timeline li .label { font-size: .92rem; font-weight: 700; color: var(--ink-900); }

/* Checklist */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 10px 12px;
  background: var(--ink-50);
  border-radius: var(--radius-md);
  font-size: .9rem;
  color: var(--ink-700);
}
.checklist li .ico {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink-200);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-300);
}
.checklist li.done .ico { background: var(--brand-gradient); color: var(--ink-900); border-color: transparent; }
.checklist li.done .label { color: var(--ink-900); font-weight: 600; }

/* Floating WhatsApp */
.fab-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: #25D366;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(37,211,102,.34);
  border: 2px solid #fff;
}
.fab-wa:hover { text-decoration: none; background: #1FB957; }
.fab-wa .wa-ico { width: 22px; height: 22px; }
@media (min-width: 720px) { .fab-wa { right: 24px; bottom: 24px; padding: 14px 20px; } }

/* ==========================================================================
   ONBOARDING (pre-login walkthrough)
   ========================================================================== */
.onboarding {
  display: flex;
  flex-direction: column-reverse;
  gap: 18px;
  padding: 12px 0 0;
}
@media (min-width: 720px) {
  .onboarding {
    flex-direction: column;
    padding: 20px 0 0;
  }
}
.onboarding-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-md);
}
.onboarding-track {
  display: flex;
  width: 100%;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.onboarding-slide {
  flex: 0 0 100%;
  min-width: 0; /* let flex item shrink so the track doesn't blow out the layout */
  padding: 26px 22px 22px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}
@media (min-width: 720px) {
  .onboarding-slide { padding: 36px 32px 30px; min-height: 520px; }
}
/* On wider viewports we don't want the heading / paragraph to span the full
   slide width — keeps the read-line short and the icon visually centered. */
.onboarding-slide h2 { font-size: clamp(1.4rem, 5vw, 1.85rem); max-width: 28rem; }
.onboarding-slide p  { color: var(--ink-700); max-width: 32rem; }
.onboarding-slide .eyebrow { align-self: flex-start; margin-bottom: 6px; }
@media (min-width: 720px) {
  .onboarding-slide { align-items: flex-start; }
  .onboarding-slide .onboarding-art { width: 100%; max-width: 480px; align-self: center; }
  .onboarding-slide h2,
  .onboarding-slide p,
  .onboarding-slide .ob-bullets,
  .onboarding-slide .ob-compare,
  .onboarding-slide .ob-footnote { width: 100%; }
}
.ob-eyebrow-strong {
  background: var(--brand-teal);
  color: var(--paper);
}
.onboarding-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 140px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient-soft);
  border: 1px dashed rgba(14,86,80,.22);
  margin-bottom: 8px;
  position: relative;
}
.ob-emoji {
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(14,86,80,.18));
}
.ob-emoji-faded { opacity: .35; filter: grayscale(.6); }
.ob-vs {
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .12em;
  color: var(--ink-500);
  background: var(--paper);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-200);
}
.ob-pin {
  position: absolute;
  right: 22%;
  bottom: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-yellow);
  box-shadow: 0 0 0 6px rgba(255,225,0,.25), 0 0 0 14px rgba(255,225,0,.12);
  animation: ob-pulse 1.6s ease-out infinite;
}
@keyframes ob-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,225,0,.55), 0 0 0 0 rgba(255,225,0,.22); }
  100% { box-shadow: 0 0 0 18px rgba(255,225,0,0),  0 0 0 32px rgba(255,225,0,0); }
}
.ob-bullets {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ob-bullets li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--ink-50);
  border-radius: var(--radius-md);
  font-size: .92rem;
  color: var(--ink-700);
}
.ob-bullets .ico {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  font-size: .95rem;
}
.ob-footnote {
  margin: auto 0 0;
  font-size: .78rem;
  color: var(--ink-500);
  font-style: italic;
}
.ob-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
@media (min-width: 560px) {
  .ob-compare { grid-template-columns: 1fr 1fr; }
}
.ob-compare-col {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--ink-200);
  background: var(--paper);
}
.ob-compare-col strong {
  display: block;
  font-size: .92rem;
  margin-bottom: 8px;
}
.ob-compare-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: .85rem;
  color: var(--ink-700);
}
.ob-compare-col ul li::before {
  content: '·  ';
  color: var(--ink-400);
  font-weight: 800;
}
.ob-compare-col.bad  { background: rgba(220,38,38,.04); border-color: rgba(220,38,38,.20); }
.ob-compare-col.bad strong { color: var(--bad); }
.ob-compare-col.bad ul li::before { content: '✗  '; color: var(--bad); }
.ob-compare-col.good { background: rgba(15,122,61,.06); border-color: rgba(15,122,61,.22); }
.ob-compare-col.good strong { color: var(--ok); }
.ob-compare-col.good ul li::before { content: '✓  '; color: var(--ok); font-weight: 900; }

.onboarding-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}
.onboarding-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.onboarding-dots .ob-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-200);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.onboarding-dots .ob-dot.active {
  width: 26px;
  border-radius: 999px;
  background: var(--brand-teal);
}
.onboarding-actions { display: inline-flex; align-items: center; gap: 12px; }
.onboarding-actions .btn { min-height: 44px; padding: 10px 22px; }

/* Auth screen */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}
.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink-50);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  margin: 0 0 18px;
}
.auth-tabs button {
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink-500);
  cursor: pointer;
}
.auth-tabs button.active {
  background: var(--paper);
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}

/* Hero on splash */
.hero-splash {
  background: var(--brand-gradient-soft);
  border: 1px solid rgba(14,86,80,.18);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}
.hero-splash h1 { margin-bottom: 8px; }
.hero-splash p  { color: var(--ink-500); }
.hero-splash .pill-row {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-top: 12px;
}

/* Hidden helper */
.is-hidden { display: none !important; }

/* ==========================================================================
   BRAND ICONS — every <svg class="bi"> picks up currentColor (brand teal)
   so all multi-coloured emoji are out of the experience.
   ========================================================================== */
/* All brand icons inherit the `.bi` sizing. The use of `svg.bi` (typed
   selector) plus the viewBox attribute on each <svg class="bi"> in the
   HTML keeps Safari from rendering the <use>'d symbol at its intrinsic
   24×24 user units. */
svg.bi {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  color: var(--brand-teal);
  vertical-align: middle;
  flex-shrink: 0;
  fill: currentColor;
  overflow: visible;
}
.bi-lg { width: 2em; height: 2em; }
.bi-xl { width: 3em; height: 3em; }
.bi-hero { width: 96px; height: 96px; }
.opt-card .bi {
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 4px;
}
.process-list .bi,
.ob-bullets .bi {
  width: 1.1rem;
  height: 1.1rem;
}
.notice .bi { width: 1.2rem; height: 1.2rem; align-self: flex-start; }
.notice.warn .bi { color: var(--warn); }
.notice.bad  .bi { color: var(--bad); }
.notice.ok   .bi { color: var(--ok); }
/* Soft-coloured background ring around hero icons */
.ob-icon-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
}
.ob-icon-ring .bi { width: 64px; height: 64px; }
.ob-icon-pair {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.ob-icon-pair .bi-vs {
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .14em;
  color: var(--ink-500);
  background: var(--paper);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-200);
}
.ob-icon-pair .ob-icon-faded { opacity: .35; filter: grayscale(.6); }

/* Step navigation footer */
.step-nav {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 16px;
}
.step-nav .btn { flex: 1; }

/* Mobile: surface Back/Continue at the top of each step so the customer
   doesn't have to scroll back up. On desktop, keep the conventional bottom
   placement via the override further down (min-width: 720px). */
.step-panel,
#detailsForm,
#refundForm,
#selfIdDetailsForm {
  display: flex;
  flex-direction: column;
}
.step-panel > .step-head { order: 0; }
.step-panel > .step-nav,
#detailsForm > .step-nav,
#refundForm > .step-nav,
#selfIdDetailsForm > .step-nav {
  order: 1;
  margin-top: 12px;
  margin-bottom: 4px;
}
.step-panel > *,
#detailsForm > *,
#refundForm > *,
#selfIdDetailsForm > * { order: 2; }
.step-panel > .step-head { order: 0; }
.step-panel > .step-nav,
#detailsForm > .step-nav,
#refundForm > .step-nav,
#selfIdDetailsForm > .step-nav { order: 1; }

@media (min-width: 720px) {
  .step-panel > .step-nav,
  #detailsForm > .step-nav,
  #refundForm > .step-nav,
  #selfIdDetailsForm > .step-nav {
    order: 99;
    margin-top: 24px;
    margin-bottom: 0;
  }
}

/* Refund result table */
.kv {
  display: grid;
  gap: 8px;
}
.kv .row {
  display: flex;
  justify-content: space-between;
  font-size: .92rem;
}
.kv .row .k { color: var(--ink-500); }
.kv .row .v { color: var(--ink-900); font-weight: 700; }

/* ==========================================================================
   ADMIN PANEL
   ========================================================================== */
.admin-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}
@media (min-width: 720px) { .admin-shell { padding: 32px 28px 100px; } }

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 980px) {
  .admin-grid { grid-template-columns: 360px 1fr; align-items: start; }
}

.req-list {
  display: grid;
  gap: 10px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 4px;
}
.req-list .req {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.req-list .req:hover { border-color: var(--brand-teal); }
.req-list .req.active { border-color: var(--brand-teal); background: var(--brand-gradient-soft); }
.req-list .req .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.req-list .req .who { font-weight: 800; font-size: .95rem; color: var(--ink-900); }
.req-list .req .meta { font-size: .78rem; color: var(--ink-500); }

.admin-section { margin-top: 18px; }
.admin-section h3 { margin-bottom: 10px; }

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) { .admin-grid-2 { grid-template-columns: 1fr 1fr; } }

.admin-empty {
  text-align: center;
  padding: 40px;
  color: var(--ink-500);
}

/* small responsive helpers */
.flex { display: flex; }
.between { justify-content: space-between; }
.center-y { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ID badge inline */
.id-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--ink-50);
  border-radius: var(--radius-md);
  font-size: .85rem;
  margin: 4px 4px 0 0;
}
.id-badge button {
  background: transparent; border: none; cursor: pointer; color: var(--bad); font-weight: 700;
}

/* Refund method tabs */
.method-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.method-tabs button {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--ink-200);
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-700);
}
.method-tabs button.active {
  border-color: var(--brand-teal);
  background: var(--brand-gradient-soft);
  color: var(--ink-900);
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,20,9,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}
.modal-overlay.is-hidden { display: none !important; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: var(--ink-900);
  color: var(--paper);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: calc(100vw - 32px);
  text-align: center;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* Site footer — matches flido.tech (dark ink band) */
.site-footer { margin-top: 48px; background: var(--ink-900); color: var(--paper); }
.site-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 16px 40px;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}
.site-footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-footer-brand .logo-mark { width: 30px; height: auto; display: block; }
.site-footer-word { font-weight: 800; letter-spacing: -.04em; font-size: 1.3rem; color: var(--paper); }
.site-footer-tagline { color: rgba(255,252,243,.72); font-size: .92rem; margin: 0; max-width: 38rem; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.site-footer-links a { color: rgba(255,252,243,.82); font-weight: 600; font-size: .9rem; text-decoration: none; }
.site-footer-links a:hover { color: var(--brand-yellow); text-decoration: none; }
.site-footer-copy { color: rgba(255,252,243,.55); font-size: .82rem; margin: 0; }
