/* ==========================================================================
   AETHERBLOCKS — PREMIUM DESIGN SYSTEM (Phase 1)
   Black & white only. Luxury / refined-minimal fintech aesthetic.
   Fonts: Clash Display (display) + Satoshi (body) via Fontshare CDN.
   ========================================================================== */

/* ---- Fonts (loaded by the end-user's browser from Fontshare CDN) -------- */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=satoshi@400,500,700,900&display=swap');

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Monochrome palette — black & white only */
  --ink:        #08080a;   /* page background (near-black) */
  --ink-1:      #0d0d10;   /* raised surface */
  --ink-2:      #131318;   /* card surface */
  --ink-3:      #1b1b22;   /* hover surface */
  --line:       rgba(255,255,255,0.10);   /* hairline border */
  --line-soft:  rgba(255,255,255,0.06);
  --line-strong:rgba(255,255,255,0.20);

  --paper:      #ffffff;                   /* primary text */
  --mist-1:     rgba(255,255,255,0.72);    /* secondary text */
  --mist-2:     rgba(255,255,255,0.52);    /* tertiary text */
  --mist-3:     rgba(255,255,255,0.34);    /* faint text */

  /* State colours — strictly grayscale (state shown via icon/weight, not hue) */
  --err:        #f2f2f4;                    /* error/attention text (near-white) */
  --ok:         #ffffff;                    /* success text */

  /* Type */
  --font-display: 'Clash Display', 'Satoshi', system-ui, sans-serif;
  --font-body:    'Satoshi', system-ui, -apple-system, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'Cascadia Code', 'JetBrains Mono', monospace;

  /* Fluid type scale */
  --fs-hero:  clamp(2.8rem, 7vw, 6rem);
  --fs-h1:    clamp(2.2rem, 5vw, 3.6rem);
  --fs-h2:    clamp(1.7rem, 3.6vw, 2.6rem);
  --fs-h3:    clamp(1.25rem, 2.2vw, 1.6rem);
  --fs-lead:  clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-body:  1rem;
  --fs-sm:    0.875rem;
  --fs-xs:    0.75rem;

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  /* Radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* Shadows (monochrome) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.5);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.6);
  --glow:      0 0 0 1px rgba(255,255,255,0.08), 0 20px 60px rgba(0,0,0,0.55);

  /* Layout */
  --maxw: 1240px;
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 0.2s; --dur-2: 0.4s; --dur-3: 0.7s;
}

/* ==========================================================================
   2. RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 4px; }

/* ==========================================================================
   3. ATMOSPHERE — grain + grayscale gradient mesh
   ========================================================================== */
body::before {  /* film grain overlay */
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {  /* soft grayscale glow top */
  content: "";
  position: fixed; top: -30%; left: 50%; transform: translateX(-50%);
  width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px;
  z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%);
}

/* ==========================================================================
   4. TYPOGRAPHY HELPERS
   ========================================================================== */
.display { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-size: var(--fs-xs); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--mist-2); font-weight: 500;
}
.muted { color: var(--mist-1); }
.faint { color: var(--mist-2); }

/* ==========================================================================
   5. LAYOUT
   ========================================================================== */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { position: relative; z-index: 2; padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .eyebrow { display: inline-block; margin-bottom: var(--sp-4); }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.section-head p { font-size: var(--fs-lead); color: var(--mist-1); }
.center { text-align: center; margin-inline: auto; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.85rem 1.5rem; border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.01em;
  transition: transform var(--dur-1) var(--ease), background var(--dur-1), color var(--dur-1), border-color var(--dur-1);
  border: 1px solid transparent; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--paper); color: var(--ink); font-weight: 600; }
.btn--primary:hover { background: #e9e9ec; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--paper); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--fs-body); }
.btn .arrow { transition: transform var(--dur-1) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   7. SURFACES / CARDS
   ========================================================================== */
.card {
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2), box-shadow var(--dur-2);
}
.card--hover:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--glow); }

.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.4rem 0.8rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); font-size: var(--fs-xs);
  color: var(--mist-1); background: rgba(255,255,255,0.02);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
.dot--pulse { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ==========================================================================
   8. ANNOUNCEMENT BAR (6 confirmations — shown site-wide)
   ========================================================================== */
.announce {
  position: relative; z-index: 60;
  background: var(--ink-1); border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-xs); color: var(--mist-1);
}
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); padding-block: 0.6rem; text-align: center; }
.announce strong { color: var(--paper); font-weight: 600; }

