/* ============================================================
   Finder · shared styles
   ============================================================ */

/* Self-hosted Geist + Geist Mono (WOFF2 subsets built by
   ``scripts/subset_geist.py``, ~42 KB sans / 36 KB mono per weight,
   Latin + Cyrillic + currency + punctuation). Switched from Inter
   2026-05-23 as part of landing+dashboard brand sync — Geist's
   tighter glyph shapes match the new "terminal" aesthetic and the
   slashed-zero (via ``zero`` OpenType feature) reads cleaner in
   numeric columns.

   Geist coverage verified (v1.7.x): all 64 Russian А-я letters,
   Ё/ё/Ў/ў/І/і/Ї/ї/Ґ/ґ extras, every currency we display (₽ ₴ € £ $
   ¥), and our punctuation set (— – ' ' " " · …). Missing: ₿
   (Bitcoin sign) and ₩ — both system-fallback render via the
   @font-face stack, not used in body copy.

   Four sans weights (Regular/Medium/SemiBold/Bold) + three mono
   weights (Regular/Medium/SemiBold) = ~275 KB total. ~150-300 ms
   LCP win on cold connections preserved via same-origin fetch +
   ``rel=preload`` on the two most-used weights (see base.html).

   ``font-display: swap`` keeps the system-fallback strategy — text
   shows immediately in the system stack, swaps in Geist the moment
   it's ready. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Geist-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Geist-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Geist-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Geist-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/GeistMono-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/GeistMono-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/GeistMono-SemiBold.woff2') format('woff2');
}

:root {
  --bg-0: #0a0d12;
  --bg-1: #0e1218;
  --bg-2: #131822;
  --surface: #161c27;
  --surface-hi: #1a2230;
  --border: #1f2733;
  --border-hi: #2a3445;
  --text-1: #ecf0f5;
  --text-2: #aab4c2;
  /* ``text-3`` lifted from #6b7686 (~4.4:1 on --bg-0) → #828c9d
     (~5.3:1) so secondary copy on the SEO landing meets WCAG AA
     for small text (≥4.5:1 required at <18 px). Bulk of usage is
     metric labels, coin-card volume/markets meta, breadcrumbs —
     all small mono text. ``text-4`` lifted from #4a5466 → #5e6878
     (~3.5:1) — still below body-text AA but its role is dividers
     / disabled / decorative where AA doesn't apply, and the lift
     helps ``.ed-coin-rank``, network-table dashes, etc. read on
     surface backgrounds. */
  --text-3: #828c9d;
  --text-4: #5e6878;
  --mint: #72d5ba;
  --mint-dim: #4eb39a;
  --mint-glow: rgba(114, 213, 186, 0.15);
  --amber: #e0a956;
  --rose: #e57373;
  --green: #5fb978;
  --tg-blue: #5eaeff;
  --tg-link: #6cb6ff;

  /* ─── Brand layer — synced with dashboard, locked 2026-05-23 ────────
     Two NEW slots reserved for chrome / CTA / cross-product anchors.
     Strict rule:
       * --mint  → "a number went up" (data only, never a button)
       * --tg    → "click me to open Telegram" (CTA only, never a metric)
       * --cy    → "we're live / focused / aware" (chrome only)
     Contrast on --bg-0 (#0a0d12):
       --tg (#2AABEE) = 6.4:1  AA   — CTA background + white button text
       --cy (#67e8f9) = 11.5:1 AAA  — live dots, focus rings, eyebrows */
  --tg:     #2AABEE;
  --tg-d:   #1f9bd9;
  --tg-bg:  rgba(42, 171, 238, 0.10);
  --cy:     #67e8f9;
  --cy-bg:  rgba(103, 232, 249, 0.08);

  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --max: 1140px;
  --max-narrow: 880px;
  --gutter: 24px;
  --section: 88px;
}
@media (max-width: 768px) { :root { --section: 56px; --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg-0); color: var(--text-1);
  line-height: 1.55; font-size: 15px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Mono stack — Geist Mono is the new primary (matches dashboard data
   columns + landing terminal preview); JetBrains Mono is kept as a
   defensive fallback for the blog/post.html code-highlighting paths
   that still reference it explicitly. */
.mono { font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; font-feature-settings: "tnum" 1, "zero" 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); }

.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(800px circle at 15% 12%, rgba(114, 213, 186, 0.07), transparent 50%),
    radial-gradient(600px circle at 85% 30%, rgba(78, 179, 154, 0.04), transparent 50%);
}

/* ─── HEADER ─────────────────────────────────────────────── */
/* 2026-05-26: устранён эффект «фликера» при скролле. Раньше:
   background: rgba(10,13,18,0.85) + backdrop-filter — комбинация
   давала просвечивание фонового текста (15% opacity «дыра») и
   подёргивание при быстром скролле, потому что backdrop-filter
   перерисовывается с задержкой на слабых GPU и в Safari.
   Сейчас: alpha поднята до 0.96 (визуально почти непрозрачно,
   тонкая «прозрачность» сохранилась как стилистический акцент),
   плюс выделен GPU-слой через translateZ + contain:paint —
   браузер изолирует отрисовку хедера от остальной страницы. */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 13, 18, 0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateZ(0);
  will-change: transform;
  /* NB: contain: paint УБРАН (2026-05-26) — он clipped абсолютно
     позиционированный nav-dropdown-menu, который вылазит ниже
     хедера. Anti-flicker остаётся через высокий alpha (0.96) +
     GPU-слой через translateZ + will-change. */
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
/* 2026-05-23 brand sync: brand is now logo (SVG triangle-in-border)
   + 2-line wordmark (name + "arb · terminal" subtitle). Inherits
   text-1 so the SVG stroke (currentColor) reads page-bright. */
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-1); }
.brand-mark { flex-shrink: 0; }
.brand-wordmark { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-1); line-height: 1.1;
}
.brand-sub {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px; color: var(--text-4);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 2px; line-height: 1;
}
.nav-links { display: flex; gap: 24px; align-items: center; font-size: 13px; color: var(--text-2); flex: 1;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.02em; margin-left: 28px; }
.nav-links > a { padding: 8px 0; }
.nav-links a:hover { color: var(--text-1); }
/* Active nav uses cyan accent per brand rule — mint is data-only.
   Previously: ``color: var(--mint)`` (data-color leak). */
.nav-links a.active { color: var(--cy); }
.nav-cta { display: flex; gap: 14px; align-items: center; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 600px) { .brand-sub { display: none; } }

/* Header "we're watching now" live indicator — mirrors dashboard
   TopBar's live ribbon for visual continuity between marketing and
   app. Hidden on narrow viewports so the lang switch + CTA stay
   above-the-fold. */
.nav-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--text-3);
  letter-spacing: 0.04em;
}
.nav-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cy); box-shadow: 0 0 8px var(--cy);
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.nav-live b { color: var(--text-1); font-weight: 500; }
@media (max-width: 700px) { .nav-live { display: none; } }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; color: var(--text-2); cursor: pointer; }
.nav-dropdown-trigger:hover { color: var(--text-1); }
/* Active state — mint colour to match ``.nav-links a.active``. Set
   on the trigger by ``partials/header.html`` when ``active_nav``
   matches the dropdown's section (``"tools"``, ``"arbitrage"``).
   Pre-2026-05-06 only the trigger TEXT got the class but no CSS
   rule existed, so the active dropdown looked identical to inactive
   ones (``/tools/exchanges/{slug}`` should highlight Tools). */
.nav-dropdown-trigger.active { color: var(--mint); }
.nav-dropdown-trigger svg { transition: transform 200ms ease; }
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: -16px;
  min-width: 280px;
  background: var(--bg-1);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 10px; border-radius: 6px;
  font-size: 13px; color: var(--text-2);
}
.nav-dropdown-menu a:hover { background: var(--surface-hi); color: var(--text-1); }
.nav-dropdown-menu a.active { color: var(--mint); }
.nav-dropdown-menu .nav-pro {
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  padding: 2px 5px;
  background: rgba(114, 213, 186, 0.15);
  color: var(--mint);
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.lang-switch { display: inline-flex; gap: 4px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; }
.lang-switch a { padding: 4px 10px; border-radius: var(--radius-pill); color: var(--text-3); }
/* Active lang chip in cyan per brand-sync (chrome accent, not mint
   which is data-only). */
.lang-switch a.active { background: var(--cy-bg); color: var(--cy); font-weight: 600; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
/* btn-primary now switched to Telegram blue (2026-05-23 brand sync).
   Direct destination-cue colour for the CTA — the user will land in
   the Telegram app one tap later, same colour. */
.btn-primary,
.btn-tg {
  background: var(--tg); color: #fff;
  border: 1px solid var(--tg);
  box-shadow: 0 8px 24px -8px rgba(42, 171, 238, 0.5);
}
.btn-primary:hover,
.btn-tg:hover {
  background: var(--tg-d); border-color: var(--tg-d);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -10px rgba(42, 171, 238, 0.6);
}
.btn-secondary { background: var(--surface); color: var(--text-1); border: 1px solid var(--border-hi); }
.btn-secondary:hover { background: var(--surface-hi); border-color: #36425a; }
.btn-ghost { background: transparent; color: var(--text-2); padding: 8px 14px; border: 1px solid var(--border-hi); border-radius: var(--radius-pill); }
.btn-ghost:hover { color: var(--text-1); border-color: var(--cy); }
.btn-arrow { transition: transform 200ms ease; }
.btn:hover .btn-arrow { transform: translateX(2px); }
.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-mini { padding: 9px 14px; font-size: 13px; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero { position: relative; z-index: 1; padding: calc(var(--section) - 16px) 0 var(--section); text-align: center; }
.hero.left { text-align: left; }
.hero.left .hero-cta { display: inline-flex; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border-hi);
  font-size: 12px; color: var(--text-2);
  font-family: 'JetBrains Mono', monospace; margin-bottom: 24px;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 2s ease-in-out infinite; }
.pill.amber .pill-dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.pill.rose .pill-dot { background: var(--rose); box-shadow: 0 0 10px var(--rose); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

h1.hero-title {
  font-size: clamp(38px, 6.5vw, 64px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 22px;
  background: linear-gradient(180deg, var(--text-1) 0%, var(--text-2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
h1 .accent { color: var(--mint); -webkit-text-fill-color: var(--mint); }
h1 .accent-amber { color: var(--amber); -webkit-text-fill-color: var(--amber); }
h1 .accent-rose { color: var(--rose); -webkit-text-fill-color: var(--rose); }

.hero-sub { max-width: 660px; margin: 0 auto 32px; font-size: clamp(15px, 1.5vw, 17px); color: var(--text-2); line-height: 1.6; }
.hero.left .hero-sub { margin-left: 0; }
.hero-sub strong { color: var(--text-1); font-weight: 600; }
/* Two-paragraph hero sub: первая строка — суть, вторая — что внутри гайда.
   Используется на arb-страницах где hero.sub содержит два <span> блока. */
.hero-sub > span { display: block; }
.hero-sub > span + span.hero-sub-tail { margin-top: 12px; color: var(--text-3); font-size: 0.93em; }
.hero-cta { display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.hero-trust { margin-top: 22px; font-size: 12px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; }
/* Dashboard text-link demoted from a ``btn-secondary`` next to the
   primary CTA (PR 2026-05-12) — sits inline in the trust row,
   text-2 weight so it's clickable but doesn't pull eye from the
   mint primary button. */
.hero-trust-sep { color: var(--text-5); margin: 0 8px; }
.hero-trust-link {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--text-5);
  transition: color 120ms, border-color 120ms;
}
.hero-trust-link:hover { color: var(--mint); border-bottom-color: var(--mint); }

/* hero-metrics row (just under hero) */
.hero-metrics {
  display: inline-flex; gap: 32px;
  padding: 14px 28px;
  margin-top: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-pill);
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-2);
}
.hero-metrics .metric { display: flex; align-items: center; gap: 6px; }
.hero-metrics .metric .v { color: var(--text-1); font-weight: 600; }
@media (max-width: 600px) {
  .hero-metrics { flex-wrap: wrap; gap: 14px; padding: 12px 16px; border-radius: var(--radius-lg); }
}

/* ─── TICKER ─────────────────────────────────────────────── */
.ticker-wrap { position: relative; z-index: 1; margin: 0 auto var(--section); max-width: var(--max); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-1); overflow: hidden; }
.ticker-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; }
.ticker-head-left { display: flex; align-items: center; gap: 12px; color: var(--text-2); }
.ticker-head-right { display: flex; gap: 18px; }
@media (max-width: 600px) { .ticker-head-right { display: none; } }
.ticker { display: flex; animation: scroll 60s linear infinite; gap: 0; }
.ticker:hover { animation-play-state: paused; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-right: 1px solid var(--border); flex-shrink: 0; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.ticker-pair { color: var(--text-3); font-size: 11px; }
.ticker-buy { color: var(--text-2); }
.ticker-arrow { color: var(--text-4); }
.ticker-sell { color: var(--text-1); }
.ticker-spread { color: var(--mint); font-weight: 600; }
.ticker-spread.high { color: var(--amber); }
.ticker-spread.veryhigh { color: var(--rose); }
.ticker-profit { color: var(--text-3); font-size: 11px; }

/* ─── SECTIONS ───────────────────────────────────────────── */
section { position: relative; z-index: 1; padding: var(--section) 0; }
section + section { padding-top: 0; }
.eyebrow { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--mint); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.eyebrow.amber { color: var(--amber); }
.eyebrow.rose { color: var(--rose); }
h2.section-title { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; max-width: 740px; margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--text-2); max-width: 600px; margin-bottom: 40px; line-height: 1.65; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center h2, .section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ─── REVEAL ON SCROLL ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
/* Универсальный reveal — гарантирует видимость детей сверх 6. До этой
   правки nth-child(7+) оставались opacity:0 навсегда (бага вылезла
   на dex-dex algorithm: 8 шагов + 3 phase-header = 11 детей).
   Stagger-задержка считается до 6-го, дальше — фиксированный 480ms. */
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.in-view > *:nth-child(n+7) { transition-delay: 480ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { transition: none; opacity: 1; transform: none; }
}

/* ─── ARB-TYPE GRID (homepage hub) ──────────────────────── */
.arb-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.arb-type-card {
  display: block;
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 200ms ease, transform 200ms ease;
  position: relative;
}
.arb-type-card:hover { border-color: var(--mint); transform: translateY(-2px); }
.arb-type-card .head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.arb-type-card .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mint);
  padding: 3px 8px;
  background: rgba(114, 213, 186, 0.08);
  border: 1px solid rgba(114, 213, 186, 0.2);
  border-radius: 4px;
}
.arb-type-card .tag.amber { color: var(--amber); background: rgba(224, 169, 86, 0.08); border-color: rgba(224, 169, 86, 0.2); }
.arb-type-card .tag.rose { color: var(--rose); background: rgba(229, 115, 115, 0.08); border-color: rgba(229, 115, 115, 0.2); }
.arb-type-card .pro {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  padding: 2px 6px;
  background: rgba(108, 182, 255, 0.12);
  color: var(--tg-link);
  border-radius: 3px;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.arb-type-card h3 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 8px; color: var(--text-1);
}
.arb-type-card p {
  font-size: 13px; color: var(--text-2); line-height: 1.6;
  margin-bottom: 16px;
}
.arb-type-card .meta {
  display: flex; gap: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--text-3);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.arb-type-card .meta .v { color: var(--text-1); font-weight: 600; }
.arb-type-card .arrow { position: absolute; top: 24px; right: 24px; color: var(--text-3); transition: color 200ms, transform 200ms; }
.arb-type-card:hover .arrow { color: var(--mint); transform: translate(2px, -2px); }
@media (max-width: 900px) { .arb-types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .arb-types { grid-template-columns: 1fr; } }

/* ─── HOW-IT-WORKS (4 steps row) ─────────────────────────── */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card {
  padding: 22px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}
.step-card .step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--mint);
  margin-bottom: 14px; letter-spacing: 0.1em;
}
.step-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.step-card p { font-size: 13px; color: var(--text-2); line-height: 1.55; }
@media (max-width: 900px) { .steps-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .steps-row { grid-template-columns: 1fr; } }

/* ─── METRIC ROW (key numbers under hero) ───────────────── */
.metric-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.metric-cell { padding: 28px 20px; text-align: center; border-right: 1px solid var(--border); }
.metric-cell:last-child { border-right: none; }
.metric-cell .v { font-family: 'JetBrains Mono', monospace; font-size: clamp(24px, 3vw, 32px); font-weight: 600; color: var(--text-1); letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; }
.metric-cell .v .unit { color: var(--mint); margin-left: 2px; }
.metric-cell .l { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 600px) {
  .metric-row { grid-template-columns: 1fr; }
  .metric-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .metric-cell:last-child { border-bottom: none; }
}

/* ─── EXCHANGE LIST ──────────────────────────────────────── */
.exchanges {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 20px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.exchange-chip {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-pill);
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text-2);
}
.exchange-chip:hover { color: var(--text-1); border-color: var(--mint); }

