/* ================================================================
   NAIRADESK · site.css
   Editorial crypto-desk — serif display, tabular numerics,
   gold-on-forest palette. Light + dark themes.
   ================================================================ */

/* ---- Tokens ---- */
:root {
  --bg: #f4efe2;
  --paper: #fbf8ef;
  --ink: #15201a;
  --ink-dim: #4b5b50;
  --ink-mute: #6c7d71;
  --rule: #d8d1bd;
  --rule-strong: #b5ab8f;
  --card: #ffffff;
  --card-ring: #e6dfca;
  --card-ring-soft: #f0e9d5;
  --accent: #b47a1b;
  --accent-ink: #ffffff;
  --accent-soft: #f2dfa8;
  --accent-deep: #8a5c12;
  --green: #246a3e;
  --green-soft: #d8ecdc;
  --red: #a63530;
  --red-soft: #f6dcd8;
  --gold: #c69436;
  --gold-soft: rgba(198,148,54,.15);
  --shadow: 0 1px 0 rgba(21,32,26,.06), 0 10px 30px -18px rgba(21,32,26,.35);
  --shadow-lg: 0 2px 2px rgba(21,32,26,.04), 0 20px 48px -24px rgba(21,32,26,.5);
  --radius: 6px;
  --radius-lg: 10px;
  color-scheme: light;
}
:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --bg: #0e1612;
    --paper: #131d18;
    --ink: #ecead8;
    --ink-dim: #9aaaa0;
    --ink-mute: #778478;
    --rule: #263430;
    --rule-strong: #38504a;
    --card: #182422;
    --card-ring: #27352f;
    --card-ring-soft: #1d2b26;
    --accent: #e3b05a;
    --accent-ink: #15201a;
    --accent-soft: #3a2d14;
    --accent-deep: #f4c87d;
    --green: #6db987;
    --green-soft: #1d3327;
    --red: #e37a71;
    --red-soft: #3a1f1d;
    --gold: #e8c074;
    --gold-soft: rgba(232,192,116,.18);
    --shadow: 0 1px 0 rgba(0,0,0,.4), 0 14px 40px -20px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 2px rgba(0,0,0,.4), 0 24px 60px -24px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1612;
  --paper: #131d18;
  --ink: #ecead8;
  --ink-dim: #9aaaa0;
  --ink-mute: #778478;
  --rule: #263430;
  --rule-strong: #38504a;
  --card: #182422;
  --card-ring: #27352f;
  --card-ring-soft: #1d2b26;
  --accent: #e3b05a;
  --accent-ink: #15201a;
  --accent-soft: #3a2d14;
  --accent-deep: #f4c87d;
  --green: #6db987;
  --green-soft: #1d3327;
  --red: #e37a71;
  --red-soft: #3a1f1d;
  --gold: #e8c074;
  --gold-soft: rgba(232,192,116,.18);
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 14px 40px -20px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 2px rgba(0,0,0,.4), 0 24px 60px -24px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; transition: text-decoration-color .15s; }
a:hover { text-decoration-color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.08; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; }
h4 { font-size: 1.05rem; line-height: 1.3; font-weight: 600; }
em { font-style: italic; color: var(--accent); }

.eyebrow {
  font-family: 'Figtree', sans-serif;
  font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-dim); margin: 0;
}
.mono, .num-mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* ---- Wrap ---- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }

/* ---- Promo band ---- */
.promo-band {
  background: var(--accent); color: var(--accent-ink);
  padding: 11px 20px; text-align: center; font-weight: 600; font-size: .9rem;
  border-bottom: 1px solid rgba(0,0,0,.15);
}
.promo-band a { color: var(--accent-ink); text-decoration-color: rgba(21,32,26,.4); }
.promo-band.hidden { display: none; }