/* ==========================================================================
   9. NAVBAR
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,10,0.6); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-2), border-color var(--dur-2);
}
.nav.is-scrolled { background: rgba(8,8,10,0.9); border-bottom-color: var(--line-soft); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__links a { font-size: var(--fs-sm); color: var(--mist-1); transition: color var(--dur-1); position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--paper); transition: width var(--dur-2) var(--ease);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav__toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r-sm); align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--paper); position: relative; transition: transform var(--dur-1), opacity var(--dur-1);
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-1); border-bottom: 1px solid var(--line);
    padding: var(--sp-4) clamp(1.1rem, 4vw, 2.5rem) var(--sp-6);
    transform: translateY(-120%); transition: transform var(--dur-2) var(--ease);
  }
  .nav.is-open .nav__links { transform: translateY(0); }
  .nav__links a { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-body); }
  .nav__links a::after { display: none; }
  /* The drawer's Log in / Create account buttons must keep their button styling —
     the generic drawer-link rules above would otherwise give the white primary
     button white (mist) text and strip its padding. */
  .nav__links a.btn { border-bottom: none; padding: 0.85rem 1.5rem; text-align: center; }
  .nav__links a.btn--primary, .nav__links a.btn--primary:hover { color: var(--ink); }
  .nav__links a.btn--ghost, .nav__links a.btn--ghost:hover { color: var(--paper); }
}

/* ---- Logo ---- */
.logo { display: inline-flex; align-items: center; gap: var(--sp-3); }
.logo__mark { width: 30px; height: 30px; }
.logo__text { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }

/* ==========================================================================
   10. HERO
   ========================================================================== */
.hero { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
/* Stacked hero (mobile): hide the decorative globe — without the 3D canvas beside
   the copy it reads as a bare empty circle and just adds scroll length. */
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } .hero .globe { display: none; } }
.hero__title { font-size: var(--fs-hero); font-family: var(--font-display); font-weight: 600; line-height: 0.98; letter-spacing: -0.03em; margin-bottom: var(--sp-5); }
.hero__title .stroke { -webkit-text-stroke: 1px var(--mist-2); color: transparent; }
.hero__lead { font-size: var(--fs-lead); color: var(--mist-1); max-width: 34ch; margin-bottom: var(--sp-6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-7); }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); }
.stat__num { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; line-height: 1; }
.stat__label { font-size: var(--fs-xs); color: var(--mist-2); letter-spacing: 0.06em; margin-top: var(--sp-2); text-transform: uppercase; }

/* Globe */
.globe { position: relative; aspect-ratio: 1; width: 100%; max-width: 380px; margin-inline: auto; }
.globe__canvas { width: 100%; height: 100%; cursor: default; touch-action: none; pointer-events: none; }
.globe__ring { position: absolute; inset: 0; border: 1px solid var(--line-soft); border-radius: 50%; pointer-events: none; }
.globe__ring--2 { inset: 10%; border-style: dashed; opacity: 0.5; animation: spin 60s linear infinite; }
.globe__fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: radial-gradient(circle at 35% 30%, var(--ink-3), var(--ink)); }
.globe.is-fallback .globe__fallback { display: flex; }
.globe.is-fallback .globe__canvas { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   11. MARQUEE (supported coins)
   ========================================================================== */
.coins { border-block: 1px solid var(--line-soft); background: var(--ink-1); position: relative; z-index: 2; }
.coins__inner { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4, 1.5rem); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.coins__list { display: flex; align-items: stretch; gap: clamp(1rem, 3vw, 2rem); flex-wrap: wrap; justify-content: center; width: 100%; }
.coin { display: inline-flex; align-items: center; gap: 0.85rem; color: var(--mist-1); padding: 0.85rem 1.35rem; border: 1px solid var(--line-soft); border-radius: var(--r-lg, 16px); background: var(--ink); transition: border-color var(--dur-1, .2s), transform var(--dur-1, .2s); }
.coin:hover { border-color: var(--line); transform: translateY(-2px); }
.coin__icon { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--ink-1); }
.coin__name { font-weight: 700; font-size: 1.15rem; line-height: 1.15; display: block; }
.coin__net { font-size: 0.82rem; color: var(--mist-3); }
.coin--note { border: none; background: none; padding: 0; }
.coin--note .coin__net { font-size: var(--fs-sm, 0.9rem); }
@media (max-width: 560px) { .coins__list { flex-direction: column; align-items: stretch; } .coin { justify-content: flex-start; } }

/* ==========================================================================
   12. PLANS
   ========================================================================== */
.plan { display: flex; flex-direction: column; position: relative; }
.plan.is-popular { border-color: var(--line-strong); box-shadow: var(--glow); }
.plan__badge { position: absolute; top: -12px; right: 1.4rem; background: var(--paper); color: var(--ink); font-size: var(--fs-xs); font-weight: 700; padding: 0.25rem 0.7rem; border-radius: var(--r-pill); letter-spacing: 0.04em; }
.plan__name { font-family: var(--font-display); font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.plan__desc { color: var(--mist-2); font-size: var(--fs-sm); margin-bottom: var(--sp-5); min-height: 2.5em; }
.plan__roi { display: flex; align-items: baseline; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.plan__roi b { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; }
.plan__roi span { color: var(--mist-2); font-size: var(--fs-sm); }
.plan__range { font-size: var(--fs-sm); color: var(--mist-1); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line-soft); margin-bottom: var(--sp-5); }
.plan__features { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-6); flex: 1; }
.plan__features li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--mist-1); }
.plan__features svg { flex-shrink: 0; margin-top: 3px; }

/* ==========================================================================
   13. BONUS TIERS
   ========================================================================== */