/* ─── 2-COL SHOWCASE ────────────────────────────────────── */
.showcase { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.showcase.flip { grid-template-columns: 1.1fr 1fr; }
.showcase.flip .showcase-text { order: 2; }
.showcase-text h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px; }
.showcase-text p { font-size: 15px; color: var(--text-2); line-height: 1.65; margin-bottom: 12px; }
.showcase-text strong { color: var(--text-1); font-weight: 600; }
.showcase-text ul { list-style: none; margin-top: 6px; }
.showcase-text ul li { padding: 6px 0 6px 20px; font-size: 14px; color: var(--text-2); position: relative; line-height: 1.55; }
.showcase-text ul li::before { content: ''; position: absolute; left: 0; top: 14px; width: 8px; height: 1px; background: var(--mint); }
@media (max-width: 900px) {
  .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 32px; }
  .showcase.flip .showcase-text { order: 0; }
}

/* ─── TG WINDOW + MESSAGE ────────────────────────────────── */
.tg-window {
  background: linear-gradient(180deg, #0d1320 0%, #0a0f1a 100%);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(114,213,186,0.04);
}
.tg-window-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); }
.tg-channel-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--mint), var(--mint-dim)); display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px; color: var(--bg-0); flex-shrink: 0; }
.tg-channel-avatar.dump { background: linear-gradient(135deg, var(--rose), #c95757); }
.tg-channel-avatar.amber { background: linear-gradient(135deg, var(--amber), #b88841); }
.tg-channel-info { flex: 1; min-width: 0; }
.tg-channel-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.tg-channel-meta { font-size: 11px; color: var(--text-3); }
.tg-body { padding: 16px; }

.tg-msg {
  max-width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  font-size: 14px; line-height: 1.6;
  box-shadow: 0 4px 16px -8px rgba(0,0,0,0.6);
  color: var(--text-1);
}
.tg-msg + .tg-msg { margin-top: 12px; }
.tg-msg code { font-family: 'JetBrains Mono', monospace; background: rgba(255,255,255,0.06); padding: 1px 5px; border-radius: 3px; font-size: 13px; }
.tg-msg .tg-link { color: var(--tg-link); text-decoration: underline; text-decoration-color: rgba(108,182,255,0.4); text-underline-offset: 2px; }
.tg-msg b { font-weight: 700; color: var(--text-1); }
.tg-msg .pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; line-height: 1.5;
  background: rgba(0,0,0,0.25);
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-1);
  margin: 6px 0;
  overflow-x: auto;
  white-space: pre;
}
.tg-msg .pre .head { color: var(--text-3); }
.tg-msg .pre .anchor { color: var(--text-3); }
.tg-msg .pre .green { color: var(--mint); }
.tg-msg .pre .amber { color: var(--amber); }
.tg-msg .pre .red { color: var(--rose); }
.tg-msg .row-buy, .tg-msg .row-sell { font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; }
.tg-msg .ts { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-3); margin-top: 8px; }
.tg-msg .head-line { line-height: 1.6; margin-bottom: 6px; }
.tg-msg .net-block { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-2); margin-top: 8px; line-height: 1.7; }
.tg-msg .net-block .net-name { color: var(--tg-link); font-weight: 600; }
.tg-msg .meta-bottom { display: flex; justify-content: flex-end; gap: 4px; margin-top: 6px; font-size: 10px; color: var(--text-4); font-family: 'JetBrains Mono', monospace; }
.tg-msg .tick { color: var(--tg-link); }
.tg-msg .dump-changes { font-family: 'JetBrains Mono', monospace; font-size: 12px; background: rgba(0,0,0,0.25); padding: 6px 10px; border-radius: 6px; margin: 6px 0; color: var(--text-2); }
.tg-msg .dump-changes .red { color: var(--rose); font-weight: 600; }
.tg-msg .dump-target { font-size: 13px; color: var(--mint); margin-top: 8px; padding: 6px 10px; background: rgba(114,213,186,0.06); border-radius: 6px; border: 1px solid rgba(114,213,186,0.15); }

/* ─── DASHBOARD MOCK ─────────────────────────────────────── */
.dash-window {
  background: var(--bg-1);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(114,213,186,0.04);
}
.dash-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--text-3);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-hi); }
.dash-tabs { display: flex; gap: 4px; margin-left: 12px; }
.dash-tab { padding: 4px 10px; border-radius: 4px; color: var(--text-3); }
.dash-tab.active { background: var(--surface); color: var(--mint); }
.dash-search { margin-left: auto; padding: 4px 10px; background: var(--bg-0); border: 1px solid var(--border); border-radius: 4px; color: var(--text-4); }

.dash-table { width: 100%; }
.dash-thead, .dash-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 0.8fr 0.8fr 0.7fr 0.5fr;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
}
.dash-thead {
  padding: 10px 16px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-3); font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.dash-row {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  transition: background 200ms ease;
}
.dash-row:hover { background: rgba(114, 213, 186, 0.03); }
.dash-row:last-child { border-bottom: none; }
.dash-row.flash { animation: dashFlash 1.2s ease-out; }
@keyframes dashFlash {
  0% { background: rgba(114, 213, 186, 0.18); }
  100% { background: transparent; }
}
.dash-token { display: flex; align-items: center; gap: 8px; }
.dash-token-mark { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #4a5466, #2a3445); flex-shrink: 0; font-size: 9px; display: grid; place-items: center; color: var(--text-1); font-weight: 700; }
.dash-token-sym { color: var(--text-1); font-weight: 600; }
.dash-token-pair { color: var(--text-3); font-size: 10px; }
.dash-leg { color: var(--text-2); font-size: 11px; line-height: 1.3; }
.dash-leg-ex { color: var(--text-3); font-size: 10px; margin-bottom: 2px; }
.dash-spread { font-weight: 700; }
.dash-spread.med { color: var(--mint); }
.dash-spread.high { color: var(--amber); }
.dash-spread.veryhigh { color: var(--rose); }
.dash-net { color: var(--mint); font-weight: 600; }
.dash-net.amber { color: var(--amber); }
.dash-age { color: var(--text-4); font-size: 10px; }
.dash-nets { font-size: 10px; color: var(--text-3); }
@media (max-width: 800px) {
  .dash-thead, .dash-row { grid-template-columns: 1.2fr 0.8fr 0.6fr 0.5fr; }
  .dash-thead .col-sell, .dash-row .col-sell,
  .dash-thead .col-net, .dash-row .col-net,
  .dash-thead .col-nets, .dash-row .col-nets { display: none; }
}

/* ─── PRICING ────────────────────────────────────────────── */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1080px; margin: 0 auto; }
.price-card { padding: 32px 28px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-lg); position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--mint); background: linear-gradient(180deg, rgba(114, 213, 186, 0.05), transparent 30%), var(--bg-1); transform: translateY(-4px); }
.price-badge { position: absolute; top: -10px; right: 24px; background: var(--mint); color: var(--bg-0); padding: 4px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.price-name { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.price-tagline { font-size: 13px; color: var(--text-2); margin-bottom: 18px; line-height: 1.5; min-height: 40px; }
.price-amount { font-family: 'JetBrains Mono', monospace; font-size: 36px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin-bottom: 4px; }
.price-amount .small { font-size: 15px; color: var(--text-3); font-weight: 400; }
.price-period { font-size: 12px; color: var(--text-3); margin-bottom: 22px; min-height: 18px; }
.price-period.save { color: var(--mint); }
.price-features { list-style: none; margin-bottom: 24px; flex: 1; }
.price-features li { padding: 8px 0; font-size: 13px; color: var(--text-2); display: flex; align-items: flex-start; gap: 8px; border-bottom: 1px dashed var(--border); line-height: 1.5; }
.price-features li:last-child { border-bottom: none; }
.price-features svg { flex-shrink: 0; color: var(--mint); margin-top: 4px; }
.price-features li.dim { color: var(--text-4); }
.price-features li.dim svg { color: var(--text-4); }
.price-card .btn { width: 100%; justify-content: center; }
.save-banner {
  max-width: 1080px; margin: 0 auto 24px;
  padding: 10px 16px;
  background: rgba(114, 213, 186, 0.08);
  border: 1px solid rgba(114, 213, 186, 0.2);
  border-radius: var(--radius);
  font-size: 13px; color: var(--mint-dim);
  text-align: center;
}
.save-banner b { color: var(--mint); font-weight: 600; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 480px; } .price-card.featured { transform: none; } }

/* ─── Free-during-beta card (replaces price tiers on arb pages) ─────
   Single centred card used by ``arb_included`` macro in
   landing/templates/arbitrage/_partials.html. Surface + 1px border
   matches .price-card chrome; cyan accent pill differentiates it
   from the standard hero pill (mint). Max-width capped so the card
   reads as a focused panel, not a stretched banner. */
.free-beta-card {
  max-width: 640px; margin: 0 auto; padding: 36px 32px;
  background: var(--bg-1); border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.pill.pill-cy { color: var(--cy); border-color: rgba(103,232,249,0.30); background: rgba(103,232,249,0.06); }
.pill.pill-cy .pill-dot { background: var(--cy); box-shadow: 0 0 10px var(--cy); }
.free-beta-title { font-size: 22px; font-weight: 600; color: var(--text-1); letter-spacing: -0.01em; margin: 0; }
.free-beta-sub { font-size: 14px; color: var(--text-3); max-width: 520px; margin: 0; line-height: 1.6; }
.free-beta-list { list-style: none; padding: 0; margin: 4px 0 12px; text-align: left; max-width: 480px; width: 100%; }
.free-beta-list li { padding: 8px 0 8px 24px; position: relative; font-size: 13px; color: var(--text-2); line-height: 1.5; border-bottom: 1px solid var(--border); }
.free-beta-list li:last-child { border-bottom: none; }
.free-beta-list li::before {
  content: ""; position: absolute; left: 4px; top: 14px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--cy);
  box-shadow: 0 0 6px rgba(103,232,249,0.5);
}
@media (max-width: 640px) {
  .free-beta-card { padding: 28px 20px; }
  .free-beta-title { font-size: 19px; }
}

/* ─── Guide-first arb section components (added 2026-05-24, task #13) ──
   Powers ``arb_concept`` / ``arb_mechanics`` / ``arb_algorithm`` /
   ``arb_nuances`` / ``arb_example`` / ``arb_checklist`` /
   ``arb_mistakes`` / ``arb_expectations`` macros in
   landing/templates/arbitrage/_partials.html. Tight grid + 1px borders
   match the rest of the landing — no rounded blobs, no shadows. */
.prose { font-size: 16px; line-height: 1.72; color: var(--text-2); max-width: 720px; margin: 0 auto; }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose p.lead { font-size: 17px; color: var(--text-1); margin-bottom: 22px; }
.prose strong, .prose b { color: var(--text-1); font-weight: 600; }
.prose em { color: var(--cy); font-style: normal; font-weight: 500; }
.prose code { font-family: 'JetBrains Mono', monospace; font-size: 14px; padding: 2px 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; color: var(--cy); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose h3 {
  font-size: 17px; font-weight: 600; color: var(--text-1);
  letter-spacing: -0.01em; margin: 32px 0 12px;
  padding-top: 4px; border-top: 1px solid var(--border);
  padding-top: 16px;
}
.prose h3:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose h4 { font-size: 15px; font-weight: 600; color: var(--text-1); margin: 24px 0 8px; letter-spacing: -0.005em; }
.prose-subhead { font-size: 18px; font-weight: 600; color: var(--text-1); margin: 36px auto 16px; max-width: 720px; letter-spacing: -0.01em; }

/* ── Callout boxes for inline key insights within prose */
.callout {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px;
  margin: 20px 0; padding: 16px 20px;
  background: var(--bg-1); border: 1px solid var(--border-hi);
  border-left: 3px solid var(--cy); border-radius: 0 6px 6px 0;
  font-size: 14.5px; line-height: 1.6; color: var(--text-2);
}
.callout-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(103, 232, 249, 0.10); color: var(--cy);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700;
  margin-top: 1px;
}
.callout strong, .callout b { color: var(--text-1); }
.callout.callout-warn { border-left-color: var(--amber); }
.callout.callout-warn .callout-icon { background: rgba(242,181,83,0.10); color: var(--amber); }
.callout.callout-warn .callout-icon::before { content: "!"; }
.callout.callout-tip .callout-icon::before { content: "i"; font-style: italic; }
.callout.callout-key .callout-icon::before { content: "⌘"; font-size: 11px; }

/* ── Two-column compact comparison (for short side-by-side blocks in prose) */
.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.compare-col { padding: 14px 16px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 6px; }
.compare-col h4 { margin: 0 0 6px; font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.compare-col p { font-size: 13.5px; margin: 0; color: var(--text-2); line-height: 1.55; }
@media (max-width: 640px) { .compare-grid { grid-template-columns: 1fr; } }

/* ── Reasons grid (after concept body — "where do spreads come from") */
.reasons-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 720px; margin: 0 auto; }
.reason-card { padding: 16px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 8px; }
.reason-h { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 6px; }
.reason-p { font-size: 13px; line-height: 1.55; color: var(--text-3); }
@media (max-width: 640px) { .reasons-grid { grid-template-columns: 1fr; } }

/* ── Algorithm step list — numbered cards in single column */
.algorithm-steps { list-style: none; padding: 0; margin: 0; max-width: 720px; margin-left: auto; margin-right: auto; display: flex; flex-direction: column; gap: 12px; }
.algo-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: flex-start; padding: 16px 20px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 8px; }
.algo-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(103, 232, 249, 0.10); color: var(--cy); font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; }
.algo-h { font-size: 15px; font-weight: 600; color: var(--text-1); margin: 4px 0 4px; }
.algo-p { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 0; }
.algo-p code { font-family: 'JetBrains Mono', monospace; font-size: 13px; padding: 1px 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; color: var(--cy); }

