/* EventEdge hub — Mercury Fintech Trust meets Sacred Geometry Precision.
   Deep midnight velvet, amber gold alpha accent, emerald profit, guilloche hairlines.
   No acid neons: glows are soft and sparse. */
:root {
  /* Canvas & Elevated Surfaces (Mercury Dark Velvet) */
  --bg-void: #08090a;
  --panel-carbon: #0e111a;
  --panel-elevated: #141824;
  --panel-subtle: #1a2030;
  /* Hairline Borders & Structural Edges */
  --border-hairline: #1c2333;
  --border-focus: rgba(240, 180, 41, 0.35);
  --border-glow: rgba(255, 255, 255, 0.06);
  /* Sacred Geometry & Brand Accents */
  --accent-gold: #f0b429;
  --accent-gold-ink: #0a0b0e;
  --accent-cobalt: #3164f4;
  --profit-emerald: #10b981;
  --loss-ruby: #f43f5e;
  /* Typography (Clean High-Contrast Palette) */
  --text-pure: #f2f4f8;
  --text-mist: #d0d6e0;
  --text-fog: #8a8f98;
  --text-ash: #525866;
  /* Geometry Rules */
  --radius-btn: 8px;
  --radius-card: 14px;
  --radius-pill: 9999px;
  /* Fonts */
  --font-sans: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
  /* Legacy aliases (keep every existing rule working) */
  --bg: var(--bg-void);
  --panel: var(--panel-carbon);
  --panel-2: var(--panel-elevated);
  --line: var(--border-hairline);
  --line-soft: var(--border-hairline);
  --text: var(--text-mist);
  --muted: var(--text-fog);
  --accent: var(--accent-gold);
  --accent-ink: var(--accent-gold-ink);
  --green: var(--profit-emerald);
  --blue: var(--accent-cobalt);
  --red: var(--loss-ruby);
  --radius: var(--radius-btn);
  --max: 1080px;
  --font: var(--font-sans);
  --mono: var(--font-mono);
  --card: var(--panel-carbon);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  counter-reset: sec;
}

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 720px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
h1 { font-size: 2.6rem; letter-spacing: -0.03em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 12px; }
a { color: var(--accent); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8, 9, 10, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-in { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.topbar-in > .wrap, .wrap.topbar-in { min-width: 0; max-width: 1440px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.brand img { flex-shrink: 0; }
/* Mobile: logo only (wordmark hidden), compressed pill + CTA — no overflow at 390px */
@media (max-width: 559px) {
  .topbar-in { gap: 8px; }
  .brand span { display: none; }
  .lang { padding: 2px; }
  .lang-btn { padding: 5px 8px; font-size: 0.72rem; }
  .btn-sm { padding: 8px 10px; font-size: 0.8rem; }
}
/* Tight phones (<380px): RU CTA "Открыть в Telegram" must not squeeze the
   burger out — shorter label padding + hide wordmark earlier. */
@media (max-width: 379px) {
  .topbar-in { gap: 6px; }
  .brand span { display: none; }
  .btn-sm { padding: 7px 8px; font-size: 0.74rem; }
  .lang-btn { padding: 4px 7px; font-size: 0.7rem; }
  .burger { width: 34px; height: 34px; }
}
.topnav { display: none; gap: 12px; margin: 0 auto; }
.topnav a {
  color: var(--muted); text-decoration: none; font-size: 0.86rem; line-height: 1.25;
  white-space: nowrap;
}
.topnav a:hover { color: var(--text); }
.topbar-cta { margin-left: auto; flex-shrink: 0; }
/* ---------- Mobile burger + dropdown nav (<1320px) ----------
   With 9 navigation links (including Partners / Партнёрам), the Russian
   row needs ~1320px+ to comfortably sit next to brand, lang switch, and CTA.
   Below 1320px, the burger owns navigation — guaranteed zero horizontal overflow,
   no cropped CTA button, and clean 1-row layout. */
/* Base burger geometry (hidden on desktop by the breakpoint above). */
.burger {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-size: 1.15rem; line-height: 1; cursor: pointer;
}
@media (max-width: 1319px) {
  .burger { display: inline-flex; }
}
@media (min-width: 1320px) {
  .topnav { display: flex; }
  .mnav.open { display: none; }
}
.burger:hover { border-color: var(--border-focus); }
.burger[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.mnav { display: none; }
.mnav.open { display: grid; }
.mnav {
  gap: 2px; padding: 8px 16px 14px;
  background: rgba(8, 9, 10, 0.98);
  border-bottom: 1px solid var(--line);
}
.mnav a {
  color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 600;
  padding: 11px 4px; border-bottom: 1px solid var(--line-soft);
  min-height: 44px; display: flex; align-items: center;
}
.mnav a:last-child { border-bottom: 0; }
.mnav a[aria-current="page"] { color: var(--accent); }
/* ---------- Language switcher (Refero/Linear-style pill group) ---------- */
.lang {
  display: inline-flex; gap: 2px; flex-shrink: 0;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; margin-left: auto;
}
.lang-btn {
  border: 0; background: none; color: var(--muted);
  font: inherit; font-size: 0.76rem; font-weight: 700;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.lang-btn.active { background: var(--accent-gold); color: var(--accent-gold-ink); }
.topbar-cta { margin-left: 0; }

/* ---------- Buttons: Alchemical Gold primary, hairline ghost ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
/* Noble gold gradient (amber depth, no acid neon) + soft sheen on hover */
.btn-primary { background: linear-gradient(180deg, #f6c945 0%, var(--accent-gold) 55%, #d99a17 100%); color: var(--accent-gold-ink); }
.btn-primary:hover { background: linear-gradient(180deg, #f6c945 0%, var(--accent-gold) 55%, #d99a17 100%); box-shadow: 0 4px 20px rgba(240, 180, 41, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn .arrow { font-weight: 400; }
/* Secondary: transparent / elevated panel, 1px guilloche hairline, mist text */
.btn-ghost { border: 1px solid var(--border-hairline); color: var(--text-mist); background: transparent; }
.btn-ghost:hover { border-color: var(--border-focus); background: var(--panel-subtle); }
.btn-sm { padding: 8px 14px; font-size: 0.88rem; white-space: nowrap; }
.btn-cobalt { background: var(--accent-cobalt); color: #fff; }
.btn-cobalt:hover { background: var(--accent-cobalt); box-shadow: 0 4px 20px rgba(49, 100, 244, 0.3); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 20px 0 20px; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
/* Terminal microgrid: faint 1px lines, GPU-cheap, no blur. Replaces the old
   soft radial glow (removed: read as AI-slop purple haze). */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 20px 0 18px; }
  .hero-grid { grid-template-columns: 1.12fr 0.88fr; gap: 24px; align-items: start; }
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pill {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 13px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel);
}
.pill-live { color: var(--text); border-color: var(--line); background: var(--panel-2); }
/* Clickable pill (Dune proof in the hero) — same geometry, link behavior. */
.pill-link { color: var(--text); text-decoration: none; cursor: pointer; }
.pill-link:hover { border-color: var(--border-focus); background: var(--panel-subtle); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(16, 185, 129, 0.7); flex-shrink: 0; }
h1 { font-size: clamp(2rem, 7.2vw, 3.1rem); line-height: 1.08; letter-spacing: -0.025em; max-width: 16ch; text-wrap: balance; color: var(--text-pure); }
h2 { color: var(--text-pure); }
h3 { color: var(--text-pure); }
.lede { font-size: 1.08rem; color: var(--text-mist); max-width: 32em; text-wrap: pretty; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; padding: 0; }
.trust li { position: relative; padding-left: 22px; font-size: 0.9rem; color: var(--text-mist); font-weight: 550; }
.trust li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }
.cta-micro { color: var(--muted); font-size: 0.85rem; margin: 0 0 10px; }
.hero-note { color: var(--muted); font-size: 0.92rem; max-width: 38em; margin-bottom: 0; }
.hero-visual { display: flex; justify-content: center; align-items: start; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 20px 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--line-soft);
}
.stats > div { margin: 0; }
.stats dd { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats dt { color: var(--muted); font-size: 0.82rem; order: 2; }
.stats > div { display: flex; flex-direction: column; }
.stats dd { order: 1; }
.stats dt { order: 2; }

/* ---------- Sections ---------- */
.section { padding: 44px 0; scroll-margin-top: 66px; counter-increment: sec; }
.section-alt { background: var(--panel); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px;
}
.eyebrow::before { content: "0" counter(sec) " / "; color: var(--muted); }
.sec-sub { color: var(--muted); max-width: 640px; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--panel-carbon);
  border: 1px solid var(--border-hairline);
  border-top: 2px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 18px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); background: var(--panel-subtle); border-color: var(--border-focus); border-top-color: var(--accent-gold); box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6); }
.section-alt .card { background: var(--bg-void); }
.section-alt .card:hover { background: var(--panel-carbon); }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.card h3 { margin-top: 10px; }
.ic { width: 30px; height: 30px; color: var(--accent); display: block; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .steps .card { position: relative; }
  .steps .card:not(:last-child)::after {
    content: "→"; position: absolute; right: -16px; top: 44px;
    color: var(--muted); font-size: 1rem; width: 16px; text-align: center;
  }
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-gold); color: var(--accent-gold-ink);
  font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums;
}

/* ---------- Real screenshots ---------- */
.phones {
  display: grid; gap: 18px; margin-top: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}
.shot {
  margin: 0; max-width: 300px; width: 100%; justify-self: center;
}
.shot img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover; object-position: top;
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  background: #f2f4f8;
}
.shot figcaption { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 10px 4px 2px; }
.shot-frame {
  margin: 0; max-width: 300px; width: 100%;
}
/* Desktop: compact device so the whole Hero fits in one viewport */
@media (min-width: 900px) {
  .shot-frame { max-width: 236px; }
  .shot-tabs { padding: 4px; margin-bottom: 6px; }
  .shot-tab { padding: 6px 4px; font-size: 0.78rem; }
  .phone { border-radius: 36px; padding: 9px; }
  .phone-island { top: 18px; width: 78px; height: 19px; }
  .phone-screen { height: 340px; border-radius: 26px; }
  .phone-home { bottom: 4px; width: 88px; }
  .shot-frame figcaption { display: none; }
  .hero-note { display: none; }
  /* Right column is the tall one: pull stats/ticker up under the copy */
  .hero .stats { margin-top: 12px; padding-top: 10px; }
  .stats dd { font-size: 1.1rem; }
  .live-ticker { margin-top: 10px; padding: 8px 12px; font-size: 0.82rem; }
}
.shot-tabs {
  display: flex; gap: 6px; margin-bottom: 10px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px;
}
.shot-tab {
  flex: 1; border: 0; border-radius: 8px; padding: 9px 4px;
  background: none; color: var(--muted); font: inherit;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.shot-tab.active { background: var(--accent-gold); color: var(--accent-gold-ink); }
.phone {
  width: 100%;
  position: relative;
  background: #05070a; border: 1px solid #1c2333;
  border-radius: 44px; padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
/* Dynamic Island: centred speaker pill above the screen */
.phone-island {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 24px; border-radius: 999px;
  background: #000; border: 1px solid #1c2333; z-index: 2;
  pointer-events: none;
}
.phone-island::after {
  content: ""; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: #101623;
}
/* Home Bar indicator at the bottom bezel */
.phone-home {
  position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.22); z-index: 2;
  pointer-events: none;
}
.phone-screen {
  height: 440px;
  overflow: hidden;
  border-radius: 32px; background: #0e111a;
  position: relative;
}
/* Skeleton shimmer while the next screenshot preloads (dark velvet) */
.phone-screen::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, #0e111a 40%, #1a2030 50%, #0e111a 60%);
  background-size: 200% 100%;
  animation: phone-sheen 1.4s linear infinite;
}
@keyframes phone-sheen { 0% { background-position: 180% 0; } 100% { background-position: -80% 0; } }
.phone-screen img {
  position: relative; z-index: 1;
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  background: #0e111a;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Crossfade state driven from app.js while the next shot preloads */
.phone-screen img.shot-fade { opacity: 0; transform: scale(0.985); }
.shot-frame { margin-inline: auto; }
.shot-frame figcaption { color: var(--muted); font-size: 0.82rem; text-align: center; padding: 10px 4px 2px; }
@media (max-width: 420px) {
  .phone-screen { height: 440px; }
}

/* ---------- Pricing ---------- */
.price-card { position: relative; }
/* Highlight card for the new marquee features (gas / Blitz): gold left rail. */
.card-hl { border-left: 3px solid var(--accent-gold); }
p.flag {
  display: inline-block; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-gold-ink); background: var(--accent-gold);
  border-radius: 6px; padding: 3px 10px; margin: 0 0 10px;
}
.ticks { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 9px; }
.ticks li { color: var(--text); font-size: 0.93rem; padding-left: 26px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--profit-emerald); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { margin-top: 22px; display: grid; gap: 10px; }
.faq-item { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.15s ease; }
.section-alt .faq-item { background: var(--bg); }
.faq-item.open { border-color: var(--accent); }
.faq-q {
  width: 100%; text-align: left;
  background: none; border: 0; color: var(--text);
  font-size: 1rem; font-weight: 600; font-family: inherit;
  padding: 15px 16px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after {
  content: "+"; color: var(--accent); font-size: 1.35rem; font-weight: 400; line-height: 1;
  flex-shrink: 0; transition: transform 0.18s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 16px 16px; color: var(--muted); font-size: 0.95rem; }
.faq-a p { margin: 0; }

/* ---------- Terms ---------- */
.terms p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Closing CTA band ---------- */
.cta-band { border-top: 1px solid var(--line); background: var(--panel); scroll-margin-top: 66px; }
.cta-in {
  display: grid; gap: 18px; grid-template-columns: 1fr;
  padding-top: 36px; padding-bottom: 36px; align-items: center;
}
.cta-in h2 { margin-bottom: 6px; }
.cta-in p { color: var(--muted); margin: 0; max-width: 36em; }
.btn-lg { padding: 15px 26px; font-size: 1.06rem; justify-self: start; }
@media (min-width: 760px) {
  .cta-in { grid-template-columns: 1fr auto; }
  .btn-lg { justify-self: end; }
}

/* ---------- Sticky mobile bottom bar (<768px) ---------- */
.sticky-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14, 17, 26, 0.96);
  border-top: 1px solid var(--border-hairline);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translateY(110%); transition: transform 0.25s ease;
}
body.show-sticky .sticky-bar { transform: none; }
.sticky-bar-t { font-size: 0.82rem; font-weight: 600; color: var(--text); min-width: 0; }
.sticky-bar-btn { flex-shrink: 0; }
@media (max-width: 767px) {
  body.show-sticky .sticky-bar { display: flex; }
  body.show-sticky .footer { padding-bottom: 76px; }
}

/* ---------- Contact form ---------- */
.contact-form { margin-top: 22px; display: grid; gap: 14px; }
.contact-form .cta-row { margin: 2px 0 0; }
.field { display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.field input, .field textarea {
  background: var(--panel-elevated); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-btn); color: var(--text-pure);
  font: inherit; padding: 12px 14px; width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--border-focus); }
.form-err { color: var(--loss-ruby); font-size: 0.9rem; margin: 0; }
.form-note { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; } }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; flex-wrap: wrap; }
.footer-brand p { width: 100%; font-weight: 400; color: var(--muted); font-size: 0.88rem; margin: 4px 0 0; }
.footer-links { display: grid; gap: 10px; font-size: 0.92rem; align-content: start; }
.foot-mail { color: var(--muted); }
.footer-dir { display: grid; gap: 10px; align-content: start; }
@media (min-width: 760px) { .footer-dir { text-align: right; justify-items: end; } }
.foot-dir { margin: 0; }
.dir-link {
  display: inline-block; font-size: 0.88rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px;
  transition: border-color 0.15s ease;
}
.dir-link:hover { border-color: var(--accent); }
.foot-copy { color: var(--muted); font-size: 0.84rem; margin: 0; }