.tier { text-align: center; }
.tier__pct { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 600; line-height: 1; }
.tier__range { font-size: var(--fs-sm); color: var(--mist-1); margin-top: var(--sp-3); }
.tier__bar { height: 4px; border-radius: var(--r-pill); background: var(--line); margin-top: var(--sp-5); overflow: hidden; }
.tier__bar i { display: block; height: 100%; background: var(--paper); width: 0; transition: width 1.2s var(--ease); }

/* ==========================================================================
   14. REWARDS / FEATURE TILES
   ========================================================================== */
.tile { display: flex; flex-direction: column; gap: var(--sp-4); }
.tile__icon { width: 48px; height: 48px; border-radius: var(--r-md); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.tile h3 { font-size: var(--fs-h3); font-family: var(--font-display); font-weight: 500; }
.tile p { color: var(--mist-1); font-size: var(--fs-sm); }

/* ==========================================================================
   15. HOW IT WORKS
   ========================================================================== */
.steps { counter-reset: step; display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: var(--sp-6); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--mist-2); position: absolute; top: 0; left: 0; }
.step__line { height: 1px; background: var(--line); margin-bottom: var(--sp-5); position: relative; }
.step__line::after { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); }
.step h3 { font-size: var(--fs-h3); font-weight: 500; margin-bottom: var(--sp-3); font-family: var(--font-display); }
.step p { color: var(--mist-1); font-size: var(--fs-sm); }

/* ==========================================================================
   16. CALCULATOR
   ========================================================================== */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: stretch; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }
.calc__controls { display: flex; flex-direction: column; gap: var(--sp-6); }
.field label { display: block; font-size: var(--fs-sm); color: var(--mist-1); margin-bottom: var(--sp-3); }
.field__amount { display: flex; align-items: center; gap: var(--sp-2); background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.4rem 1rem; }
.field__amount span { color: var(--mist-2); font-family: var(--font-mono); }
.field__amount input { flex: 1; border: none; background: none; outline: none; font-family: var(--font-mono); font-size: 1.5rem; padding: 0.6rem 0; width: 100%; }
.field__amount input::-webkit-outer-spin-button, .field__amount input::-webkit-inner-spin-button { -webkit-appearance: none; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: var(--r-pill); background: var(--line); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); cursor: pointer; box-shadow: var(--shadow-sm); }
.range::-moz-range-thumb { width: 20px; height: 20px; border: none; border-radius: 50%; background: var(--paper); cursor: pointer; }
.seg { display: flex; gap: var(--sp-2); background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; }
.seg button { flex: 1; padding: 0.55rem; border-radius: var(--r-pill); font-size: var(--fs-sm); color: var(--mist-1); transition: background var(--dur-1), color var(--dur-1); }
.seg button.is-active { background: var(--paper); color: var(--ink); font-weight: 600; }
.calc__result { display: flex; flex-direction: column; justify-content: center; gap: var(--sp-5); }
.calc__big { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; line-height: 1; }
.calc__row { display: flex; align-items: center; justify-content: space-between; padding-block: var(--sp-3); border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); }
.calc__row span { color: var(--mist-1); }
.calc__row b { font-family: var(--font-mono); font-weight: 500; }
.calc__note { font-size: var(--fs-xs); color: var(--mist-3); }

/* ==========================================================================
   17. SECURITY BAND
   ========================================================================== */
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 760px) { .assure { grid-template-columns: 1fr; } }
.assure__item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.assure__item svg { flex-shrink: 0; }
.assure__item h4 { font-size: var(--fs-body); margin-bottom: var(--sp-2); }
.assure__item p { font-size: var(--fs-sm); color: var(--mist-1); }

/* ==========================================================================
   18. FAQ
   ========================================================================== */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5) 0; text-align: left; font-size: var(--fs-h3); font-weight: 500; font-family: var(--font-display); }
.faq__icon { flex-shrink: 0; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; transition: background var(--dur-1); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--paper); transition: transform var(--dur-2) var(--ease); }
.faq__icon::before { width: 11px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 11px; }
.faq__item.is-open .faq__icon::after { transform: rotate(90deg) scaleX(0); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height var(--dur-3) var(--ease); }
.faq__a p { padding-bottom: var(--sp-5); color: var(--mist-1); font-size: var(--fs-body); max-width: 64ch; }

/* ==========================================================================
   19. APP DOWNLOAD BAND
   ========================================================================== */
.appband { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,4vw,4rem); align-items: center; }
@media (max-width: 820px) { .appband { grid-template-columns: 1fr; } }
.store { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.store a { display: inline-flex; align-items: center; gap: var(--sp-3); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 0.7rem 1.2rem; transition: border-color var(--dur-1), background var(--dur-1); }
.store a:hover { border-color: var(--paper); background: rgba(255,255,255,0.04); }
.store small { display: block; font-size: 0.62rem; color: var(--mist-2); letter-spacing: 0.05em; text-transform: uppercase; }
.store strong { display: block; font-size: var(--fs-sm); }
.phone { aspect-ratio: 9/16; max-width: 240px; margin-inline: auto; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(180deg, var(--ink-2), var(--ink-1)); padding: 12px; position: relative; }
.phone__screen { width: 100%; height: 100%; border-radius: 22px; background: var(--ink); border: 1px solid var(--line-soft); overflow: hidden; position: relative; }
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 60px; height: 5px; border-radius: var(--r-pill); background: var(--line-strong); z-index: 2; }

