/* ============================================================================
   9mm Pro Claim — Terminal / Tactical-HUD Theme
   ----------------------------------------------------------------------------
   Aligned with the 9mm.pro landing brand system:
     • JetBrains Mono everywhere (terminal typography)
     • Brass/gold accent (#c8a84e dark / #8a7234 light) on ink/parchment
     • Grid background + SVG noise + animated scanline sweep
     • Bracket-cornered cards (terminal frames)
     • Hairline borders, stagger-reveal on load, gold glow highlights
     • Semantic CSS vars — existing selectors still resolve without change
   ========================================================================= */

/* ──────────────────────────────────────────────────────────────────────────
   Palette tokens — light (warm parchment) + dark (near-black + brass)
   ────────────────────────────────────────────────────────────────────────── */

:root {
  /* Light mode — matches landing light variant (warm parchment, deep brass). */
  --bg: #faf7ef;
  --bg-alt: #f1ebdc;          /* secondary surface */
  --bg-raised: #ffffff;       /* elevated card */
  --fg: #1a1410;              /* primary text */
  --fg-muted: #5c5348;        /* secondary text */
  --fg-subtle: rgba(26, 20, 16, 0.55);
  --brass: #8a7234;           /* primary accent */
  --brass-soft: rgba(138, 114, 52, 0.12);
  --brass-hairline: rgba(138, 114, 52, 0.25);
  --brass-hairline-strong: rgba(138, 114, 52, 0.45);
  --glow: none;

  --green: #2f9e6e;
  --red:   #b8392f;
  --yellow:#b37a19;

  /* Back-compat aliases — older JS / inline styles may reference --orange
     or --gray-light. They now resolve to the brass palette. */
  --orange: var(--brass);
  --orange-light: var(--brass);
  --orange-dark: var(--brass);
  --black: var(--fg);
  --white: var(--bg);
  --gray-dark: var(--bg-alt);
  --gray-mid: var(--brass-hairline-strong);
  --gray-light: var(--fg-muted);
  --gray-border: var(--brass-hairline);
  --bg-primary: var(--bg);
  --bg-card: var(--bg-raised);
  --text-primary: var(--fg);
  --text-card: var(--fg);
  --border-color: var(--brass-hairline-strong);

  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: var(--font-mono);   /* everything is mono in this aesthetic */
}

[data-theme="dark"] {
  /* Dark mode — the canonical 9mm Pro brand: brass on near-black. */
  --bg: #08060b;
  --bg-alt: #141018;
  --bg-raised: #0d0a12;
  --fg: #ffffff;
  --fg-muted: #a8a29e;
  --fg-subtle: rgba(255, 255, 255, 0.55);
  --brass: #c8a84e;
  --brass-soft: rgba(200, 168, 78, 0.12);
  --brass-hairline: rgba(255, 255, 255, 0.08);
  --brass-hairline-strong: rgba(200, 168, 78, 0.35);
  --glow: none;

  --green: #4ade80;
  --red:   #ef4444;
  --yellow:#fbbf24;

  --orange: var(--brass);
  --black: var(--fg);
  --white: var(--bg);
  --gray-dark: var(--bg-alt);
  --gray-mid: var(--brass-hairline-strong);
  --gray-light: var(--fg-muted);
  --gray-border: var(--brass-hairline);
  --bg-primary: var(--bg);
  --bg-card: var(--bg-raised);
  --text-primary: var(--fg);
  --text-card: var(--fg);
  --border-color: var(--brass-hairline-strong);
}

/* ──────────────────────────────────────────────────────────────────────────
   Reset + base
   ────────────────────────────────────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
}

::selection { background: var(--brass); color: var(--bg); }

/* Themed scrollbars — applied globally so every scrollable region (page,
   tables, activity feeds, recent-claims, drawers, etc.) gets the same
   brass/ink treatment. Firefox honors scrollbar-width/color on html;
   WebKit needs the pseudo-element block. */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--brass-hairline-strong) transparent;
}

*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--brass-hairline-strong);
  border-radius: 0;
}
*::-webkit-scrollbar-thumb:hover { background: var(--brass); }
*::-webkit-scrollbar-corner { background: transparent; }

a { color: inherit; text-decoration: none; }

/* ──────────────────────────────────────────────────────────────────────────
   Atmosphere — intentionally empty. Flat-black surface per xch.9mm.pro.
   .noise / .scanline classes on body are now no-ops; kept in HTML to avoid
   touching every page but produce no visual effect.
   ────────────────────────────────────────────────────────────────────────── */

body {
  position: relative;
}

/* ──────────────────────────────────────────────────────────────────────────
   Container + layout
   ────────────────────────────────────────────────────────────────────────── */

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
  position: relative;
  z-index: 3;
}

/* ── Top nav ──────────────────────────────────────────── */
/* Sits outside .container so the hairline spans the full viewport
   width. .top-nav-inner constrains the actual content to match the
   1024px container width. Not sticky — claim is a short-form page
   and a pinned nav would just cost real estate. */
.top-nav {
  border-bottom: 1px solid var(--brass-hairline);
  padding: 1rem 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 3;
}

.top-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
}

.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Light theme: the white-on-transparent mark needs to darken to stay
   visible on parchment. Invert luminance + clip to brass tint. */
:root:not([data-theme="dark"]) .brand-mark {
  filter:
    brightness(0)
    saturate(100%)
    invert(45%)
    sepia(28%)
    saturate(655%)
    hue-rotate(6deg)
    brightness(92%)
    contrast(94%);
}

.brand-wordmark {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-wordmark .accent {
  color: var(--brass);
  margin: 0 0.05em;
}

.brand-divider {
  color: var(--fg-muted);
  font-weight: 400;
  margin: 0 0.1em;
}

.top-nav-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ── Ordinal center nav (01 CLAIM_ / 02 HOLDERS_ / 03 PROOFS_) ── */
.top-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  margin-right: 1.5rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.nav-link .nav-ord {
  color: var(--brass);
  margin-right: 0.45em;
  font-weight: 700;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-link.is-active {
  color: var(--fg);
  border-bottom-color: var(--brass);
}

/* ── Theme toggle — icon-only, 28px square ── */
.btn-theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--brass-hairline-strong);
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.btn-theme-icon:hover {
  color: var(--brass);
  border-color: var(--brass);
}

.btn-theme-icon .theme-icon { display: none; }
[data-theme="dark"] .btn-theme-icon .theme-icon-sun  { display: block; }
:root:not([data-theme="dark"]) .btn-theme-icon .theme-icon-moon { display: block; }

/* ── Mobile burger + drawer — hidden above 768px, shown below ── */
.nav-burger {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--brass-hairline-strong);
  color: var(--brass);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.15s ease;
}