/* ── Nuance cards — 3 columns of "the things that decide profit" */
.nuance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
.nuance-card { padding: 24px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 8px; }
.nuance-h { font-size: 16px; font-weight: 600; color: var(--text-1); margin: 0 0 10px; }
.nuance-p { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 0; }
@media (max-width: 900px) { .nuance-grid { grid-template-columns: 1fr; } }

/* ── Example table — cost breakdown */
.example-table { max-width: 580px; margin: 0 auto; background: var(--bg-1); border: 1px solid var(--border-hi); border-radius: 8px; overflow: hidden; }
.example-table-head { padding: 14px 20px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); }
.example-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.example-row:last-child { border-bottom: none; }
.example-row-total { background: rgba(103, 232, 249, 0.04); font-weight: 600; }
.example-cell-label { color: var(--text-2); }
.example-row-total .example-cell-label { color: var(--text-1); }
.example-cell-value { font-family: 'JetBrains Mono', monospace; color: var(--text-1); font-variant-numeric: tabular-nums; }
.example-cell-value.pos { color: var(--mint); }
.example-cell-value.neg { color: var(--rose); }
.example-cell-value.total { color: var(--cy); font-size: 15px; }

/* ── Checklist — pre-trade items with checkmark icons */
.checklist { list-style: none; padding: 0; margin: 0 auto; max-width: 720px; display: flex; flex-direction: column; gap: 8px; }
.checklist-item { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: flex-start; padding: 12px 16px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 6px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.checklist-icon { color: var(--mint); margin-top: 2px; flex-shrink: 0; }
.checklist-item b, .checklist-item strong { color: var(--text-1); font-weight: 600; }

/* ── Mistakes — same general shape as checklist but with rose-red ✕ */
.mistakes-list { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin: 0 auto; }
.mistake-card { padding: 16px 20px; background: var(--bg-1); border: 1px solid var(--border); border-left: 3px solid var(--rose); border-radius: 0 6px 6px 0; }
.mistake-h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 6px; }
.mistake-icon { color: var(--rose); flex-shrink: 0; }
.mistake-p { font-size: 14px; line-height: 1.6; color: var(--text-3); margin: 0; }

/* ── Math formula display (used inside ``arb_mechanics.body_html``) */
.formula-display { display: flex; justify-content: center; padding: 24px; margin: 24px 0; background: var(--bg-1); border: 1px solid var(--border-hi); border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 24px; color: var(--cy); letter-spacing: 0.04em; }

/* ── Bridge-cards: 3-column comparison of bridge types
   (used in ``arb_mechanics.body_html`` on cross-chain DEX-DEX page).
   Each card has a coloured left-border for risk tier:
   .bridge-card-warn (red — high trust assumption / hack target),
   .bridge-card-mid  (amber — slippage on size),
   .bridge-card-safe (mint — minimal trust assumptions). */
.bridge-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; max-width: 100%; }
.bridge-card { padding: 18px; background: var(--bg-1); border: 1px solid var(--border); border-left: 3px solid var(--border-hi); border-radius: 8px; }
.bridge-card.bridge-card-warn { border-left-color: var(--rose); }
.bridge-card.bridge-card-mid  { border-left-color: var(--amber); }
.bridge-card.bridge-card-safe { border-left-color: var(--mint); }
.bridge-card-h { font-size: 15px; font-weight: 600; color: var(--text-1); margin: 0 0 4px; }
.bridge-card-sub { font-size: 12px; color: var(--text-3); margin-bottom: 14px; font-style: italic; }
.bridge-card-list { list-style: none; padding: 0; margin: 0 0 14px; }
.bridge-card-list li { padding: 4px 0 4px 14px; position: relative; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.bridge-card-list li::before { content: "•"; position: absolute; left: 2px; color: var(--text-4); }
.bridge-card-risk { font-size: 12px; color: var(--text-3); padding-top: 12px; border-top: 1px solid var(--border); }
.bridge-card-warn .bridge-card-risk { color: var(--rose); }
.bridge-card-mid .bridge-card-risk  { color: var(--amber); }
.bridge-card-safe .bridge-card-risk { color: var(--mint); }
@media (max-width: 900px) { .bridge-cards { grid-template-columns: 1fr; } }

/* ── Aggregator chip row (compact named-tool list, used inside arb_mechanics).
   Flex row of pill-like chips that scale on small screens; each chip is a
   link to the tool's site (rel=nofollow per outbound-link convention). */
.aggregator-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.aggregator-chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px; background: var(--surface); border: 1px solid var(--border-hi);
  border-radius: 6px; font-size: 13px; color: var(--text-2); text-decoration: none;
  font-family: 'JetBrains Mono', monospace; transition: border-color 120ms, color 120ms;
}
.aggregator-chip:hover { border-color: var(--cy); color: var(--cy); }

/* ── Algorithm phase header (visual divider between groups of steps
   inside ``arb_algorithm`` macro). Renders as a small uppercase eyebrow
   above the next step. */
.algo-phase-header {
  list-style: none; padding: 0; margin: 18px 0 6px;
  font-size: 11px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.10em;
  display: flex; align-items: center; gap: 12px;
}
.algo-phase-header::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.algo-phase-header:first-child { margin-top: 0; }

/* ── Guide diagram (light-themed SVG embedded on dark page).
   The source SVGs from /guides/files come on a white canvas with
   coloured pastel panels (intended for the light-themed guide).
   Wrapping them in a card with white background presents them as
   inset "diagram panels" on the dark landing — readable + on-brand. */
.guide-diagram {
  max-width: 760px; margin: 28px auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
  overflow: hidden;
}
.guide-diagram img,
.guide-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.guide-diagram-caption {
  display: block; text-align: center;
  font-size: 13px; color: var(--text-3);
  margin: 12px auto 0; max-width: 720px;
  font-style: italic;
}

/* ── Chain marquee — infinite-scroll carousel of supported chains.
   Replaces the static ``.exchanges`` chip grid on arb-pages. Each chip
   shows a coloured chain monogram + name. Hover pauses the animation;
   ``prefers-reduced-motion`` removes it entirely. The track is the
   chip list duplicated so the wrap-around seam is invisible. */
.chain-marquee {
  overflow: hidden;
  /* Mask fades chips at the edges so the seamless loop reads as a
     conveyor rather than a hard cut at the viewport edge. */
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  padding: 8px 0;
}
.chain-marquee-track {
  display: inline-flex;
  gap: 10px;
  animation: chain-scroll 60s linear infinite;
  padding-right: 10px;  /* match gap so the loop wraps seamlessly */
  white-space: nowrap;
  will-change: transform;
}
.chain-marquee:hover .chain-marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .chain-marquee-track { animation: none; flex-wrap: wrap; padding: 0; }
}
@keyframes chain-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.chain-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.chain-chip:hover { border-color: var(--border-hi); background: var(--surface); }
.chain-chip-more {
  color: var(--text-3); font-style: italic; padding: 8px 14px;
  background: transparent; border-style: dashed;
}

.chain-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--border); padding: 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; text-align: left; font-size: 16px; font-weight: 500; color: var(--text-1); gap: 16px; }
.faq-q:hover { color: var(--mint); }
.faq-icon { transition: transform 200ms ease; color: var(--text-3); flex-shrink: 0; }
.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--mint); }
.faq-a { padding: 0 0 22px 0; font-size: 14px; color: var(--text-2); line-height: 1.7; max-width: 620px; }
summary { list-style: none; cursor: pointer; }
.faq-q::-webkit-details-marker { display: none; }

/* ─── RELATED-TYPES (cross-link bar) ─────────────────────── */
.related-types {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 32px;
}
.related-types a {
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-2);
  display: flex; justify-content: space-between; align-items: center;
  transition: border-color 150ms ease, color 150ms ease;
}
.related-types a:hover { border-color: var(--mint); color: var(--text-1); }
.related-types a .arrow { color: var(--text-4); }
.related-types a:hover .arrow { color: var(--mint); }
@media (max-width: 800px) { .related-types { grid-template-columns: 1fr; } }

/* Rich card layout for ``arb_related`` — used when each related item
   carries hook copy. Section header gets a calmer h2 (used by both
   layouts via .related-h2). */
.related-h2 { font-size: 22px; font-weight: 600; max-width: 720px; }
.related-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 28px;
}
.related-card {
  display: flex; flex-direction: column;
  padding: 20px 22px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit; text-decoration: none;
  transition: border-color 120ms ease, transform 120ms ease, background 120ms ease;
}
.related-card:hover {
  border-color: var(--border-hi);
  background: var(--bg-2, var(--bg-1));
  transform: translateY(-1px);
}
.related-card-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.related-card-title { font-size: 17px; font-weight: 600; color: var(--text-1); }
.related-card-sub {
  font-size: 11px; color: var(--text-4);
  font-family: 'JetBrains Mono', monospace; text-transform: lowercase;
  letter-spacing: 0.2px;
}
.related-card-hook {
  font-size: 14px; line-height: 1.55; color: var(--text-2);
  margin: 0 0 16px 0; flex: 1;
}
.related-card-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--mint);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.5px;
  transition: gap 120ms ease;
}
.related-card:hover .related-card-arrow { gap: 10px; }
@media (max-width: 920px) { .related-cards { grid-template-columns: 1fr; } }

/* Cross-link — inline-ссылка на соседний arb-гайд. Используется
   когда в тексте упоминается другой тип арбитража (например,
   "в отличие от CEX-CEX..."). Тонкое подчёркивание + mint-акцент
   на hover. Слово остаётся читаемым в потоке, не превращается в
   кнопку. */
.x-link {
  color: inherit;
  border-bottom: 1px dashed var(--mint);
  text-underline-offset: 3px;
  transition: color 120ms ease, border-color 120ms ease;
}
.x-link:hover {
  color: var(--mint);
  border-bottom-color: var(--mint);
  border-bottom-style: solid;
}

/* Финальный CTA-strip на arb-страницах. Изолирован от .cta-strip из
   token+exchange страниц (тот в строке 3822 применяет grid 1fr/auto и
   ломал композицию). Здесь — центрированная классика. */
