/* ==========================================================================
   ZMX pre-launch landing - visual system (brief section 01)
   Neon green = action only. Gold = value/reward. Cyan = info/brand. Red = risk/errors only.
   ========================================================================== */

:root {
  --void: #070B14;
  --surface: #0E1626;
  --surface-2: #15203A;
  --line: #24324F;
  --green: #39FF88;
  --gold: #D9AE5F;
  --cyan: #2BB8F2;
  --text: #E8EDF5;
  --text-2: #C3CCDD;
  --muted: #8C99B3;
  --red: #FF5C7A;

  --font-display: "Space Grotesk", "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --radius: 14px;
  --radius-lg: 16px;
  --gutter: 24px;
  --max: 1280px;
  --section-gap: 120px;
  --nav-h: 72px;
  --t: 200ms;
  --glow-green: 0 0 24px rgba(57, 255, 136, .35);
  --glass: rgba(255, 255, 255, .08);
  color-scheme: dark;
}

@media (max-width: 767px) {
  :root { --section-gap: 72px; --gutter: 16px; --nav-h: 60px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 16px/24px var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 12px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: 40px; line-height: 46px; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 16px; background: var(--surface-2); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: calc(880px + 2 * var(--gutter)); }

/* Labels: 11-12px uppercase, wide tracking, bold, muted - terminal feel */
.label {
  margin: 0 0 8px;
  font: 700 12px/16px var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-gold { color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 20px;
  font: 700 12px/16px var(--font-body);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow-cyan { color: var(--cyan); }
.eyebrow-gold { color: var(--gold); }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green);
  animation: live 1.6s ease-in-out infinite;
}
@keyframes live { 50% { opacity: .35; } }

.chip {
  display: inline-flex; align-items: center;
  padding: 2px 10px; margin-left: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  font: 600 11px/18px var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); vertical-align: middle;
}
.chip-cyan { color: var(--cyan); border-color: rgba(43, 184, 242, .4); }