.nav-burger:hover { border-color: var(--brass); }

.nav-burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Drawer — collapsed by default, expands under the nav hairline */
.nav-drawer {
  display: none;   /* toggled to block via media query */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  border-top: 1px solid var(--brass-hairline);
  background: var(--bg);
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.nav-drawer.is-open {
  max-height: 420px;
  opacity: 1;
}

.nav-drawer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.25rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.nav-drawer-label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--brass);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.nav-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--brass-hairline);
  transition: color 0.15s ease;
}

.nav-drawer-link:last-child { border-bottom: none; }

.nav-drawer-link .nav-ord {
  color: var(--brass);
  font-weight: 700;
}

.nav-drawer-link.is-active { color: var(--brass); }

.nav-drawer-link:hover { color: var(--fg); }

/* ── Eyebrow row — eyebrow + chain selector side by side ── */
.eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.eyebrow-row .eyebrow {
  margin-bottom: 0;
}

.eyebrow-row .network-select-top {
  min-width: 160px;
  font-size: 0.7rem;
  padding: 0.45rem 2rem 0.45rem 0.85rem;
}

/* ── Wallet-chain badge — visible state for the wallet's current chain
   relative to the UI's selected chain. Three visual states:
     .ok    — wallet matches selected chain (quiet green)
     .warn  — wallet is on a different but supported chain (brass/yellow)
     .err   — wallet is on an unsupported chain entirely (red)
   Keyed by simple class swaps from updateWalletChainBadge() in app.js. */
.wallet-chain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--brass-hairline-strong);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.wallet-chain-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-muted);
}

.wallet-chain-badge.ok   { color: var(--green);  border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.wallet-chain-badge.ok::before   { background: var(--green); box-shadow: 0 0 6px var(--green); }

.wallet-chain-badge.warn { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 55%, transparent); }
.wallet-chain-badge.warn::before { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); animation: blink 1.8s steps(2, start) infinite; }

.wallet-chain-badge.err  { color: var(--red);    border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.wallet-chain-badge.err::before  { background: var(--red); box-shadow: 0 0 6px var(--red); animation: blink 1.2s steps(2, start) infinite; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 2.5rem 0 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--brass-hairline);
}

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.eyebrow .pipe {
  color: var(--fg-muted);
  opacity: 0.6;
}

/* ── Section header (// LABEL ... [TAG]) ─────────────── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--brass);
  font-weight: 700;
  text-transform: uppercase;
}

.section-tag {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
}

/* (old inline section-tag countdown rules removed — countdown is now
   rendered prominently via .next-dist-banner below.) */

/* Stagger reveal for top-level sections on first paint */
.container > * {
  opacity: 0;
  animation: reveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.container > *:nth-child(1)  { animation-delay: 0.05s; }
.container > *:nth-child(2)  { animation-delay: 0.10s; }
.container > *:nth-child(3)  { animation-delay: 0.15s; }
.container > *:nth-child(4)  { animation-delay: 0.20s; }
.container > *:nth-child(5)  { animation-delay: 0.25s; }
.container > *:nth-child(6)  { animation-delay: 0.30s; }
.container > *:nth-child(7)  { animation-delay: 0.35s; }
.container > *:nth-child(8)  { animation-delay: 0.40s; }
.container > *:nth-child(9)  { animation-delay: 0.45s; }
.container > *:nth-child(10) { animation-delay: 0.50s; }
.container > *:nth-child(n+11) { animation-delay: 0.55s; }

@keyframes reveal {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────────────────────────────────────────────────────
   Typography — all caps + generous tracking + monospace
   ────────────────────────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fg);
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.05;
  margin-bottom: 0.35rem;
}

h1 .accent {
  color: var(--brass);
  font-weight: 700;
  animation: blink 1.2s steps(2, start) infinite;
}

h2 { font-size: 1.5rem; }
h3 { font-size: 0.8rem; letter-spacing: 0.18em; }

.subtitle {
  font-size: 0.72rem;
  color: var(--fg-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.subtitle::before {
  content: '// ';
  color: var(--brass);
  opacity: 0.7;
}

.mono { font-family: var(--font-mono); }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Divider — hairline + center brass segment
   ────────────────────────────────────────────────────────────────────────── */

.divider {
  border: none;
  height: 1px;
  background: var(--brass-hairline);
  position: relative;
  margin: 2rem 0;
}

.divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -1px;
  width: 72px;
  height: 3px;
  background: var(--brass);
  transform: translateX(-50%);
  box-shadow: var(--glow);
}

/* ──────────────────────────────────────────────────────────────────────────
   Bracket-card pattern
   Applied directly via class. Every card in the UI gets the terminal
   corner brackets by virtue of the selectors below.
   ────────────────────────────────────────────────────────────────────────── */

.stat-box,
.claim-card,
.token-card,
.history-card,
.analytics-card,
.recent-claims-card,
.not-eligible-card,
.wallet-section,
.lookup-section,
.faq-item {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--brass-hairline);
}

/* Corner brackets — reserved for the hero stat trio and the primary claim
   card. Every other panel falls back to the hairline border only, matching
   xch.9mm.pro's quieter panel treatment. */
.stat-box::before,
.claim-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    /* TL corner */
    linear-gradient(to right, var(--brass) 0, var(--brass) 14px, transparent 14px) top left / 100% 1.5px no-repeat,
    linear-gradient(to bottom, var(--brass) 0, var(--brass) 14px, transparent 14px) top left / 1.5px 100% no-repeat,
    /* TR corner */
    linear-gradient(to left,  var(--brass) 0, var(--brass) 14px, transparent 14px) top right / 100% 1.5px no-repeat,
    linear-gradient(to bottom, var(--brass) 0, var(--brass) 14px, transparent 14px) top right / 1.5px 100% no-repeat,
    /* BL corner */
    linear-gradient(to right, var(--brass) 0, var(--brass) 14px, transparent 14px) bottom left / 100% 1.5px no-repeat,
    linear-gradient(to top,    var(--brass) 0, var(--brass) 14px, transparent 14px) bottom left / 1.5px 100% no-repeat,
    /* BR corner */
    linear-gradient(to left,  var(--brass) 0, var(--brass) 14px, transparent 14px) bottom right / 100% 1.5px no-repeat,
    linear-gradient(to top,    var(--brass) 0, var(--brass) 14px, transparent 14px) bottom right / 1.5px 100% no-repeat;
  transition: background-size 0.3s ease;
}