.arb-cta-strip {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  margin: 0 var(--gutter, 24px) var(--gutter, 24px);
  padding: 72px 32px;
  background:
    radial-gradient(600px circle at 50% 0%, rgba(114, 213, 186, 0.07), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
}
.arb-cta-strip .eyebrow { margin-bottom: 14px; }
.arb-cta-title {
  margin: 0 0 14px; max-width: 620px;
  font-size: clamp(24px, 3vw, 32px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.18; color: var(--text-1);
}
.arb-cta-sub {
  margin: 0 0 28px; max-width: 560px;
  font-size: 15px; line-height: 1.55; color: var(--text-2);
}
@media (max-width: 800px) {
  .arb-cta-strip { padding: 48px 20px; }
  .arb-cta-strip .btn { width: 100%; max-width: 360px; justify-content: center; }
}

/* ─── CTA ────────────────────────────────────────────────── */
.cta-strip { text-align: center; padding: 72px 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: radial-gradient(600px circle at 50% 0%, rgba(114, 213, 186, 0.06), transparent 70%), var(--bg-1); }
.cta-strip h2 { margin: 0 auto 12px; max-width: 540px; font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.cta-strip p { color: var(--text-2); margin-bottom: 24px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer.site { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: var(--section); position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.foot-col h4 { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; font-weight: 600; }
.foot-col a { display: block; padding: 5px 0; font-size: 13px; color: var(--text-2); }
.foot-col a:hover { color: var(--text-1); }
.foot-brand { max-width: 320px; }
.foot-brand-text { font-size: 13px; color: var(--text-3); line-height: 1.6; margin-top: 12px; }
/* Возвращаем flex layout бренд-ссылке в футере. Без этого правило
   ``.foot-col a { display: block }`` ниже перебивает ``.brand`` и
   складывает SVG-знак + wordmark вертикально (issue 2026-05-26). */
.foot-brand .brand { display: flex; align-items: center; gap: 10px; padding: 0; }
.foot-disclaimer { border-top: 1px solid var(--border); padding-top: 20px; font-size: 12px; color: var(--text-4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot-build { font-size: 11px; color: var(--text-4); letter-spacing: 0.06em; }
@media (max-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ─── HERO BACKGROUND IMAGE ──────────────────────────────── */
/* assets/hero-bg.webp — 1448×1086 WebP @ q=80, ≈ 90 KB.
 * Original PNG was 1.5 MB; WebP gives 17× reduction with no visible
 * difference because the gradient overlay below covers 55–100 % of
 * the image. Browsers without WebP support (≈3.5 % globally — IE 11,
 * very old Android) fall back to the gradient over the surface
 * background, which still reads correctly thanks to ``var(--bg)`` on
 * ``body``. */
.hero {
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(
      180deg,
      rgba(10, 13, 18, 0.55) 0%,
      rgba(10, 13, 18, 0.65) 40%,
      rgba(10, 13, 18, 0.85) 80%,
      rgba(10, 13, 18, 1) 100%
    ),
    url('hero-bg.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
/* Heavier overlay on data-dense hero variants where the page packs
   breadcrumb + h1 + multi-line blurb + summary + multiple buttons +
   a wide statbar into the hero. With the default 0.55 → 0.85 alpha
   the dashboard screenshot's "ARBITRAGE OPPORTUNITIES" / "SPREAD
   MONITOR" / "Bybit OPERATIONAL" text bled through and competed
   with the page's own copy (visible "Bybit OPERATIONAL" green tag
   landing right of the h1 "Binance" on /tools/exchanges/binance).
   Bumping the overlay to 0.92 → 1.0 keeps the texture as a faint
   atmospheric band without it acting as a competing data surface.
   Templates that need this opt in by adding ``hero-detail`` to the
   hero section's class list — used by ``tools/exchange_detail.html``.
   The marketing index hero keeps the lighter feel by NOT having the
   class. (Earlier version used ``:has(.ed-head)`` but that fails in
   browsers without ``:has()`` support and broke silently.) */
.hero.hero-detail::before {
  /* Compromise band: ~25% bg visibility at top fading to fully
     opaque by the statbar. Keeps the dashboard screenshot as a
     visible atmospheric texture (the page reads as a Finder
     product page, not a generic dark landing) without it
     competing with the h1 / blurb. The earlier 0.92 → 1.0 band
     killed the texture entirely and the hero felt sterile.
     Description card (``.ed-summary``, mid-hero) provides its
     own surface so it stays readable regardless of the band. */
  background-image:
    linear-gradient(
      180deg,
      rgba(10, 13, 18, 0.75) 0%,
      rgba(10, 13, 18, 0.85) 40%,
      rgba(10, 13, 18, 0.95) 80%,
      rgba(10, 13, 18, 1) 100%
    ),
    url('hero-bg.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
/* Backdrop card behind the h1 + tagline so they stay readable when
   the bg image runs at higher opacity. A subtle radial fade centered
   on the title — no hard rectangle, just a soft "spotlight" so the
   text owns its area without an obvious panel border. The fade
   sits on the same z-layer as the gradient overlay (between bg
   image and content) so it adds to the dim without changing the
   stacking context of the breadcrumbs / blurb / summary card. */
.hero.hero-detail .ed-head {
  position: relative;
  /* New stacking context — keeps the radial fade ::before pseudo
     contained to ed-head's own z-layer instead of bubbling up and
     fighting with ``.hero::after`` (the vignette). */
  isolation: isolate;
}
.hero.hero-detail .ed-head::before {
  content: '';
  position: absolute;
  inset: -32px -64px;
  z-index: -1;
  background: radial-gradient(
    ellipse 70% 80% at 50% 45%,
    rgba(10, 13, 18, 0.75) 0%,
    rgba(10, 13, 18, 0.45) 50%,
    rgba(10, 13, 18, 0) 80%
  );
  pointer-events: none;
}
/* Subtle vignette to keep edges dark and centre readable */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse 60% 50% at 50% 30%,
    transparent 0%,
    rgba(10, 13, 18, 0.4) 100%
  );
  pointer-events: none;
}

/* ─── EDUCATIONAL 2-COL ──────────────────────────────────── */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .edu-grid { grid-template-columns: 1fr; gap: 32px; } }
.edu-card {
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.edu-card .head {
  font-size: 11px; color: var(--mint); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600; margin-bottom: 16px;
}
.edu-card ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.edu-card ul li { display: flex; gap: 12px; align-items: flex-start; }
.edu-card ul li::before {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: var(--mint);
  margin-top: 6px; flex-shrink: 0;
}
.edu-card .title { font-size: 15px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.edu-card .desc { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* ─── CASE STUDY ─────────────────────────────────────────── */
.case-compact {
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 720px;
  margin: 0 auto;
}
.case-compact .head { display: flex; gap: 14px; margin-bottom: 14px; align-items: flex-start; }
.case-compact .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(229,115,115,0.15), rgba(201,87,87,0.05));
  border: 1px solid rgba(229,115,115,0.3);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.case-compact .label { font-size: 11px; color: var(--rose); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 4px; }
.case-compact .title { font-size: 16px; font-weight: 600; color: var(--text-1); }
.case-compact .pnl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px; font-weight: 700;
  margin-bottom: 10px;
}
.case-compact .pnl .from { color: var(--text-3); }
.case-compact .pnl .arrow { color: var(--text-4); margin: 0 8px; }
.case-compact .pnl .to { color: var(--mint); }
.case-compact .desc { font-size: 13px; color: var(--text-2); line-height: 1.55; margin-bottom: 14px; }
.case-compact .more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--mint);
}
.case-compact .more:hover { text-decoration: underline; }

/* ─── CASE STUDY — chart variant (PR 2026-05-11) ─────────────
   Replaces the standalone ``$100 → $3,028`` PnL block with a
   CEX-vs-DEX price chart of the SFUND dump. Layout is the same
   ``.case-compact`` shell — wider max-width to give the chart
   room, and the rose icon-square is shrunk from 48 → 28 with a
   flat surface (the original gradient/rounded-2xl was decorative
   chrome, not data ink). Chart uses ``aspect-ratio`` so it stays
   4:1 from mobile 360 px up to the 880 px max-width container. */
.case-compact-wide { max-width: 880px; }
.case-compact-wide .icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid rgba(229, 115, 115, 0.3);
}
/* ``.case-chart`` (synthetic CEX-vs-DEX SVG) removed 2026-05-11 —
   replaced by ``.case-proof`` screenshot block below. CSS recovered
   from git history if a chart-only variant is ever needed again. */

/* Screenshot proof block. Telegram alert (portrait) centred at
   capped width above; TradingView chart (landscape) full container
   width below. Both have 1 px borders to anchor them inside the
   case-card; ``bg-0`` behind so a transparent PNG doesn't leak the
   surface tone. Captions sit in mono 10 px text-3 — same idiom as
   the rest of the dense data-labels on the landing. */
.case-proof {
  margin: 20px -4px 18px;
  padding: 18px 4px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.case-proof figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.case-proof-tg {
  max-width: 380px;   /* portrait phone screenshot — capped so the alert is
                         readable but doesn't dominate the desktop layout */
}
.case-proof-chart {
  max-width: 100%;
}
.case-proof img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  background: var(--bg-0);
}
.case-proof figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  line-height: 1.5;
  text-align: center;
}
.case-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 4px 0 12px;
}

.case-compact .pnl-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 14px;
  vertical-align: middle;
}
@media (max-width: 600px) {
  .case-compact .pnl-meta { display: block; margin-left: 0; margin-top: 4px; }
}

/* ─── LIFECHANGE CATCHES GRID (PR 2026-05-11) ─────────────────
   2×2 grid of real DEX-dump signals. Each card carries the same
   structure (token + chain header, two screenshots stacked, three
   stat cells with mono numbers, DexScreener source link) so the
   grid reads as a uniform evidence table. Card height is allowed
   to vary by image aspect-ratio — uniformity comes from the rhythm
   of internal sections, not from row-locked height. */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .cases-grid { grid-template-columns: 1fr; }
}
.case-card {
  border: 1px solid var(--border);
  background: var(--bg-1);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;          /* lets long URLs / footers wrap inside the column */
}
.case-card-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.case-card-token {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.04em;
}
/* Inline drop + spread chips. Bloomberg-style ticker line — colour
   carries the meaning (rose = dump, amber = spread), the arrow glyph
   acts as the verb. ``white-space: nowrap`` so the ``▼ −99.3%`` and
   ``Δ 8,726%`` blocks each wrap as a unit on narrow viewports. */
.case-card-metric {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.case-card-metric.drop   { color: var(--rose); }
.case-card-metric.spread { color: var(--amber); }
.case-card-arrow {
  font-size: 11px;
  margin-right: 3px;
  display: inline-block;
  transform: translateY(-0.5px);
}
.case-card-chain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-left: auto;     /* push chain badge to the right edge */
}
/* Per-case situation description. One-liner restored 2026-05-11
   between the head (token + drop + spread + chain) and the
   screenshot stack. ``text-2`` body weight, 12 px / 1.55 line-height
   — slightly tighter than landing prose so it doesn't compete with
   the dense data below. */
.case-card-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}
.case-card-imgs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-card-imgs img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  background: var(--bg-0);
}
.case-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  gap: 6px;
}
.case-card-stat {
  text-align: center;
  min-width: 0;
}
.case-card-stat .v {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
  color: var(--text-1);
}
.case-card-stat .v.rose { color: var(--rose); }
.case-card-stat .v.mint { color: var(--mint); }
.case-card-stat .l {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  line-height: 1.4;
}
.case-card-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.case-card-source a {
  color: var(--text-2);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: color 120ms, border-color 120ms;
}
.case-card-source a:hover {
  color: var(--mint);
  border-bottom-color: var(--mint);
}

/* ─── EDUCATIONAL DIAGRAM (PR 2026-05-11) ────────────────────
   Two leg cards + a net-profit row in a 2×2 grid, replacing the
   two paragraphs of prose that used to live in the educational
   section. 4 s linear loop: stable parity → divergence (+6.7 %
   on the sell leg) → profit reveal → reset. All driven by CSS
   keyframes on stacked-span opacity — no JS, no layout shift,
   no content-animation hacks. Monospace + tabular numbers
   throughout because the diagram is meant to read like a small
   trading panel, not an illustration. */
.edu-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width: 600px) {
  .edu-diagram { grid-template-columns: 1fr; }
}
.edu-leg {
  border: 1px solid var(--border);
  background: var(--bg-1);
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
}
.edu-leg-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.edu-leg-ex {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-2);
  text-transform: uppercase;
}
.edu-leg-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 2px 6px;
  border: 1px solid;
  text-transform: uppercase;
}
.edu-leg-badge-buy {
  color: var(--mint);
  border-color: rgba(114, 213, 186, 0.4);
  background: rgba(114, 213, 186, 0.08);
}
.edu-leg-badge-sell {
  color: var(--rose);
  border-color: rgba(229, 115, 115, 0.4);
  background: rgba(229, 115, 115, 0.08);
}
.edu-leg-pair {
  font-size: 10px;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.edu-leg-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
  line-height: 1.1;
}
.edu-leg-meta {
  display: flex;
  gap: 14px;
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.edu-leg-num {
  color: var(--text-2);
  font-weight: 600;
  margin-left: 4px;
}

/* Swap pattern: ``.edu-swap-base`` shows at rest, ``.edu-swap-hi``
   replaces it during the divergence phase. Both inline in the same
   parent — ``hi`` is absolute-positioned over ``base`` so widths stay
   matched without measuring. JetBrains Mono guarantees ``$42.14`` and
   ``$44.98`` occupy exactly the same x extent, so no jitter. */
.edu-swap { position: relative; display: inline-block; }
.edu-swap-base, .edu-swap-hi { display: inline-block; }
.edu-swap-hi {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  color: var(--mint);
}

/* 4 s loop, linear. 22 % / 73 % breakpoints leave a 3 % "fade" window
   at each transition so neighbour states overlap briefly — without it
   the swap reads as a jump cut and the eye doesn't track the change.
   No ease-in-out / no bouncy springs anywhere. */
@keyframes edu-base {
  0%, 22%   { opacity: 1; }
  25%, 73%  { opacity: 0; }
  76%, 100% { opacity: 1; }
}
@keyframes edu-hi {
  0%, 22%   { opacity: 0; }
  25%, 73%  { opacity: 1; }
  76%, 100% { opacity: 0; }
}
.edu-swap-base { animation: edu-base 4s linear infinite; }
.edu-swap-hi   { animation: edu-hi   4s linear infinite; }

.edu-net {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  background: var(--bg-2);
  padding: 12px 16px;
}
.edu-net-arrow {
  color: var(--text-4);
  height: 10px;
  margin-bottom: 6px;
}
.edu-net-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.edu-net-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--mint);
  /* Animation moved off the wrapper onto its inner ``.edu-swap-base``
     (loss) + ``.edu-swap-hi`` (gain) spans — the stable phase now
     shows the honest small loss instead of going blank. */
}
.edu-net-loss { color: var(--rose); }
.edu-net-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Reduced-motion: freeze on the "divergence revealed" state because
   that's the educational payoff — the stable phase alone communicates
   nothing. base→hidden, hi→visible, profit→visible. */
@media (prefers-reduced-motion: reduce) {
  .edu-swap-base, .edu-swap-hi, .edu-net-num { animation: none; }
  .edu-swap-base { opacity: 0; }
  .edu-swap-hi   { opacity: 1; }
  .edu-net-num   { opacity: 1; }
}

.case-full {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start;
}
@media (max-width: 900px) { .case-full { grid-template-columns: 1fr; gap: 32px; } }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 24px; }
.case-stat { padding: 18px 8px; text-align: center; border-right: 1px solid var(--border); }
.case-stat:last-child { border-right: none; }
.case-stat .v { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; line-height: 1; margin-bottom: 6px; }
.case-stat .v.rose { color: var(--rose); }
.case-stat .v.mint { color: var(--mint); }
.case-stat .l { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.case-pnl-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(114, 213, 186, 0.08), rgba(78, 179, 154, 0.04));
  border: 1px solid rgba(114, 213, 186, 0.3);
}
.case-pnl-card .label { font-size: 11px; color: var(--mint-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 8px; }
.case-pnl-card .big {
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  font-size: clamp(28px, 4.5vw, 44px); line-height: 1;
  margin: 16px 0;
}
.case-pnl-card .big .from { color: var(--text-3); }
.case-pnl-card .big .arrow { color: var(--text-4); margin: 0 12px; }
.case-pnl-card .big .to { color: var(--mint); }
.case-pnl-card .desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.case-pnl-card .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 16px; margin-top: 20px; border-top: 1px solid var(--border); }
.case-pnl-card .meta .l { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.case-pnl-card .meta .v { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 600; }
.case-pnl-card .meta .v.mint { color: var(--mint); }
.case-disclaimer { margin-top: 16px; font-size: 12px; color: var(--text-4); line-height: 1.55; }

/* Compact dump-cases grid (3 карточки в ряд) — расширение SFUND
   deep-dive выше. Используется только на /arbitrage/dex-dumps,
   секция a.more_cases (2026-05-26). */
.dump-cases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 32px;
}
.dump-case {
  padding: 20px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rose);
  border-radius: 10px;
  display: flex; flex-direction: column;
}
.dump-case-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.dump-case-token {
  font-size: 18px; font-weight: 700; color: var(--text-1);
  font-family: 'JetBrains Mono', monospace;
}
.dump-case-chain {
  font-size: 10px; color: var(--text-4);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.dump-case-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.dump-case-stat { text-align: center; }
.dump-case-stat .v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 600; line-height: 1; margin-bottom: 4px;
}
.dump-case-stat .v.rose { color: var(--rose); }
.dump-case-stat .v.mint { color: var(--mint); }
.dump-case-stat .l {
  font-size: 9px; color: var(--text-4);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.dump-case-body {
  font-size: 13px; color: var(--text-2); line-height: 1.55;
  margin: 0 0 16px 0; flex: 1;
}
.dump-case-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.dump-case-date {
  font-size: 10px; color: var(--text-4);
  font-family: 'JetBrains Mono', monospace;
}
.dump-case-link {
  font-size: 11px; color: var(--mint);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.dump-case-link:hover { color: var(--text-1); }
.dump-cases-disclaimer {
  margin-top: 24px; font-size: 12px; color: var(--text-4);
  line-height: 1.55; max-width: 720px;
}
@media (max-width: 920px) {
  .dump-cases-grid { grid-template-columns: 1fr; }
}

/* ─── 3-STEP "AFTER YOU CLICK" PREVIEW (PR 2026-05-12) ───────
   Sits right below the hero. Three numbered cells in a row,
   single-line description per cell. Wraps to one-column on
   narrow screens. ``mint`` numerals so they read as positive
   action ladder, not a warning. */
.steps-strip {
  border: 1px solid var(--border);
  background: var(--bg-1);
  padding: 16px 22px;
  max-width: 960px;
  margin: 0 auto;
}
.steps-strip-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-4);
  text-align: center;
  margin-bottom: 14px;
}
.steps-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .steps-strip-grid { grid-template-columns: 1fr; gap: 12px; }
}
.steps-strip-cell {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.steps-strip-cell .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--mint);
  line-height: 1;
  width: 22px;
  flex-shrink: 0;
  padding-top: 1px;
}
.steps-strip-cell .h {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 2px;
  line-height: 1.3;
}
.steps-strip-cell .p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ─── INLINE CTA STRIPS (PR 2026-05-12) ──────────────────────
   Placed between content sections so the visitor never scrolls
   more than one screen without a path to the bot. Prompt + link
   on one row; stacks vertically on narrow screens. The link
   carries the same TG-deeplink as the hero / final CTAs;
   ``data-umami-event-source`` differs per placement so we can
   split conversion by where the click happened. */
