/* =========================================================================
   LEDGERWISE — Premium Crypto Design System
   OLED dark · gold (#F59E0B) + violet (#8B5CF6) · Space Grotesk / Inter / JetBrains Mono
   ========================================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg: #070B14;
  --bg-2: #0A0F1C;
  --surface: #0E1525;
  --surface-2: #131C2E;
  --surface-3: #1A2438;
  --elevated: #182135;

  /* text */
  --text: #F4F7FB;
  --text-soft: #C6D0E0;
  --muted: #8A98AE;
  --faint: #5C6B82;

  /* brand */
  --gold: #F5B43C;
  --gold-2: #FBBF24;
  --gold-deep: #E08C12;
  --violet: #8B5CF6;
  --violet-2: #A78BFA;
  --violet-deep: #6D28D9;

  /* market */
  --up: #16C784;
  --up-soft: rgba(22, 199, 132, 0.14);
  --down: #F0616D;
  --down-soft: rgba(240, 97, 109, 0.14);

  /* lines */
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.20);
  --border-gold: rgba(245, 180, 60, 0.30);

  /* effects */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 8px 30px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);
  --glow-gold: 0 0 0 1px rgba(245,180,60,0.25), 0 8px 40px rgba(245,180,60,0.10);
  --glow-violet: 0 0 0 1px rgba(139,92,246,0.30), 0 8px 40px rgba(139,92,246,0.12);
  --ring: 0 0 0 3px rgba(139,92,246,0.45);

  /* type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* layout */
  --max: 1240px;
  --max-narrow: 760px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --gutter: clamp(16px, 4vw, 28px);

  /* z */
  --z-ticker: 30;
  --z-header: 40;
  --z-menu: 60;
  --z-toast: 80;
}

/* light theme override (data-theme="light") */
[data-theme="light"] {
  --bg: #F6F8FC;
  --bg-2: #EEF2F8;
  --surface: #FFFFFF;
  --surface-2: #F4F7FB;
  --surface-3: #ECF1F8;
  --elevated: #FFFFFF;
  --text: #0B1220;
  --text-soft: #243049;
  --muted: #5A6782;
  --faint: #8896AE;
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.16);
  --shadow: 0 8px 30px rgba(15,23,42,0.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,0.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(139,92,246,0.10), transparent 60%),
    radial-gradient(1000px 500px at 0% 0%, rgba(245,180,60,0.07), transparent 55%);
  background-attachment: fixed;
}
[data-theme="light"] body {
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(139,92,246,0.08), transparent 60%),
    radial-gradient(1000px 500px at 0% 0%, rgba(245,180,60,0.10), transparent 55%);
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

::selection { background: rgba(245,180,60,0.30); color: #fff; }

/* focus */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--max-narrow); }
.section { padding-block: clamp(40px, 7vw, 84px); }
.grid { display: grid; gap: 22px; }
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.center { display: flex; align-items: center; gap: 10px; }
.stack { display: flex; flex-direction: column; }
.hide-mobile { }
@media (max-width: 720px) { .hide-mobile { display: none !important; } }
@media (min-width: 721px) { .only-mobile { display: none !important; } }

/* section heading */
.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 52ch; margin-top: 8px; }
.link-more { color: var(--violet-2); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s ease, color .2s ease; }
.link-more:hover { gap: 10px; color: var(--gold); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 0.94rem; letter-spacing: -0.01em; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold-deep)); color: #1A1206; box-shadow: 0 6px 24px rgba(245,180,60,0.28); }
.btn-gold:hover { box-shadow: 0 10px 34px rgba(245,180,60,0.40); }
.btn-violet { background: linear-gradient(180deg, var(--violet-2), var(--violet-deep)); color: #fff; box-shadow: 0 6px 24px rgba(139,92,246,0.30); }
.btn-violet:hover { box-shadow: 0 10px 34px rgba(139,92,246,0.42); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-gold); background: var(--surface-3); }
.btn-sm { padding: 8px 14px; font-size: 0.86rem; }