/* ---------- Buttons: pill, 48px (56px hero). Primary green + glow, secondary gold outline ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: 999px; border: 0;
  font: 600 16px/1 var(--font-body);
  cursor: pointer; white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--void); box-shadow: var(--glow-green); }
.btn-primary:hover { box-shadow: 0 0 36px rgba(57, 255, 136, .55); }
.btn-secondary { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn-secondary:hover { background: rgba(217, 174, 95, .08); }
.btn-lg { height: 56px; padding: 0 32px; font-size: 17px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.text-link { color: var(--cyan); font-weight: 500; }

/* ---------- Cards / glass ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  padding: 24px;
}
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* ---------- Background vectors (4-8% opacity, never behind body text) ---------- */
.bg-vectors { position: absolute; inset: 0 0 auto 0; height: 100vh; min-height: 760px; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-vectors svg { width: 100%; height: 100%; }
.bgv-path { fill: none; stroke: url(#bgv-line); stroke-width: 1.5; opacity: .08; stroke-dasharray: 8 14; animation: dash 18s linear infinite; }
.bgv-path-2 { opacity: .06; animation-duration: 26s; }
.bgv-path-3 { opacity: .05; animation-duration: 32s; animation-direction: reverse; }
.bgv-stars path { fill: var(--cyan); opacity: .07; animation: drift 12s ease-in-out infinite alternate; transform-box: fill-box; }
@keyframes dash { to { stroke-dashoffset: -440; } }
@keyframes drift { to { opacity: .03; } }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
.site-nav.is-solid { background: rgba(7, 11, 20, .97); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 700 22px/1 var(--font-display); letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 34px; width: auto; }
.brand-full { width: 220px; height: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.lang { font: 600 13px/1 var(--font-body); color: var(--muted); padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.nav-text-btn { background: none; border: 0; color: var(--text); font-weight: 500; font-size: 15px; cursor: pointer; padding: 8px 4px; }
.inline-form { margin: 0; }

/* ---------- Hero (7/5 split) ---------- */
.hero { position: relative; z-index: 1; padding-top: 56px; }
/* Height comes from the content, not the viewport, so tall screens don't get empty bands. */
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: center; }
.display {
  font: 700 64px/68px var(--font-display);
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
.display .accent, .accent { color: var(--green); text-shadow: 0 0 32px rgba(57, 255, 136, .25); }
.display-sm { font-size: 48px; line-height: 52px; }
.hero-sub { font-size: 18px; line-height: 28px; max-width: 60ch; color: var(--text-2); margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.micro { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.trust-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; opacity: .6; }
.trust-chips li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font: 600 12px/18px var(--font-body); color: var(--text-2); }
.trust-chips a { color: inherit; }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* Token: lightweight CSS 3D coin, slow Y-axis spin; static under reduced motion */
.token { position: relative; width: 200px; height: 200px; perspective: 800px; }
.token-coin {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #23365c, #0E1626 60%, #070B14);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(217,174,95,.12), 0 0 60px rgba(43,184,242,.25), inset 0 0 30px rgba(217,174,95,.25);
  animation: spin 9s ease-in-out infinite;
  transform-style: preserve-3d;
}
.token-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.token-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.token-face-back { transform: rotateY(180deg); }
.token-face img { width: 72%; height: auto; filter: drop-shadow(0 0 10px rgba(43,184,242,.35)); }
.token-glow { position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(43,184,242,.18), transparent 65%); z-index: -1; }
@keyframes spin { 0% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

/* Timer card */
.timer-card { width: 100%; max-width: 440px; padding: 24px; }
.timer-tbc { font: 600 22px/30px var(--font-display); color: var(--gold); margin: 0 0 20px; }
.timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.timer-tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 0 10px;
  background: rgba(7, 11, 20, .6);
  border: 1px solid var(--line); border-radius: 12px;
}
.timer-tile span { font-size: 40px; line-height: 44px; font-weight: 600; }
.timer-tile small { font: 700 11px/14px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.timer-tile-live { border-color: var(--green); box-shadow: inset 0 0 0 1px rgba(57,255,136,.25), 0 0 16px rgba(57,255,136,.15); }
.timer-tile-live span { color: var(--green); }
.timer-tile span.tick { animation: tick 300ms ease-out; }
@keyframes tick { from { transform: translateY(-30%); opacity: .2; } to { transform: none; opacity: 1; } }
.phase-progress-label { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(57,255,136,.6), var(--green)); box-shadow: var(--glow-green); }

/* Live ticker - full width, 40px */
.ticker {
  position: relative; z-index: 1;
  display: flex; align-items: center; height: 40px; margin-top: 56px;
  background: var(--surface); border-block: 1px solid var(--line);
  font-size: 14px;
}
.ticker-live { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px 0 var(--gutter); height: 100%; font: 700 12px/1 var(--font-body); letter-spacing: .1em; color: var(--green); border-right: 1px solid var(--line); flex: none; }
.ticker-viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-track { display: inline-flex; gap: 0; white-space: nowrap; }
.ticker-item { padding: 0 20px; color: var(--text-2); border-right: 1px solid var(--line); }
.ticker-item b { color: var(--text); font-weight: 600; }
.ticker-item b.gold { color: var(--gold); }
.ticker-item .ago { color: var(--muted); }
.ticker.is-scrolling .ticker-track { animation: marquee var(--marquee-s, 40s) linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; padding-top: var(--section-gap); }
.section-tight { padding-top: 80px; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-more { margin: 12px 0 0; font-size: 15px; }

/* "Our story" page */
.story-goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 8px; }
.story-goal { padding: 18px 16px; border-radius: var(--radius); background: rgba(217,174,95,.08); border: 1px solid rgba(217,174,95,.35); }
.story .story-goal-value { margin: 0 0 4px; font-size: 26px; line-height: 32px; font-weight: 600; color: var(--gold); }
.story-goal-label { margin: 0 !important; font-size: 13px; line-height: 18px; }
.story-goals-note { margin: 0 0 20px !important; font-size: 12px; color: var(--muted) !important; }
@media (max-width: 767px) { .story-goals { grid-template-columns: minmax(0, 1fr); } }

/* Learn pages (guides) */
.breadcrumbs { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs span[aria-current] { color: var(--muted); }
.learn-lead { font-size: 18px; line-height: 28px; color: var(--text-2); margin: 0 0 28px; }
.learn-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; padding: 24px; border-radius: var(--radius-lg); background: rgba(57,255,136,.06); border: 1px solid rgba(57,255,136,.3); }
.learn-cta p { margin: 0; flex: 1 1 260px; color: var(--text); font-weight: 500; }
.learn-related { margin-top: 32px; }
.learn-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.learn-related a { color: var(--cyan); }
.section-sub { color: var(--text-2); font-size: 18px; line-height: 28px; margin-top: 16px; }
.footnote { margin-top: 20px; font-size: 12px; line-height: 16px; color: var(--muted); }

/* KYC */
.kyc-status { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.kyc-status .label { margin: 0; }
.kyc-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font: 700 12px/18px var(--font-body); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); }
.kyc-badge.is-ok { color: var(--green); border-color: rgba(57,255,136,.5); background: rgba(57,255,136,.08); }
.kyc-badge.is-wait { color: var(--cyan); border-color: rgba(43,184,242,.5); background: rgba(43,184,242,.08); }
.kyc-badge.is-warn { color: var(--gold); border-color: rgba(217,174,95,.5); background: rgba(217,174,95,.08); }
.kyc-badge.is-bad { color: var(--red); border-color: rgba(255,92,122,.5); background: rgba(255,92,122,.08); }
.kyc-ok { border-color: rgba(57,255,136,.5); }
.kyc-reason { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(217,174,95,.5); background: rgba(217,174,95,.08); }
.kyc-form { display: grid; gap: 16px; margin: 8px 0 32px; }
.kyc-form h2 { margin-bottom: 0; }
.kyc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kyc-span-2 { grid-column: 1 / -1; }
.kyc-types { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.kyc-type { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 15px; }
.kyc-type:has(input:checked) { border-color: var(--green); background: rgba(57,255,136,.06); }
.kyc-type input { accent-color: var(--green); }
.kyc-tips { margin: 0; padding-left: 18px; color: var(--text-2); }
.kyc-uploads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kyc-upload { padding: 14px; border: 1px dashed var(--line); border-radius: 12px; align-content: start; }
.kyc-upload label { display: grid; gap: 4px; }
.kyc-upload input[type=file] { height: auto; padding: 10px; font-size: 13px; }
.kyc-preview { width: 100%; max-height: 160px; object-fit: contain; border-radius: 8px; background: rgba(7,11,20,.7); }
.field.has-error input, .field.has-error select, .kyc-upload.has-error { border-color: var(--red); }
.kyc-consent.has-error, .legal p.form-error { color: var(--red); }
.kyc-form .btn { justify-self: start; }
@media (max-width: 767px) {
  .kyc-grid, .kyc-uploads { grid-template-columns: minmax(0, 1fr); }
  .kyc-form .btn { justify-self: stretch; }
}

/* Back office (/admin) */
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--cyan); }
.admin-bar { border-bottom: 1px solid var(--line); background: var(--surface); }
.admin-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; min-height: 64px; }
.admin-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.admin-nav { display: flex; align-items: center; gap: 8px; flex: 1; }
.admin-nav a { color: var(--text-2); }
.admin-count { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--cyan); color: var(--void); font: 700 12px/22px var(--font-body); text-align: center; }
.admin-user { display: flex; align-items: center; gap: 12px; margin: 0; }
.admin-main { padding-block: 32px 64px; }
.admin-flash { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(57,255,136,.5); background: rgba(57,255,136,.06); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.admin-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.admin-tabs a.is-active { border-color: var(--cyan); color: var(--text); background: rgba(43,184,242,.1); }
.admin-empty { padding: 24px; }
.admin-table-wrap { padding: 0; overflow-x: auto; }
.admin-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 12px 14px; color: var(--muted); font-weight: 600; }
.admin-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table .kyc-badge + .kyc-badge { margin-left: 6px; }
.admin-case-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.admin-case-head .page-title { margin: 0; }
.admin-alert { margin-bottom: 20px; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255,92,122,.6); background: rgba(255,92,122,.08); }
.admin-alert ul { margin: 8px 0 0; padding-left: 18px; }
.admin-case { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-docs { display: grid; gap: 16px; }
.admin-doc { margin: 0; padding: 12px; }
.admin-doc figcaption { margin-bottom: 8px; font-weight: 600; }
.admin-doc img { display: block; width: 100%; max-height: 560px; object-fit: contain; border-radius: 8px; background: #000; }
.admin-side { display: grid; gap: 16px; }
.admin-panel { padding: 20px; }
.admin-panel h2 { margin: 0 0 12px; font-size: 18px; }
.admin-panel h3 { margin: 16px 0 8px; font-size: 15px; }
.admin-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.admin-dl dt { color: var(--muted); }
.admin-dl dd { margin: 0; overflow-wrap: anywhere; }
.admin-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.admin-decide { display: grid; gap: 14px; }
.admin-decide h2 { margin: 0; }
.admin-checklist { margin: 0; padding-left: 18px; color: var(--text-2); }
.admin-choices { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.admin-choices label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; cursor: pointer; }
.admin-choices input { accent-color: var(--green); }
.field textarea { padding: 10px 14px; width: 100%; background: rgba(7,11,20,.7); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: 400 15px/22px var(--font-body); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--cyan); }
@media (max-width: 1023px) { .admin-case { grid-template-columns: minmax(0, 1fr); } }
.admin-nav { gap: 16px; }
.admin-nav .admin-count { margin-left: -8px; }

/* Back-office dashboard */
.dash-head { flex-wrap: wrap; }
.dash-head .btn { margin-left: auto; }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.dash-tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; color: var(--text); }
.dash-tile-link { transition: border-color var(--t); }
.dash-tile-link:hover { border-color: var(--cyan); }
.dash-label { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.dash-value { font: 700 32px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.dash-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dash-bars li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 130px; align-items: center; gap: 12px; font-size: 14px; }
.dash-bar-track { height: 10px; border-radius: 4px; background: rgba(255,255,255,.05); overflow: hidden; }
.dash-bar { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--cyan); }
.dash-bar-value { text-align: right; }
.dash-table { min-width: 0; }
.dash-table tr:first-child td { border-top: 0; }
.admin-table .num { text-align: right; }
/* Top padding leaves room for the hover tooltip above the tallest bar. */
.dash-chart { display: flex; align-items: flex-end; gap: 2px; height: 194px; padding-top: 34px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.dash-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.dash-col-bar { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--cyan); opacity: .85; }
.dash-col:hover .dash-col-bar { opacity: 1; }
.dash-col:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--void); color: var(--text); font-size: 12px; }
.dash-col:first-child:hover::after { left: 0; transform: none; }
.dash-col:last-child:hover::after { left: auto; right: 0; transform: none; }
.dash-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.dash-details { margin-bottom: 24px; }
.dash-details summary { cursor: pointer; font-weight: 600; }
.dash-details .admin-table-wrap { margin-top: 12px; }
.dash-recent h2 { padding: 0 0 4px; }
@media (max-width: 1023px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) {
  .dash-bars li { grid-template-columns: 96px minmax(0, 1fr); }
  .dash-bar-value { grid-column: 1 / -1; text-align: left; }
}
.sandbox-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.sandbox-option:has(input:checked) { border-color: var(--cyan); background: rgba(43,184,242,.06); }
.sandbox-option input { margin-top: 4px; accent-color: var(--cyan); }
.sandbox-option span { display: grid; gap: 2px; font-size: 14px; color: var(--text); }
.sandbox-option small { color: var(--muted); font-size: 13px; line-height: 18px; }
.rewards-kyc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(7,11,20,.5); }
.rewards-kyc p { margin: 0; font-size: 14px; color: var(--text-2); }
.rewards-kyc strong { color: var(--text); }