.stat-box:hover::before,
.claim-card:hover::before {
  background-size:
    100% 1.5px, 1.5px 100%,
    100% 1.5px, 1.5px 100%,
    100% 1.5px, 1.5px 100%,
    100% 1.5px, 1.5px 100%;
}

/* ──────────────────────────────────────────────────────────────────────────
   Stats row
   ────────────────────────────────────────────────────────────────────────── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-box {
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 110px;
}

.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.stat-label::before {
  content: '› ';
  color: var(--brass);
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.stat-value.mono { font-size: 0.95rem; }

/* ──────────────────────────────────────────────────────────────────────────
   Info banner — round counter
   ────────────────────────────────────────────────────────────────────────── */

.info-banner {
  background: transparent;
  color: var(--brass);
  padding: 1rem 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0;
  border: 1px solid var(--brass-hairline-strong);
  border-bottom: none;
  position: relative;
}

.info-banner::before {
  content: '[';
  color: var(--brass);
  margin-right: 0.5rem;
  font-weight: 700;
}

.info-banner::after {
  content: ']';
  color: var(--brass);
  margin-left: 0.5rem;
  font-weight: 700;
}

.info-banner #holderCount,
.info-banner #currentRound {
  color: var(--fg);
  font-weight: 700;
}

/* ──────────────────────────────────────────────────────────────────────────
   Indeterminate progress bar — sits under the info-banner
   ────────────────────────────────────────────────────────────────────────── */

.stats-progress {
  height: 3px;
  background: color-mix(in srgb, var(--brass) 10%, transparent);
  overflow: hidden;
  margin: 0 0 1.25rem 0;
  position: relative;
  border: 1px solid var(--brass-hairline-strong);
  border-top: none;
}

.stats-progress-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg,
    transparent,
    var(--brass) 30%,
    var(--brass) 70%,
    transparent);
  box-shadow: 0 0 12px var(--brass);
  animation: stats-progress-slide 1.4s ease-in-out infinite;
}

@keyframes stats-progress-slide {
  0%   { left: -40%; }
  100% { left: 100%; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Countdown banner
   ────────────────────────────────────────────────────────────────────────── */

.countdown-banner {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border: 1px solid var(--brass-hairline-strong);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--brass) 6%, transparent),
      transparent 40%);
}

.countdown-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.countdown-label::before {
  content: '// ';
  color: var(--brass);
  opacity: 0.8;
}

.countdown-time {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brass);
  letter-spacing: 0.12em;
}

/* ──────────────────────────────────────────────────────────────────────────
   Wallet section
   ────────────────────────────────────────────────────────────────────────── */

.wallet-section {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.wallet-prompt {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-right: 1rem;
  letter-spacing: 0.06em;
}

.wallet-prompt::before {
  content: '» ';
  color: var(--brass);
}

.wallet-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   Buttons — "btn-terminal" style everywhere
   ────────────────────────────────────────────────────────────────────────── */

.btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--brass);
  background: transparent;
  color: var(--brass);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.btn:hover {
  background: var(--brass);
  color: var(--bg);
  box-shadow: var(--glow);
}

.btn-primary {
  background: var(--brass);
  color: var(--bg);
}

.btn-primary:hover {
  background: transparent;
  color: var(--brass);
  box-shadow: var(--glow);
}

.btn-outline { /* same as .btn default */ }

.btn-claim {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--fg-muted);
  border-color: var(--brass-hairline-strong);
}

.btn-claim:not(:disabled) {
  background: var(--brass);
  color: var(--bg);
  border-color: var(--brass);
}

.btn-claim:not(:disabled):hover {
  background: transparent;
  color: var(--brass);
  box-shadow: var(--glow);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: dashed;
}

.btn-theme {
  font-size: 0.7rem;
  padding: 0.55rem 1rem;
  letter-spacing: 0.2em;
}

.btn-share {
  display: inline-block;
  width: 100%;
  margin-top: 0.75rem;
  text-align: center;
  border-color: var(--brass-hairline-strong);
}

.btn-share:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--bg);
}

.btn-small {
  font-size: 0.62rem;
  padding: 0.45rem 0.75rem;
  letter-spacing: 0.2em;
}

/* ──────────────────────────────────────────────────────────────────────────
   Network selector (top) — terminal select
   ────────────────────────────────────────────────────────────────────────── */

.network-select-top,
.network-selector select {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 2.25rem 0.55rem 1rem;
  background-color: transparent;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brass) 50%),
    linear-gradient(-45deg, transparent 50%, var(--brass) 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 10px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  color: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  min-width: 180px;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s ease;
}

.network-select-top:hover,
.network-selector select:hover {
  background-color: var(--brass);
  color: var(--bg);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--bg) 50%),
    linear-gradient(-45deg, transparent 50%, var(--bg) 50%);
  box-shadow: var(--glow);
}

.network-select-top option,
.network-selector select option {
  background: var(--bg-raised);
  color: var(--fg);
}

/* ──────────────────────────────────────────────────────────────────────────
   Status banner
   ────────────────────────────────────────────────────────────────────────── */

.status-banner {
  padding: 0.9rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
  border: 1px solid var(--brass-hairline-strong);
  position: relative;
}

.status-banner.success {
  color: var(--brass);
  background: color-mix(in srgb, var(--brass) 6%, transparent);
  border-color: var(--brass);
  box-shadow: var(--glow);
}

.status-banner.success::before {
  content: '■ ';
  color: var(--brass);
  animation: blink 1.5s steps(2, start) infinite;
}

.status-banner.error {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 8%, transparent);
  border-color: var(--red);
}

/* ──────────────────────────────────────────────────────────────────────────
   Claim grid
   ────────────────────────────────────────────────────────────────────────── */

.claim-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.claim-card, .token-card {
  padding: 1.75rem 1.5rem;
}

.claim-card h3, .token-card h3,
.history-card h3, .analytics-card h3,
.recent-claims-card h3 {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--brass-hairline);
  color: var(--fg);
}

.claim-card h3::before,
.token-card h3::before,
.history-card h3::before,
.analytics-card h3::before,
.recent-claims-card h3::before {
  content: '// ';
  color: var(--brass);
  opacity: 0.9;
}

.claim-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--brass-hairline);
}

.info-row:last-child { border-bottom: none; }

.info-row span:first-child {
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.info-row span:last-child {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--fg);
}