.inline-cta-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 32px auto 0;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 720px;
}
.inline-cta-prompt {
  font-size: 14px;
  color: var(--text-2);
}
.inline-cta-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.inline-cta-link:hover {
  color: var(--mint-dim);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .inline-cta-strip { flex-direction: column; gap: 6px; padding: 12px 16px; }
}

/* ─── MOBILE STICKY CTA (PR 2026-05-12) ──────────────────────
   Full-width strip pinned to the viewport bottom on mobile only.
   Square corners + 1 px border (no shadow / no rounded-pill) to
   match the institutional aesthetic; the mint background is
   bright enough to anchor the eye without needing a halo. Hidden
   on desktop. JS toggles ``.visible`` after scroll > 480 px so
   the bar doesn't shadow the hero CTA on first paint. */
.mobile-sticky-cta {
  display: none;
}
@media (max-width: 767px) {
  .mobile-sticky-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 18px;
    background: var(--mint);
    color: var(--bg-0);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-top: 1px solid var(--mint-dim);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 150ms ease-out;
  }
  .mobile-sticky-cta.visible {
    transform: translateY(0);
  }
}

/* ─── TESTIMONIAL PROOFS (PR 2026-05-11) ─────────────────────
   Screenshot strip above the text testimonials. ``column-count: 3``
   produces a masonry-style flow that handles the mixed aspect
   ratios (landscape BRIC alert + square PnL + portrait Telegram)
   without leaving the empty whitespace a uniform-height grid
   would. Each card is ``break-inside: avoid`` so an image never
   splits across two columns. */
.testimonial-proofs {
  column-count: 3;
  column-gap: 18px;
  margin: 0 auto 40px;
  max-width: 1080px;
}
@media (max-width: 1000px) { .testimonial-proofs { column-count: 2; } }
@media (max-width: 600px)  { .testimonial-proofs { column-count: 1; } }
.proof-card {
  break-inside: avoid;
  margin: 0 0 18px;
  display: block;
}
.proof-card picture, .proof-card img {
  display: block;
  width: 100%;
  height: auto;
}
.proof-card img {
  border: 1px solid var(--border);
  background: var(--bg-0);
}
.proof-card figcaption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}

/* ─── TESTIMONIALS ───────────────────────────────────────── */
/* 3-col layout (2026-05-11) — was 4 when we had four testimonials.
   The "method-only" no-$ entry was dropped to keep all visible
   cards on a consistent ``$amount → $amount`` headline pattern. */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  padding: 20px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
.testimonial-card .result {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--mint);
  margin-bottom: 12px;
}
.testimonial-card .text { font-size: 14px; color: var(--text-2); line-height: 1.6; flex: 1; }
.testimonial-card .link {
  margin-top: 16px;
  font-size: 12px;
  color: var(--tg-link);
  display: inline-flex; align-items: center; gap: 4px;
}
.testimonial-card .link:hover { color: var(--text-1); }

/* per-day price hint */
.price-perday {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  margin-top: -6px;
  margin-bottom: 16px;
}

/* ─── MISC HELPERS ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-mute { color: var(--text-3); }

/* ─────────────────────────────────────────────────────────────────────
   /tools/exchanges — directory grid (card-style, 2026-05-27 redesign).
   The previous compact 3-col grid felt anonymous — visitors couldn't
   tell the exchanges apart at a glance. The new layout follows the
   "verified partners directory" pattern from reference sites: a stat
   strip in the hero, then large per-exchange cards with a brand-mark
   avatar, kind chip, founding year, blurb, three live counters
   (coins / spot / perp) and two CTAs (detail page + outbound site).

   All numbers are real — we don't ship invented ratings or bonus
   offers (the user explicitly values factual accuracy over visual
   parity with referral-marketing directory templates).
   ───────────────────────────────────────────────────────────────────── */

/* Stat strip — three big numbers under the hero subtitle. Same row
   metric pattern as the marketing landing but smaller (this is the
   directory page, not the homepage). Inline-flex with wrap so it
   collapses cleanly to one column on phones. */
.ex-stat-row {
  display: inline-flex;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.ex-stat {
  background: var(--surface);
  padding: 14px 28px;
  text-align: center;
  min-width: 140px;
}
.ex-stat-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.ex-stat-l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Section header ("Централизованные биржи" / "Перпетуальные DEX") */
.ex-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
}
.ex-section-head h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0;
  letter-spacing: -0.01em;
}
.ex-section-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 3px;
}

/* Card grid — 3 cols desktop, 2 mid, 1 mobile. Cards are tall enough
   to fit a 2-line blurb without truncation but capped so a 50+ exchange
   directory doesn't turn into a wall of paragraphs. */
.ex-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.ex-card {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 120ms, transform 120ms;
}
.ex-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

/* Top row — letter avatar + name + chips */
.ex-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ex-card-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(114,213,186,0.18), rgba(114,213,186,0.06));
  border: 1px solid rgba(114,213,186,0.25);
  color: var(--mint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
}
.ex-card-mark.dex {
  background: linear-gradient(135deg, rgba(167,139,250,0.18), rgba(167,139,250,0.06));
  border-color: rgba(167,139,250,0.28);
  color: #c4b5fd;
}
.ex-card-id { min-width: 0; flex: 1; }
.ex-card-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.005em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ex-card-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.ex-card-kind {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
}
.ex-card-kind.cex { color: var(--mint); border-color: rgba(114,213,186,0.3); }
.ex-card-kind.dex { color: #c4b5fd; border-color: rgba(167,139,250,0.32); }
.ex-card-since,
.ex-card-hq {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-4);
  letter-spacing: 0.02em;
}
/* The kind chip is always first; ``since YYYY`` and ``HQ`` follow.
   Single-character separator before each one so the metadata reads as
   one line ("CEX · since 2017 · MT") rather than three stacked chips. */
.ex-card-since::before { content: '·'; margin-right: 6px; color: var(--text-5); }
.ex-card-hq::before { content: '·'; margin-right: 6px; color: var(--text-5); }

.ex-card-blurb {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
  /* clamp to 3 lines so cards stay roughly the same height in a grid */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stats strip — three small counters in a row */
.ex-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 14px;
  /* if fewer than 3 cells render (e.g. perp-only exchange), pull
     the columns to auto-fit so they don't leave dead space */
  grid-auto-flow: column;
}
.ex-card-stat {
  background: var(--surface);
  padding: 8px 4px;
  text-align: center;
}
.ex-card-stat-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.1;
}
.ex-card-stat-l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

/* Action row — primary (detail) + ghost (outbound site) */
.ex-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto; /* push to card bottom regardless of blurb length */
}
.ex-card-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 100ms, border-color 100ms, color 100ms;
}
.ex-card-btn.primary {
  background: var(--mint);
  color: #0a0d12;
}
.ex-card-btn.primary:hover {
  background: #8ce0c8;
}
.ex-card-btn.ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.ex-card-btn.ghost:hover {
  color: var(--text-1);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.02);
}

@media (max-width: 720px) {
  .ex-stat { padding: 12px 18px; min-width: 110px; }
  .ex-cards { grid-template-columns: 1fr; gap: 10px; }
  .ex-card { padding: 16px 14px 14px; }
  .ex-card-mark { width: 40px; height: 40px; font-size: 16px; }
}

/* ─────────────────────────────────────────────────────────────────────
   /tools/exchanges/{slug} — extended detail page styles.
   Adds: comparison sparkline-bar, summary paragraph, real-time CTA,
   coin search input, live-price coin cards, compare-rivals cards,
   FAQ block, network-table scroll, mobile pass.
   ───────────────────────────────────────────────────────────────────── */

.ed-head { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; margin-top: 8px; }
.ed-head h1 { margin: 0; font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.01em; }
.ed-blurb {
  color: var(--text-1);
  font-size: 16px;
  line-height: 1.5;
  max-width: 720px;
  margin-top: 10px;
  font-weight: 500;
}

/* Auto-summary — concrete-numbers paragraph under the blurb. Solid
   surface card (not just a left-border) so the long sentence doesn't
   visually merge with the dimmed hero background — pre-2026-05-06 the
   right edge of the paragraph was over the still-visible dashboard
   screenshot decoration and the text washed out at the right margin. */
.ed-summary {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--mint);
  border-radius: 4px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 760px;
}

.ed-meta-grid {
  display: grid;
  /* 4 fixed columns on desktop (coins / spot / perp / 24h vol). Mobile
     breakpoint below collapses to 2 cols. ``minmax(0, 1fr)`` lets the
     comparison sparkline-bar inside the first cell shrink without
     pushing the other 3 cells out of width. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 24px;
}
@media (max-width: 720px) {
  .ed-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ed-meta-cell { background: var(--surface); padding: 14px 16px; }
.ed-meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ed-meta-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.ed-meta-value.muted { color: var(--text-3); font-weight: 500; }

/* Comparison sparkline-bar — sits inside the coins-tracked metric
   cell, shows ratio to the leader (e.g. MEXC's 2184 = 100% bar). */
.ed-comp-bar {
  position: relative;
  height: 14px;
  margin-top: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  overflow: hidden;
  /* Native browser tooltip on the ``title`` attribute is the only
     hover hint by default — readers don't always discover it. The
     ``help`` cursor + dotted underline on the label below signal
     "hover for more" without needing a separate tooltip widget. */
  cursor: help;
}
.ed-comp-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--mint-dim), var(--mint));
  opacity: 0.5;
}
.ed-comp-bar-label {
  position: relative;
  display: block;
  padding: 1px 6px;
  font-size: 9px;
  color: var(--text-2);
  letter-spacing: 0.04em;
  z-index: 1;
  line-height: 12px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.20);
  width: fit-content;
}
.ed-comp-bar-leader { background: rgba(114,213,186,0.12); }

/* Metadata strip — tight inline row of non-market facts (network
   count, founding year, HQ). Visually subordinate to the stat grid
   above: no panel background, no border, just dimmed mono text on
   the page surface. Pre-2026-05-06 first iteration this had its own
   surface card which made it read as a separate widget — looked like
   a leftover ribbon detached from anything. The dot ``·`` separators
   come from rendered ``.ed-ms-sep`` spans (not CSS pseudo-elements)
   so the value is selectable and copies as plain text. */
.ed-meta-strip {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin-top: 10px;
  padding: 0 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
}
.ed-ms-item { display: inline-flex; align-items: baseline; gap: 6px; }
.ed-ms-label {
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 9.5px;
}
.ed-ms-value {
  color: var(--text-2);
  font-weight: 600;
}
.ed-ms-value.muted { color: var(--text-3); font-weight: 500; }
.ed-ms-sep { color: var(--text-5, rgba(255,255,255,0.10)); user-select: none; }

/* Section heads — small h2 + count + optional CTA on the right */
.ed-section-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: 40px 0 12px;
}
.ed-section-head h2 { font-size: 14px; font-weight: 600; color: var(--text-2); margin: 0; }
.ed-section-head .count {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--text-3);
}
/* Inline legend / hint that lives next to the count. Same mono
   font but lighter colour so it reads as a parenthetical, not as
   data. ``cursor: help`` + dotted underline signal the title-tooltip
   carries the longer explanation. */
.ed-section-hint {
  font-size: 10.5px;
  color: var(--text-4);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.15);
  cursor: help;
  margin-left: 4px;
}
.ed-realtime-cta {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  background: rgba(114, 213, 186, 0.06);
  border: 1px solid rgba(114, 213, 186, 0.30);
  border-radius: 12px;
  color: var(--mint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 80ms, border-color 80ms;
}
.ed-realtime-cta:hover {
  background: rgba(114, 213, 186, 0.14);
  border-color: rgba(114, 213, 186, 0.55);
  color: var(--mint);
}
.ed-realtime-cta .ed-rc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(114,213,186,0.55);
  animation: ed-rc-pulse 2s infinite;
}
.ed-realtime-cta .ed-rc-text { color: var(--text-2); }
.ed-realtime-cta:hover .ed-rc-text { color: var(--text-1); }
@keyframes ed-rc-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(114,213,186,0.50); }
  70%  { box-shadow: 0 0 0 6px rgba(114,213,186,0); }
  100% { box-shadow: 0 0 0 0 rgba(114,213,186,0); }
}

/* Snapshot indicator — ghost variant for new sections (top arb routes,
   etc) so it reads as a status chip, not a CTA. Pre-2026-05-06 we
   reused ``.ed-realtime-cta`` — its mint fill + pulsing dot competed
   with the header "Start trial" and hero "Official site" buttons as
   a third primary action in the hero zone. Same content (status dot
   + label + dashboard link), but quieter visual weight. The link
   inside still gets a subtle hover transition so the affordance is
   discoverable. */
.ed-snapshot-indicator {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 80ms, color 80ms;
}
.ed-snapshot-indicator:hover {
  border-color: var(--border-hi);
  color: var(--text-2);
}
.ed-snapshot-indicator .ed-si-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-4);
  /* Static — no pulse animation. The block updates every 5 min, not
     every tick, so a pulsing dot would mislead readers into thinking
     it's live-streaming. */
}
.ed-snapshot-indicator .ed-si-link {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.15);
  text-underline-offset: 2px;
  transition: color 80ms, text-decoration-color 80ms;
}
.ed-snapshot-indicator:hover .ed-si-link {
  color: var(--mint);
  text-decoration-color: var(--mint-dim);
}
.ed-snapshot-indicator svg { color: var(--text-4); }
.ed-snapshot-indicator:hover svg { color: var(--mint); }

/* Coin search input — narrowed to ~440 px max so it doesn't claim
   the full row width on desktop (visually weak signal that the
   filter applies to the grid below; pre-2026-05-06 the input
   stretched to 100 % which made it read as a primary action). The
   counter previously here moved into the ``.ed-section-head``
   above for a single source of truth (live-updated by the JS
   filter via ``#edCoinCount``). */