/* "Confirm your email" banner at the top of the hub */
.verify-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin: -8px 0 24px; padding: 16px 20px; border-radius: var(--radius);
  background: rgba(217,174,95,.1); border: 1px solid rgba(217,174,95,.45);
}
.verify-banner > div { flex: 1 1 300px; }
.verify-title { margin: 0 0 4px; font-weight: 600; color: var(--gold); }
.verify-text { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-2); }
.verify-text strong { color: var(--text); }

/* "Your rewards" summary under the hub */
.rewards { margin-top: var(--gutter); padding: 28px 32px; }
.rewards-head { margin-bottom: 20px; }
.rewards-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.rewards-box { padding: 20px 24px; border-radius: var(--radius); min-width: 0; }
.rewards-box-value { font-size: 40px; line-height: 46px; font-weight: 600; margin: 4px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Withdrawable = real money the miner can take out: the one place this card uses white-on-green-edge. */
.rewards-box-withdraw { background: rgba(57,255,136,.06); border: 1px solid rgba(57,255,136,.35); }
.rewards-box-withdraw .rewards-box-value { color: var(--text); }
/* Before TGE the amount is confirmed but locked: same box, neutral edge instead of the "go" green. */
.rewards-box-withdraw.is-locked { background: rgba(43,184,242,.05); border-color: rgba(43,184,242,.3); }
.rewards-box-total {
  background: linear-gradient(135deg, rgba(217,174,95,.14), rgba(217,174,95,.04));
  border: 1px solid rgba(217,174,95,.45);
}
.rewards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.rewards-note { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; color: var(--text-2); }
.rewards-lock { color: var(--cyan); font-size: 10px; margin-right: 4px; }
.rewards .footnote a { color: var(--cyan); }

/* Network mining rate tiers (inside the hub) */
.rate-strip { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.rate-strip-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.rate-now { margin: 0 0 12px; font-size: 15px; }
.rate-now b { font-size: 20px; }
.rate-tiers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rate-tier {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
  background: rgba(7,11,20,.55); border: 1px solid var(--line); border-radius: 12px; color: var(--muted);
}
.rate-tier-rate { font-size: 18px; font-weight: 600; }
.rate-tier-rate::after { content: " ZMX/day"; font: 500 11px var(--font-body); }
.rate-tier-range { font-size: 12px; }
.rate-tier-range::after { content: " miners"; }
.rate-tier.is-current { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 16px rgba(217,174,95,.15); }
.rate-tier.is-past { opacity: .45; text-decoration: line-through; }
.rate-next { margin: 10px 0 0; }

/* ---------- Mining Hub ---------- */
.hub { padding: 32px; }
.hub.is-welcome { box-shadow: 0 0 0 1px rgba(57,255,136,.4), 0 0 60px rgba(57,255,136,.12); }
.hub-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.hub-reset { margin: 0; font-size: 14px; color: var(--muted); }
.hub-reset .mono { color: var(--text); }
.hub-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-areas: "claim tiles" "claim streak" "claim breakdown";
  gap: 24px 40px;
}
.hub-grid > *, .ref-grid > *, .hero-grid > *, .final-grid > * { min-width: 0; }
.claim-col { grid-area: claim; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.hub-tiles { grid-area: tiles; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.streak { grid-area: streak; }
.breakdown { grid-area: breakdown; }

.tile { background: rgba(7, 11, 20, .55); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.tile-value { font-size: 32px; line-height: 38px; font-weight: 600; margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.delta { color: var(--green); font-family: var(--font-mono); }

/* Claim button: 120px circle. States ready -> claiming -> claimed -> risk */
.claim-btn {
  position: relative; width: 168px; height: 168px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(57,255,136,.22), rgba(57,255,136,.06) 60%, transparent);
  border: 0; padding: 0; cursor: pointer;
  transition: transform var(--t), opacity var(--t), filter var(--t);
}
.claim-btn::before {
  content: ""; position: absolute; inset: 24px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 40px rgba(57,255,136,.55);
}
.claim-btn[data-state="ready"]::before, .claim-btn[data-state="risk"]::before { animation: glow 2.4s ease-in-out infinite; }
.hub.is-welcome .claim-btn[data-state="ready"] { animation: nudge 1.2s ease-in-out 3; }
.claim-btn:hover { transform: scale(1.03); }
.claim-btn:disabled { cursor: default; transform: none; }
.claim-inner { position: relative; display: flex; flex-direction: column; align-items: center; color: var(--void); }
.claim-label { font: 700 20px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.claim-amount { font-size: 13px; font-weight: 600; margin-top: 6px; }
.claim-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--line); stroke-width: 4; }
.ring-fill { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 351.86; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke var(--t); }

.claim-btn[data-state="claiming"]::before { opacity: .6; }
.claim-btn[data-state="claiming"] .claim-ring { animation: rotate 600ms linear infinite; }
.claim-btn[data-state="claiming"] .ring-fill { stroke-dashoffset: 260; }
/* Mining: the ring fills cyan over the 24-hour session, the core goes quiet. */
.claim-btn[data-state="mining"]::before { background: var(--surface-2); box-shadow: inset 0 0 24px rgba(43,184,242,.18); }
.claim-btn[data-state="mining"] .claim-inner { color: var(--text); }
.claim-btn[data-state="mining"] .claim-label { font-size: 15px; color: var(--cyan); }
.claim-btn[data-state="mining"] .ring-fill { stroke: var(--cyan); filter: drop-shadow(0 0 4px rgba(43,184,242,.7)); }
.claim-btn[data-state="mining"]:disabled { opacity: 1; }
/* Not open yet: dimmed, no pulse. */
.claim-btn[data-state="notopen"]::before { background: var(--surface-2); box-shadow: none; }
.claim-btn[data-state="notopen"] .claim-inner { color: var(--muted); }
/* Locked (not open yet / email unconfirmed): no progress ring at all, so its rounded end doesn't leave a dot. */
.claim-btn[data-state="notopen"] .ring-fill { opacity: 0; transition: none; }
.claim-btn[data-state="risk"] .ring-fill { stroke: var(--red); }
.claim-btn[data-state="risk"] { background: radial-gradient(circle at 50% 35%, rgba(255,92,122,.18), transparent 65%); }
.claim-caption { margin: 0; font-size: 13px; color: var(--muted); text-align: center; min-height: 20px; }
.claim-caption.is-risk { color: var(--red); }
@keyframes glow { 50% { box-shadow: 0 0 64px rgba(57,255,136,.85); transform: scale(1.03); } }
@keyframes rotate { to { transform: rotate(270deg); } }
@keyframes nudge { 50% { transform: scale(1.06); } }

/* Streak pills */
.streak-pills { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(64px, 1fr)); gap: 8px; padding: 0; margin: 0 0 12px; }
.pill {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px; border-radius: 12px;
  background: rgba(7,11,20,.55); border: 1px solid var(--line);
  color: var(--muted);
}
.pill-day { font: 700 12px/16px var(--font-body); letter-spacing: .06em; }
.pill-mult { font-size: 13px; }
.pill.is-done { background: rgba(217,174,95,.14); border-color: rgba(217,174,95,.5); color: var(--gold); }
.pill.is-today { border-color: var(--green); color: var(--green); box-shadow: 0 0 16px rgba(57,255,136,.25); }
.pill.is-risk { border-color: var(--red); color: var(--red); box-shadow: none; }
.streak-note { margin: 0; font-size: 13px; color: var(--muted); }

/* Power breakdown */
.stack-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); margin-bottom: 12px; }
.seg { display: block; height: 100%; transition: width 600ms ease; }
.seg-base { background: var(--cyan); }
.seg-streak { background: var(--gold); }
.seg-ref { background: var(--green); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 0; font-size: 14px; color: var(--text-2); }
.legend li, .legend-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.legend-link:hover { color: var(--text); }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot-cyan { background: var(--cyan); } .dot-gold { background: var(--gold); } .dot-green { background: var(--green); }