/* ---- Ticker ---- */
.ticker {
  background: var(--ink);
  color: var(--bg);
  font-family: 'Figtree', sans-serif;
  font-weight: 500; font-size: .88rem;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--ink);
  user-select: none;
}
.ticker::before, .ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.ticker-track {
  display: inline-flex;
  padding: 10px 0;
  gap: 42px;
  white-space: nowrap;
  animation: tick 70s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; }
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }
.ticker-item strong { color: var(--gold); font-weight: 700; }
.ticker-item .up { color: #7fdfa2; font-weight: 600; }
.ticker-item .down { color: #ff9c92; font-weight: 600; }
.ticker-item.highlight { color: var(--gold); font-weight: 600; }
.ticker-item.highlight .ticker-dot { background: #ff9c92; animation: pulseDot 1.2s infinite; }
.ticker-item.flash-up strong { animation: flashUp 1s ease-out 1; }
.ticker-item.flash-down strong { animation: flashDown 1s ease-out 1; }
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.4); } }
@keyframes flashUp { 0% { background: rgba(127,223,162,.4); color: #7fdfa2; } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: rgba(255,156,146,.4); color: #ff9c92; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; justify-content: center; flex-wrap: wrap; white-space: normal; }
  .ticker-item.flash-up strong, .ticker-item.flash-down strong { animation: none; }
}

/* ---- Masthead ---- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--rule); position: relative; }
.mast-top {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
  font-size: .82rem; color: var(--ink-dim); flex-wrap: wrap;
}
.mast-top .date { letter-spacing: .04em; }
.mast-top .status { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 0 3px var(--green-soft); animation: pulse 2s infinite; vertical-align: middle; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.vasp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px; background: var(--accent-soft); border-radius: 999px; font-size: .74rem; color: var(--accent-deep); font-weight: 600; }
.vasp-badge .d { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }

.mast-main {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
  padding: 20px 0 12px;
}
.mast-side { font-size: .82rem; color: var(--ink-dim); }
.mast-side.left { text-align: left; }
.mast-side.right { text-align: right; }
.mast-side strong { display: block; color: var(--ink); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; margin-bottom: 2px; }
.mast-side .lang {
  display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--card-ring); border-radius: 999px; margin-top: 6px;
}
.mast-side .lang button {
  border: 0; background: transparent; color: var(--ink-dim); padding: 3px 10px; font: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .06em; border-radius: 999px; cursor: pointer;
}
.mast-side .lang button.active { background: var(--ink); color: var(--paper); }
.brand { text-align: center; }
.brand h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1; margin: 0; }
.brand h1 .acc { color: var(--accent); font-style: italic; }
.brand .tagline { font-family: 'Fraunces', serif; font-style: italic; color: var(--ink-dim); font-size: .95rem; margin-top: 4px; }

/* Theme toggle */
.theme-toggle {
  background: transparent; border: 1px solid var(--card-ring); border-radius: 999px;
  padding: 5px 10px; font: inherit; font-size: .78rem; cursor: pointer; color: var(--ink-dim);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* Nav */
nav.main {
  display: flex; justify-content: center; gap: 4px;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 2px 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--paper);
}
nav.main::-webkit-scrollbar { display: none; }
nav.main a {
  padding: 13px 16px;
  font-weight: 600; font-size: .92rem;
  text-decoration: none; color: var(--ink);
  letter-spacing: .02em; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  position: relative;
}
nav.main a:hover { color: var(--accent); }
nav.main a.active { border-bottom-color: var(--accent); color: var(--accent); }
nav.main .trade-cta { margin-left: 8px; padding-top: 8px; padding-bottom: 8px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: transform .08s, box-shadow .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn.alt { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.alt:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.btn.small { padding: 8px 14px; font-size: .84rem; }
.btn.block { width: 100%; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-group { display: inline-flex; flex-wrap: wrap; gap: 10px; }

/* ---- Hero ---- */
.hero { padding: 56px 0 28px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.45fr .9fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.lede { font-family: 'Fraunces', serif; font-size: 1.18rem; color: var(--ink-dim); line-height: 1.55; margin: 18px 0 24px; max-width: 34em; }
.byline { display: flex; gap: 14px; align-items: center; color: var(--ink-dim); font-size: .85rem; margin-top: 18px; }
.byline .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: 'Fraunces', serif; }
.byline strong { color: var(--ink); }

/* Side box (quotes) */
.sidebox {
  background: var(--card);
  border: 1px solid var(--card-ring);
  box-shadow: var(--shadow);
  padding: 22px;
  border-radius: var(--radius);
  position: relative;
}
.sidebox h3 { font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); font-weight: 600; font-family: 'Figtree', sans-serif; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; }
.sidebox h3 .live-flag { font-family: 'Figtree'; color: var(--green); font-size: .72rem; letter-spacing: .08em; display: inline-flex; align-items: center; gap: 5px; }
.quote-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--rule); align-items: baseline; }
.quote-row:last-child { border: 0; }
.quote-pair { font-weight: 600; }
.quote-pair small { display: block; color: var(--ink-dim); font-weight: 500; font-size: .74rem; margin-top: 1px; }
.quote-price { font-family: 'JetBrains Mono', monospace; font-weight: 500; transition: color .4s; }
.quote-price.flash-up { color: var(--green); }
.quote-price.flash-down { color: var(--red); }
.delta { font-size: .76rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.delta.up { background: var(--green-soft); color: var(--green); }
.delta.down { background: var(--red-soft); color: var(--red); }
.delta.flat { background: var(--accent-soft); color: var(--accent); }

/* ---- Stats strip ---- */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin: 32px 0 0;
}
.stat { padding: 22px 20px; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat .k { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); font-weight: 600; }
.stat .v { font-family: 'Fraunces', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-top: 6px; }
.stat .d { font-size: .85rem; color: var(--ink-dim); margin-top: 4px; }
@media (max-width: 780px) {
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--rule); }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
}