.ed-coin-search {
  margin-bottom: 14px;
}
/* Inline wrapper so the clear-button (×) can sit absolutely-positioned
   inside the input bounds. ``data-has-value`` is toggled by JS on
   each input event; CSS uses it to show/hide the button without an
   extra class flip. */
.ed-coin-search-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: block;
}
.ed-coin-search input {
  width: 100%;
  padding: 8px 36px 8px 12px;       /* right padding leaves room for × */
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.12s;
}
.ed-coin-search input:focus { border-color: var(--text-3); }
.ed-coin-search-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: none;                    /* shown only via data-has-value below */
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 3px;
  transition: background 80ms, color 80ms;
}
.ed-coin-search-clear:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-1);
}
.ed-coin-search-wrap[data-has-value] .ed-coin-search-clear { display: inline-flex; }

/* Coin grid — top-100 visible by default, .ed-coin-extra hidden via
   CSS until the search filter activates (then JS adds .is-search-active
   to the grid). Live-priced cards get a subtle mint glyph. */
.ed-coins {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.ed-coins .ed-coin-extra { display: none; }
.ed-coins.is-search-active .ed-coin-extra { display: block; }
.ed-coin {
  display: block;
  position: relative;
  padding: 10px 14px;
  background: var(--surface);
  text-decoration: none;
  transition: background 80ms, box-shadow 80ms;
}
/* Hover: bump background slightly and add an inset mint border so the
   reader can see the cursor lock on a card. ``box-shadow inset`` is
   used over a real border so the card width doesn't shift by 1 px on
   hover (which would jiggle the rest of the grid). */
.ed-coin:hover {
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1px rgba(114, 213, 186, 0.35);
}
.ed-coin[hidden] { display: none; }

/* Rank chip — top-left corner, mono digits. Hidden while the search
   filter is active (the grid is no longer in volume order during a
   query, so a rank number would be misleading). */
.ed-coin-rank {
  position: absolute;
  top: 6px; left: 8px;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-4);
  letter-spacing: 0.04em;
  pointer-events: none;
}
.ed-coin:hover .ed-coin-rank { color: var(--text-3); }
.ed-coins.is-search-active .ed-coin-rank { display: none; }
/* Make room for the rank chip so the symbol text doesn't overlap it. */
.ed-coin .ed-coin-top { padding-left: 26px; }
.ed-coin .ed-coin-name { padding-left: 26px; }
.ed-coin .ed-coin-meta { padding-left: 26px; }
.ed-coins.is-search-active .ed-coin-top,
.ed-coins.is-search-active .ed-coin-name,
.ed-coins.is-search-active .ed-coin-meta { padding-left: 0; }
.ed-coin-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px;
}
.ed-coin-sym { font-size: 12px; font-weight: 700; color: var(--text-1); letter-spacing: 0.3px; }
.ed-coin-price { font-size: 11.5px; font-weight: 600; color: var(--mint); }
.ed-coin-name {
  font-size: 11px; color: var(--text-3); margin: 2px 0 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ed-coin-meta {
  display: flex; gap: 6px; align-items: baseline;
  font-size: 10px;
}
.ed-coin-vol { color: var(--text-2); font-weight: 600; }
.ed-coin-mkts { color: var(--text-4); }

.ed-coins-empty {
  padding: 20px; color: var(--text-3); font-size: 12px; text-align: center;
  border: 1px dashed var(--border); border-radius: 4px; margin-top: 8px;
}

/* Networks table — scroll wrapper for narrow viewports.
   Collapsible mode: rows past the 12th get class ``.ed-net-extra``
   and stay hidden until the user opts in via ``.ed-net-toggle``
   (which sets ``.is-expanded`` on the wrapper). Keeps the page
   from being a wall of 30-140 rows on major venues. */
.ed-net-scroll { overflow-x: auto; }
.ed-net-collapsible .ed-net-extra { display: none; }
.ed-net-collapsible.is-expanded .ed-net-extra { display: table-row; }
.ed-net-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-2);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 80ms, border-color 80ms, color 80ms;
}
.ed-net-toggle:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--border-hi);
  color: var(--text-1);
}
.ed-net-toggle svg { transition: transform 200ms ease; }
.ed-net-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ed-net-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 360px; }
.ed-net-table th, .ed-net-table td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
}
.ed-net-table th {
  color: var(--text-3); font-weight: 500; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.ed-net-table td.net { color: var(--text-1); }
.ed-net-table td.frac { color: var(--text-2); }
.ed-frac-num { color: var(--mint); font-weight: 600; }

/* Compare table — side-by-side stats vs adjacent-rank rivals.
   Replaced the pre-2026-05-06 ``.ed-compare-grid`` card layout
   (showed only "{name}: N coins · $V 24h") with a 5-column table
   surfacing spot/perp split — denser and more useful when picking
   between similar venues.

   ``.cmp-current`` row carries the page's own exchange and gets a
   left mint border + slightly elevated background so the reader
   anchors to "where am I" before comparing rivals. */
.ed-compare-scroll { overflow-x: auto; }
.ed-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.ed-compare-table th,
.ed-compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.ed-compare-table th {
  color: var(--text-3);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
}
.ed-compare-table tbody tr:last-child td { border-bottom: none; }
.ed-compare-table .cmp-num { text-align: right; color: var(--text-1); font-weight: 600; }
.ed-compare-table .cmp-num.muted { color: var(--text-4); font-weight: 500; }
.ed-compare-table .cmp-name { color: var(--text-1); }
.ed-compare-table .cmp-link {
  color: var(--text-1);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 80ms, border-color 80ms;
}
.ed-compare-table .cmp-link:hover {
  color: var(--mint);
  border-bottom-color: var(--mint-dim);
}
.ed-compare-table .cmp-current {
  background: rgba(114, 213, 186, 0.04);
  box-shadow: inset 3px 0 0 var(--mint);
}
.ed-compare-table .cmp-current strong { color: var(--text-1); }
.cmp-self-tag {
  margin-left: 8px;
  padding: 1px 6px;
  background: rgba(114, 213, 186, 0.10);
  color: var(--mint);
  border: 1px solid rgba(114, 213, 186, 0.30);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Top arbitrage routes — table form (similar density to networks
   table). Highlights "self" leg with a mint underline so a reader
   sees instantly which side this exchange sits on for each route. */
.ed-arb-scroll { overflow-x: auto; }
.ed-arb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 540px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.ed-arb-table th,
.ed-arb-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.ed-arb-table th {
  color: var(--text-3);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
}
.ed-arb-table tbody tr:last-child td { border-bottom: none; }
.ed-arb-table .ar-num { text-align: right; color: var(--text-1); font-weight: 600; }
.ed-arb-table .ar-spread { color: var(--mint); }
.ed-arb-table .ar-asset-link {
  color: var(--text-1);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 80ms, border-color 80ms;
}
.ed-arb-table .ar-asset-link:hover {
  color: var(--mint);
  border-bottom-color: var(--mint-dim);
}
.ar-route { color: var(--text-2); white-space: nowrap; }
.ar-leg { color: var(--text-2); }
.ar-leg-self {
  color: var(--mint);
  border-bottom: 1px dotted rgba(114, 213, 186, 0.50);
}
.ar-arrow { color: var(--text-4); margin: 0 6px; }
.ed-arb-footnote {
  margin: 8px 0 0;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.018);
  border-left: 2px solid var(--border-hi);
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.5;
  font-family: 'JetBrains Mono', monospace;
}
.ed-arb-footnote strong {
  color: var(--text-1);
  font-weight: 700;
}
.ed-arb-footnote a {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: var(--mint-dim);
  text-underline-offset: 2px;
}
.ed-arb-footnote a:hover { color: var(--mint); text-decoration-color: var(--mint); }
.ed-arb-table .tag-fut {
  display: inline-block;
  padding: 1px 5px;
  background: rgba(168, 144, 208, 0.10);
  color: var(--purple, #a890d0);
  border: 1px solid rgba(168, 144, 208, 0.30);
  border-radius: 3px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 4px;
  vertical-align: 1px;
}

/* Recent listings — small grid of new-ticker events on this venue.
   Same visual rhythm as ``.ed-coins`` (border-collapse via 1 px
   gap on a border-coloured grid background) so the page reads as
   a single cohesive set of card grids rather than a mix of grid +
   table styles.

   Column count adapts to the actual event count via ``data-count``:
   pre-2026-05-06 ``auto-fill, minmax(220px, 1fr)`` left trailing
   empty grid cells when we had only 3 events on a desktop viewport
   (5 columns → 2 empty). The CSS attribute selectors below cap the
   grid at ``data-count`` columns so 3 events fill 3 columns (no
   empty trailing cells), and 8+ events fall through to the default
   auto-fill layout. */
.ed-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.ed-listings[data-count="1"] { grid-template-columns: repeat(auto-fill, minmax(220px, 280px)); justify-content: start; }
.ed-listings[data-count="2"] { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
.ed-listings[data-count="3"] { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
.ed-listings[data-count="4"] { grid-template-columns: repeat(4, minmax(220px, 1fr)); }
.ed-listing {
  display: block;
  padding: 12px 14px;
  background: var(--surface);
  text-decoration: none;
  transition: background 80ms, box-shadow 80ms;
}
.ed-listing:hover {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(114, 213, 186, 0.35);
}
.ed-listing-top {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.ed-listing-sym {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.3px;
}
.ed-listing-upcoming {
  margin-left: auto;
  padding: 1px 6px;
  background: rgba(224, 169, 86, 0.10);
  color: var(--amber, #e0a956);
  border: 1px solid rgba(224, 169, 86, 0.30);
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ed-listing-name {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ed-listing-meta {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 10px;
}
.ed-listing-ticker { color: var(--text-2); }
.ed-listing-when { color: var(--text-4); }

/* External-link row. ``Official site`` gets the primary mint chip,
   the rest (Fees / X-Twitter / CoinGecko) are secondary outline.
   Pre-2026-05-06 all four buttons used the same ghost outline so the
   primary outbound (the exchange's own homepage) had no visual lead —
   readers had to scan all 4 to find it. */
.ed-links { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.ed-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-3);
  font-size: 12px;
  text-decoration: none;
  transition: background 80ms, border-color 80ms, color 80ms;
}
.ed-link:hover {
  background: rgba(255,255,255,0.025);
  color: var(--text-1);
  border-color: var(--border-hi);
}
.ed-link-primary {
  background: rgba(114, 213, 186, 0.10);
  border-color: rgba(114, 213, 186, 0.40);
  color: var(--mint);
  font-weight: 600;
  padding: 7px 14px;
  font-size: 12.5px;
}
.ed-link-primary:hover {
  background: rgba(114, 213, 186, 0.18);
  border-color: rgba(114, 213, 186, 0.65);
  color: var(--mint);
}

/* FAQ — same compact look as token-page faq */
.ed-faq { display: flex; flex-direction: column; gap: 1px; background: var(--border);
          border: 1px solid var(--border); border-radius: 4px; }
.ed-faq-item { background: var(--surface); }
.ed-faq-item summary {
  cursor: pointer; padding: 12px 16px;
  font-size: 13px; font-weight: 600; color: var(--text-1);
  list-style: none;
  position: relative;
}
.ed-faq-item summary::after {
  content: '+'; position: absolute; right: 16px; top: 12px;
  color: var(--text-3); font-size: 16px; line-height: 1;
  transition: transform 120ms ease;
}
.ed-faq-item[open] summary::after { content: '−'; }
.ed-faq-item summary:hover { color: var(--mint); }
.ed-faq-item summary::-webkit-details-marker { display: none; }
.ed-faq-a { padding: 0 16px 14px; color: var(--text-2); font-size: 13px; line-height: 1.55; }

/* Utility colour — used inline in compare stats */
.t-3 { color: var(--text-3); }

/* ── Mobile responsive ────────────────────────────────────────
   Pre-2026-05-06 the page had only ``.ed-meta-grid`` and
   ``.ed-coins`` mobile rules. Phase 4 extends coverage to the new
   sections (top arb table, recent listings grid, compare table,
   metadata strip, hero links) and tightens the 480 px band so a
   phone-portrait viewport (≤412 px) doesn't feel cramped. */
@media (max-width: 720px) {
  .ed-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-coins { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ed-section-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .ed-realtime-cta {
    margin-left: 0; align-self: stretch;
    justify-content: center;
  }
  .ed-coin-search input { max-width: none; }
  .ed-compare-grid { grid-template-columns: 1fr; }

  /* Hero copy + summary card collapse to full width with tighter
     padding so a 360-px phone screen doesn't waste 32 px of side
     gutter on the description card. */
  .ed-blurb { font-size: 14.5px; max-width: 100%; }
  .ed-summary { padding: 12px 14px; font-size: 13px; }

  /* External-link row wraps with smaller buttons. The primary
     "Official site" stays slightly larger so it remains the
     visual lead even on narrow widths. */
  .ed-link { padding: 5px 10px; font-size: 11.5px; }
  .ed-link-primary { padding: 6px 12px; font-size: 12px; }

  /* Metadata strip — stacks vertically with separator dots becoming
     less prominent (they read as decoration, not as content
     boundaries, on a single-column layout). */
  .ed-meta-strip { gap: 6px 12px; padding: 8px 12px; font-size: 10.5px; }

  /* Recent listings grid — 2 cols on tablet, 1 col on phone (≤480 px
     band below). Compare table + arb table fall through to their
     intrinsic ``min-width`` and trigger horizontal scroll inside
     ``.ed-arb-scroll`` / ``.ed-compare-scroll``. */
  .ed-listings { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

  /* Tighten table cell padding on narrow viewports so the horizontal
     scroll feels less wasteful. */
  .ed-arb-table th, .ed-arb-table td,
  .ed-compare-table th, .ed-compare-table td {
    padding: 8px 10px;
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .ed-meta-grid { grid-template-columns: 1fr 1fr; }
  .ed-coins { grid-template-columns: 1fr 1fr; }
  .ed-coin { padding: 8px 10px; }
  .ed-coin-sym { font-size: 11px; }
  .ed-coin-name { font-size: 10px; }
  .ed-coin .ed-coin-top,
  .ed-coin .ed-coin-name,
  .ed-coin .ed-coin-meta { padding-left: 22px; }
  .ed-coin-rank { font-size: 8.5px; top: 5px; left: 6px; }

  /* Listings — single column at phone-portrait so each row is full
     width (the auto-fill 180-min would force 2 cols at ≤412 px and
     the symbol + market chip + upcoming pill don't fit cleanly). */
  .ed-listings { grid-template-columns: 1fr; }

  /* Hero link row — primary stretches to 100 % so the main CTA is
     unambiguous at thumb-tap target sizes. Secondary links wrap
     beneath. */
  .ed-link-primary { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════════════════════════════════
   2026-05-23 BRAND SYNC — LANDING V2 COMPONENTS
   New design system port from /Users/vladislav/Downloads/Landing
   Mockup Improved.html. Calmer "we watch · you decide" tone.
   Decisions locked: TG-blue CTA, cy chrome accent, Geist body, both
   RU + EN, no freemium blur (open beta), Finder · Arb Terminal
   hybrid brand, real /api/landing-ticker for hero + toast.
   ──────────────────────────────────────────────────────────────── */

/* ─── HERO V2 ──────────────────────────────────────────── */
.hero.hero-v2 {
  padding: 80px 0 64px;
  text-align: left;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-v2::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(10, 13, 18, 0.55) 0%,
      rgba(10, 13, 18, 0.70) 35%,
      rgba(10, 13, 18, 0.92) 75%,
      rgba(10, 13, 18, 1) 100%
    ),
    url('/assets/hero-bg.webp') center top / cover no-repeat;
  pointer-events: none;
}
.hero-v2::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px circle at 78% 18%, rgba(42, 171, 238, 0.12), transparent 55%);
  pointer-events: none;
}
.hero-v2 .hero-grid {
  display: grid; grid-template-columns: 6fr 6fr; gap: 60px;
  align-items: center;
}
@media (max-width: 1050px) { .hero-v2 .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Counter pill above headline */
.counter-line {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  background: var(--bg-1);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 12.5px; color: var(--text-2);
  margin-bottom: 28px; max-width: 100%;
}
.counter-line .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 8px var(--mint);
  animation: pulse 1.6s ease-in-out infinite; flex-shrink: 0;
}
.counter-line .t { min-width: 0; }
.counter-line b { color: var(--text-1); font-weight: 500; }

/* Mockup-style large headline (replaces .hero-title for hero-v2) */
.hero-v2 .headline {
  font-weight: 600; letter-spacing: -0.035em;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.98; margin-bottom: 24px;
  color: var(--text-1);
}
.hero-v2 .headline .cy { color: var(--cy); }

.hero-v2 .lede {
  font-size: 17px; color: var(--text-2);
  line-height: 1.6; max-width: 56ch;
  margin: 0 0 32px;
}
.hero-v2 .lede .accent { color: var(--text-1); font-weight: 500; }

.hero-cta-row {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.cta-meta {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11.5px; color: var(--text-3);
  letter-spacing: 0.04em;
}
.cta-meta .dot.up { color: var(--mint); }

.hero-bullets {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 18px;
}
.hero-bullets li {
  display: flex; align-items: baseline; gap: 10px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 12.5px; color: var(--text-2);
  letter-spacing: 0.02em;
}
.hero-bullets li .glyph {
  width: 14px; height: 14px; flex-shrink: 0;
  color: var(--mint); transform: translateY(2px);
}
.hero-bullets li b { color: var(--text-1); font-weight: 500; }

/* ─── HERO TERMINAL PREVIEW ─────────────────────────────── */
.terminal {
  background: var(--bg-1);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 40px 80px -30px rgba(0, 0, 0, 0.6),
    0 0 80px -20px rgba(42, 171, 238, 0.15);
  position: relative;
}
.terminal-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11.5px; color: var(--text-3);
  letter-spacing: 0.04em;
}
.terminal-bar .title { color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.terminal-bar .title .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 8px var(--mint);
  animation: pulse 1.6s ease-in-out infinite;
}
.terminal-bar .grow { flex: 1; }
.terminal-bar .status { color: var(--text-3); }
.terminal-bar .status b { color: var(--text-1); font-weight: 500; }

.terminal-cols {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 80px 64px;
  padding: 10px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text-4);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.terminal-cols .right { text-align: right; }
.terminal-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 80px 64px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 13px;
  transition: background 200ms ease;
}
.terminal-row:last-child { border-bottom: 0; }
.terminal-row:hover { background: rgba(103, 232, 249, 0.03); }
.terminal-row .pair { color: var(--text-1); font-weight: 500; }
.terminal-row .venue { color: var(--text-2); display: flex; align-items: baseline; gap: 6px; }
.terminal-row .venue .ex { color: var(--text-3); font-size: 11.5px; }
.terminal-row .venue .px { color: var(--text-1); font-weight: 500; }
.terminal-row .spd { color: var(--mint); font-weight: 600; text-align: right; }
.terminal-row .spark { text-align: right; }
.terminal-row .spark svg { display: inline-block; vertical-align: middle; }

.terminal-foot {
  padding: 14px 16px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11.5px; color: var(--text-3);
  letter-spacing: 0.04em;
}
.terminal-foot .lbl b { color: var(--text-1); font-weight: 500; }
.terminal-foot .grow { flex: 1; }
.terminal-foot a { color: var(--tg); font-weight: 600; }
.terminal-foot a:hover { color: var(--cy); }

@media (max-width: 700px) {
  .terminal-cols, .terminal-row { grid-template-columns: 72px 1fr 70px; padding: 10px 14px; gap: 0 8px; }
  .terminal-cols .col-sell, .terminal-row .col-sell, .terminal-cols .col-spark, .terminal-row .col-spark { display: none; }
}

/* ─── SECTION SHELL (.block) ─────────────────────────────── */
section.block {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
@media (max-width: 768px) { section.block { padding: 64px 0; } }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 720px; }
.section-head.center p { margin-left: auto; margin-right: auto; max-width: 64ch; }

/* ─── TRUST MARQUEES ────────────────────────────────────── */
.marquee-block {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  overflow: hidden;
}
.marquee-block.last { border-top: none; }
.marquee-head {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-3);
  padding: 0 24px 12px;
  max-width: var(--max); margin: 0 auto;
}
.marquee-head .slash { color: var(--text-4); }
.marquee-head b { color: var(--text-1); font-weight: 500; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  max-width: var(--max);
  margin: 0 auto;
}
.marquee-track {
  display: flex; align-items: center; gap: 40px;
  animation: marquee-scroll 60s linear infinite;
  width: max-content;
}
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 70s; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; transform: none; }
}
body.tab-hidden .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--text-2);
  letter-spacing: 0.02em; white-space: nowrap;
}
.marquee-item .ico {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}

/* ─── ANATOMY OF AN ALERT ───────────────────────────────── */
.anatomy-grid {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 60px; align-items: start;
}
@media (max-width: 1000px) { .anatomy-grid { grid-template-columns: 1fr; gap: 40px; } }
.anatomy-copy h2 { margin-bottom: 18px; font-size: clamp(30px, 4.2vw, 52px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.anatomy-copy .lede { font-size: 17px; color: var(--text-2); line-height: 1.6; margin-bottom: 32px; max-width: 56ch; }
.anatomy-copy .key-list { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-top: 32px; padding: 0; }
.anatomy-copy .key-list li {
  display: grid; grid-template-columns: 28px 1fr;
  gap: 16px; align-items: baseline;
  font-size: 14.5px; color: var(--text-2); line-height: 1.55;
}
.anatomy-copy .key-list li b { color: var(--text-1); font-weight: 600; }
.anatomy-copy .key-list li em { color: var(--text-1); font-style: normal; }
.anatomy-copy .key-list .k {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: 1px solid var(--cy);
  color: var(--cy);
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.02em; flex-shrink: 0;
}

/* TG mock message preview */
.tg-mock {
  background: var(--bg-1);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.tg-mock-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.tg-mock-head .av {
  width: 36px; height: 36px;
  background: var(--tg); color: #fff;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 14px;
}
.tg-mock-head .name { font-weight: 600; font-size: 14px; color: var(--text-1); }
.tg-mock-head .sub {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-3); letter-spacing: 0.04em;
  margin-top: 2px;
}
.tg-mock-body { padding: 20px; background: var(--bg-0); }
.tg-mock-msg {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px 10px 10px 2px;
  padding: 16px 18px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 13px; line-height: 1.7;
  color: var(--text-2);
}
.tg-mock-msg .line { display: flex; align-items: baseline; gap: 8px; }
.tg-mock-msg .marker {
  width: 24px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid var(--cy);
  color: var(--cy);
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  flex-shrink: 0;
}
.tg-mock-msg .body { flex: 1; min-width: 0; }
.tg-mock-msg .body.tag { color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.tg-mock-msg .body.tag b { color: var(--mint); }
.tg-mock-msg .pair { color: var(--text-1); font-weight: 600; font-size: 16px; }
.tg-mock-msg .pct { color: var(--mint); font-weight: 600; }
.tg-mock-msg .leg .ex { color: var(--text-1); font-weight: 600; }
.tg-mock-msg .leg .px { color: var(--text-1); font-weight: 600; }
.tg-mock-msg hr { border: none; border-top: 1px solid var(--border); margin: 10px 0; }
.tg-mock-msg .net { color: var(--mint); font-weight: 600; font-size: 14px; }
.tg-mock-msg .window b { color: var(--text-1); }
.tg-mock-msg .ts { display: flex; justify-content: flex-end; font-size: 10px; color: var(--text-4); margin-top: 6px; }
.tg-mock-msg .ts .tick { color: var(--tg); }

/* ─── BEFORE / AFTER SPLIT ──────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 48px;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-col {
  padding: 28px 28px 32px;
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  background: var(--bg-1);
}
.split-col.before { border-color: rgba(229,115,115,0.18); }
.split-col.after  { border-color: rgba(103,232,249,0.18); background: linear-gradient(180deg, rgba(103,232,249,0.04), transparent 60%), var(--bg-1); }
.split-col .label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 14px;
}
.split-col .label .dot { width: 7px; height: 7px; border-radius: 50%; }
.split-col.before .label .dot { background: var(--rose); }
.split-col.after .label .dot  { background: var(--cy); box-shadow: 0 0 8px var(--cy); }
.split-col h3 {
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.1;
  color: var(--text-1); margin-bottom: 10px;
}
.split-col.after h3 .tg { color: var(--tg); }
.split-col .sub { font-size: 14px; color: var(--text-3); line-height: 1.55; margin-bottom: 20px; }
.split-col ul {
  list-style: none; display: flex; flex-direction: column;
  gap: 12px; padding: 0; margin: 0;
}
.split-col ul li {
  display: grid; grid-template-columns: 22px 1fr;
  gap: 12px; align-items: baseline;
  font-size: 14px; color: var(--text-2); line-height: 1.55;
}
.split-col ul li .mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.split-col.before ul li .mark { color: var(--rose); }
.split-col.after ul li .mark  { color: var(--mint); }
.split-col ul li .nb { color: var(--text-3); font-weight: 400; }

/* ─── MECHANICS 3-step ─────────────────────────────────── */
.mechanics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
@media (max-width: 900px) { .mechanics { grid-template-columns: 1fr; } }
.mech {
  padding: 28px 26px;
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  background: var(--bg-1);
  display: flex; flex-direction: column; gap: 14px;
}
.mech .tag {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cy);
}
.mech .icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1.5px solid var(--text-1);
  color: var(--text-1);
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 16px; font-weight: 700;
}
.mech h3 {
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.2;
  color: var(--text-1); margin: 0;
}
.mech p { font-size: 14px; color: var(--text-2); line-height: 1.6; margin: 0; }
.mech p b { color: var(--text-1); font-weight: 600; }

/* ─── REAL CATCHES (catches grid) ──────────────────────── */
.catches {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 32px;
}
@media (max-width: 900px) { .catches { grid-template-columns: 1fr; } }
.catch {
  padding: 24px 24px 22px;
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  background: var(--bg-1);
  display: flex; flex-direction: column; gap: 14px;
}
.catch-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-4);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.catch-head .ch { color: var(--cy); }
.catch-title-row { display: flex; align-items: baseline; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.catch-token {
  font-size: 28px; font-weight: 700;
  color: var(--text-1); letter-spacing: -0.02em;
}
.catch-mini {
  display: inline-flex; gap: 10px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 13px;
}
.catch-mini .down { color: var(--rose); }
.catch-mini .up { color: var(--amber); }
.catch-body { font-size: 14px; color: var(--text-2); line-height: 1.6; margin: 0; }
.catch-imgs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.catch-imgs figure { margin: 0; }
.catch-imgs img {
  width: 100%; height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-2);
}
.catch-imgs figcaption {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text-4);
  letter-spacing: 0.04em; margin-top: 6px;
}
.catch-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; padding-top: 6px;
}
.catch-stat {
  padding: 12px 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: 8px;
  text-align: center;
}
.catch-stat .v {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.01em;
}
.catch-stat .v.rose { color: var(--rose); }
.catch-stat .v.warn { color: var(--amber); }
.catch-stat .v.up   { color: var(--mint); }
.catch-stat .l {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 9.5px; color: var(--text-4);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 4px;
}
.catch-source {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-4); letter-spacing: 0.04em;
}
.catch-source a { color: var(--cy); }
.catch-source a:hover { color: var(--text-1); }