/* ==========================================================================
   20. CTA BAND
   ========================================================================== */
.cta { text-align: center; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem,4vw,3rem); background: radial-gradient(circle at 50% 0%, var(--ink-2), var(--ink)); position: relative; overflow: hidden; }
.cta h2 { font-size: var(--fs-h1); font-family: var(--font-display); font-weight: 600; margin-bottom: var(--sp-4); }
.cta p { color: var(--mist-1); font-size: var(--fs-lead); max-width: 50ch; margin: 0 auto var(--sp-6); }

/* ==========================================================================
   21. FOOTER
   ========================================================================== */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line-soft); background: var(--ink-1); padding-block: clamp(3rem, 6vw, 5rem) var(--sp-6); }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: var(--sp-7); border-bottom: 1px solid var(--line-soft); }
@media (max-width: 940px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand p { color: var(--mist-2); font-size: var(--fs-sm); max-width: 30ch; margin-top: var(--sp-4); }
.footer__col h5 { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist-2); margin-bottom: var(--sp-4); }
.footer__col a { display: block; color: var(--mist-1); font-size: var(--fs-sm); padding-block: var(--sp-2); transition: color var(--dur-1); }
.footer__col a:hover { color: var(--paper); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-top: var(--sp-6); }
.footer__bottom p { font-size: var(--fs-xs); color: var(--mist-3); }
.footer__risk { font-size: var(--fs-xs); color: var(--mist-3); max-width: 90ch; margin-top: var(--sp-5); line-height: 1.7; }

/* ==========================================================================
   22. FLOATING SUPPORT
   ========================================================================== */
.support { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 70; }
.support__fab { width: 56px; height: 56px; border-radius: 50%; background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: transform var(--dur-1) var(--ease); }
.support__fab:hover { transform: scale(1.06); }
.support__menu { position: absolute; right: 0; bottom: 70px; width: 260px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px) scale(0.96); transform-origin: bottom right; pointer-events: none; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.support.is-open .support__menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.support__menu h6 { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist-2); padding: var(--sp-3) var(--sp-3) var(--sp-2); }
.support__opt { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-radius: var(--r-md); transition: background var(--dur-1); }
.support__opt:hover { background: var(--ink-3); }
.support__opt svg { flex-shrink: 0; }
.support__opt b { display: block; font-size: var(--fs-sm); }
.support__opt small { color: var(--mist-2); font-size: var(--fs-xs); }

/* ==========================================================================
   23. MODAL (replaces browser alerts)
   ========================================================================== */
.modal-root { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: var(--sp-4); }
.modal-root.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); animation: fade var(--dur-2) var(--ease); }
.modal__card { position: relative; width: 100%; max-width: 420px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.2rem); box-shadow: var(--shadow-lg); animation: rise var(--dur-2) var(--ease); }
.modal__card h3 { font-family: var(--font-display); font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.modal__card p { color: var(--mist-1); font-size: var(--fs-sm); margin-bottom: var(--sp-6); }
.modal__actions { display: flex; gap: var(--sp-3); justify-content: flex-end; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ==========================================================================
   24. SCROLL REVEAL
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }

/* Utilities */
.stack-6 > * + * { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.hide-mobile { }
@media (max-width: 900px) { .hide-mobile { display: none !important; } }
.show-mobile-only { display: none !important; }
@media (max-width: 900px) { .show-mobile-only { display: inline-flex !important; } }

/* ==========================================================================
   25. SHARED PAGE CHROME (sub-pages)
   ========================================================================== */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); position: relative; z-index: 2; }
.page-hero .eyebrow { display: inline-block; margin-bottom: var(--sp-4); }
.page-hero h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 600; letter-spacing: -0.02em; margin-bottom: var(--sp-4); }
.page-hero p { font-size: var(--fs-lead); color: var(--mist-1); max-width: 64ch; }
.breadcrumb { display: flex; gap: var(--sp-2); align-items: center; font-size: var(--fs-sm); color: var(--mist-2); margin-bottom: var(--sp-5); }
.breadcrumb a:hover { color: var(--paper); }
.breadcrumb span { color: var(--mist-3); }

/* ==========================================================================
   26. PROSE (legal + long content)
   ========================================================================== */
.prose { max-width: 76ch; }
.prose h2 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; margin: var(--sp-7) 0 var(--sp-4); padding-top: var(--sp-5); border-top: 1px solid var(--line-soft); }
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 1.05rem; font-weight: 700; margin: var(--sp-5) 0 var(--sp-3); }
.prose p { color: var(--mist-1); margin-bottom: var(--sp-4); }
.prose ul, .prose ol { margin: 0 0 var(--sp-4) 1.2rem; color: var(--mist-1); }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--sp-2); padding-left: var(--sp-2); }
.prose strong { color: var(--paper); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; color: var(--paper); }
.prose .lede { font-size: var(--fs-lead); color: var(--mist-1); }
.legal-note { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); background: var(--ink-1); font-size: var(--fs-sm); color: var(--mist-2); margin-bottom: var(--sp-6); }
.legal-updated { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--mist-3); margin-bottom: var(--sp-6); }