.currency-toggle { display: inline-flex; margin-left: 6px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; vertical-align: middle; }
.currency-toggle button { background: none; border: 0; padding: 1px 6px; font: 600 10px/16px var(--font-body); color: var(--muted); cursor: pointer; }
.currency-toggle button[aria-pressed="true"] { background: var(--surface-2); color: var(--cyan); }

/* Tooltips */
.tip { position: relative; background: none; border: 0; padding: 0 2px; color: var(--cyan); cursor: help; font: inherit; }
.tip [role="tooltip"] {
  /* --shift is set by site.js so the bubble never runs off the screen edge. */
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(calc(-50% + var(--shift, 0px)));
  width: min(260px, calc(100vw - 32px)); padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.45);
  font: 400 13px/18px var(--font-body); letter-spacing: 0; text-transform: none; text-decoration: none; color: var(--text-2); text-align: left; white-space: normal;
  opacity: 0; visibility: hidden; transition: opacity var(--t); z-index: 20; pointer-events: none;
}
.tip:hover [role="tooltip"], .tip:focus-visible [role="tooltip"], .tip.is-open [role="tooltip"] { opacity: 1; visibility: visible; }
.tip-inline { font-size: 13px; text-decoration: underline dotted; }

/* ---------- Referral ---------- */
.ref-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); }
.ref-tree-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tree { min-height: 300px; }
.tree svg { width: 100%; height: auto; overflow: visible; }
.tree .edge { fill: none; stroke-width: 1.5; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.tree.is-drawn .edge { transition: stroke-dashoffset 700ms ease var(--delay); stroke-dashoffset: 0; }
.tree .node { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.6); }
.tree.is-drawn .node { transition: opacity 400ms ease var(--delay), transform 400ms ease var(--delay); opacity: 1; transform: none; }
.tree text { font: 600 11px var(--font-mono); fill: var(--text-2); }
.tree .tier-label { font: 700 10px var(--font-body); letter-spacing: .08em; fill: var(--muted); }
.tier-accordion { display: none; }
.tier-acc { border-top: 1px solid var(--line); padding: 12px 0; }
.tier-acc summary { cursor: pointer; font-size: 15px; }
.tier-acc p { margin: 8px 0 0; font-size: 14px; }
.tier-tag { font: 700 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.tier-acc.tier-1 .tier-tag { color: var(--gold); } .tier-acc.tier-2 .tier-tag { color: var(--cyan); } .tier-acc.tier-3 .tier-tag { color: var(--muted); }

.tier-cards { display: flex; flex-direction: column; gap: 16px; }
.tier-card {
  position: relative; padding: 20px 24px 18px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  /* Tier colour stripe as an inset shadow: follows the rounded corners without overflow:hidden,
     which would clip the "What's verified?" tooltip. */
  box-shadow: inset 4px 0 0 var(--tier-color, var(--line));
}
.tier-card.tier-1 { --tier-color: var(--gold); background: linear-gradient(90deg, rgba(217,174,95,.1), var(--surface) 55%); border-color: rgba(217,174,95,.4); padding-block: 26px 22px; }
.tier-card.tier-2 { --tier-color: var(--cyan); }
.tier-card.tier-3 { --tier-color: #5b6b8c; }
.tier-usd { font-size: 28px; line-height: 34px; font-weight: 600; color: var(--gold); margin: 0 0 4px; }
.tier-card.tier-1 .tier-usd { font-size: 34px; line-height: 40px; }
.tier-usd small { font: 400 14px var(--font-body); color: var(--muted); }
.tier-bonus { margin: 0 0 8px; color: var(--text-2); font-size: 15px; }
.tier-foot { margin: 0; font-size: 13px; color: var(--muted); }

.ref-link { margin-top: var(--gutter); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.ref-link-main { flex: 1 1 420px; min-width: 0; max-width: 100%; }
.ref-link-main .small { margin: 8px 0 0; }
.link-field { display: flex; gap: 8px; }
.link-field input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  background: rgba(7,11,20,.7); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); font-size: 16px;
}
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
  cursor: pointer; transition: border-color var(--t), color var(--t), transform var(--t);
}
.share-btn:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); text-decoration: none; }
.share-btn svg { width: 20px; height: 20px; fill: currentColor; }
.share-btn.is-native { width: auto; padding: 0 14px; gap: 6px; display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; }