/* ─── SUBSCRIBER PROOFS ────────────────────────────────── */
.proofs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 32px;
}
.proof-fig {
  margin: 0; padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-1);
  overflow: hidden;
}
.proof-fig img {
  width: 100%; height: auto; display: block;
  background: var(--bg-2);
}
.proof-fig figcaption {
  padding: 14px 16px;
  font-size: 13px; color: var(--text-2); line-height: 1.5;
}
.proof-fig figcaption b { color: var(--text-1); font-weight: 600; }
.proof-fig figcaption .sub {
  display: block; margin-top: 4px;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 10.5px; color: var(--text-4); letter-spacing: 0.04em;
}
.proof-disclaimer {
  margin-top: 24px; max-width: 720px;
  font-size: 12px; color: var(--text-4); line-height: 1.6;
}

/* ─── FAQ V2 ───────────────────────────────────────────── */
.faq-v2 { max-width: 760px; margin: 0 auto; margin-top: 32px; }
.faq-v2 details {
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--bg-1);
}
.faq-v2 summary {
  display: grid; grid-template-columns: 60px 1fr 24px;
  gap: 12px; align-items: center;
  padding: 16px 20px;
  cursor: pointer; list-style: none;
  font-size: 15px; color: var(--text-1); font-weight: 500;
}
.faq-v2 summary::-webkit-details-marker { display: none; }
.faq-v2 summary .q {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--cy);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.faq-v2 summary .pl {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 18px; color: var(--text-3); text-align: right;
  transition: transform 200ms ease;
}
.faq-v2 details[open] summary .pl { transform: rotate(45deg); color: var(--cy); }
.faq-v2 .a {
  padding: 0 20px 18px 92px;
  font-size: 14px; color: var(--text-2); line-height: 1.6;
}
.faq-v2 .a b { color: var(--text-1); font-weight: 600; }
.faq-v2 .a em { color: var(--text-1); font-style: normal; }