/* Legal layout w/ sticky table of contents */
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 880px) { .legal-grid { grid-template-columns: 1fr; } .legal-toc { display: none; } }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.legal-toc h5 { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist-2); margin-bottom: var(--sp-4); }
.legal-toc a { display: block; font-size: var(--fs-sm); color: var(--mist-2); padding: var(--sp-2) 0; transition: color var(--dur-1); }
.legal-toc a:hover, .legal-toc a.is-active { color: var(--paper); }
.legal-index { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-4); }
@media (max-width: 620px) { .legal-index { grid-template-columns: 1fr; } }
.legal-index a { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.legal-index a h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; margin-bottom: var(--sp-2); }
.legal-index a p { font-size: var(--fs-sm); color: var(--mist-2); }

/* ==========================================================================
   27. FORMS
   ========================================================================== */
.form { display: flex; flex-direction: column; gap: var(--sp-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.input-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.input-group > label { font-size: var(--fs-sm); color: var(--mist-1); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 0.85rem 1rem; color: var(--paper);
  font-size: var(--fs-body); outline: none; transition: border-color var(--dur-1), background var(--dur-1);
}
.input::placeholder, .textarea::placeholder { color: var(--mist-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--line-strong); background: var(--ink-1); }
.input--mono { font-family: var(--font-mono); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input { padding-right: 3rem; }
.input-affix { position: absolute; right: 0.6rem; display: flex; align-items: center; gap: var(--sp-2); }
.input-icon-btn { width: 32px; height: 32px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: var(--mist-2); transition: color var(--dur-1), background var(--dur-1); }
.input-icon-btn:hover { color: var(--paper); background: rgba(255,255,255,0.06); }
.input-prefix { display: flex; align-items: center; }
.input-prefix .pfx { background: var(--ink-2); border: 1px solid var(--line); border-right: none; border-radius: var(--r-md) 0 0 var(--r-md); padding: 0.85rem 0.9rem; font-family: var(--font-mono); color: var(--mist-1); white-space: nowrap; }
.input-prefix .input { border-radius: 0 var(--r-md) var(--r-md) 0; }
.hint { font-size: var(--fs-xs); color: var(--mist-2); }
.hint--ok { color: var(--paper); }
.hint--bad { color: var(--mist-1); }
.field-status { font-size: var(--fs-xs); display: flex; align-items: center; gap: var(--sp-2); min-height: 1.1em; }
.field-status.is-ok { color: var(--ok); }
.field-status.is-bad { color: var(--mist-2); }
.field-status.is-err { color: var(--err); }
.input.is-ok { border-color: rgba(255,255,255,0.5); }
.input.is-bad { border-color: rgba(255,255,255,0.22); }

/* Password live checklist */
.pw-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-2); }
.pw-checklist li { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--mist-2); transition: color var(--dur-1); }
.pw-checklist li .tick { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background var(--dur-1), border-color var(--dur-1); }
.pw-checklist li .tick svg { opacity: 0; transition: opacity var(--dur-1); }
.pw-checklist li.is-met { color: var(--paper); }
.pw-checklist li.is-met .tick { background: var(--paper); border-color: var(--paper); }
.pw-checklist li.is-met .tick svg { opacity: 1; }
.pw-strength { height: 4px; border-radius: var(--r-pill); background: var(--line); margin-top: var(--sp-3); overflow: hidden; }
.pw-strength i { display: block; height: 100%; width: 0; background: var(--paper); transition: width var(--dur-2) var(--ease); }

/* Disclosure (referral toggle) */
.disclosure__btn { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--mist-1); }
.disclosure__btn .chev { transition: transform var(--dur-2) var(--ease); }
.disclosure.is-open .disclosure__btn .chev { transform: rotate(180deg); }
.disclosure__body { overflow: hidden; max-height: 0; transition: max-height var(--dur-3) var(--ease); }