/* Token card — big ticker display */
.token-display {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 0 1rem;
}

.token-symbol {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brass);
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 0 24px color-mix(in srgb, var(--brass) 40%, transparent);
}

.token-network {
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.token-network::before {
  content: '↳ ';
  color: var(--brass);
}

/* ──────────────────────────────────────────────────────────────────────────
   Claim status bar
   ────────────────────────────────────────────────────────────────────────── */

.claim-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  border: 1px solid var(--brass-hairline-strong);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.claim-status.error   { border-color: var(--red);   color: var(--red); }
.claim-status.success { border-color: var(--brass); color: var(--brass); box-shadow: var(--glow); }
.claim-status.pending { border-color: var(--yellow); color: var(--yellow); }

.claim-status a { color: inherit; text-decoration: underline; }

/* ──────────────────────────────────────────────────────────────────────────
   Gas estimate pill
   ────────────────────────────────────────────────────────────────────────── */

.gas-estimate {
  margin-top: 0.75rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.68rem;
  color: var(--fg-muted);
  text-align: center;
  border: 1px dashed var(--brass-hairline-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ──────────────────────────────────────────────────────────────────────────
   History card
   ────────────────────────────────────────────────────────────────────────── */

.history-card { padding: 1.75rem 1.5rem; margin-bottom: 2rem; }

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--brass-hairline);
}

.history-header h3 {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  margin: 0; padding: 0; border: none;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.history-empty {
  color: var(--fg-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 1rem;
  border: 1px dashed var(--brass-hairline-strong);
  letter-spacing: 0.06em;
}

.history-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg-alt);
  align-items: center;
  border-left: 2px solid var(--brass);
  transition: all 0.2s ease;
}

.history-item:hover {
  border-left-color: var(--brass);
  background: color-mix(in srgb, var(--brass) 6%, var(--bg-alt));
  transform: translateX(2px);
}

.history-date { display: flex; flex-direction: column; gap: 0.2rem; }
.history-date .date { font-size: 0.82rem; font-weight: 700; }
.history-date .time { font-size: 0.7rem; color: var(--fg-muted); }

.history-amount { text-align: center; }
.history-amount .amount {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brass);
}
.history-amount .token {
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-left: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.history-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}
.history-meta .round {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
}
.history-meta .tx-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brass);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.history-meta .tx-link:hover { text-decoration: underline; }

/* ──────────────────────────────────────────────────────────────────────────
   Not-eligible card
   ────────────────────────────────────────────────────────────────────────── */

.not-eligible-card {
  padding: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.not-eligible-card h3 {
  margin-bottom: 1rem;
  color: var(--fg-muted);
}

.not-eligible-card h3::before {
  content: '× ';
  color: var(--red);
}

.not-eligible-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.not-eligible-card .hint {
  font-size: 0.72rem;
  opacity: 0.7;
}

/* ──────────────────────────────────────────────────────────────────────────
   Footer — landing-style multi-column + legal strip
   ────────────────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--brass-hairline);
}

.site-footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.footer-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

:root:not([data-theme="dark"]) .footer-mark {
  filter:
    brightness(0)
    saturate(100%)
    invert(45%)
    sepia(28%)
    saturate(655%)
    hue-rotate(6deg)
    brightness(92%)
    contrast(94%);
}

.footer-wordmark {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
}

.footer-wordmark .accent { color: var(--brass); margin: 0 0.05em; }
.footer-wordmark .brand-divider { color: var(--fg-muted); margin: 0 0.1em; font-weight: 400; }

.footer-tagline {
  font-size: 0.72rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 26rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

/* Stacked // TAG lines under footer brand, matching xch.9mm.pro */
.footer-tags-stack {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-tags-stack li {
  font-size: 0.66rem;
  color: var(--fg-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Transmission column */
.site-footer-col-right {
  text-align: right;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--brass-hairline-strong);
  color: var(--fg);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
  transition: border-color 0.15s ease, color 0.15s ease;
  min-width: 140px;
  justify-content: center;
}

.footer-social-btn:hover {
  color: var(--brass);
  border-color: var(--brass);
}

.footer-social-btn svg {
  color: var(--fg-muted);
  transition: color 0.15s ease;
}

.footer-social-btn:hover svg { color: var(--brass); }

.footer-meta {
  font-size: 0.6rem;
  color: var(--fg-subtle);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-status {
  font-size: 0.62rem;
  color: var(--brass);
  letter-spacing: 0.25em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
}

.footer-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--fg-muted);
  box-shadow: 0 0 6px var(--fg-muted);
}

.footer-status.status-live::before    { background: var(--green);  box-shadow: 0 0 6px var(--green); }
.footer-status.status-paused::before  { background: var(--red);    box-shadow: 0 0 6px var(--red); }
.footer-status.status-warning::before { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.footer-status.status-offline::before { background: var(--red);    box-shadow: 0 0 6px var(--red); }

.footer-status.sync::before {
  animation: blink 1.8s steps(2, start) infinite;
}

.site-footer-col-title {
  font-size: 0.64rem;
  color: var(--brass);
  letter-spacing: 0.28em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

.site-footer-col ul a {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-footer-col ul a:hover {
  color: var(--fg);
}

.site-footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--brass-hairline);
  font-size: 0.6rem;
  color: var(--fg-subtle);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-tags {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-tags span {
  color: var(--fg-muted);
}

/* END_OF_STREAM bottom strip */
.footer-eos {
  color: var(--fg-muted);
  letter-spacing: 0.22em;
}

.footer-sys {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brass);
  letter-spacing: 0.22em;
  font-weight: 600;
}

.footer-sys::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--fg-muted);
  box-shadow: 0 0 6px var(--fg-muted);
}

.footer-sys.status-live::before    { background: var(--green);  box-shadow: 0 0 6px var(--green); }
.footer-sys.status-paused::before  { background: var(--red);    box-shadow: 0 0 6px var(--red); }
.footer-sys.status-warning::before { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.footer-sys.status-offline::before { background: var(--red);    box-shadow: 0 0 6px var(--red); }
.footer-sys.sync::before { animation: blink 1.8s steps(2, start) infinite; }

/* ──────────────────────────────────────────────────────────────────────────
   NEXT_DIST banner — full-width countdown above the ALL_CHAINS strip.
   This is the page's dominant "when can I claim next?" signal, so it
   gets heavy weight: brass hairline frame, large fixed-width timer,
   subtle brass-tinted background to draw the eye.
   ────────────────────────────────────────────────────────────────────────── */

.next-dist-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--brass-hairline-strong);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brass) 7%, transparent),
    transparent 60%);
}