/* ---------- Calculator ---------- */
.calc-card { margin-top: 22px; }
.calc-top { display: flex; justify-content: flex-end; }
.calc-lang {
  display: inline-flex; gap: 2px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px;
}
.calc-lang-btn {
  border: 0; background: none; color: var(--muted);
  font: inherit; font-size: 0.78rem; font-weight: 700;
  padding: 5px 13px; border-radius: 999px; cursor: pointer;
}
.calc-lang-btn.active { background: var(--accent-gold); color: var(--accent-gold-ink); }
.calc-deposit {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; font-weight: 650; margin-top: 10px; cursor: pointer;
}
.calc-value {
  color: var(--text-pure); font-size: 1.4rem; font-weight: 600;
  letter-spacing: -0.025em; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calc-range {
  width: 100%; margin: 14px 0 6px; padding: 0;
  -webkit-appearance: none; appearance: none;
  height: 8px; border-radius: 999px;
  background: var(--border-hairline);
  outline-offset: 4px; cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-gold); border: 3px solid var(--bg-void);
  box-shadow: 0 0 0 2px var(--accent-gold), 0 4px 20px rgba(240, 180, 41, 0.25);
  cursor: grab;
}
.calc-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-gold); border: 3px solid var(--bg-void);
  box-shadow: 0 0 0 2px var(--accent-gold), 0 4px 20px rgba(240, 180, 41, 0.25);
  cursor: grab;
}
.calc-range::-moz-range-track {
  height: 8px; border-radius: 999px; background: var(--border-hairline);
}
.calc-range::-moz-range-progress {
  height: 8px; border-radius: 999px; background: var(--accent-gold);
}
.calc-scale {
  display: flex; justify-content: space-between;
  color: var(--muted); font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
/* Deposit presets under the home calculator slider. */
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.calc-preset {
  border: 1px solid var(--border-hairline); background: var(--panel-elevated);
  color: var(--text-fog); border-radius: var(--radius-pill);
  padding: 7px 14px; font: inherit; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; font-variant-numeric: tabular-nums; min-height: 36px;
}
.calc-preset:hover { color: var(--text-mist); border-color: var(--border-focus); }
.calc-preset.active { color: var(--accent-gold-ink); background: var(--accent-gold); border-color: var(--accent-gold); }
.calc-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin: 16px 0 8px; }
.calc-chips { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .calc-chips { grid-template-columns: 1fr 1fr 1fr; }
}
.calc-chip {
  text-align: left; font: inherit; color: var(--text-mist);
  background: var(--panel-elevated); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-btn); padding: 10px 12px;
  display: grid; gap: 2px; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.calc-chip:hover { border-color: var(--border-focus); background: var(--panel-subtle); }