.ref-stats { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 18px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ref-stats .label { display: block; }
.ref-stats b { font-size: 18px; }
.ref-stats small { display: block; margin-top: 2px; }

/* ---------- Exchange teaser ---------- */
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.ex-card { display: flex; flex-direction: column; }
.ex-card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.ex-card-head .chip { margin: 0; }
.pair { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 12px; font-weight: 600; }
.sparkline { width: 120px; height: 32px; }
.sparkline polyline { fill: none; stroke: var(--green); stroke-width: 1.5; }
.orderbook { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 16px; }
.orderbook th { text-align: left; font: 700 11px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 0 6px; }
.orderbook tr { position: relative; }
.orderbook td { padding: 5px 0; position: relative; z-index: 1; }
.orderbook td:nth-child(2) { text-align: right; padding-right: 8px; }
.orderbook th:nth-child(2) { text-align: right; padding-right: 8px; }
.orderbook td.depth { position: absolute; right: 0; top: 2px; bottom: 2px; width: var(--d); padding: 0; z-index: 0; border-radius: 4px; }
.orderbook .ask td:first-child { color: var(--red); }
.orderbook .bid td:first-child { color: var(--green); }
.orderbook .ask .depth { background: rgba(255,92,122,.1); }
.orderbook .bid .depth { background: rgba(57,255,136,.08); }
.ex-card:hover .orderbook td:first-child { animation: flicker 1.2s steps(2) 2; }
@keyframes flicker { 50% { opacity: .55; } }
.ex-card .muted.small { margin-top: auto; }

.shield { width: 56px; height: 56px; margin: 8px 0 16px; padding: 12px; border-radius: 14px; background: rgba(43,184,242,.1); }
.shield svg { width: 32px; height: 32px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linejoin: round; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; color: var(--text-2); }
.checks li { padding-left: 24px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.badges { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.badge { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.badge-pending { color: var(--muted); font-weight: 500; border-style: dashed; }

.ex-card-gold { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(217,174,95,.25), 0 0 40px rgba(217,174,95,.08); }
.perk-big { font-size: 72px; line-height: 76px; font-weight: 600; margin: 8px 0 0; }
.perk-line { font: 600 20px/28px var(--font-display); margin: 0 0 8px; }
.ex-card-gold .btn { margin-top: auto; align-self: flex-start; }
.perk-unlocked { margin-top: auto; color: var(--gold); font-weight: 600; }

/* ---------- Roadmap ---------- */
.roadmap { position: relative; }
.road-line { position: absolute; left: 16.66%; right: 16.66%; top: 28px; height: 4px; background: var(--surface-2); border-radius: 999px; }
.road-line span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); box-shadow: var(--glow-green); transition: width 1.2s ease; }
.roadmap.is-visible .road-line span { width: var(--p); }
.road-nodes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); position: relative; }
.road-node { display: flex; flex-direction: column; align-items: center; text-align: center; }
.road-btn { background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 0 16px; min-height: 44px; }
.road-marker {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line);
  font-size: 20px; font-weight: 600; color: var(--muted);
  transition: border-color var(--t), box-shadow var(--t);
}
.road-node.is-done .road-marker { border-color: var(--gold); color: var(--gold); }
.road-node.is-live .road-marker { border-color: var(--green); color: var(--green); box-shadow: 0 0 0 6px rgba(57,255,136,.1), var(--glow-green); }
.road-node.is-tge .road-marker { border-color: var(--gold); background: radial-gradient(circle, rgba(43,184,242,.25), var(--surface) 70%); }
.road-star { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(217,174,95,.5)); }
.road-status { margin-top: 6px; font: 700 12px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.road-node.is-live .road-status { color: var(--green); }
.road-node.is-tge .road-status { color: var(--gold); }
.road-name { font: 600 20px/28px var(--font-display); color: var(--text); }
.road-node:not(.is-live):not(.is-tge) .road-name { color: var(--text-2); }
.road-dates { font-size: 13px; color: var(--muted); }
.road-btn[aria-expanded="true"] .road-name { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; }
.road-panel { width: 100%; text-align: left; padding: 20px; }
.road-panel ul { padding-left: 18px; margin: 0 0 12px; color: var(--text-2); }
.road-panel li { margin-bottom: 4px; }
.leaderboard { padding-left: 22px; margin: 0 0 12px; font-size: 14px; }
.leaderboard li { margin-bottom: 4px; }
.leaderboard li span:last-child { float: right; color: var(--gold); }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; margin-bottom: 12px; }
.switch input { width: 18px; height: 18px; accent-color: var(--green); }