.checkbox { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--mist-1); cursor: pointer; -webkit-user-select: none; user-select: none; }
.checkbox input { width: 18px; height: 18px; accent-color: #fff; margin-top: 2px; flex-shrink: 0; cursor: pointer; appearance: auto; -webkit-appearance: checkbox; pointer-events: auto; position: relative; z-index: 1; }
.checkbox span { cursor: pointer; pointer-events: auto; }
.checkbox a { text-decoration: underline; text-underline-offset: 2px; color: var(--paper); pointer-events: auto; position: relative; z-index: 2; }

/* ==========================================================================
   28. AUTH SPLIT SCREEN
   ========================================================================== */
.auth { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; max-height: 100vh; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; max-height: none; } .auth__aside { display: none; } }
.auth__aside { position: relative; background: linear-gradient(180deg, var(--ink-1), var(--ink)); border-right: 1px solid var(--line-soft); padding: clamp(2.5rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; overflow-y: auto; }
.auth__aside::before { content: ""; position: absolute; top: -20%; right: -20%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%); }
.auth__aside-inner { position: relative; z-index: 2; }
.auth__headline { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; line-height: 1.05; margin: var(--sp-6) 0 var(--sp-5); }
.auth__points { display: flex; flex-direction: column; gap: var(--sp-4); }
.auth__point { display: flex; gap: var(--sp-3); align-items: flex-start; }
.auth__point svg { flex-shrink: 0; margin-top: 2px; }
.auth__point b { display: block; font-size: var(--fs-body); margin-bottom: 2px; }
.auth__point span { font-size: var(--fs-sm); color: var(--mist-2); }
.auth__main { display: flex; align-items: flex-start; justify-content: center; padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3rem); overflow-y: auto; }
.auth__card { width: 100%; max-width: 420px; }
.auth__card h1, .auth__card h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 600; margin-bottom: var(--sp-2); }
.auth__card > p { color: var(--mist-2); margin-bottom: var(--sp-6); }

/* Single-column auth pages (verify email / login OTP / TOTP) — centred card */
.auth__wrap { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; width: 100%; padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3rem); }
.auth__wrap .auth__card { max-width: 440px; }
.auth__head { text-align: center; margin-bottom: var(--sp-6); }
.auth__head .auth__title { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 600; margin-bottom: var(--sp-2); }
.auth__head .auth__lead { color: var(--mist-2); }
.auth__footer { text-align: center; margin-top: var(--sp-5); }
.auth__alt { text-align: center; font-size: var(--fs-sm); color: var(--mist-2); margin-top: var(--sp-5); }
.auth__alt a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.auth__divider { display: flex; align-items: center; gap: var(--sp-4); color: var(--mist-3); font-size: var(--fs-xs); margin: var(--sp-5) 0; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.social-btns { display: flex; gap: var(--sp-3); }
.social-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: 0.8rem; border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--mist-1); transition: border-color var(--dur-1), background var(--dur-1); }
.social-btn:hover { border-color: var(--paper); background: rgba(255,255,255,0.04); }

/* ==========================================================================
   29. STATUS PILLS / BADGES
   ========================================================================== */
.pill { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 0.25rem 0.7rem; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 500; border: 1px solid var(--line); }
.pill--solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pill--ghost { color: var(--mist-1); }
.pill .dot { width: 6px; height: 6px; }
.pill--pending { color: var(--mist-1); border-style: dashed; }

/* ==========================================================================
   30. TABLES
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 560px; }
.tbl th { text-align: left; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist-2); font-weight: 500; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); color: var(--mist-1); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(255,255,255,0.02); }
.tbl .mono { color: var(--paper); }
.tbl .hash { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }

/* ==========================================================================
   31. WIZARD / STEPPER (KYC, onboarding)
   ========================================================================== */
.stepper { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-7); }
.stepper__item { display: flex; align-items: center; gap: var(--sp-3); flex: 1; }
.stepper__num { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: var(--fs-sm); color: var(--mist-2); flex-shrink: 0; transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1); }
.stepper__label { font-size: var(--fs-sm); color: var(--mist-2); white-space: nowrap; }
.stepper__bar { flex: 1; height: 1px; background: var(--line); }
.stepper__item.is-active .stepper__num { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.stepper__item.is-done .stepper__num { border-color: var(--paper); color: var(--paper); }
.stepper__item.is-active .stepper__label, .stepper__item.is-done .stepper__label { color: var(--paper); }
@media (max-width: 640px) { .stepper__label { display: none; } }
.wizard-step { display: none; } .wizard-step.is-active { display: block; animation: fade var(--dur-2) var(--ease); }

/* Upload dropzone */
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: clamp(1.5rem,4vw,2.5rem); text-align: center; transition: border-color var(--dur-1), background var(--dur-1); cursor: pointer; }
.dropzone:hover { border-color: var(--paper); background: rgba(255,255,255,0.02); }
.dropzone svg { margin: 0 auto var(--sp-3); }
.dropzone b { display: block; margin-bottom: var(--sp-2); }
.dropzone small { color: var(--mist-2); font-size: var(--fs-xs); }