.next-dist-label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 700;
}

.next-dist-timer {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.next-dist-timer span {
  background: linear-gradient(180deg, var(--fg) 0%, var(--brass) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ──────────────────────────────────────────────────────────────────────────
   ALL_CHAINS strip — always-on 4-cell snapshot on the claim page.
   Each cell is a button so clicking jumps the network selector to that chain.
   ────────────────────────────────────────────────────────────────────────── */

.chain-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.chain-cell {
  all: unset;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
  background: var(--bg-raised);
  border: 1px solid var(--brass-hairline);
  cursor: pointer;
  color: var(--fg);
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.chain-cell:hover {
  border-color: var(--brass);
  transform: translateY(-1px);
}

.chain-cell:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 2px;
}

/* Active = selected-network highlight. Matches the network selector state. */
.chain-cell.is-active {
  border-color: var(--brass);
  background: color-mix(in srgb, var(--brass) 4%, var(--bg-raised));
}

.chain-cell-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--brass-hairline);
}

.chain-cell-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--fg);
}

.chain-cell-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-muted);
}

/* Dot colors mirror the [SYS] status palette used elsewhere on the page. */
.chain-cell.status-live    .chain-cell-dot { background: var(--green);  box-shadow: 0 0 6px var(--green); }
.chain-cell.status-paused  .chain-cell-dot { background: var(--red);    box-shadow: 0 0 6px var(--red); }
.chain-cell.status-warning .chain-cell-dot { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }
.chain-cell.status-offline .chain-cell-dot { background: var(--red);    box-shadow: 0 0 6px var(--red); animation: blink 1.8s steps(2, start) infinite; }

.chain-cell-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.7rem;
}

.chain-cell-k {
  color: var(--fg-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chain-cell-k::before {
  content: '› ';
  color: var(--brass);
}

.chain-cell-v {
  color: var(--fg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-align: right;
  word-break: break-word;
}

/* ──────────────────────────────────────────────────────────────────────────
   Help link — bottom of the claim page, points at the dedicated /faq.
   ────────────────────────────────────────────────────────────────────────── */

.help-link-row {
  margin: 0.5rem 0 2.5rem;
  text-align: center;
}

.help-link {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--brass-hairline-strong);
  color: var(--brass);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.help-link:hover {
  color: var(--bg);
  background: var(--brass);
  border-color: var(--brass);
}

/* ──────────────────────────────────────────────────────────────────────────
   Manual list — numbered step walkthrough on /faq
   ────────────────────────────────────────────────────────────────────────── */

.manual-list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.manual-step {
  border: 1px solid var(--brass-hairline);
  padding: 1.25rem 1.5rem;
  background: var(--bg-raised);
}

.manual-step-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--brass-hairline);
}

.manual-step-n {
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.manual-step-title {
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manual-step p {
  color: var(--fg-muted);
  font-size: 0.82rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.manual-step code {
  font-family: var(--font-mono);
  color: var(--brass);
  background: var(--brass-soft);
  padding: 0.05rem 0.35rem;
  font-size: 0.78rem;
}

.manual-step a {
  color: var(--brass);
  border-bottom: 1px solid var(--brass-hairline-strong);
}

.manual-step a:hover { color: var(--fg); border-bottom-color: var(--brass); }

/* ──────────────────────────────────────────────────────────────────────────
   Secondary-rounds placeholder on the claim page — muted announcement
   card advertising the upcoming OG/PUSSY rev-share distribution.
   ────────────────────────────────────────────────────────────────────────── */

.secondary-placeholder {
  border: 1px dashed var(--brass-hairline-strong);
  padding: 1.35rem 1.5rem;
  margin-bottom: 2rem;
  background: color-mix(in srgb, var(--brass) 2%, var(--bg-raised));
  opacity: 0.85;
}

.secondary-placeholder-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px dashed var(--brass-hairline);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.secondary-placeholder-title {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  font-weight: 700;
}

.secondary-placeholder-state {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--fg-muted);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--brass-hairline-strong);
  font-weight: 700;
}

.secondary-placeholder-body {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.secondary-placeholder-body code {
  font-family: var(--font-mono);
  color: var(--brass);
  background: var(--brass-soft);
  padding: 0.05rem 0.35rem;
  font-size: 0.75rem;
}

.secondary-placeholder-link {
  color: var(--brass);
  border-bottom: 1px solid var(--brass-hairline-strong);
}

.secondary-placeholder-link:hover {
  color: var(--fg);
  border-bottom-color: var(--brass);
}

/* ──────────────────────────────────────────────────────────────────────────
   Proofs page — grid of per-chain artifact cards
   ────────────────────────────────────────────────────────────────────────── */

.proofs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.proofs-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  background: var(--bg-raised);
  border: 1px solid var(--brass-hairline);
  color: var(--fg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.proofs-card:hover {
  border-color: var(--brass);
  transform: translateY(-1px);
}

.proofs-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--brass-hairline);
}

.proofs-chain {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--fg);
}

.proofs-chain-id {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
}

.proofs-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.proofs-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.72rem;
}