/* ---------- Cards ---------- */
.card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.card-hover:hover { border-color: var(--border-gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-glass { background: rgba(20, 28, 46, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border-strong); }
[data-theme="light"] .card-glass { background: rgba(255,255,255,0.80); }

/* ---------- Badges / pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.badge-gold { background: rgba(245,180,60,0.12); color: var(--gold); border: 1px solid var(--border-gold); }
.badge-violet { background: rgba(139,92,246,0.14); color: var(--violet-2); border: 1px solid rgba(139,92,246,0.30); }
.badge-cat { background: var(--surface-3); color: var(--text-soft); border: 1px solid var(--border); }

.chg { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 3px; }
.up { color: var(--up); }
.down { color: var(--down); }
.pill-up { background: var(--up-soft); color: var(--up); padding: 3px 8px; border-radius: 7px; }
.pill-down { background: var(--down-soft); color: var(--down); padding: 3px 8px; border-radius: 7px; }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.caret-up { border-bottom: 6px solid var(--up); }
.caret-down { border-top: 6px solid var(--down); }

/* ---------- Topbar (utility) ---------- */
.topbar { background: var(--bg-2); border-bottom: 1px solid var(--border); font-size: 0.78rem; color: var(--muted); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar .mono { color: var(--text-soft); }
.topbar a { color: var(--muted); transition: color .2s ease; }
.topbar a:hover { color: var(--gold); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(22,199,132,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(22,199,132,0.5);} 70%{box-shadow:0 0 0 7px rgba(22,199,132,0);} 100%{box-shadow:0 0 0 0 rgba(22,199,132,0);} }
.social-row { display: flex; align-items: center; gap: 14px; }
.social-row a svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(7,11,20,0.72); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--border); }
[data-theme="light"] .site-header { background: rgba(246,248,252,0.80); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand .logo { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--text); }
.brand span { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a { padding: 9px 14px; border-radius: 10px; font-weight: 500; font-size: 0.94rem; color: var(--text-soft); transition: color .2s ease, background .2s ease; position: relative; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); transition: all .2s ease; }
.icon-btn:hover { color: var(--gold); border-color: var(--border-gold); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
@media (max-width: 940px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: var(--z-menu); background: rgba(7,11,20,0.96); backdrop-filter: blur(8px); display: none; flex-direction: column; padding: 90px var(--gutter) 40px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 16px 6px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-menu .close { position: absolute; top: 22px; right: var(--gutter); }

/* ---------- Live ticker ---------- */
.ticker { position: sticky; top: 66px; z-index: var(--z-ticker); background: var(--bg-2); border-bottom: 1px solid var(--border); overflow: hidden; height: 46px; display: flex; align-items: center; }
.ticker-track { display: flex; align-items: center; gap: 30px; white-space: nowrap; will-change: transform; animation: marquee 60s linear infinite; padding-left: 30px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; }
.tick img { width: 18px; height: 18px; border-radius: 50%; }
.tick .sym { font-weight: 600; color: var(--text); }
.tick .px { font-family: var(--font-mono); color: var(--text-soft); font-variant-numeric: tabular-nums; }
.ticker-label { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: var(--bg-2); z-index: 2; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border-right: 1px solid var(--border); }

/* ---------- Hero / home ---------- */
.hero { padding-top: clamp(28px, 5vw, 52px); }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.lead-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); }
.lead-card .lead-media { aspect-ratio: 16/8.4; background: radial-gradient(120% 120% at 80% 10%, rgba(139,92,246,0.30), transparent 55%), radial-gradient(120% 120% at 10% 90%, rgba(245,180,60,0.22), transparent 55%), var(--surface-3); position: relative; display: flex; align-items: flex-end; padding: 26px; }
.lead-card .lead-body { padding: 26px 28px 30px; }
.lead-card h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 14px 0 12px; }
.lead-card .dek { color: var(--text-soft); font-size: 1.05rem; }
.byline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.82rem; margin-top: 18px; font-family: var(--font-mono); }
.byline .av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--violet)); }

/* latest list */
.latest .latest-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); transition: transform .2s ease; }
.latest .latest-item:last-child { border-bottom: none; }
.latest .latest-item:hover { transform: translateX(4px); }
.latest .idx { font-family: var(--font-mono); color: var(--faint); font-size: 0.95rem; font-weight: 600; width: 26px; }
.latest .latest-item h4 { font-size: 1rem; line-height: 1.32; font-family: var(--font-body); font-weight: 600; }
.latest .latest-item:hover h4 { color: var(--gold); }
.latest .meta { color: var(--muted); font-size: 0.76rem; margin-top: 6px; font-family: var(--font-mono); }

/* ---------- Stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 940px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }
.stat { padding: 20px; }
.stat .label { color: var(--muted); font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.stat .val { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 0.82rem; }

/* fear & greed gauge */
.gauge { display: flex; align-items: center; gap: 16px; }
.gauge .ring { width: 76px; height: 76px; flex: none; border-radius: 50%; display: grid; place-items: center; position: relative; }
.gauge .ring b { font-family: var(--font-display); font-size: 1.5rem; }
.gauge .ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.gauge .ring b { position: relative; z-index: 1; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.mkt { width: 100%; border-collapse: collapse; min-width: 720px; }
table.mkt th { text-align: right; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 14px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); cursor: pointer; user-select: none; white-space: nowrap; }
table.mkt th:first-child, table.mkt td:first-child { text-align: left; }
table.mkt th.l, table.mkt td.l { text-align: left; }
table.mkt th:hover { color: var(--gold); }
table.mkt td { text-align: right; padding: 15px 16px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.mkt tbody tr { transition: background .15s ease; }
table.mkt tbody tr:hover { background: var(--surface-2); }
table.mkt tbody tr:last-child td { border-bottom: none; }
.coin-cell { display: flex; align-items: center; gap: 11px; }
.coin-cell img { width: 28px; height: 28px; border-radius: 50%; }
.coin-cell .nm { font-weight: 600; }
.coin-cell .tk { color: var(--muted); font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; }
.rank { color: var(--faint); font-family: var(--font-mono); font-size: 0.82rem; }
.spark { width: 120px; height: 36px; }

/* ---------- Bento / guide cards ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 940px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } }
.guide-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.guide-card .thumb { aspect-ratio: 16/9; border-radius: 12px; background: var(--surface-3); position: relative; overflow: hidden; }
.guide-card .thumb .glyph { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.9; }
.guide-card h3 { font-size: 1.12rem; }
.guide-card p { color: var(--muted); font-size: 0.9rem; }
.guide-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: var(--faint); font-size: 0.76rem; font-family: var(--font-mono); }

/* movers split */
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .movers { grid-template-columns: 1fr; } }
.mover-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; transition: background .15s ease; }
.mover-row:hover { background: var(--surface-2); }
.mover-row .l { display: flex; align-items: center; gap: 10px; }
.mover-row img { width: 24px; height: 24px; border-radius: 50%; }