/* ==========================================================================
   32. APP DASHBOARD
   ========================================================================== */
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
/* mobile drawer chrome — hidden on desktop */
.shell__menu-btn { display: none; position: fixed; top: 12px; left: 12px; z-index: 60; width: 42px; height: 42px; align-items: center; justify-content: center; background: var(--ink-2, #15151a); color: var(--paper, #fff); border: 1px solid var(--line-soft, #26262c); border-radius: 11px; cursor: pointer; }
.shell__backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 70; }
.shell__backdrop.is-open { display: block; }
.shell__bottomnav { display: none; }
.shell__bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #777; text-decoration: none; font-size: 10.5px; padding: 8px 0; }
.shell__bottomnav a.is-active { color: var(--paper, #fff); }
.shell__bottomnav a svg { width: 21px; height: 21px; }
.shell__side { border-right: 1px solid var(--line-soft); background: var(--ink-1); padding: var(--sp-5); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.shell__nav { display: flex; flex-direction: column; gap: var(--sp-1); margin-top: var(--sp-6); }
.shell__nav a { display: flex; align-items: center; gap: var(--sp-3); padding: 0.7rem 0.9rem; border-radius: var(--r-md); color: var(--mist-1); font-size: var(--fs-sm); transition: background var(--dur-1), color var(--dur-1); }
.shell__nav a:hover { background: var(--ink-3); color: var(--paper); }
.shell__nav a.is-active { background: var(--paper); color: var(--ink); font-weight: 600; }
.shell__nav a svg { flex-shrink: 0; }
.shell__main { padding: clamp(1.2rem, 3vw, 2.2rem); }
/* Mobile (<900px): same desktop design, single column — the sidebar becomes a fixed
   off-canvas drawer (NO layout space — it MUST be position:fixed, which is why this
   block sits AFTER the base .shell__side rule above; the base sticky rule was
   overriding it and pushing the content a full screen down). */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .shell__menu-btn { display: inline-flex; }
  .shell__side {
    display: block; position: fixed; top: 0; left: 0; bottom: 0; width: 264px; max-width: 82vw;
    height: 100vh; z-index: 80; transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.5);
  }
  .shell__side.is-open { transform: translateX(0); }
  .shell__main { padding-top: 68px; }   /* clear the floating menu button */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* No app-style bottom tab bar in the account area — desktop design stays,
     cards/grids stack (cols-* media rules above) and the hamburger opens the side menu. */
}
.shell__topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); }
.metric { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.2rem,2.2vw,1.6rem); }
.metric__label { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist-2); margin-bottom: var(--sp-3); }
.metric__value { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 600; line-height: 1; }
.metric__delta { font-size: var(--fs-xs); color: var(--mist-1); margin-top: var(--sp-3); font-family: var(--font-mono); }

/* QR */
.qr-box { display: inline-flex; padding: var(--sp-4); background: var(--paper); border-radius: var(--r-md); }
.qr-box svg { display: block; }
.addr-row { display: flex; align-items: center; gap: var(--sp-3); background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.7rem 0.9rem; }
.addr-row .addr { font-family: var(--font-mono); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* Coin selector tabs */
.coin-tabs { display: flex; gap: var(--sp-2); background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; }
.coin-tabs button { flex: 1; padding: 0.6rem; border-radius: var(--r-pill); font-size: var(--fs-sm); color: var(--mist-1); transition: background var(--dur-1), color var(--dur-1); }
.coin-tabs button.is-active { background: var(--paper); color: var(--ink); font-weight: 600; }

/* Toggle switch (admin) */
.switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__track { position: absolute; inset: 0; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-pill); transition: background var(--dur-1); }
.switch__track::before { content: ""; position: absolute; left: 3px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--mist-1); transition: transform var(--dur-1), background var(--dur-1); }
.switch input:checked + .switch__track { background: var(--paper); }
.switch input:checked + .switch__track::before { transform: translateY(-50%) translateX(18px); background: var(--ink); }

/* Tabs */
.tabs { display: flex; gap: var(--sp-5); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-6); }
.tabs button { padding: var(--sp-3) 0; font-size: var(--fs-sm); color: var(--mist-2); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--dur-1), border-color var(--dur-1); }
.tabs button.is-active { color: var(--paper); border-bottom-color: var(--paper); }

/* ==========================================================================
   33. MOBILE APP (/app)
   ========================================================================== */
.appframe { max-width: 440px; margin-inline: auto; min-height: 100vh; border-inline: 1px solid var(--line-soft); position: relative; display: flex; flex-direction: column; }
.app-onboard { flex: 1; display: flex; flex-direction: column; }
.app-slide { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(2rem,8vw,3rem); }
.app-slide.is-active { display: flex; animation: fade var(--dur-3) var(--ease); }
.app-slide h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 600; margin: var(--sp-6) 0 var(--sp-3); }
.app-slide p { color: var(--mist-1); max-width: 30ch; }
.app-dots { display: flex; justify-content: center; gap: var(--sp-2); padding: var(--sp-5); }
.app-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: width var(--dur-2) var(--ease), background var(--dur-2); }
.app-dots i.is-active { width: 22px; border-radius: var(--r-pill); background: var(--paper); }
.app-bottombar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-around; background: var(--ink-1); border-top: 1px solid var(--line); padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom)); }
.app-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.62rem; color: var(--mist-2); }
.app-tab.is-active { color: var(--paper); }
.app-tab--center { width: 54px; height: 54px; border-radius: 50%; background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; margin-top: -22px; box-shadow: var(--shadow-md); }

/* Notification permission sheet */
.sheet { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-2); padding: var(--sp-6); text-align: center; }
.sheet svg { margin: 0 auto var(--sp-4); }