.calc-chip.active { border-color: var(--accent-gold); box-shadow: inset 0 0 0 1px var(--accent-gold); }
.calc-chip-t { font-weight: 700; font-size: 0.95rem; }
.calc-chip-d { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.calc-chip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* Yield badge on each style chip — links the chip to its whale card above */
.calc-badge {
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
  color: var(--profit-emerald); background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 6px; padding: 2px 8px;
  font-variant-numeric: tabular-nums;
}
.calc-chip.active .calc-badge { box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
@media (max-width: 359px) {
  .calc-results { grid-template-columns: 1fr; }
}
.calc-res {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 8px;
  display: grid; gap: 4px; text-align: center; min-width: 0;
}
.calc-res-l { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.calc-res-v {
  color: var(--text-pure); font-weight: 600;
  font-size: clamp(1.35rem, 7vw, 1.7rem); letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.calc-disc { color: var(--muted); font-size: 0.8rem; margin: 14px 0 0; }
.calc-cta { margin-top: 14px; width: 100%; justify-content: center; justify-self: stretch; }

/* ---------- Mercury finance typography ----------
   Big white integer + smaller emerald/fog cents + delta pill. */
.stat-big {
  color: var(--text-pure); font-weight: 600; letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.stat-cents { font-size: 0.68em; font-weight: 600; color: var(--text-fog); }
.stat-delta {
  display: inline-block; font-size: 0.78em; font-weight: 700; white-space: nowrap;
  border-radius: 6px; padding: 1px 7px; margin-left: 6px; vertical-align: baseline;
  font-variant-numeric: tabular-nums;
}
.delta-up { color: var(--profit-emerald); background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); }
.delta-down { color: var(--loss-ruby); background: rgba(244, 63, 94, 0.08); border: 1px solid rgba(244, 63, 94, 0.3); }
/* Segmented win-rate bar (Mercury credit-card style) + micro legend */
.winbar { height: 6px; border-radius: 999px; background: var(--border-hairline); overflow: hidden; margin-top: 8px; }
.winbar > span { display: block; height: 100%; border-radius: 999px; background: var(--profit-emerald); }
.winlegend { display: flex; gap: 12px; margin-top: 6px; font-size: 0.74rem; color: var(--text-fog); font-variant-numeric: tabular-nums; }
.winlegend .k-win { color: var(--profit-emerald); }
.winlegend .k-loss { color: var(--text-ash); }
/* 3-column whale micro-grid: 30d / all-time / avg ticket */
.micro3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 0; }
.micro3 > div { background: var(--panel-elevated); border: 1px solid var(--border-hairline); border-radius: 8px; padding: 8px 6px; min-width: 0; text-align: center; }
.micro3 dt { color: var(--text-fog); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; min-height: 2.5em; }
.micro3 dd { margin: 0; font-weight: 600; font-size: 0.92rem; color: var(--text-pure); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.micro3 dd.pos { color: var(--profit-emerald); }

/* ---------- Whale leaderboard ---------- */
#whales, #compare, #security, #calculator { scroll-margin-top: 66px; }
.whales-grid { align-items: stretch; }
.whale-card { display: flex; flex-direction: column; gap: 14px; }
.whale-hot { border-top-color: var(--accent-gold); }
.whale-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.whale-ava {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px;
}
.whale-id { min-width: 0; flex: 1; }
.whale-id h3 { margin: 0; font-size: 1.02rem; overflow-wrap: anywhere; }
/* Compact verified pill under the whale name (card-level twin of the modal .vbadge) */
.whale-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.vbadge-sm {
  font-size: 0.68rem; font-weight: 700; white-space: nowrap;
  color: var(--profit-emerald); background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.4); border-radius: 999px; padding: 1px 8px;
}
.whale-addr {
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
  overflow-wrap: anywhere;
}
.whale-badge {
  flex-shrink: 0; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-gold); border: 1px solid var(--accent-gold);
  border-radius: 6px; padding: 3px 9px;
}
.whale-badge-hot { background: var(--accent-gold); color: var(--accent-gold-ink); }
.whale-stats { display: grid; gap: 8px; margin: 0; }
.whale-stats > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--line-soft); padding-top: 8px;
}
.whale-stats dt { color: var(--muted); font-size: 0.82rem; }
.whale-stats dd {
  margin: 0; font-weight: 800; font-size: 1.02rem;
  font-variant-numeric: tabular-nums; text-align: right;
  overflow-wrap: anywhere;
}
.whale-stats dd.pos { color: var(--profit-emerald); }
.whale-stats dd small { font-weight: 700; font-size: 0.82em; }
.whale-cta { display: grid; gap: 8px; margin-top: auto; }
.whale-cta .btn-primary { justify-content: center; }
.whale-cta .btn-sm { justify-content: center; }
.fineprint { color: var(--muted); font-size: 0.8rem; margin: 16px 0 0; max-width: 640px; }