.proofs-k {
  color: var(--fg-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.proofs-k::before {
  content: '› ';
  color: var(--brass);
}

.proofs-v {
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.proofs-card-cta {
  padding-top: 0.5rem;
  border-top: 1px solid var(--brass-hairline);
  color: var(--brass);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
}

.proofs-card:hover .proofs-card-cta {
  color: var(--fg);
}

/* Coming-soon placeholder — muted, non-interactive */
.proofs-card.is-coming-soon {
  cursor: default;
  opacity: 0.72;
  border-style: dashed;
}

.proofs-card.is-coming-soon:hover {
  border-color: var(--brass-hairline);
  transform: none;
}

.proofs-card.is-coming-soon .proofs-chain,
.proofs-card.is-coming-soon .proofs-v {
  color: var(--fg-muted);
}

.proofs-card-cta-muted {
  color: var(--fg-muted) !important;
}

.proofs-about {
  border: 1px solid var(--brass-hairline);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.proofs-about p + p { margin-top: 0.85rem; }

.proofs-about code {
  font-family: var(--font-mono);
  color: var(--brass);
  background: var(--brass-soft);
  padding: 0.05rem 0.35rem;
  font-size: 0.78rem;
}

.proofs-about-note {
  font-size: 0.76rem;
  color: var(--fg-subtle);
}

/* ──────────────────────────────────────────────────────────────────────────
   Loading overlay — terminal spinner
   ────────────────────────────────────────────────────────────────────────── */

.loading-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  width: 48px;
  height: 48px;
  border: 1px solid var(--brass-hairline);
  border-top-color: var(--brass);
  border-right-color: var(--brass);
  border-radius: 0;
  animation: spin 0.9s cubic-bezier(0.5, 0.1, 0.5, 1) infinite;
  box-shadow: var(--glow);
  position: relative;
}

.loader::before,
.loader::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--brass);
}
.loader::before { top: -3px; left: -3px; }
.loader::after  { bottom: -3px; right: -3px; }

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay p {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-family: var(--font-mono);
}

.loading-overlay p::after {
  content: '_';
  animation: blink 1s steps(2, start) infinite;
  margin-left: 2px;
}

/* ──────────────────────────────────────────────────────────────────────────
   Address lookup
   ────────────────────────────────────────────────────────────────────────── */

.lookup-section {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.lookup-header { margin-bottom: 1rem; }

.lookup-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.lookup-label::before {
  content: '// ';
  color: var(--brass);
}

.lookup-row {
  display: flex;
  gap: 0.75rem;
}

.lookup-input {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--brass-hairline-strong);
  background: transparent;
  color: var(--fg);
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.lookup-input:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: inset 0 0 0 1px var(--brass), 0 0 20px -4px var(--brass);
}

.lookup-input::placeholder {
  color: var(--fg-muted);
  opacity: 0.6;
}

.lookup-result {
  margin-top: 1rem;
  padding: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid var(--brass-hairline-strong);
}

.lookup-result.eligible {
  background: color-mix(in srgb, var(--brass) 10%, transparent);
  color: var(--brass);
  border-color: var(--brass);
  box-shadow: var(--glow);
}

.lookup-result.not-eligible {
  background: color-mix(in srgb, var(--fg-muted) 8%, transparent);
  color: var(--fg-muted);
}

.lookup-result.error {
  background: color-mix(in srgb, var(--red) 10%, transparent);
  color: var(--red);
  border-color: var(--red);
}

.lookup-result-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Per-chain lookup rows — one row per chain, inline claim button when
   the connected wallet matches the queried address. */
.lookup-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
}

.lookup-rows.hidden { display: none; }

.lookup-loading,
.lookup-error {
  padding: 1rem 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  text-transform: uppercase;
  border: 1px dashed var(--brass-hairline);
}

.lookup-error {
  color: var(--red);
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 6%, transparent);
}

.lookup-row-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--brass-hairline);
  font-size: 0.82rem;
}

.lookup-row-item[data-state="eligible"] {
  border-color: var(--brass-hairline-strong);
}

.lookup-row-item[data-state="claimed"],
.lookup-row-item[data-state="not-eligible"],
.lookup-row-item[data-state="unavailable"] {
  opacity: 0.78;
}

.lookup-chain-name {
  color: var(--fg-muted);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lookup-amount-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: right;
}

.lookup-amount {
  color: var(--brass);
  font-weight: 700;
  font-family: var(--font-mono);
}

.lookup-state {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--brass-hairline-strong);
  font-weight: 700;
}

.lookup-state-ok     { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.lookup-state-muted  { color: var(--fg-muted); border-color: var(--brass-hairline); }

.lookup-action-cell {
  text-align: right;
  min-width: 120px;
}

.lookup-action {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.lookup-action-muted { color: var(--fg-muted); opacity: 0.75; }

.lookup-claim-btn {
  padding: 0.45rem 0.85rem !important;
  font-size: 0.65rem !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   Analytics card
   ────────────────────────────────────────────────────────────────────────── */

.analytics-card { padding: 1.75rem 1.5rem; margin-bottom: 2rem; }

.analytics-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.analytics-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--brass);
  background: color-mix(in srgb, var(--brass) 4%, transparent);
}

.analytics-label {
  font-size: 0.68rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.analytics-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brass);
  font-family: var(--font-mono);
}

.analytics-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 100px;
  padding-top: 1rem;
  border-top: 1px solid var(--brass-hairline);
}

.chart-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  height: 100%;
}

.chart-bar {
  width: 100%;
  max-width: 40px;
  background: linear-gradient(to top,
    var(--brass),
    color-mix(in srgb, var(--brass) 40%, transparent));
  min-height: 4px;
  transition: height 0.4s ease, filter 0.2s ease;
  box-shadow: 0 0 10px color-mix(in srgb, var(--brass) 40%, transparent);
}

.chart-bar:hover { filter: brightness(1.3); }

.chart-label {
  font-size: 0.6rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ──────────────────────────────────────────────────────────────────────────
   Recent claims feed
   ────────────────────────────────────────────────────────────────────────── */

.recent-claims-card { padding: 1.75rem 1.5rem; margin-bottom: 2rem; }

.recent-claims-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
}

.recent-claim-item {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  align-items: center;
  font-size: 0.82rem;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.recent-claim-item:hover {
  border-left-color: var(--brass);
  background: color-mix(in srgb, var(--brass) 6%, var(--bg-alt));
}

/* Cross-chain tag pill — same footprint across both claim + holders pages. */
.chain-tag {
  color: var(--brass);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--brass-hairline-strong);
  font-weight: 700;
  font-family: var(--font-mono);
  white-space: nowrap;
  line-height: 1.4;
}