/* Utilities */
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; }
.gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); } .wrap-gap { flex-wrap: wrap; }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); }
.text-sm { font-size: var(--fs-sm); } .text-xs { font-size: var(--fs-xs); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Language Switcher */
.lang-switcher { position: relative; display: inline-block; }
.lang-switcher__btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: var(--mist-2); font-size: 13px; cursor: pointer; font-family: var(--font-body); }
.lang-switcher__btn:hover { border-color: var(--line-strong); color: var(--paper); }
.lang-switcher__dropdown { position: absolute; bottom: 100%; left: 0; margin-bottom: 8px; width: 260px; max-height: 320px; background: var(--ink-1); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; z-index: 100; box-shadow: 0 -8px 32px rgba(0,0,0,.4); }
.lang-switcher__search { width: 100%; padding: 10px 14px; background: var(--ink-2); border: none; border-bottom: 1px solid var(--line); color: var(--paper); font-size: 13px; font-family: var(--font-body); outline: none; }
.lang-switcher__search::placeholder { color: var(--mist-3); }
.lang-switcher__list { max-height: 260px; overflow-y: auto; padding: 4px; }
.lang-switcher__item { padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--mist-1); }
.lang-switcher__item:hover { background: var(--ink-3); color: var(--paper); }
.lang-switcher__item.is-active { background: var(--ink-3); color: var(--paper); font-weight: 600; }

/* ---------------------------------------------------------- OTP INPUT --- */
.otp-input { display: flex; gap: 10px; justify-content: center; margin: 10px 0 4px; }
.otp-input__box {
  width: 52px; height: 60px; text-align: center; font-size: 26px; font-weight: 600;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px;
  color: var(--paper); font-family: var(--font-mono); caret-color: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; outline: none;
}
.otp-input__box:focus { border-color: var(--line-strong); background: var(--ink-3); box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.otp-input__box.is-filled { border-color: var(--line-strong); }
@media (max-width: 440px) {
  .otp-input { gap: 7px; }
  .otp-input__box { width: 44px; height: 52px; font-size: 22px; }
}

/* ═══════════════ ACCOUNT/DASHBOARD UI — professional form/card/table/pill styling ═══════════════ */
/* Forms (.form__* convention used across the account pages) */
.form__group { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.form__label { font-size: var(--fs-sm); color: var(--mist-1); font-weight: 500; }
.form__input {
  width: 100%; padding: 0.85rem 1rem; background: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-md); color: var(--paper); font-size: var(--fs-body); font-family: inherit;
  transition: border-color var(--dur-1), background var(--dur-1); outline: none;
}
.form__input::placeholder { color: var(--mist-3); }
.form__input:focus { border-color: var(--line-strong); background: var(--ink-1); }
textarea.form__input { resize: vertical; min-height: 96px; line-height: 1.5; }
.form__hint { font-size: var(--fs-xs); color: var(--mist-2); margin-top: var(--sp-2); line-height: 1.5; }

/* Card headers */
.card__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; margin-bottom: var(--sp-2); }
.card__desc { color: var(--mist-2); font-size: var(--fs-sm); margin-bottom: var(--sp-5); line-height: 1.55; }
.card__header { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }

/* Generic table (.table) — matches the .tbl design */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table thead th { text-align: left; padding: 0.8rem 1rem; font-size: var(--fs-xs); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--mist-2); border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 500; }
.table tbody td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line-soft); color: var(--mist-1); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* Button modifiers used by account forms */
.btn--full { width: 100%; justify-content: center; }
.btn--sm { padding: 0.45rem 0.9rem; font-size: var(--fs-xs); }

/* Status pills (strictly monochrome) */
.pill--ok { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pill--warn { color: var(--mist-1); border-style: dashed; }

/* Chips (task/coupon status) */
.chip { display: inline-flex; align-items: center; padding: 0.2rem 0.62rem; border-radius: var(--r-pill);
  font-size: var(--fs-xs); border: 1px solid var(--line); color: var(--mist-1); text-transform: capitalize; }
.chip--approved, .chip--credited, .chip--active, .chip--completed { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Account utilities */
.text-center { text-align: center; }
.center { text-align: center; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--mist-2); }
.card--unread { border-color: var(--line-strong); }
.card--unread h4 { font-weight: 600; }
.hash { word-break: break-all; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }

/* === Site-wide visible checkboxes ===
   Native accent-color rendered the tick invisible on the dark theme. Draw a custom
   box + checkmark so the tick is always clearly visible. Toggle switches (.switch input)
   stay hidden — they render via .switch__track — re-asserted right after. */
input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid var(--line-strong, var(--line));
  border-radius: 5px; background: var(--ink-3);
  cursor: pointer; position: relative; vertical-align: middle;
  transition: background var(--dur-1, .15s) ease, border-color var(--dur-1, .15s) ease;
}
input[type="checkbox"]:hover { border-color: var(--paper); }
input[type="checkbox"]:checked { background: var(--paper); border-color: var(--paper); }
input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 4px; height: 9px; border: solid var(--ink);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
input[type="checkbox"]:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
/* keep toggle switches hidden (visual handled by .switch__track) */
.switch input { -webkit-appearance: none; appearance: none; opacity: 0; width: 0; height: 0; border: 0; background: none; }