/* ---- Sections ---- */
.section { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head div { max-width: 60ch; }
.section-head p { color: var(--ink-dim); margin: 6px 0 0; }

/* ---- Trust strip ---- */
.trust-strip {
  background: var(--paper);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}
.trust-items { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; }
@media (max-width: 1000px) { .trust-items { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 580px) { .trust-items { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.trust-item { display: flex; gap: 10px; align-items: center; min-width: 0; }
.trust-item .ico { width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--rule-strong); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.trust-item .ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-item .label { font-weight: 600; font-size: .88rem; line-height: 1.2; }
.trust-item .sub { font-size: .72rem; color: var(--ink-dim); margin-top: 2px; letter-spacing: .02em; }

/* ---- Three up ---- */
.three-up { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.three-up > * { background: var(--bg); padding: 28px 26px; }
@media (max-width: 820px) { .three-up { grid-template-columns: 1fr; } }
.feature .num-tag { font-family: 'Fraunces', serif; font-size: .95rem; color: var(--accent); font-weight: 700; letter-spacing: .05em; }
.feature h3 { margin: 6px 0 10px; }
.feature p { color: var(--ink-dim); margin: 0; }

/* Six-up for security pillars */
.six-up { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .six-up { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .six-up { grid-template-columns: 1fr; } }
.pillar {
  background: var(--card); border: 1px solid var(--card-ring); border-radius: var(--radius); padding: 24px;
}
.pillar h4 { color: var(--accent); font-family: 'Figtree', sans-serif; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; margin-bottom: 10px; }
.pillar p { color: var(--ink-dim); margin: 0; font-size: .95rem; }
.pillar .big { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--ink); font-weight: 700; margin-bottom: 8px; display: block; }

/* ---- Rate table ---- */
.rate-table { width: 100%; border-collapse: collapse; }
.rate-table th, .rate-table td { padding: 15px 12px; text-align: left; border-bottom: 1px solid var(--rule); }
.rate-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-dim); font-weight: 600; background: var(--paper); border-bottom: 2px solid var(--ink); }
.rate-table td { font-size: .95rem; }
.rate-table .pair { font-weight: 600; font-size: 1.05rem; }
.rate-table .pair small { display: block; font-weight: 400; font-size: .76rem; color: var(--ink-dim); margin-top: 2px; }
.rate-table .price { font-family: 'JetBrains Mono', monospace; font-weight: 500; transition: color .4s; }
.rate-table .act { text-align: right; }
.rate-table tr.highlight td { background: var(--accent-soft); }
.rate-table tr:hover td { background: var(--card-ring-soft); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.gold { background: var(--accent-soft); color: var(--accent); }
.chip.grey { background: var(--rule); color: var(--ink-dim); }
.chip.red { background: var(--red-soft); color: var(--red); }

/* ---- News grid ---- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 980px) { .news-grid { grid-template-columns: 1fr; } }
.news-lead .img {
  aspect-ratio: 16/9; background: linear-gradient(135deg, var(--accent-soft), var(--gold-soft));
  border-radius: var(--radius); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 900; font-size: 3.4rem;
  color: var(--accent); position: relative; overflow: hidden;
}
.news-lead .img::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,.3), transparent 60%); }
.news-lead h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.news-lead p { color: var(--ink-dim); margin: 10px 0 0; }
.news-side { display: flex; flex-direction: column; gap: 22px; }
.news-mini { padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.news-mini:last-child { border-bottom: 0; }
.news-mini .cat { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.news-mini h4 { margin: 6px 0 4px; font-family: 'Fraunces', serif; font-size: 1.12rem; }
.news-mini h4 a { text-decoration: none; }
.news-mini h4 a:hover { color: var(--accent); }
.news-mini time { font-size: .78rem; color: var(--ink-dim); }
.news-mini .read { font-size: .78rem; color: var(--ink-dim); margin-left: 8px; }

/* ---- Article ---- */
.article { max-width: 720px; margin: 0 auto; padding: 56px 0; }
.article .cat { color: var(--accent); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.article h1 { margin-bottom: 16px; }
.article .meta { color: var(--ink-dim); font-size: .9rem; margin-bottom: 36px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); display: flex; gap: 14px; flex-wrap: wrap; }
.article .meta span { display: inline-flex; align-items: center; gap: 6px; }
.article .body { font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.article .body p { margin: 0 0 1.1em; }
.article .body h2, .article .body h3 { margin: 1.6em 0 .5em; }

/* ---- Airdrop dark wrap ---- */
.airdrop-wrap { background: linear-gradient(130deg, var(--ink) 0%, #1f2e27 100%); color: var(--paper); padding: 56px 0; border-radius: var(--radius-lg); overflow: hidden; }
:root[data-theme="dark"] .airdrop-wrap, :root:not([data-theme="light"]) .airdrop-wrap { background: linear-gradient(130deg, #0a0f0c 0%, #182420 100%); }
.airdrop-wrap h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--gold); }
.airdrop-wrap h3 { color: var(--gold); font-size: 1.05rem; font-family: 'Figtree', sans-serif; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.airdrop-wrap p { color: #c4c9b7; }
.airdrop-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .airdrop-grid { grid-template-columns: 1fr; } }
.airdrop-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); padding: 24px; border-radius: var(--radius); }
.airdrop-card.light { background: rgba(255,255,255,.07); }
.contract-box { background: rgba(0,0,0,.4); border: 1px dashed rgba(255,255,255,.22); padding: 14px; margin-top: 12px; border-radius: var(--radius); font-family: 'JetBrains Mono', monospace; font-size: .78rem; word-break: break-all; color: var(--gold); }
.copy-btn { background: var(--gold); color: #15201a; border: 0; padding: 9px 16px; font-weight: 700; border-radius: 999px; cursor: pointer; margin-top: 12px; font-size: .84rem; font: 600 .84rem 'Figtree', sans-serif; }
.copy-btn:hover { background: #ffd068; }
.copy-btn + .btn { margin-top: 12px; margin-left: 8px; background: transparent; border-color: rgba(255,255,255,.3); color: var(--gold); }

.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pill { background: rgba(255,255,255,.08); color: var(--gold); padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; }

/* ---- Forms ---- */
.form-row { display: grid; gap: 6px; margin-bottom: 14px; }
.form-row label { font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-dim); }
.form-row input, .form-row textarea, .form-row select {
  font: inherit; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--card-ring); background: var(--card); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-row textarea { min-height: 110px; font-family: 'JetBrains Mono', monospace; font-size: .85rem; line-height: 1.5; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 680px) { .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; } }
.help { font-size: .78rem; color: var(--ink-dim); margin: 0; }
.help code { background: var(--paper); padding: 1px 6px; border-radius: 3px; font-size: .92em; color: var(--accent-deep); }

/* ---- Swap pair ---- */
.order-box { background: var(--card); border: 1px solid var(--card-ring); padding: 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.swap-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; margin-bottom: 14px; }
.swap-pair .arrow { font-size: 1.4rem; color: var(--accent); padding-bottom: 14px; }
.leg { background: var(--paper); border: 1px solid var(--card-ring); padding: 14px; border-radius: var(--radius); }
.leg label { font-size: .72rem; letter-spacing: .1em; color: var(--ink-dim); text-transform: uppercase; display: block; margin-bottom: 4px; }
.leg input, .leg select { font: inherit; border: 0; background: transparent; width: 100%; padding: 4px 0; font-size: 1.15rem; font-family: 'JetBrains Mono', monospace; color: var(--ink); }
.leg input:focus, .leg select:focus { outline: none; box-shadow: none; }
.leg select { font-family: 'Figtree', sans-serif; font-weight: 600; cursor: pointer; }
.rate-line { display: flex; justify-content: space-between; padding: 12px 14px; background: var(--accent-soft); color: var(--accent-deep); border-radius: var(--radius); margin-bottom: 14px; font-size: .9rem; font-weight: 600; }
.rate-line strong { font-family: 'JetBrains Mono', monospace; color: var(--accent-deep); }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 3px solid var(--accent); padding-top: 16px; }
.step .n { font-family: 'Fraunces', serif; font-weight: 900; color: var(--accent); font-size: 1.5rem; }
.step h4 { margin: 2px 0 6px; }
.step p { color: var(--ink-dim); margin: 0; font-size: .92rem; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.faq details { background: var(--bg); padding: 18px 24px; transition: background .15s; }
.faq details:hover { background: var(--paper); }
.faq summary { font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; font-family: 'Fraunces', serif; font-size: 1.1rem; list-style: none; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.6rem; line-height: 1; flex-shrink: 0; transition: transform .2s; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--ink-dim); margin: 12px 0 0; }

/* ---- Footer ---- */
footer.site { background: var(--ink); color: var(--bg); padding: 56px 0 28px; margin-top: 32px; }
footer.site a { color: var(--bg); text-decoration-color: rgba(255,255,255,.3); }
footer.site a:hover { text-decoration-color: var(--gold); color: var(--gold); }
footer.site h4 { color: var(--gold); margin-bottom: 14px; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; font-family: 'Figtree', sans-serif; font-weight: 600; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid ul li { font-size: .9rem; }
.foot-brand .brand-mini { font-family: 'Fraunces', serif; font-weight: 900; font-size: 1.9rem; letter-spacing: -.01em; color: var(--paper); line-height: 1; }
.foot-brand .brand-mini .acc { color: var(--gold); font-style: italic; }
.foot-brand p { color: #c4c9b7; font-size: .9rem; max-width: 36ch; margin: 12px 0 0; }
.foot-brand .vasp-badge { margin-top: 18px; background: rgba(255,255,255,.08); color: var(--gold); }
.foot-brand .vasp-badge .d { background: var(--gold); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: #c4c9b7; font-size: .82rem; }
.foot-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--paper);
  padding: 13px 22px; border-radius: 999px;
  font-weight: 500; font-size: .92rem;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 10000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--red); color: #fff; }
.toast.ok { background: var(--green); color: #fff; }

/* ---- Cookie banner ---- */
.cookie {
  position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 520px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-lg); padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 9000;
  display: none;
  gap: 12px; align-items: center; flex-wrap: wrap;
}
.cookie.show { display: flex; }
.cookie p { margin: 0; font-size: .88rem; flex: 1 1 260px; min-width: 240px; color: #d4d6c3; }
.cookie .btn { padding: 8px 14px; font-size: .82rem; }
.cookie .btn.ghost { color: #d4d6c3; border-color: rgba(255,255,255,.28); }

/* ---- Utility ---- */
.hidden { display: none !important; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.space { flex: 1; }
.loading { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--rule); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.disclaimer { font-size: .78rem; color: var(--ink-dim); padding: 14px 0; border-top: 1px solid var(--rule); }

.card { background: var(--card); border: 1px solid var(--card-ring); border-radius: var(--radius); padding: 22px; }

/* ---- OTC specific ---- */
.otc-hero { background: var(--paper); padding: 56px 0; border-bottom: 1px solid var(--rule); }
.otc-feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 820px) { .otc-feat-grid { grid-template-columns: 1fr 1fr; } }
.otc-feat { background: var(--card); border: 1px solid var(--card-ring); border-radius: var(--radius); padding: 18px; }
.otc-feat .k { font-size: .72rem; letter-spacing: .08em; color: var(--ink-dim); text-transform: uppercase; font-weight: 600; }
.otc-feat .v { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 700; margin-top: 4px; }

/* ---- Print ---- */
@media print {
  .ticker, .promo-band, footer.site, nav.main, .cookie { display: none; }
  body { background: #fff; color: #000; }
  .wrap { max-width: 100%; }
}

/* ---- Last updated chip ---- */
.updated-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; color: var(--ink-dim); letter-spacing: .04em;
}
.updated-chip .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