/* ---------- Ad slot (centered, themed gradient border) ---------- */
.ad-card { width: max-content; max-width: 100%; margin: 18px auto; padding: 2px; border-radius: 18px; background: linear-gradient(120deg, var(--gold-2), var(--violet) 52%, var(--gold)); background-size: 220% 220%; box-shadow: 0 12px 36px rgba(139,92,246,0.22), 0 4px 18px rgba(245,180,60,0.14); animation: adGlow 9s ease infinite; }
@keyframes adGlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .ad-card { animation: none; } }
.ad-inner { background: var(--surface); border-radius: 16px; padding: 12px 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.ad-label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.ad-card iframe { display: block; border-radius: 8px; }

/* ---------- Article ---------- */
.article { max-width: var(--max-narrow); margin-inline: auto; }
.article-head { margin-bottom: 30px; }
.article-head h1 { margin: 16px 0 14px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: var(--muted); font-size: 0.85rem; font-family: var(--font-mono); }
.prose { font-size: 1.06rem; line-height: 1.78; color: var(--text-soft); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 1.8em; font-size: 1.55rem; color: var(--text); }
.prose h3 { margin-top: 1.5em; font-size: 1.2rem; color: var(--text); }
.prose p { max-width: 68ch; }
.prose a { color: var(--violet-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(167,139,250,0.4); }
.prose a:hover { color: var(--gold); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 0.5em; }
.prose li { padding-left: 0.2em; }
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--violet-2); font-family: var(--font-mono); }
.prose blockquote { border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; color: var(--text); font-style: italic; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; color: var(--gold-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose th { background: var(--surface-2); font-family: var(--font-display); }
.prose img { border-radius: 12px; border: 1px solid var(--border); }
.callout { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--violet); border-radius: 10px; padding: 16px 18px; }
.callout strong { color: var(--violet-2); }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.toc h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { color: var(--text-soft); font-size: 0.92rem; display: block; padding: 4px 0; }
.toc a:hover { color: var(--gold); }

/* brief data blocks */
.data-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 620px){ .data-strip { grid-template-columns: repeat(2,1fr);} }
.data-strip .cell { background: var(--surface); padding: 16px; }
.data-strip .k { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.data-strip .v { font-family: var(--font-display); font-size: 1.32rem; margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---------- Tools ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 940px){ .tool-grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .tool-grid { grid-template-columns: 1fr;} }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.8rem; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.input, .select { background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 14px; color: var(--text); font-family: var(--font-mono); transition: border-color .2s ease, box-shadow .2s ease; width: 100%; }
.input:focus, .select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,0.20); }
.result-big { font-family: var(--font-display); font-size: 2rem; font-variant-numeric: tabular-nums; color: var(--gold); }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(135deg, rgba(139,92,246,0.16), rgba(245,180,60,0.10)); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 52px); text-align: center; position: relative; overflow: hidden; }
.newsletter form { display: flex; gap: 10px; max-width: 440px; margin: 22px auto 0; }
@media (max-width: 520px){ .newsletter form { flex-direction: column; } }
.newsletter .input { text-align: left; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-block: 54px; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid a { display: block; color: var(--text-soft); padding: 6px 0; font-size: 0.92rem; transition: color .2s ease; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; }
.disclaimer { color: var(--faint); font-size: 0.76rem; line-height: 1.6; max-width: 60ch; }

/* ---------- Breadcrumb ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); font-family: var(--font-mono); margin-bottom: 18px; }
.crumb a:hover { color: var(--gold); }
.crumb .sep { color: var(--faint); }

/* ---------- Coin header ---------- */
.coin-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.coin-hero img { width: 56px; height: 56px; border-radius: 50%; }
.coin-price { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); font-variant-numeric: tabular-nums; }
.coin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.coin-stats .cell { background: var(--surface); padding: 16px 18px; }

/* ---------- Utility ---------- */
.divider { height: 1px; background: var(--border); border: none; margin-block: 40px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; color: transparent !important; }
@keyframes shimmer { to { background-position: -200% 0; } }
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.fade-up { opacity: 0; transform: translateY(14px); animation: fadeUp .6s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