/* ─── FINALE (final CTA) ───────────────────────────────── */
.finale {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(800px circle at 80% 50%, rgba(42, 171, 238, 0.08), transparent 50%),
    var(--bg-0);
}
.finale-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
@media (max-width: 900px) { .finale-grid { grid-template-columns: 1fr; gap: 32px; } }
.finale h2 {
  font-size: clamp(36px, 5vw, 64px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.05;
  color: var(--text-1); margin-bottom: 18px;
}
.finale h2 .tg { color: var(--tg); }
.finale .lede { font-size: 17px; color: var(--text-2); line-height: 1.6; }
.finale .lede .accent { color: var(--text-1); font-weight: 500; }
.finale-cta-row {
  display: flex; flex-direction: column; gap: 14px;
  align-items: flex-start;
}
@media (max-width: 900px) { .finale-cta-row { align-items: center; text-align: center; } }

/* ─── FLOATING TOAST ───────────────────────────────────── */
.toast {
  position: fixed; right: 24px; bottom: 24px;
  z-index: 200;
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border-hi);
  border-left: 3px solid var(--cy);
  border-radius: 10px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  min-width: 280px; max-width: 360px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}
.toast.visible {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.toast .head {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--cy);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.toast .head .bolt { color: var(--cy); margin-right: 4px; }
.toast .body {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--text-2); margin-bottom: 10px;
}
.toast .body .pair { color: var(--text-1); font-weight: 600; }
.toast .body .pct { color: var(--mint); font-weight: 600; }
.toast .cta {
  display: inline-flex; align-items: center;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--tg);
  font-weight: 600;
}
.toast .cta:hover { color: var(--cy); }
@media (max-width: 600px) {
  .toast { left: 16px; right: 16px; min-width: 0; max-width: none; bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; transform: none; }
}

/* ─── REVEAL animation (used by hero + section content) ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in, .reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ════════════════════════════════════════════════════════════════════
   2026-05-23 SEO PAGES SYNC — Token + Exchange page components
   Port from /Users/vladislav/Downloads/SEO Pages Synced.html.
   Brand tokens (--tg, --cy, --bg-*, mint/red/amber) inherited from
   the landing layer above; only adds page-specific composition.
   ──────────────────────────────────────────────────────────────── */

/* ─── Breadcrumbs ──────────────────────────────────────── */
.crumbs {
  padding: 24px var(--gutter, 24px) 12px;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.crumbs a { color: var(--text-3); transition: color 120ms ease; }
.crumbs a:hover { color: var(--cy); }
.crumbs .sep { color: var(--text-4); margin: 0 8px; }
.crumbs .current { color: var(--text-1); font-weight: 500; }

/* ─── Token / Exchange identity hero ───────────────────── */
.t-id { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.t-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.t-logo.sol {
  background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
  color: var(--bg-0);
}
.t-name {
  font-size: clamp(28px, 3.4vw, 36px); font-weight: 600;
  letter-spacing: -0.025em; line-height: 1;
  color: var(--text-1);
}
.t-sym {
  display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-top: 6px;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; color: var(--text-3); letter-spacing: 0.04em;
}
.t-sym .chip {
  padding: 2px 7px; border: 1px solid var(--border-hi);
  border-radius: 3px; text-transform: uppercase;
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--text-2);
}

.hero-blurb {
  font-size: 15.5px; color: var(--text-2);
  line-height: 1.6; max-width: 60ch; margin-top: 16px;
}
.hero-blurb b { color: var(--text-1); font-weight: 600; }

.hero-obs {
  margin-top: 14px;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; color: var(--text-3);
  letter-spacing: 0.02em;
  max-width: 60ch; line-height: 1.55;
  padding: 10px 14px;
  background: var(--surface);
  border-left: 2px solid var(--cy);
  border-radius: 0 4px 4px 0;
}
.hero-obs b { color: var(--text-2); font-weight: 500; }

/* SEO-page hero grid (token: 7fr/5fr, exchange: full-width) */
.seo-hero {
  padding: 8px var(--gutter, 24px) 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.seo-hero-grid {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: 48px; align-items: start;
}
@media (max-width: 1000px) { .seo-hero-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ─── Price block (token page right column) ────────────── */
.price-block {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  padding: 22px 24px;
}
.pb-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; color: var(--text-3);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.pb-head .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cy);
}
.pb-head .live .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cy); box-shadow: 0 0 8px var(--cy);
  animation: pulse 1.6s ease-in-out infinite;
}
.pb-head .realtime { color: var(--tg); font-weight: 600; }
.pb-head .realtime:hover { color: var(--cy); }
.pb-price {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 44px; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--text-1);
}
.pb-change {
  display: inline-flex; align-items: baseline; gap: 4px;
  margin-top: 8px;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px; font-weight: 600;
  color: var(--mint);
}
.pb-change.dn { color: var(--rose); }
.pb-change .lbl {
  color: var(--text-3); font-weight: 400; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pb-foot {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.pb-foot .l {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; color: var(--text-3);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.pb-foot .v {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px; font-weight: 600;
  color: var(--mint); margin-left: auto;
}

/* ─── Best arb anatomy card (flagship, shared) ─────────── */
.arb-card {
  margin: -30px var(--gutter, 24px) 0;
  position: relative; z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 24px 60px -20px rgba(0,0,0,0.5),
    0 0 80px -20px rgba(42, 171, 238, 0.12);
}
.arb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--cy);
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 16px;
}
.arb-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cy); box-shadow: 0 0 8px var(--cy);
  animation: pulse 1.6s ease-in-out infinite;
}
.arb-grid {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 1.4fr;
  gap: 22px; align-items: stretch;
}
@media (max-width: 800px) {
  .arb-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .arb-arrow { display: none; }
  .arb-summary { grid-column: 1 / -1; }
}
.arb-leg { padding: 0 4px; }
.arb-leg .lab {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; color: var(--text-3);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 8px;
}
.arb-leg.buy .lab { color: var(--mint); }
.arb-leg.sell .lab { color: var(--rose); }
.arb-leg .venue {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
}
.arb-leg .exlogo {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700; font-size: 11px;
  flex-shrink: 0;
}
.arb-leg .ex-name { font-weight: 600; font-size: 15px; letter-spacing: -0.005em; color: var(--text-1); }
.arb-leg .mt {
  margin-left: auto;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px; color: var(--text-4);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 6px; border: 1px solid var(--border-hi);
  border-radius: 3px;
}
.arb-leg .px {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--text-1);
}
.arb-arrow {
  display: grid; place-items: center;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 22px; color: var(--text-4);
}
.arb-summary {
  background: var(--bg-0); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.arb-spread {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 32px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--mint);
}
.arb-spread.h    { color: #5bc0eb; }
.arb-spread.amb  { color: var(--amber); }
.arb-profit {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; color: var(--text-2);
}
.arb-profit b { color: var(--text-1); font-weight: 600; }
.arb-profit .sub { color: var(--text-4); font-size: 11px; }

.arb-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--text-3);
  letter-spacing: 0.04em;
}
.arb-rail {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px; border-radius: 3px;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600;
}
.arb-rail.ok   { color: var(--mint); background: rgba(0,215,142,0.08); border: 1px solid rgba(0,215,142,0.3); }
.arb-rail.warn { color: var(--amber); background: rgba(242,181,83,0.08); border: 1px solid rgba(242,181,83,0.3); }
.arb-rail.bad  { color: var(--rose); background: rgba(255,87,119,0.08); border: 1px solid rgba(255,87,119,0.3); }
.arb-rail .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.arb-foot a {
  margin-left: auto; color: var(--tg); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.arb-foot a:hover { color: var(--cy); }

/* ─── SEO block (.seo-block) section shell ─────────────── */
section.seo-block {
  padding: 56px var(--gutter, 24px);
  border-top: 1px solid var(--border);
}
.seo-block-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.seo-block-head h2 {
  font-size: 24px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--text-1);
}
.seo-block-head .count {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--text-3);
  letter-spacing: 0.04em;
  padding: 2px 8px; border: 1px solid var(--border-hi);
  border-radius: 999px;
}
.seo-block-head .hint {
  margin-left: auto;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--text-4);
  letter-spacing: 0.04em;
}

/* ─── Listings table (per-venue spread rows) ───────────── */
.listings {
  display: grid;
  grid-template-columns: 32px 1fr 1fr 1fr 100px 120px;
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  overflow: hidden;
}
.listings-head { display: contents; }
.listings-head > div {
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; color: var(--text-4);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.listings-head .right { text-align: right; }
.listings-row { display: contents; }
.listings-row > div {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; min-width: 0;
}
.listings-row > div.right { justify-content: flex-end; text-align: right; }
.listings-row:last-child > div { border-bottom: 0; }
.listings-row:hover > div { background: rgba(103, 232, 249, 0.03); }
.listings-row .bullet {
  width: 5px; height: 5px; border-radius: 50%; background: var(--mint);
}
.listings-row .ex { display: flex; align-items: center; gap: 8px; }
.listings-row .ex .logo {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700; font-size: 9px;
  flex-shrink: 0;
}
.listings-row .ex .name { color: var(--text-1); font-weight: 500; }
.listings-row .px { color: var(--text-1); font-weight: 500; }
.listings-row .px.dim { color: var(--text-4); }
.listings-row .spread { color: var(--mint); font-weight: 600; }
.listings-row .spread.h    { color: #5bc0eb; }
.listings-row .spread.med  { color: var(--amber); }
.listings-row .spread.dim  { color: var(--text-4); font-weight: 400; }
.listings-row .pill {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600;
  padding: 2px 7px; border-radius: 3px;
}
.listings-row .pill.ok   { color: var(--mint); border: 1px solid rgba(0,215,142,0.35); background: rgba(0,215,142,0.08); }
.listings-row .pill.warn { color: var(--amber); border: 1px solid rgba(242,181,83,0.35); background: rgba(242,181,83,0.08); }
.listings-row .pill.bad  { color: var(--rose); border: 1px solid rgba(255,87,119,0.35); background: rgba(255,87,119,0.08); }

/* ─── Networks chips ───────────────────────────────────── */
.nets { display: flex; gap: 8px; flex-wrap: wrap; }
.net-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 8px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; color: var(--text-2);
  letter-spacing: 0.02em;
}
.net-chip .logo {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700; font-size: 10px;
  flex-shrink: 0;
}
.net-chip .lbl { color: var(--text-1); font-weight: 500; }
.net-chip .fee { margin-left: 6px; color: var(--text-4); font-size: 10.5px; }

/* ─── Stat grid (4-cell huge numbers, exchange page) ───── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
@media (max-width: 800px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > div:nth-child(2) { border-right: 0; }
}
.stats-grid > div {
  padding: 28px 26px;
  border-right: 1px solid var(--border);
}
.stats-grid > div:last-child { border-right: 0; }
.stats-grid .l {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; color: var(--text-3);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 12px;
}
.stats-grid .v {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 44px; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--text-1);
}
.stats-grid .v .unit { color: var(--cy); font-size: 0.5em; margin-left: 4px; }
.stats-grid .sub {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--text-4);
  letter-spacing: 0.04em; margin-top: 8px;
}

/* ─── Meta-pills strip (exchange page metadata) ────────── */
.meta-strip {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 16px;
}
.meta-pill {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; color: var(--text-3);
  letter-spacing: 0.04em;
}
.meta-pill .v { color: var(--text-1); font-weight: 600; }

/* ─── Outlinks (external link buttons) ─────────────────── */
.outlinks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.outlink {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 13px; color: var(--text-2); font-weight: 500;
}
.outlink:hover { border-color: var(--cy); color: var(--cy); }
.outlink.primary {
  border-color: var(--text-1);
  background: var(--text-1); color: var(--bg-0);
}
.outlink.primary:hover { background: var(--cy); border-color: var(--cy); color: var(--bg-0); }

/* ─── Coins grid (exchange detail top-N) ───────────────── */
.coins {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.coin {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.coin:hover { border-color: var(--cy); background: var(--surface-hi); }
.coin .rank {
  position: absolute; top: 12px; right: 14px;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; color: var(--text-4);
  letter-spacing: 0.04em;
}
.coin .top { display: flex; align-items: baseline; gap: 8px; }
.coin .sym {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.02em; color: var(--text-1);
}
.coin .px {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; color: var(--mint);
  margin-left: auto; padding-right: 22px;
}
.coin .nm {
  font-size: 12.5px; color: var(--text-3); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.coin .meta {
  margin-top: 6px;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; color: var(--text-4);
  letter-spacing: 0.04em;
  display: flex; gap: 10px;
}
.coin .meta b { color: var(--text-2); font-weight: 500; }

/* ─── Search input (exchange detail filter) ────────────── */
.seo-search {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  margin-bottom: 18px;
  max-width: 480px;
}
.seo-search input {
  background: transparent; border: 0; outline: 0;
  font-family: 'Geist', 'Inter', sans-serif;
  font-size: 13.5px; color: var(--text-1); flex: 1;
}
.seo-search input::placeholder { color: var(--text-4); }
.seo-search .ic { color: var(--text-3); }

/* ─── SEO FAQ accordion (separate from landing faq-v2) ── */
.faq-seo { max-width: 880px; border-top: 1px solid var(--border); }
.faq-seo details { border-bottom: 1px solid var(--border); }
.faq-seo summary {
  list-style: none; cursor: pointer;
  padding: 18px 4px;
  display: grid; grid-template-columns: 28px 1fr 28px;
  gap: 14px; align-items: baseline;
  font-size: 15px; font-weight: 500; color: var(--text-1);
}
.faq-seo summary::-webkit-details-marker { display: none; }
.faq-seo summary .q {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--cy); letter-spacing: 0.06em;
}
.faq-seo summary .pl {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-3); text-align: right;
  transition: transform 200ms ease;
}
.faq-seo details[open] summary .pl { transform: rotate(45deg); color: var(--cy); }
.faq-seo .a {
  padding: 0 0 18px 46px; max-width: 70ch;
  color: var(--text-2); font-size: 14px; line-height: 1.7;
}
.faq-seo .a b { color: var(--text-1); }

/* ─── Bottom CTA strip (reused token + exchange) ───────── */
.cta-strip {
  margin: 0 var(--gutter, 24px) var(--gutter, 24px);
  padding: 36px 32px;
  background:
    radial-gradient(600px circle at 80% 0%, rgba(42, 171, 238, 0.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px; align-items: center;
}
@media (max-width: 800px) { .cta-strip { grid-template-columns: 1fr; } }
.cta-strip h3 {
  font-size: 24px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--text-1); margin-bottom: 8px;
}
.cta-strip h3 .tg { color: var(--tg); }
.cta-strip p {
  color: var(--text-2); font-size: 14.5px; max-width: 50ch;
  line-height: 1.55;
}
.cta-strip .actions { display: flex; flex-direction: column; gap: 10px; }
.cta-strip .actions .meta {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--text-3);
  letter-spacing: 0.04em; text-align: center;
}
.cta-strip .actions .meta .dot { color: var(--mint); }

/* ─── Quality-gate banner (archive / contract conflict) ── */
.seo-banner {
  margin: 16px var(--gutter, 24px) 0;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13.5px; color: var(--text-1);
  line-height: 1.5;
}
.seo-banner.warn {
  background: rgba(242,181,83,0.08);
  border: 1px solid rgba(242,181,83,0.35);
  color: var(--amber);
}
.seo-banner.warn b { color: var(--text-1); font-weight: 600; }