.chain-tag[data-chain-id="369"]  { color: #8b2ebf; border-color: color-mix(in srgb, #8b2ebf 45%, transparent); }
.chain-tag[data-chain-id="8453"] { color: #0052FF; border-color: color-mix(in srgb, #0052FF 45%, transparent); }
.chain-tag[data-chain-id="1"]    { color: #627EEA; border-color: color-mix(in srgb, #627EEA 45%, transparent); }
.chain-tag[data-chain-id="146"]  { color: #FC6924; border-color: color-mix(in srgb, #FC6924 45%, transparent); }

.recent-claim-address { color: var(--fg-muted); font-family: var(--font-mono); }
.recent-claim-amount  { color: var(--brass); font-weight: 700; text-align: center; font-family: var(--font-mono); }
.recent-claim-link {
  font-size: 0.7rem;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.recent-claim-link:hover { text-decoration: underline; }

.recent-claims-empty,
.recent-claims-loading {
  color: var(--fg-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 1rem;
  letter-spacing: 0.06em;
}

.recent-claims-loading::after {
  content: '_';
  animation: blink 1s steps(2, start) infinite;
  margin-left: 2px;
  color: var(--brass);
}

/* ──────────────────────────────────────────────────────────────────────────
   FAQ — accordion
   ────────────────────────────────────────────────────────────────────────── */

.faq-section { margin-bottom: 2.5rem; }

.faq-section h3 {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--brass-hairline);
}

.faq-section h3::before {
  content: '// ';
  color: var(--brass);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  border: 1px solid var(--brass-hairline);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  background: transparent;
  color: var(--fg);
  border: none;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: color-mix(in srgb, var(--brass) 6%, transparent);
  color: var(--brass);
}

.faq-question::after {
  content: '[+]';
  font-size: 0.8rem;
  color: var(--brass);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  content: '[−]';
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  background: transparent;
  color: var(--fg-muted);
}

.faq-item.open .faq-answer { display: block; }

.faq-answer p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* ──────────────────────────────────────────────────────────────────────────
   Network status indicator (LIVE / PAUSED / WARNING / OFFLINE)
   ────────────────────────────────────────────────────────────────────────── */

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.status-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--fg-muted);
  box-shadow: 0 0 8px var(--fg-muted);
}

.stat-box.status-live .status-indicator::before {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: blink 1.8s steps(2, start) infinite;
}

.stat-box.status-paused  .status-indicator::before { background: var(--red); box-shadow: 0 0 10px var(--red); }
.stat-box.status-warning .status-indicator::before { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }

.stat-box.status-offline .status-indicator::before {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: blink 1.8s steps(2, start) infinite;
}

.stat-box.status-live    { border-left: 2px solid var(--green); }
.stat-box.status-paused  { border-left: 2px solid var(--red); }
.stat-box.status-warning { border-left: 2px solid var(--yellow); }

/* ──────────────────────────────────────────────────────────────────────────
   Utility
   ────────────────────────────────────────────────────────────────────────── */

.hidden { display: none !important; }

/* Prefer reduced motion — kill the decorative animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .scanline::after { display: none; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Responsive — full mobile pass (tablet ≤768px, phone ≤480px, narrow ≤360px)
   ────────────────────────────────────────────────────────────────────────── */

/* Tablet and smaller phones */
@media (max-width: 768px) {
  .container { padding: 0 1rem 4rem; }

  /* ── Top nav: single-row, compact — brand left, controls right ──
     Hairline still spans the whole viewport (via .top-nav). Inner
     content gets tighter padding + smaller elements so three
     controls fit next to the brand on a 360-390px phone. */
  .top-nav {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
  }
  .top-nav-inner {
    gap: 0.75rem;
  }
  .brand { gap: 0.5rem; flex: 0 1 auto; min-width: 0; }
  .brand-mark { width: 26px; height: 26px; flex: 0 0 auto; }
  .brand-wordmark {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-nav-controls {
    flex: 0 1 auto;
    gap: 0.4rem;
    justify-content: flex-end;
  }
  .network-select-top { min-width: 0; max-width: 150px; }
  .top-nav-controls .btn { flex: 0 0 auto; }

  /* Ordinal nav collapses on tablet — brand + theme icon + burger */
  .top-nav-links { display: none; }
  .btn-theme-icon { width: 32px; height: 32px; }
  .nav-burger { display: flex; width: 32px; height: 32px; }
  .nav-drawer { display: block; }
  /* tighten nav padding so burger fits next to theme icon on narrow phones */
  .top-nav { padding: 0.65rem 1rem; }
  .top-nav-controls { gap: 0.5rem; }

  /* Eyebrow row stacks; chain selector + wallet badge drop below eyebrow */
  .eyebrow-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .eyebrow-row .network-select-top { max-width: none; width: 100%; }
  .wallet-chain-badge { font-size: 0.6rem; letter-spacing: 0.14em; padding: 0.3rem 0.6rem; }

  /* ── Hero ── */
  .hero { padding: 1.5rem 0; margin-bottom: 1.75rem; }
  .eyebrow {
    gap: 0.6rem;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
  }
  h1 {
    font-size: clamp(1.9rem, 10vw, 2.75rem);
    line-height: 1.02;
  }
  .subtitle { font-size: 0.65rem; letter-spacing: 0.18em; }

  /* ── Section head: stack label + tag ── */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
  }
  .section-label { font-size: 0.68rem; letter-spacing: 0.2em; }
  .section-tag   { font-size: 0.56rem; letter-spacing: 0.16em; }

  /* ── Chain strip ── */
  .chain-strip { grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-bottom: 1.25rem; }
  .chain-cell { padding: 0.85rem 0.95rem; }
  .chain-cell-name { font-size: 0.72rem; }

  /* ── Next-dist banner stacks on narrow viewports ── */
  .next-dist-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
  }
  .next-dist-label { font-size: 0.64rem; letter-spacing: 0.22em; }
  .next-dist-timer { font-size: 1.35rem; letter-spacing: 0.08em; }

  /* ── Stats row ── */
  .stats-row { grid-template-columns: 1fr; gap: 0.65rem; margin-bottom: 1rem; }
  .stat-box { padding: 1rem 1.15rem; min-height: auto; gap: 0.35rem; }
  .stat-label { font-size: 0.62rem; letter-spacing: 0.18em; }
  .stat-value { font-size: 1.1rem; }
  .stat-value.mono { font-size: 0.85rem; word-break: break-all; }

  /* ── Info banner ── */
  .info-banner {
    font-size: 0.66rem;
    letter-spacing: 0.15em;
    padding: 0.85rem 0.75rem;
  }

  /* ── Countdown ── */
  .countdown-banner {
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1.2rem;
    text-align: left;
    align-items: flex-start;
  }
  .countdown-label { font-size: 0.62rem; letter-spacing: 0.18em; }
  .countdown-time { font-size: 1.05rem; letter-spacing: 0.08em; }

  /* ── Wallet ── */
  .wallet-section { padding: 1.2rem; }
  .wallet-row { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .wallet-prompt { font-size: 0.78rem; margin-right: 0; }

  /* ── Claim + Token ── */
  .claim-grid { grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1.75rem; }
  .claim-card, .token-card { padding: 1.25rem; }
  .claim-card h3, .token-card h3 { font-size: 0.68rem; letter-spacing: 0.22em; }
  .token-symbol { font-size: 2rem; }
  .token-network { font-size: 0.66rem; letter-spacing: 0.18em; }
  .info-row { font-size: 0.78rem; padding: 0.3rem 0; }
  .info-row span:first-child { font-size: 0.62rem; letter-spacing: 0.1em; }
  .btn-claim {
    padding: 0.95rem 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    margin-top: 0.75rem;
  }

  /* ── Claim status, gas estimate ── */
  .claim-status { font-size: 0.78rem; padding: 0.75rem 0.9rem; }
  .gas-estimate { font-size: 0.64rem; letter-spacing: 0.1em; }

  /* ── Lookup ── */
  .lookup-section { padding: 1.2rem; }
  .lookup-row { flex-direction: column; gap: 0.6rem; }
  .lookup-row .btn { width: 100%; padding: 0.8rem; }
  .lookup-input { font-size: 0.85rem; padding: 0.75rem 0.85rem; }

  /* Per-chain lookup rows reflow to stack the amount + action under the
     chain on narrow viewports so the row stays readable at 360px wide. */
  .lookup-row-item {
    grid-template-columns: auto 1fr;
    gap: 0.4rem 0.65rem;
    padding: 0.65rem 0.85rem;
  }
  .lookup-chain-name { font-size: 0.7rem; }
  .lookup-amount-cell,
  .lookup-action-cell {
    grid-column: 1 / -1;
    text-align: left;
    justify-content: flex-start;
  }
  .lookup-action-cell { min-width: 0; }

  /* ── History ── */
  .history-card { padding: 1.2rem; }
  .history-header { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding-bottom: 0.6rem; }
  .history-item {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 0.85rem 0.95rem;
    gap: 0.4rem;
  }
  .history-date, .history-meta { align-items: flex-start; }
  .history-amount { text-align: left; }
  .history-amount .amount { font-size: 1rem; }
  .history-meta { flex-direction: row; justify-content: space-between; width: 100%; }

  /* ── Recent claims ── */
  .recent-claims-card { padding: 1.2rem; }
  .recent-claim-item {
    grid-template-columns: auto 1fr auto;
    gap: 0.4rem 0.6rem;
    padding: 0.65rem 0.85rem;
    text-align: left;
    font-size: 0.78rem;
  }
  /* Amount reflows to full width below address+badge on narrow phones. */
  .recent-claim-amount { text-align: left; grid-column: 1 / -1; }

  /* ── Analytics ── */
  .analytics-card { padding: 1.2rem; }
  .analytics-summary { grid-template-columns: 1fr; gap: 0.5rem; margin-bottom: 1rem; }
  .analytics-stat { padding: 0.65rem 0.85rem; }
  .analytics-value { font-size: 1.05rem; }
  .analytics-label { font-size: 0.6rem; letter-spacing: 0.18em; }
  .analytics-chart { height: 80px; gap: 0.3rem; }

  /* ── FAQ ── */
  .faq-section h3 { font-size: 0.72rem; }
  .faq-question {
    padding: 0.85rem 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }
  .faq-answer { padding: 0 1rem 1rem; }
  .faq-answer p { font-size: 0.8rem; line-height: 1.55; }

  /* ── Footer ── */
  .site-footer { margin-top: 2.5rem; padding-top: 2rem; }
  .site-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    padding-bottom: 2rem;
  }
  .site-footer-brand { grid-column: 1 / -1; }
  .site-footer-col-right { text-align: left; grid-column: 1 / -1; }
  .site-footer-col-right .footer-social { align-items: flex-start; }
  .footer-tagline { max-width: none; font-size: 0.72rem; }
  .site-footer-col-title { font-size: 0.62rem; letter-spacing: 0.22em; margin-bottom: 0.75rem; }
  .site-footer-col ul { gap: 0.55rem; }
  .site-footer-col ul a { font-size: 0.72rem; }
  .site-footer-base { font-size: 0.56rem; letter-spacing: 0.18em; padding: 1rem 0; }

  /* ── Buttons (generic) ── */
  .btn { padding: 0.7rem 1.1rem; font-size: 0.72rem; letter-spacing: 0.14em; }
  .btn-theme { padding: 0.5rem 0.8rem; font-size: 0.65rem; letter-spacing: 0.18em; }
  .btn-small { font-size: 0.58rem; padding: 0.4rem 0.6rem; }

  /* ── Keep the bracket corners at full size on the hero trio + claim card ── */
  .stat-box::before,
  .claim-card::before {
    background-size:
      100% 1.5px, 1.5px 100%,
      100% 1.5px, 1.5px 100%,
      100% 1.5px, 1.5px 100%,
      100% 1.5px, 1.5px 100%;
  }

  /* Disable the decorative scanline on mobile — it's more noise than signal
     at small viewports, and saves a composited fixed layer on weaker GPUs. */
  .scanline::after { display: none; }
}

/* Phones ≤480px — tighter still */
@media (max-width: 480px) {
  .container { padding: 0 0.85rem 3rem; }
  .chain-strip { grid-template-columns: 1fr; gap: 0.5rem; }
  .top-nav { padding: 0.65rem 0.85rem; margin-bottom: 1.25rem; }
  .top-nav-inner { gap: 0.5rem; }
  .brand-wordmark .brand-suffix { display: none; }  /* drop " / CLAIM" */
  .brand-wordmark { font-size: 0.72rem; }
  .network-select-top { max-width: 120px; font-size: 0.68rem; padding: 0.5rem 1.8rem 0.5rem 0.65rem; }
  .btn-theme { padding: 0.45rem 0.65rem; font-size: 0.6rem; }

  .hero { padding: 1rem 0 1.25rem; margin-bottom: 1.25rem; }
  .eyebrow {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    font-size: 0.58rem;
  }
  .eyebrow .pipe { display: none; }
  h1 { font-size: clamp(1.7rem, 11vw, 2.3rem); }

  .info-banner { font-size: 0.6rem; letter-spacing: 0.1em; padding: 0.75rem 0.5rem; }
  .info-banner::before, .info-banner::after { margin: 0 0.2rem; }

  .token-symbol { font-size: 1.75rem; }
  .stat-value { font-size: 1rem; }
  .stat-value.mono { font-size: 0.78rem; }

  /* Footer: stack everything */
  .site-footer-main { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .footer-wordmark .brand-divider,
  .footer-wordmark .brand-suffix { /* keep wordmark compact */ }
  .footer-tags { gap: 0.55rem 0.85rem; }
}

/* Narrow phones ≤360px — e.g. iPhone SE 1st gen, old Androids */
@media (max-width: 360px) {
  .brand-wordmark { font-size: 0.72rem; }
  .brand-mark { width: 24px; height: 24px; }
  h1 { font-size: clamp(1.55rem, 12vw, 2rem); }
}