/* ---------- Community ---------- */
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gutter); }
.community-card { color: var(--text); }
.community-card:hover { text-decoration: none; border-color: var(--cyan); }
.community-name { display: flex; align-items: center; gap: 10px; }
.social-icon { flex: none; display: block; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative;
  font: 600 17px/24px var(--font-body);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 18px; font: 400 24px/1 var(--font-mono); color: var(--cyan); transition: transform var(--t); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-2); padding-bottom: 20px; margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative; overflow: hidden;
  margin-top: var(--section-gap); padding: 96px 0;
  background: linear-gradient(180deg, var(--void), #0B1A36);
  border-top: 1px solid var(--line);
}
.final-star { position: absolute; right: -80px; top: -60px; width: 420px; height: 420px; color: var(--cyan); opacity: .06; }
.final-grid { position: relative; display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: #0B1A36; padding: 56px 0 120px; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); margin-bottom: 40px; }
.footer-brand .muted { margin-top: 12px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--text-2); transition: color var(--t), border-color var(--t); }
.footer-social a:hover { color: var(--text); border-color: var(--cyan); text-decoration: none; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-2); }
.footer-disclosure { border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); font-size: 13px; line-height: 20px; }
.footer-disclosure strong { color: var(--text-2); }
.select-sm { height: 36px; padding: 0 10px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; max-width: 180px; }