/* ---------- Manual vs copy comparison ---------- */
.cmp-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 640px) { .cmp-grid { grid-template-columns: 1fr 1fr; } }
.cmp-card { margin: 0; }
.cmp-new { border-top-color: var(--profit-emerald); }
.cmp-flag {
  display: inline-block; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 6px; padding: 3px 10px; margin: 0 0 4px;
}
.cmp-flag-old { color: var(--text-fog); background: var(--panel-elevated); border: 1px solid var(--border-hairline); }
.cmp-flag-new { color: var(--accent-gold-ink); background: var(--profit-emerald); }
.cmp-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.cmp-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; }
.cmp-x { color: var(--loss-ruby); font-weight: 700; flex-shrink: 0; }
.cmp-ok { color: var(--profit-emerald); font-weight: 700; flex-shrink: 0; }
.cmp-old li { color: var(--muted); }

/* ---------- Scroll reveal (Mercury/Linear: light, snappy, once) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hub pages: page hero, toolbar, dossiers ---------- */
.page-hero { padding: 44px 0 8px; }
.page-hero h1 { max-width: 20ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 0.85rem; margin: 0 0 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs .here { color: var(--text); font-weight: 600; }
.toolbar { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 760px) { .toolbar { grid-template-columns: 1.2fr auto; align-items: center; } }
.search { position: relative; }
.search input {
  width: 100%; background: var(--panel-elevated); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-btn); color: var(--text-pure); font: inherit;
  padding: 12px 14px 12px 40px;
}
.search input:focus { outline: none; border-color: var(--border-focus); }
.search input::placeholder { color: var(--muted); }
.search-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1rem; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  border: 1px solid var(--border-hairline); background: var(--panel-elevated); color: var(--text-fog);
  border-radius: var(--radius-pill); padding: 8px 14px; font: inherit; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.fchip:hover { color: var(--text-mist); border-color: var(--border-focus); background: var(--panel-subtle); }