/* ---------- Forms / auth ---------- */
.page-section { padding-top: 64px; min-height: 60vh; }
.page-title { font: 700 36px/42px var(--font-display); margin-bottom: 12px; }
.prose p { color: var(--text-2); }

/* Legal documents */
.legal-updated { margin: -4px 0 20px; color: var(--muted); font-size: 14px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.legal-tabs a {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
}
.legal-tabs a:hover { text-decoration: none; border-color: var(--cyan); color: var(--text); }
.legal-tabs a[aria-current="page"] { border-color: var(--cyan); color: var(--cyan); background: rgba(43,184,242,.08); }
.legal-draft {
  margin: 0 0 20px; padding: 12px 16px; border-radius: var(--radius);
  background: rgba(217,174,95,.08); border: 1px solid rgba(217,174,95,.4); color: var(--text-2); font-size: 14px;
}
mark.tbc { background: rgba(217,174,95,.22); color: var(--gold); padding: 0 3px; border-radius: 4px; font-weight: 600; }
.legal { padding: 32px; line-height: 26px; }
.legal h2 { font-size: 20px; line-height: 28px; margin: 32px 0 12px; }
.legal h2:first-of-type { margin-top: 24px; }
.legal p, .legal li { color: var(--text-2); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal a { color: var(--cyan); }
.legal code { font-family: var(--font-mono); font-size: 13px; color: var(--text); }
.legal-table { overflow-x: auto; margin: 4px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); }
/* On phones the table scrolls sideways inside its box instead of squeezing columns to one word per line. */
.legal-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.legal-table th { text-align: left; padding: 10px 14px; background: var(--surface-2); color: var(--text); font-weight: 600; }
.legal-table td { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.legal-contact { margin-top: 20px; }
@media (max-width: 767px) { .legal { padding: 20px; } }
.auth-wrap { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 480px; padding: 36px; }
.form { display: grid; gap: 18px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field input, .field select {
  height: 48px; padding: 0 14px; width: 100%;
  background: rgba(7,11,20,.7); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); font: 400 16px var(--font-body);
  transition: border-color var(--t);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(43,184,242,.15); }
.field input.input-validation-error { border-color: var(--red); }
.field-error { color: var(--red); font-size: 13px; }
.field-error:empty { display: none; }
.form-error { color: var(--red); font-size: 14px; }
.form-error ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.auth-alt { margin: 20px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.field-aside { justify-self: end; }

/* ---------- Modal / toast / mobile bar ---------- */
.modal {
  width: min(480px, calc(100vw - 32px)); padding: 32px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.modal::backdrop { background: rgba(7, 11, 20, .75); backdrop-filter: blur(4px); }
.modal h3 { font-size: 26px; line-height: 32px; margin-bottom: 8px; }
.modal .link-field { margin: 20px 0 16px; }
.modal-close-form { position: absolute; right: 16px; top: 12px; margin: 0; }
.modal-close { background: none; border: 0; font-size: 28px; color: var(--muted); cursor: pointer; width: 44px; height: 44px; }

.toast-region { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  padding: 14px 18px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--green);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  font-size: 15px; animation: toast-in 240ms ease-out;
}
.toast.is-error { border-left-color: var(--red); }
.toast.is-info { border-left-color: var(--cyan); }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

.mobile-bar { display: none; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
  .hub-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "claim" "tiles" "streak" "breakdown"; }
  .ex-grid { grid-template-columns: 1fr 1fr; }
  .ex-card-gold { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-links, .lang { display: none; }
  .hero-grid, .final-grid, .ref-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .ref-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  h2 { font-size: 30px; line-height: 36px; }
  .display { font-size: 40px; line-height: 44px; }
  .display-sm { font-size: 34px; line-height: 38px; }
  .hero { padding-top: 28px; }
  .hero-sub, .section-sub { font-size: 16px; line-height: 24px; }
  .cta-row .btn-primary { width: 100%; }
  /* Secondary becomes a text link on mobile */
  .hero-secondary { height: auto; padding: 8px 0; box-shadow: none; background: none; color: var(--gold); font-size: 15px; width: 100%; }
  .token { width: 120px; height: 120px; }
  .brand-mark { height: 28px; }
  .timer-tile span { font-size: 30px; line-height: 34px; }
  .ticker { margin-top: 32px; }
  .nav-cta { display: none; }
  .site-nav .nav-actions { gap: 8px; }

  .hub { padding: 20px; }
  .hub-tiles { grid-template-columns: 1fr 1fr; }
  .rewards-highlights, .rewards-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rewards-highlights { margin-bottom: 12px; }
  .hub-tiles .tile:first-child { grid-column: 1 / -1; }
  .tile-value { font-size: 26px; line-height: 32px; }
  .rate-tiers { grid-template-columns: 1fr 1fr; }
  .rewards { padding: 20px; }
  .rewards-box-value { font-size: 32px; line-height: 38px; }
  .streak-pills { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .pill { flex: 0 0 64px; scroll-snap-align: start; }

  .tree { display: none; }
  .tier-accordion { display: block; }
  .ref-link .btn { padding: 0 18px; }

  .ex-grid { grid-template-columns: 1fr; }

  /* Vertical roadmap with the line on the left */
  .road-line { left: 29px; right: auto; top: 30px; bottom: 30px; width: 4px; height: auto; }
  .road-line span { width: 100% !important; height: 0; transition: height 1.2s ease; }
  .roadmap.is-visible .road-line span { height: var(--p); }
  .road-nodes { grid-template-columns: 1fr; gap: 28px; }
  .road-node { align-items: stretch; text-align: left; }
  .road-btn { display: grid; grid-template-columns: 60px 1fr; grid-template-areas: "m s" "m n" "m d"; align-items: center; column-gap: 16px; row-gap: 2px; text-align: left; padding-bottom: 12px; }
  .road-marker { grid-area: m; }
  .road-status { grid-area: s; margin: 0; }
  .road-name { grid-area: n; }
  .road-dates { grid-area: d; }
  .road-panel { margin-left: 76px; width: auto; }

  .final-cta { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Sticky bottom bar, 56px, safe-area aware */
  .mobile-bar {
    display: block; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(7,11,20,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform var(--t);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { height: 56px; }
  .toast-region { bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* Honour reduced motion: static glows, no spin, no marquee */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .token-coin { animation: none; }
  .ticker.is-scrolling .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
}