.fchip.active { color: var(--accent-gold-ink); background: var(--accent-gold); border-color: var(--accent-gold); }
.dossier { display: flex; flex-direction: column; gap: 12px; }
.dossier-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* Hero PnL figure inside a dossier card */
.dossier-hero { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; padding: 2px 0; }
.dossier-hero .stat-big { font-size: 1.6rem; }
.open-pos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; padding: 10px 12px; background: var(--panel-elevated); border: 1px solid var(--border-hairline); border-radius: 8px; font-size: 0.86rem; color: var(--text-fog); overflow-wrap: anywhere; }
.risk { margin-left: auto; flex-shrink: 0; text-align: right; }
.risk-v { display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; border-radius: 6px; padding: 3px 9px; }
.risk-low { color: var(--profit-emerald); border: 1px solid var(--profit-emerald); }
.risk-mid { color: var(--accent-gold); border: 1px solid var(--accent-gold); }
.dossier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.dossier-grid > div { background: var(--panel-elevated); border: 1px solid var(--border-hairline); border-radius: 8px; padding: 9px 10px; min-width: 0; }
.dossier-grid dt { color: var(--text-fog); font-size: 0.74rem; margin-bottom: 2px; }
.dossier-grid dd { margin: 0; font-weight: 600; font-size: 0.95rem; color: var(--text-pure); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dossier-grid dd.pos { color: var(--profit-emerald); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--profit-emerald); margin-right: 8px; animation: pulse-live 2.2s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
/* Emerald/ruby breathing glow for LIVE indicators (ticker + feed headings) */
@keyframes pulse-live {
  0%, 100% { background-color: var(--profit-emerald); box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); opacity: 1; }
  50% { background-color: var(--profit-emerald); box-shadow: 0 0 14px rgba(16, 185, 129, 0.4); opacity: 0.75; }
}
@keyframes pulse-live-ruby {
  0%, 100% { background-color: var(--loss-ruby); box-shadow: 0 0 6px rgba(244, 63, 94, 0.4); opacity: 1; }
  50% { background-color: var(--loss-ruby); box-shadow: 0 0 14px rgba(244, 63, 94, 0.4); opacity: 0.75; }
}
/* ---------- tradePulse: light wave on fresh whale fills ----------
   transform/opacity only (GPU, 60fps). Applied by JS to the freshest
   cards/rows right after a live refresh; removed on animationend.
   Color follows the side: emerald wash for YES/BUY, ruby for NO/SELL. */
@keyframes tradePulse {
  0% { box-shadow: 0 0 0 0 var(--tp-glow, rgba(16, 185, 129, 0.55)); }
  100% { box-shadow: 0 0 0 14px transparent; }
}
.trade-pulse {
  --tp-glow: rgba(16, 185, 129, 0.55);
  animation: tradePulse 1.1s ease-out 1;
  border-color: var(--profit-emerald);
}
.trade-pulse-no {
  --tp-glow: rgba(244, 63, 94, 0.55);
  border-color: var(--loss-ruby);
}
.feed { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.feed li {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 14px; font-size: 0.86rem;
}
.section-alt .feed li { background: var(--bg); }
.feed time { color: var(--muted); font-family: var(--mono); font-size: 0.76rem; flex-shrink: 0; }
.feed .fw { font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.feed .fmain { min-width: 0; overflow-wrap: anywhere; flex: 1 1 160px; }
.feed .side-yes { color: var(--profit-emerald); font-weight: 700; }
.feed .side-no { color: var(--loss-ruby); font-weight: 700; }
.feed .famt { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; flex-shrink: 0; }
.empty-note { color: var(--muted); font-size: 0.9rem; margin: 18px 0 0; }

/* ---------- Live activity marquee (home hero + whales page) ----------
   GPU-only animation (translateX), duplicated track for a seamless loop.
   Static text when JS is off; paused under reduced-motion. */
.marquee {
  margin-top: 14px; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.marquee-track {
  display: inline-flex; gap: 0; white-space: nowrap;
  padding: 9px 0; font-size: 0.84rem; color: var(--text);
  animation: marquee-x 42s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { padding: 0 22px; font-variant-numeric: tabular-nums; }
.marquee-item .fw { font-weight: 700; }
.marquee-item .famt { color: var(--accent); font-weight: 700; }
.marquee-item .side-yes { color: var(--profit-emerald); font-weight: 700; }
.marquee-item .side-no { color: var(--loss-ruby); font-weight: 700; }
@keyframes marquee-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Live ticker (home, under hero stats) ---------- */
.live-ticker {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  margin-top: 14px; padding: 10px 14px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  font-size: 0.86rem;
}
.live-ticker:hover { border-color: var(--accent); }
.live-ticker .live-dot { margin-right: 0; flex-shrink: 0; }
.live-ticker .live-dot.red { background: var(--loss-ruby); animation-name: pulse-live-ruby; }
.live-tag { font-weight: 800; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--loss-ruby); flex-shrink: 0; }
.live-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; transition: opacity 0.25s ease; }
.live-txt.tick-fade { opacity: 0; }
.live-go { color: var(--accent); font-weight: 700; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 559px) { .live-go { display: none; } }

/* ---------- LIVE / SAMPLE feed badge (whale stream state) ----------
   Text comes from JS i18n (feed_badge_live / feed_badge_sample); the
   colors re-use the pulse-live keyframes language: emerald = backend
   answered, fog = built-in illustrative samples. */
.feed-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.feed-head .marquee { margin-top: 0; flex: 1 1 100%; }
.feed-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; white-space: nowrap;
  border-radius: var(--radius-pill); padding: 3px 12px;
  border: 1px solid var(--border-hairline);
}
.feed-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.feed-badge-live { color: #06130c; background: var(--profit-emerald); border-color: var(--profit-emerald); }
.feed-badge-live::before { background: #06130c; animation: pulse-live 2.2s ease-in-out infinite; }
.feed-badge-sample { color: var(--text-fog); background: var(--panel-elevated); }
.feed-badge-sample::before { background: var(--text-fog); opacity: 0.7; }
.feed-note { color: var(--muted); font-size: 0.8rem; }
h2 .feed-badge { font-size: 0.68rem; vertical-align: middle; margin-left: 8px; }

/* ---------- Whale dossier modal: matte blur backdrop, carbon card, gold corner ---------- */
.modal-ov {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(4, 5, 9, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-ov.open { display: flex; }
.modal {
  position: relative;
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: var(--panel-carbon); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card) var(--radius-card) 0 0; padding: 20px 18px 24px;
}
/* Golden corner rosette */
.modal::before {
  content: ""; position: absolute; top: 0; right: 0; width: 72px; height: 72px;
  border-top: 2px solid var(--accent-gold); border-right: 2px solid var(--accent-gold);
  border-top-right-radius: var(--radius-card); opacity: 0.85; pointer-events: none;
}
@media (min-width: 640px) {
  .modal-ov { align-items: center; padding: 24px; }
  .modal { border-radius: var(--radius-card); }
}
.modal-top { display: flex; align-items: flex-start; gap: 12px; }
.modal-x {
  margin-left: auto; flex-shrink: 0; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--border-hairline); background: var(--panel-elevated);
  color: var(--text-mist); font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.modal-x:hover { border-color: var(--border-focus); }
/* Verified Whale rosette badge */
.vbadge { color: var(--accent-gold-ink); background: var(--accent-gold); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.03em; border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap; }
.addr-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.addr-row code { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-fog); overflow-wrap: anywhere; }
.mini-btn {
  border: 1px solid var(--border-hairline); background: var(--panel-elevated); color: var(--text-mist);
  border-radius: var(--radius-btn); padding: 6px 12px; font: inherit; font-size: 0.8rem;
  font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.mini-btn:hover { border-color: var(--border-focus); background: var(--panel-subtle); }
/* YES / NO outcome badges */
.side-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; border-radius: 6px; padding: 1px 8px; white-space: nowrap; }
.side-yes-bg { color: var(--profit-emerald); background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.35); }
.side-no-bg { color: var(--loss-ruby); background: rgba(244, 63, 94, 0.08); border: 1px solid rgba(244, 63, 94, 0.35); }
.modal-cta { margin-top: 16px; width: 100%; justify-content: center; }

/* ---------- Social proof + copy toasts ---------- */
.social-toast {
  position: fixed; left: 12px; bottom: 12px; z-index: 55;
  display: none; align-items: center; gap: 10px; max-width: min(340px, calc(100vw - 24px));
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; font-size: 0.82rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.social-toast.show { display: flex; }
.social-toast p { margin: 0; min-width: 0; }
.social-toast .toast-x {
  margin-left: auto; flex-shrink: 0; border: 0; background: none;
  color: var(--muted); font-size: 1rem; cursor: pointer; padding: 2px 6px;
}
.social-toast .toast-x:hover { color: var(--text); }
.copy-toast {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 70;
  display: none; background: var(--profit-emerald); color: #06130c;
  font-weight: 700; font-size: 0.86rem; border-radius: 999px; padding: 10px 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); white-space: nowrap;
  max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}
.copy-toast.show { display: block; }
@media (max-width: 767px) {
  body.show-sticky .social-toast { bottom: 76px; }
}

/* ---------- Hub: Safe diagram (pure CSS/SVG, no libs) ---------- */
.flow { display: grid; gap: 0; margin-top: 22px; }
.fnode {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
}
.section-alt .fnode { background: var(--bg); }
.fnode h3 { margin: 0 0 4px; font-size: 1rem; }
.fnode p { margin: 0; font-size: 0.9rem; }
.fnode-you { border-color: var(--profit-emerald); }
.fnode-safe { border-color: var(--accent-gold); }
.fnode-svc { border-color: var(--accent-cobalt); }
.farrow { text-align: center; color: var(--muted); font-size: 1.2rem; line-height: 1; padding: 6px 0; }
.farrow small { display: block; font-size: 0.74rem; margin-top: 2px; }
.fnode .tag { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 5px; padding: 2px 8px; margin-bottom: 8px; }
.tag-you { color: var(--profit-emerald); border: 1px solid var(--profit-emerald); }
.tag-safe { color: var(--accent-gold-ink); background: var(--accent-gold); }
.tag-svc { color: var(--accent-cobalt); border: 1px solid var(--accent-cobalt); }
@media (min-width: 760px) {
  .flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; }
  .farrow { align-self: center; padding: 0 8px; transform: rotate(-90deg); }
}

/* ---------- Hub: risk table ----------
   Wide tables scroll INSIDE their own card on phones (overflow-x on the
   wrapper) — the page itself must never gain a horizontal scrollbar. */
.rtable-wrap { overflow-x: auto; max-width: 100%; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table.rtable { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.rtable th, .rtable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.rtable thead th { background: var(--panel-2); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.section-alt thead th { background: var(--panel); }
.rtable tbody tr:last-child th, .rtable tbody tr:last-child td { border-bottom: 0; }
.rtable tbody th { font-weight: 700; }
.rtable td.good { color: var(--profit-emerald); font-weight: 700; }
.rtable td.bad { color: var(--loss-ruby); }
.rtable td.mid { color: var(--accent); }
.scan-links { display: grid; gap: 8px; margin-top: 18px; }
.scan-links a {
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; text-decoration: none; color: var(--text); font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.scan-links a:hover { border-color: var(--accent); }
.scan-links code { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

/* ---------- Hub: simulator ---------- */
.sim-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 960px) { .sim-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.sim-ctl { display: grid; gap: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn {
  flex: 1 1 auto; border: 1px solid var(--border-hairline); background: var(--panel-elevated);
  color: var(--text-fog); border-radius: var(--radius-btn); padding: 9px 10px; font: inherit;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.seg-btn:hover { background: var(--panel-subtle); color: var(--text-mist); }
.seg-btn.active { color: var(--accent-gold-ink); background: var(--accent-gold); border-color: var(--accent-gold); }
.sim-out { display: grid; gap: 10px; align-content: start; }
.sim-hero {
  background: var(--panel-carbon); border: 1px solid var(--border-hairline); border-radius: var(--radius-card);
  padding: 16px; text-align: center;
}
.sim-hero-v { color: var(--text-pure); font-weight: 600; font-size: clamp(1.8rem, 9vw, 2.4rem); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.sim-hero-l { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.sim-rows { display: grid; gap: 8px; margin: 0; }
.sim-rows > div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 8px; font-size: 0.9rem; }
.sim-rows dt { color: var(--muted); }
.sim-rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.sim-rows dd.neg { color: var(--loss-ruby); }
#simChart { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); touch-action: pan-y; }
.sim-out { position: relative; }
/* Floating micro-tooltip over the chart (Day X · Balance $Y) */
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--panel-elevated); border: 1px solid var(--border-hairline);
  border-radius: 8px; padding: 6px 10px; font-size: 0.78rem; white-space: nowrap;
  color: var(--text-mist); font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -115%);
}
.chart-tip b { color: var(--text-pure); }
/* Springy balance number while the slider moves */
.calc-value.tick-spring, .sim-hero-v.tick-spring { animation: num-spring 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes num-spring { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* ---------- Hub: guide steps + searchable FAQ ---------- */
.gsteps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .gsteps { grid-template-columns: 1fr 1fr 1fr; } }
.gsteps .card { display: grid; gap: 8px; align-content: start; }
.gsteps .step-n { width: 34px; height: 34px; font-size: 1rem; }
.faq-search { margin-top: 20px; }
.faq-count { color: var(--muted); font-size: 0.84rem; margin: 10px 0 0; }

/* ---------- Hub: active nav link ---------- */
.topnav a.active { color: var(--text); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .trade-pulse, .trade-pulse-no { animation: none; border-color: var(--border-hairline); }
  .odometer-anim { transition: none !important; }
}

@media (min-width: 760px) {
  h1 { font-size: 3.2rem; }
  h2 { font-size: 1.7rem; }
  .section { padding: 60px 0; }
}

/* ---------- Hero copytrade simulator (odometer demo) ----------
   Compact terminal card: preset chips + one result line. Big figure uses
   tabular numerals; .odometer-anim lerps the number via rAF in app.js.
   Sharp 1px hairline frame, no glow — Linear/Hyperliquid vibe. */
.hero-sim { margin-top: 16px; max-width: 560px; }
.hero-sim .sim-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.hero-sim .sim-chip {
  border: 1px solid var(--border-hairline); background: var(--panel-elevated);
  color: var(--text-mist); border-radius: var(--radius-btn);
  padding: 8px 14px; font: inherit; font-size: 0.85rem; font-weight: 700;
  font-variant-numeric: tabular-nums; cursor: pointer; min-height: 36px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.hero-sim .sim-chip:hover { border-color: var(--profit-emerald); color: var(--text-pure); }
.hero-sim .sim-chip.active { border-color: var(--profit-emerald); color: var(--profit-emerald); }
.hero-sim .sim-out-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--border-hairline); padding-top: 12px; margin-top: 4px;
  min-width: 0;
}
.hero-sim .sim-out-label { font-size: 0.82rem; color: var(--text-fog); }
.hero-sim .sim-balance {
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700;
  color: var(--text-pure); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hero-sim .sim-balance.pos { color: var(--profit-emerald); }
.hero-sim .sim-note { font-size: 0.78rem; color: var(--text-fog); margin: 8px 0 0; }
.odometer-anim { will-change: contents; }
@media (max-width: 559px) {
  .hero-sim .sim-balance { font-size: 1.25rem; }
}

/* ---------- Scroll counters (hero stats) ---------- */
.stats dd.count-up { font-variant-numeric: tabular-nums; }

/* ---------- Dune radar badge (whales page hero) ---------- */
.dune-row { margin-top: 14px; }
.dune-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 700; text-decoration: none;
  color: var(--text-pure); background: var(--panel-elevated);
  border: 1px solid var(--border-hairline); border-radius: var(--radius-pill);
  padding: 8px 16px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.dune-badge:hover { border-color: var(--border-focus); background: var(--panel-subtle); transform: translateY(-1px); }

/* ---------- VS strip under the home calculator ---------- */
.vs-strip {
  margin-top: 14px;
  display: grid; gap: 12px; grid-template-columns: 1fr;
  align-items: center;
}
.vs-strip h3 { margin: 0 0 4px; }
.vs-strip p { margin: 0; }
.vs-strip .btn { justify-self: start; }
@media (min-width: 640px) {
  .vs-strip { grid-template-columns: 1fr auto; }
  .vs-strip .btn { justify-self: end; }
}

/* ---------- Copyable 0x addresses (terminal feel) ---------- */
.whale-addr.addr-copy {
  background: none; border: 1px solid transparent; border-radius: 6px;
  padding: 1px 6px; margin-left: -6px;
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
  cursor: pointer; overflow-wrap: anywhere;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.whale-addr.addr-copy::after { content: "⧉"; margin-left: 6px; opacity: 0.55; font-size: 0.85em; }
.whale-addr.addr-copy:hover { color: var(--text-pure); border-color: var(--border-focus); background: var(--panel-elevated); }
.whale-addr.addr-copy:hover::after { opacity: 1; }

/* ---------- Alpha Score badge (emerald glow, whales + home cards) ---------- */
.alpha-row { display: flex; flex-wrap: wrap; gap: 8px; }
.alpha-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap;
  color: #06130c; background: linear-gradient(180deg, #34d399 0%, var(--profit-emerald) 60%, #0b9e6e 100%);
  border-radius: var(--radius-pill); padding: 4px 12px;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
  cursor: help;
}

/* ---------- Skeleton Shimmer Loading States (High-Converting Fintech) ---------- */
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skel-box {
  background: linear-gradient(90deg, #0e111a 20%, #1a2030 50%, #0e111a 80%);
  background-size: 250% 100%;
  animation: skeleton-pulse 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  border-radius: var(--radius-sm, 6px);
}

.card.dossier.skeleton-card {
  pointer-events: none;
  border-color: var(--border-hairline, #1c2333);
  background: var(--panel-carbon, #0e111a);
}
.skeleton-ava {
  width: 44px; height: 44px; border-radius: 50%;
  flex-shrink: 0;
}
.skeleton-line {
  height: 14px;
  margin-bottom: 6px;
  border-radius: 4px;
}
.skeleton-line.short { width: 45%; }
.skeleton-line.mid { width: 70%; }
.skeleton-line.full { width: 100%; }
.skeleton-hero {
  height: 38px; width: 60%;
  margin: 14px 0 12px;
  border-radius: 6px;
}
.skeleton-alpha {
  height: 24px; width: 110px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.skeleton-bar {
  height: 6px; width: 100%;
  border-radius: 3px;
  margin: 14px 0 16px;
}
.skeleton-btn {
  height: 40px;
  border-radius: var(--radius-md);
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .skel-box { animation: none; opacity: 0.65; }
}
