@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600;700;800;900&display=swap');

/* ══════════════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════════════ */
:root {
  --bg: #060608;
  --surface: #0f0f12;
  --surface2: #16161a;
  --border: #1e1e24;
  --border2: #2a2a33;
  --text: #f0eeff;
  --muted: #8884a8;
  --dim: #7c79a5;
  --accent: #7c6af7;
  --accent2: #f7956a;
  --green: #4ade80;
  --red: #f87171;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', system-ui, sans-serif;
  --rail-w: 220px;
  --topbar-h: 56px;
  --gutter: clamp(16px, 3vw, 32px);
  --max: 1400px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle animated BG */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(124,106,247,0.10) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(110,231,183,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 70% 70% at 50% 70%, rgba(247,149,106,0.04) 0%, transparent 50%),
    linear-gradient(180deg, #060608, #08080c 30%, #0a0a10 50%, #060608);
  animation: bgShift 25s ease-in-out infinite alternate;
}
@keyframes bgShift {
  0% { opacity: 1; filter: hue-rotate(0deg); }
  100% { opacity: .85; filter: hue-rotate(6deg); }
}

/* Grain */
body::after {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999;
}

/* ══════════════════════════════════════════════
   TOP BAR — fixed full-width
   ══════════════════════════════════════════════ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--topbar-h);
  background: rgba(6,6,8,0.94); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px;
}
.topbar-inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
}

/* Logo */
.logo {
  font-family: var(--serif); font-size: 19px; font-weight: 400;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.logo-b { color: var(--text); }
.logo-e { color: var(--text); }
/* Legacy logo classes */
.site-logo { font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--text); text-decoration: none; }
.logo-bag { color: var(--text); }
.logo-engine { color: var(--text); }

/* Menu trigger (mobile) */
.menu-trigger {
  background: none; border: 1px solid var(--border2); border-radius: 8px;
  padding: 6px 8px; cursor: pointer; color: var(--muted);
  display: none; align-items: center; transition: all .2s; flex-shrink: 0;
}
.menu-trigger:hover { border-color: var(--accent); color: var(--accent); }
.menu-trigger.active { border-color: var(--accent); background: rgba(124,106,247,.08); }
.menu-hamburger-icon, .menu-dot-icon {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  color: inherit; transition: transform .3s;
}
.menu-trigger.active .menu-hamburger-icon,
.menu-trigger.active .menu-dot-icon { transform: rotate(90deg); }
.menu-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase; margin-left: 6px;
}

/* Topbar search */
.topbar-search {
  position: relative; flex: 1; max-width: 320px; margin: 0 auto;
}
.ts-input {
  width: 100%; background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 8px; padding: 7px 14px 7px 34px;
  color: var(--text); font-family: var(--sans); font-size: 13px;
  outline: none; transition: all .2s;
}
.ts-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,106,247,.12); }
.ts-input::placeholder { color: var(--dim); }
.ts-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--dim); pointer-events: none; display: flex;
}
.ts-kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  color: var(--dim); background: var(--surface);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 1px 5px; pointer-events: none;
}

/* Search results dropdown */
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 380px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
  z-index: 1000; display: none;
}
.search-results.active { display: block; }
.search-result-item {
  display: block; padding: 10px 14px; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--border); transition: background .15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--surface2); }
.search-result-title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.search-result-category { font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.search-result-excerpt { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.search-no-results { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* Surprise Me */
.surprise-btn {
  background: none; border: 1px solid var(--border2); border-radius: 8px;
  padding: 6px 12px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  transition: all .2s; flex-shrink: 0;
}
.surprise-btn:hover { border-color: var(--accent2); color: var(--accent2); background: rgba(247,149,106,.05); }
.surprise-btn:hover svg { animation: dice .4s ease; }
@keyframes dice { 50% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }

/* Topbar crypto ticker (inline) */
.topbar-ticker {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; flex-shrink: 0;
  margin-left: auto;
}
.tk-coin { display: flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--muted); }
.tk-coin b { color: var(--green); font-size: 10px; letter-spacing: .04em; }
.tk-dot { color: var(--dim); font-size: 8px; }
.tk-ch { font-size: 10px; font-weight: 700; }
.tk-ch.up { color: var(--green); }
.tk-ch.dn { color: var(--red); }

/* ══════════════════════════════════════════════
   MOBILE SIDEBAR (off-canvas)
   ══════════════════════════════════════════════ */
.mobile-sidebar {
  position: fixed; top: var(--topbar-h); left: 0; bottom: 0;
  width: 260px; z-index: 99;
  background: rgba(10,10,14,0.97); backdrop-filter: blur(24px);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  padding: 20px 14px;
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
}
.mobile-sidebar.open { transform: translateX(0); }
.sidebar-backdrop {
  position: fixed; inset: 0; top: var(--topbar-h); z-index: 98;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
.sb-section-label {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim);
  padding: 10px 14px 4px;
}
.mobile-sidebar a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 8px;
  text-decoration: none; color: var(--muted);
  font-size: 13px; font-weight: 600; transition: all .2s;
}
.mobile-sidebar a:hover { background: rgba(124,106,247,.06); color: var(--text); }
.mobile-sidebar a .sb-icon {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--muted); transition: all .2s;
}
.mobile-sidebar a:hover .sb-icon { border-color: var(--accent); color: var(--accent); }
.mobile-sidebar a.sb-cta { margin-top: 4px; background: var(--accent-fill, var(--accent)); color: #fff; font-weight: 700; }
.mobile-sidebar a.sb-cta:hover { filter: brightness(1.15); }
.mobile-sidebar a.sb-cta .sb-icon { background: rgba(255,255,255,.15); border-color: transparent; color: #fff; }
.mobile-sidebar a.sb-secondary { color: var(--dim); }

/* ══════════════════════════════════════════════
   PAGE SHELL — the fundamental two-column layout
   ══════════════════════════════════════════════ */
.page-shell {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: var(--topbar-h);
  min-height: 100vh;
}

/* ── PERSISTENT SIDEBAR RAIL ── */
.rail {
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  scrollbar-width: none;
  border-right: 1px solid var(--border);
  padding: 20px 0;
}
.rail::-webkit-scrollbar { display: none; }
.rail-inner {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 14px;
}

/* Rail blocks */
.rail-block {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.rail-block:last-of-type { border-bottom: none; }
.rail-label {
  font-size: 9px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 10px; padding: 0 4px;
}

/* Rail nav links */
.rail-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 7px;
  color: var(--muted);
  font-size: 13px; font-weight: 600;
  transition: all .15s;
}
.rail-link svg { color: var(--dim); flex-shrink: 0; transition: color .15s; }
.rail-link:hover { background: rgba(124,106,247,.06); color: var(--text); }
.rail-link:hover svg { color: var(--accent); }
.rail-link.rl-active {
  background: rgba(124,106,247,.08); color: var(--text);
}
.rail-link.rl-active svg { color: var(--accent); }

/* Rail pills (discover) */
.rail-pill {
  display: block; padding: 6px 10px; border-radius: 6px;
  color: var(--dim) !important;
  font-size: 12px; font-weight: 600;
  transition: all .15s;
}
.rail-pill:hover { color: var(--accent) !important; background: rgba(124,106,247,.04); }

/* Rail crypto */
.rail-crypto-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 10px; font-size: 12px;
}
.rc-sym { font-weight: 800; font-size: 10px; color: var(--green); letter-spacing: .04em; }
.rc-price { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.rail-crypto-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px; margin-left: 10px;
  padding: 5px 12px; border-radius: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  color: var(--accent2);
  background: rgba(247,149,106,.06);
  border: 1px solid rgba(247,149,106,.15);
  transition: all .15s;
}
.rail-crypto-link:hover {
  background: rgba(247,149,106,.12);
  border-color: rgba(247,149,106,.3);
  color: #ffb088;
}

/* Rail tools */
.rail-tool {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 10px; border-radius: 6px;
  color: var(--muted); font-size: 12px; font-weight: 600;
  transition: all .15s;
}
a.rail-tool:hover { color: var(--green); background: rgba(74,222,128,.04); }
a.rail-tool svg { color: var(--green); }
.rail-soon {
  opacity: .4; cursor: default;
}
.rail-soon svg { color: var(--dim); }
.rail-soon-tag {
  margin-left: auto;
  font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); background: var(--surface2);
  padding: 1px 5px; border-radius: 3px;
}

/* Rail new items */
.rail-new-item {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 10px; border-radius: 6px;
  color: var(--muted); font-size: 12px; font-weight: 600;
  transition: all .15s;
}
.rail-new-item:hover { color: var(--text); background: rgba(124,106,247,.04); }
.rail-new-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}

/* Rail trending */
.rail-trend {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 6px;
  text-decoration: none; color: var(--muted);
  font-size: 12px; font-weight: 600;
  transition: all .15s;
}
.rail-trend:hover { color: var(--text); background: rgba(124,106,247,.04); }
.rt-num {
  width: 20px; height: 20px; border-radius: 5px;
  background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: var(--green);
  flex-shrink: 0;
}

/* Rail CTA */
.rail-cta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px; padding: 12px 14px; border-radius: 10px;
  background:var(--accent-fill,var(--accent)); color: #fff;
  text-decoration: none; font-size: 13px; font-weight: 700;
  position: relative; overflow: hidden;
  transition: filter .2s;
}
.rail-cta:hover { filter: brightness(1.15); }
.rail-cta-sub {
  margin-left: auto; font-size: 10px; font-weight: 600;
  opacity: .7;
}

/* ══════════════════════════════════════════════
   CONTENT RIVER — the main scrolling area
   ══════════════════════════════════════════════ */
.river {
  padding: 0 var(--gutter) 0;
  overflow: hidden;
}

/* ── HERO ZONE ── */
.hero-zone {
  padding: 60px 0 40px;
  position: relative;
}
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  animation: orbFloat 10s ease-in-out infinite alternate;
}
.hero-orb-1 {
  width: 260px; height: 260px; top: -60px; left: -80px;
  background: radial-gradient(circle, rgba(124,106,247,.12), transparent 70%);
}
.hero-orb-2 {
  width: 180px; height: 180px; top: 20px; right: -40px;
  background: radial-gradient(circle, rgba(110,231,183,.08), transparent 70%);
  animation-delay: -4s;
}
@keyframes orbFloat {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(15px,-10px) scale(1.04); }
}

.section-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.eyebrow-line {
  display: inline-block; width: 20px; height: 1px;
  background:var(--accent-fill,var(--accent)); opacity: .4;
}
.hero-title {
  font-family: var(--serif); font-size: clamp(32px,4.5vw,52px);
  font-weight: 400; line-height: 1.08; letter-spacing: -.02em;
  margin-bottom: 20px; max-width: 600px;
}
.hero-title em { font-style: italic; color: var(--accent); }
.section-title { font-family: var(--serif); font-size: clamp(24px,3vw,36px); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.section-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 16px; color: var(--muted); max-width: 480px;
  line-height: 1.7; margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── TRUST BAR — overlaps hero edge ── */
.trust-bar {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: nowrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 0;
  margin: -20px 0 32px;
  position: relative; z-index: 2;
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.tb-item { flex: 1; text-align: center; padding: 4px 16px; min-width: 0; }
.tb-num { font-family: var(--serif); font-size: 24px; color: var(--green); line-height: 1; margin-bottom: 2px; }
.tb-label { font-size: 10px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.tb-sep { width: 1px; height: 30px; background: linear-gradient(180deg, transparent, var(--border2), transparent); flex-shrink: 0; }

/* ══════════════════════════════════════════════
   MASONRY — CSS Grid for non-linear layout
   ══════════════════════════════════════════════ */
.masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: min-content;
  gap: 16px;
  margin-bottom: 40px;
}

/* Base masonry card */
.m-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.m-card:hover {
  border-color: var(--border2);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

/* ── Card variants ── */

/* BIG feature — tall, dominant, spans 2 rows */
.m-big {
  grid-row: span 2;
  min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(170deg, var(--surface) 0%, rgba(124,106,247,.04) 100%);
  border-color: rgba(124,106,247,.2);
  padding: 28px;
}
.m-big:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.m-badge {
  position: absolute; top: 16px; left: 16px;
  font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: rgba(124,106,247,.12);
  border: 1px solid rgba(124,106,247,.2);
  padding: 4px 10px; border-radius: 100px;
}
.m-card-bot { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.m-glow {
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,106,247,.12), transparent 70%);
  pointer-events: none;
}

/* Standard card */
.m-std {
  display: flex; flex-direction: column; gap: 10px;
}
.m-std:hover { transform: translateY(-2px); }

/* VS card — diagonal stripe */
.m-vs {
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(247,149,106,.03) 100%);
}
.m-vs-stripe {
  position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: linear-gradient(135deg, transparent 40%, rgba(247,149,106,.08) 60%, transparent 80%);
  pointer-events: none;
}
.m-vs-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 900; letter-spacing: .1em;
  color: var(--accent2); background: rgba(247,149,106,.1);
  border: 1px solid rgba(247,149,106,.2);
  padding: 3px 10px; border-radius: 100px;
}

/* Wide card — spans both columns */
.m-wide {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(135deg, rgba(124,106,247,.03), var(--surface));
  border-color: rgba(124,106,247,.12);
}
.m-wide:hover { transform: translateY(-2px); }

/* Stat widget — small, punchy */
.m-stat {
  text-align: center; padding: 20px;
  background: linear-gradient(135deg, rgba(124,106,247,.04), var(--surface));
}
.m-stat-num {
  font-family: var(--serif); font-size: 32px; color: var(--green);
  line-height: 1; margin-bottom: 4px;
}
.m-stat-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.m-stat-link { font-size: 11px; font-weight: 700; color: var(--accent); text-decoration: none; }
.m-stat-green .m-stat-num { color: var(--green); }
.m-stat-green { background: linear-gradient(135deg, rgba(74,222,128,.04), var(--surface)); border-color: rgba(74,222,128,.12); }

/* Crypto accent */
.m-crypto-accent { border-color: rgba(247,149,106,.12); }
.m-crypto-accent:hover { border-color: rgba(247,149,106,.3); }

/* TradingView widget card */
.m-widget {
  padding: 0; overflow: hidden;
}
.m-widget-label {
  padding: 12px 16px 0;
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green);
}
.m-widget-chart { height: 180px; }
.m-widget-link {
  display: block; padding: 8px 16px 12px;
  font-size: 11px; font-weight: 700; color: var(--accent);
  text-decoration: none;
}

/* Poll / engagement card */
.m-poll {
  display: flex; flex-direction: column; gap: 8px;
}
.m-poll-q { font-size: 14px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.m-poll-opt {
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 8px; padding: 10px 14px;
  color: var(--muted); font-family: var(--sans); font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: left; transition: all .15s;
}
.m-poll-opt:hover { border-color: var(--accent); color: var(--text); }
.m-poll-opt.chosen { border-color: var(--accent); background: rgba(124,106,247,.08); color: var(--text); }
.m-poll-after {
  display: none; font-size: 12px; color: var(--muted);
  padding: 8px 0 0; font-style: italic;
}
.m-poll.voted .m-poll-opt:not(.chosen) { opacity: .4; pointer-events: none; }
.m-poll.voted .m-poll-after { display: block; }

/* Behavior loop — "readers also explored" */
.m-loop { padding: 18px; }
.m-loop-label {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 10px;
}
.m-loop-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-radius: 7px;
  text-decoration: none; color: var(--muted);
  font-size: 13px; font-weight: 600;
  transition: all .15s;
}
.m-loop-item:hover { background: rgba(124,106,247,.05); color: var(--text); }
.m-loop-title { flex: 1; }
.m-loop-cat {
  font-size: 10px; font-weight: 700; color: var(--dim);
  text-transform: uppercase; letter-spacing: .06em;
}

/* Live analytics */
.m-live {
  padding: 18px; text-align: center;
  background: linear-gradient(135deg, rgba(74,222,128,.03), var(--surface));
  border-color: rgba(74,222,128,.1);
}
.m-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); display: inline-block;
  animation: livePulse 2s ease-in-out infinite;
  vertical-align: middle; margin-right: 6px;
}
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.m-live-label {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 12px;
  display: inline;
}
.m-live-grid { display: flex; justify-content: space-around; margin-top: 12px; }
.m-live-num { font-family: var(--serif); font-size: 22px; color: var(--green); line-height: 1; }
.m-live-sub { font-size: 10px; font-weight: 600; color: var(--dim); margin-top: 2px; }

/* Category cluster — pills */
.m-cluster {
  grid-column: 1 / -1;
  padding: 20px;
}
.m-cluster-label {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 12px;
}
.m-cluster-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  text-decoration: none; color: var(--muted);
  font-size: 12px; font-weight: 600;
  transition: all .15s;
}
.mc-pill:hover { border-color: var(--accent); color: var(--text); }
.mc-pill svg { color: var(--dim); transition: color .15s; }
.mc-pill:hover svg { color: var(--accent); }
.mc-count {
  font-size: 10px; font-weight: 800; color: var(--dim);
  background: var(--surface); padding: 1px 6px; border-radius: 4px;
}
.mc-pill-hot { border-color: rgba(247,149,106,.2); }
.mc-pill-hot:hover { border-color: var(--accent2); }
.mc-pill-hot svg { color: var(--accent2); }

/* Ribbon — quick links */
.m-ribbon {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 16px 18px;
  background: transparent; border-color: var(--border);
}
.m-ribbon-item {
  display: inline-block; padding: 6px 12px;
  border-radius: 6px; background: var(--surface2);
  border: 1px solid var(--border);
  text-decoration: none; color: var(--muted);
  font-size: 12px; font-weight: 600;
  transition: all .15s; white-space: nowrap;
}
.m-ribbon-item:hover { border-color: var(--accent); color: var(--text); }

/* ── Section Waypoint Bubbles ── */
.m-waypoint {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px;
  padding: 6px 0;
  background: transparent; border: none;
}
.m-waypoint-bubble {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(247,149,106,.06);
  border: 1px solid rgba(247,149,106,.12);
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent2);
  white-space: nowrap; flex-shrink: 0;
}
.m-waypoint-bubble svg { width: 12px; height: 12px; }
.m-waypoint-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(247,149,106,.15), transparent);
}

/* Ad slot */
.m-ad {
  grid-column: 1 / -1;
  background: transparent; border: none; padding: 0;
  min-height: 0;
}

/* Tool embed card */
.m-tool {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
  border-color: rgba(0,230,118,.15);
  background: linear-gradient(135deg, rgba(0,230,118,.03), var(--surface));
}
.m-tool-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.m-tool-title {
  font-size: 14px; font-weight: 700; color: var(--green);
  display: flex; align-items: center; gap: 8px;
}
.m-tool-badge {
  font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.2);
  padding: 3px 8px; border-radius: 100px;
}
.m-tool-link {
  font-size: 11px; font-weight: 700; color: var(--accent);
  text-decoration: none; transition: color .15s;
}
.m-tool-link:hover { color: var(--text); }
.m-tool-preview {
  height: 320px; position: relative;
  background: #0b0d0f;
}
.m-tool-preview iframe {
  width: 100%; height: 100%; border: none;
  transform: scale(0.85); transform-origin: top left;
  width: 117.6%; height: 117.6%;
}
.m-tool-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,13,15,.6); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s; cursor: pointer;
}
.m-tool-preview:hover .m-tool-overlay { opacity: 1; }
.m-tool-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  background: var(--green); color: #050f05;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
}

/* Tool promo card (masonry) */
.m-tool-promo {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(74,222,128,.04), var(--surface), rgba(124,106,247,.03));
  border-color: rgba(74,222,128,.15);
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px;
}
.m-tool-promo:hover { border-color: rgba(74,222,128,.3); transform: translateY(-2px); }
.m-tool-promo-top { display: flex; gap: 6px; flex-wrap: wrap; }
.m-tool-promo-icons {
  display: flex; gap: 8px; margin: 4px 0;
}
.m-tpi {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}

/* Card shared */
.card-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: rgba(124,106,247,.1);
  padding: 3px 8px; border-radius: 100px; width: fit-content;
}
.card-title {
  font-family: var(--serif); font-size: 20px; line-height: 1.2; color: var(--text);
}
.card-excerpt { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.6; }
.m-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; color: var(--dim);
  margin-top: auto; padding-top: 6px;
}
.m-arrow { margin-left: auto; color: var(--accent); font-size: 16px; transition: transform .2s; }
.m-card:hover .m-arrow { transform: translateX(3px); }

/* ── Info Bubbles ── */
.m-bubble, .m-bubble-inline, .m-bubble-float {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px;
  line-height: 1.3;
}
/* Color variants */
.mb-green { color: var(--green); background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.2); }
.mb-purple { color: var(--accent); background: rgba(124,106,247,.1); border: 1px solid rgba(124,106,247,.2); }
.mb-orange { color: var(--accent2); background: rgba(247,149,106,.1); border: 1px solid rgba(247,149,106,.2); }
.mb-blue { color: #4fc3f7; background: rgba(79,195,247,.08); border: 1px solid rgba(79,195,247,.2); }

/* Bubble cluster — positioned in dead space of big card */
.m-bubbles {
  display: flex; flex-wrap: wrap; gap: 6px;
  position: relative; z-index: 1;
  margin-top: 40px; /* push below the badge */
}

/* Inline bubble — sits next to card-tag in flow */
.m-bubble-inline {
  float: right; margin-top: -2px;
}

/* Float bubble — absolute positioned in card */
.m-bubble-float {
  position: absolute; top: 40px; left: 22px; z-index: 1;
}

/* Loop category dots */
.m-loop-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   DIAGONAL CTA — breaks the grid
   ══════════════════════════════════════════════ */
.diagonal-cta {
  position: relative;
  margin: 40px calc(-1 * var(--gutter)) 0;
  padding: 80px var(--gutter);
  text-align: center;
  overflow: hidden;
}
.diagonal-bg {
  position: absolute; inset: -40px -20px;
  background: linear-gradient(135deg, rgba(124,106,247,.06) 0%, var(--surface) 40%, rgba(247,149,106,.04) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transform: skewY(-2deg);
}
.diagonal-inner {
  position: relative; z-index: 1;
  max-width: 500px; margin: 0 auto;
}
.cta-badge {
  display: inline-block; font-size: 10px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: rgba(124,106,247,.1);
  border: 1px solid rgba(124,106,247,.2);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 18px;
}
.diagonal-cta h2 {
  font-family: var(--serif); font-size: clamp(22px,3vw,30px);
  margin-bottom: 10px;
}
.diagonal-cta p {
  color: var(--muted); font-size: 14px; line-height: 1.7;
  margin-bottom: 24px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: 8px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: all .2s; border: none;
}
.btn-accent { background:var(--accent-fill,var(--accent)); color: white; position: relative; overflow: hidden; }
.btn-accent:hover { filter: brightness(1.15); }
.btn-shine {
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine { 0% { left: -100%; } 100% { left: 200%; } }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-tools {
  background: linear-gradient(135deg, rgba(0,230,118,.1), rgba(74,222,128,.05));
  color: var(--green); border: 1px solid rgba(74,222,128,.25);
}
.btn-tools:hover { background: rgba(0,230,118,.15); border-color: rgba(74,222,128,.4); }

/* ══════════════════════════════════════════════
   RIVER FOOTER
   ══════════════════════════════════════════════ */
.river-footer {
  margin-top: 60px; padding: 40px 0;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
}
.rf-links { display: flex; gap: 18px; }
.rf-links a { font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .15s; }
.rf-links a:hover { color: var(--text); }
.rf-copy { font-size: 11px; color: var(--dim); margin-left: auto; }
.rf-copy a { color: var(--dim); }

/* ══════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { animation: fadeUp .5s ease both; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }
.delay-4 { animation-delay: .32s; }
.scroll-reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.view-all { font-size: 12px; font-weight: 700; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 5px; white-space: nowrap; transition: gap .2s; }
.view-all:hover { gap: 8px; }

/* ══════════════════════════════════════════════
   LEGACY STYLES — for article pages, reviews, etc.
   ══════════════════════════════════════════════ */

/* Site nav (legacy pages) */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 62px; display: flex; align-items: center;
  padding: 0 clamp(20px,5vw,80px);
  background: rgba(6,6,8,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%; max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
}
.nav-links { display: none; }
.nav-pill { display: none; }

/* Sidebar menu (legacy injected) */
.sidebar-menu {
  position: fixed; top: 62px; left: 0; bottom: 0;
  width: 280px; z-index: 99;
  background: rgba(10,10,14,0.97); backdrop-filter: blur(24px);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
}
.sidebar-menu.open { transform: translateX(0); }

/* Content section (legacy pages) */
.content-section {
  max-width: 1160px; margin: 0 auto;
  padding: 0 clamp(20px,5vw,80px) 80px;
}
.section-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 28px;
}
.hero-section {
  max-width: 1160px; margin: 0 auto;
  padding: 140px clamp(20px,5vw,80px) 60px;
  position: relative; overflow: hidden;
}

/* Hero desc box */
.hero-desc-box {
  background: linear-gradient(135deg, rgba(124,106,247,.06), rgba(15,15,18,.8), rgba(110,231,183,.04));
  border: 1px solid rgba(124,106,247,.15);
  border-radius: 14px; padding: 24px 28px; margin-bottom: 36px;
  backdrop-filter: blur(12px); position: relative; overflow: hidden;
}
.hero-desc-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(124,106,247,.08), transparent 60%);
  pointer-events: none;
}
.hero-desc-box p {
  position: relative; z-index: 1;
  font-size: 18px; font-weight: 500; color: var(--muted);
  max-width: 540px; line-height: 1.7; margin: 0;
}

/* Section divider */
.section-divider {
  max-width: 1160px; margin: 0 auto 40px;
  padding: 0 clamp(20px,5vw,80px); height: 1px; position: relative;
}
.section-divider::after {
  content: '';
  position: absolute; left: clamp(20px,5vw,80px); right: clamp(20px,5vw,80px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,106,247,.3) 20%, rgba(110,231,183,.2) 50%, rgba(247,149,106,.2) 80%, transparent);
  animation: dividerShimmer 4s ease-in-out infinite alternate;
}
@keyframes dividerShimmer { 0% { opacity: .4; } 50% { opacity: .7; } 100% { opacity: .4; } }

/* Trust strip (legacy) */
.trust-strip { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px,5vw,80px) 48px; }
.trust-strip-inner { display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 0; flex-wrap: wrap; }
.trust-item { flex: 1; text-align: center; padding: 8px 24px; min-width: 120px; }
.trust-accent-bar { width: 24px; height: 3px; border-radius: 2px; background:var(--accent-fill,var(--accent)); margin: 0 auto 8px; }
.trust-num { font-family: var(--serif); font-size: 28px; color: var(--text); line-height: 1; margin-bottom: 4px; }
.trust-label { font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.trust-sep { width: 1px; height: 36px; background: linear-gradient(180deg, transparent, var(--border2), transparent); flex-shrink: 0; }

/* Bento grid (legacy pages) */
.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bento-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px; transition: all .3s; position: relative; overflow: hidden; }
.bento-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at top left, rgba(124,106,247,.07), transparent 60%); opacity: 0; transition: opacity .3s; }
.bento-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.bento-card:hover::before { opacity: 1; }
.bento-hero { grid-row: 1/3; grid-column: 1; padding: 36px; background: linear-gradient(160deg, var(--surface), rgba(124,106,247,.04)); border-color: rgba(124,106,247,.2); justify-content: flex-end; min-height: 380px; }
.bento-hero .card-title { font-size: 26px; }
.bento-hero .card-excerpt { font-size: 15px; max-width: 380px; }
.bento-glow { position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(124,106,247,.12), transparent 70%); pointer-events: none; }
.bento-badge { position: absolute; top: 20px; left: 20px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: rgba(124,106,247,.12); border: 1px solid rgba(124,106,247,.2); padding: 5px 12px; border-radius: 100px; }
.bento-vs-badge { position: absolute; top: 20px; right: 20px; font-size: 11px; font-weight: 900; letter-spacing: .1em; color: var(--accent2); background: rgba(247,149,106,.1); border: 1px solid rgba(247,149,106,.2); padding: 5px 12px; border-radius: 100px; }
.bento-wide { grid-column: 1/3; flex-direction: row; align-items: center; gap: 24px; padding: 28px 36px; background: linear-gradient(135deg, var(--surface), rgba(247,149,106,.03)); }
.bento-wide .bento-content { flex: 1; }
.bento-content { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.bento-footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.bento-meta { font-size: 12px; font-weight: 600; color: var(--dim); }
.card-arrow { margin-left: auto; color: var(--accent); font-size: 18px; transition: transform .2s; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; color: var(--dim); }

/* Category panels (legacy) */
.category-panels { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.cat-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; transition: all .25s; position: relative; overflow: hidden; }
.cat-panel:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 16px 48px rgba(0,0,0,.3); }
.cat-panel-tall { grid-row: 1/3; }
.cat-panel-tall .cat-name { font-size: 20px; }
.cat-panel-tall .cat-tools { font-size: 14px; }
.cat-panel-accent { background: linear-gradient(135deg, rgba(124,106,247,.06), var(--surface)); border-color: rgba(124,106,247,.15); }
.cat-icon-wrap { width: 42px; height: 42px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 4px; transition: all .2s; }
.cat-panel:hover .cat-icon-wrap { border-color: var(--accent); background: rgba(124,106,247,.08); }
.cat-name { font-weight: 800; font-size: 16px; color: var(--text); }
.cat-tools { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; }
.cat-count { font-size: 12px; font-weight: 700; color: var(--accent); margin-top: auto; padding-top: 4px; }

/* Latest stack (legacy) */
.latest-stack { display: flex; flex-direction: column; gap: 12px; }
.latest-card { display: flex; align-items: center; gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px; text-decoration: none; color: inherit; transition: all .25s; }
.latest-card:hover { border-color: var(--border2); transform: translateX(4px); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.latest-left { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.latest-arrow { font-size: 24px; color: var(--accent); flex-shrink: 0; opacity: .4; transition: all .2s; }
.latest-card:hover .latest-arrow { opacity: 1; transform: translateX(4px); }

/* Article card */
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px; transition: all .25s; position: relative; overflow: hidden; }
.article-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at top left, rgba(124,106,247,.07), transparent 60%); opacity: 0; transition: opacity .3s; }
.article-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.article-card:hover::before { opacity: 1; }
.article-card:hover .card-arrow { transform: translateX(4px); }

/* CTA panel (legacy) */
.cta-panel { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 72px 40px; text-align: center; }
.cta-glow { position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: 400px; height: 200px; border-radius: 50%; background: radial-gradient(ellipse, rgba(124,106,247,.15), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; }
.cta-panel h2 { font-family: var(--serif); font-size: clamp(24px,3vw,32px); margin-bottom: 12px; }
.cta-panel p { color: var(--muted); max-width: 420px; margin: 0 auto 28px; font-size: 15px; line-height: 1.7; }

/* Prose */
.prose { font-size: 17px; font-weight: 500; line-height: 1.82; color: #d4d0f0; max-width: 740px; }
.prose h2 { font-family: var(--serif); font-size: clamp(26px,3vw,36px); font-weight: 400; color: var(--text); margin: 2.8em 0 .8em; line-height: 1.15; }
.prose h3 { font-size: 19px; font-weight: 800; color: var(--text); margin: 2.2em 0 .6em; }
.prose p { margin-bottom: 1.5em; }
.prose a { color: var(--accent) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 800; }
.prose em { font-style: italic; color: #b8b4e8; }
.prose table { width: 100%; border-collapse: collapse; margin: 2.2em 0; font-size: 14px; }
.prose th { background: var(--surface2); color: var(--text); font-weight: 800; padding: 13px 16px; text-align: left; border-bottom: 2px solid var(--border2); font-size: 13px; }
.prose td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.prose tr:hover td { background: rgba(255,255,255,.02); }
.prose ul, .prose ol { padding-left: 1.6em; margin-bottom: 1.5em; }
.prose li { margin-bottom: .6em; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 18px 26px; margin: 2.2em 0; background: var(--surface); border-radius: 0 8px 8px 0; font-style: italic; color: var(--muted); font-size: 16px; }

/* Score card */
.score-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 14px; padding: 28px; margin-bottom: 32px; }
.sc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.sc-name { font-family: var(--serif); font-size: 26px; margin-bottom: 5px; }
.sc-price { font-size: 13px; font-weight: 600; color: var(--muted); }
.sc-scores { display: flex; gap: 12px; flex-shrink: 0; }
.sc-score { text-align: center; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; min-width: 64px; }
.sc-score-num { font-family: var(--serif); font-size: 28px; color: var(--accent); line-height: 1; }
.sc-score-label { font-size: 10px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.sc-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sc-pros, .sc-cons { background: var(--surface2); border-radius: 10px; padding: 16px 18px; }
.spc-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.sc-pros .spc-label { color: var(--green); }
.sc-cons .spc-label { color: var(--red); }
.spc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.spc-list li { font-size: 13px; font-weight: 500; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.sc-pros .spc-list li::before { content: '\2713'; color: var(--green); flex-shrink: 0; font-weight: 800; }
.sc-cons .spc-list li::before { content: '\2717'; color: var(--red); flex-shrink: 0; font-weight: 800; }

/* Sidebar TOC */
.toc-sticky { position: sticky; top: 80px; }
.toc-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 16px; }
.toc-title { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc-list a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 8px; transition: color .2s; }
.toc-list a::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.toc-list a:hover { color: var(--text); }
.toc-list a:hover::before { background:var(--accent-fill,var(--accent)); }

/* Sidebar CTA */
.sidebar-cta { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 14px; text-align: center; }
.sidebar-cta .emoji { font-size: 32px; margin-bottom: 10px; }
.sidebar-cta h4 { font-family: var(--serif); font-size: 19px; margin-bottom: 6px; }
.sidebar-cta .comm { font-size: 11px; font-weight: 700; color: var(--green); background: rgba(74,222,128,.08); padding: 4px 10px; border-radius: 6px; display: inline-block; margin-bottom: 12px; }
.sidebar-cta .price { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.sidebar-cta a.primary { display: block; background:var(--accent-fill,var(--accent)); color: white; text-decoration: none; padding: 11px; border-radius: 8px; font-size: 14px; font-weight: 700; transition: filter .2s; margin-bottom: 8px; }
.sidebar-cta a.primary:hover { filter: brightness(1.15); }
.sidebar-cta a.secondary { display: block; background: var(--surface2); color: var(--muted); text-decoration: none; padding: 10px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); }

/* Rating badges */
.rating-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.5em 0; }
.rating-badge { background: var(--surface2); border: 1px solid var(--border2); border-radius: 8px; padding: 10px 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 90px; }
.rating-badge .rb-stars { font-size: 18px; font-weight: 800; color: var(--accent); line-height: 1; }
.rating-badge .rb-source { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rating-badge .rb-count { font-size: 11px; font-weight: 600; color: var(--dim); }

/* Anti-rec box */
.anti-rec-box { background: rgba(248,113,113,.06); border: 1px solid rgba(248,113,113,.2); border-radius: 12px; padding: 22px 26px; margin: 2em 0; }
.anti-rec-box .arb-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.anti-rec-box p { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.7; margin: 0; }
.anti-rec-box strong { color: var(--text); font-weight: 700; }

/* Affiliate box */
.aff-box { border: 1px solid var(--border2); border-radius: 12px; padding: 26px 28px; margin: 2.2em 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, var(--surface), var(--surface2)); }
.aff-box .aff-info h4 { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.aff-box .aff-info p { font-size: 13px; font-weight: 500; color: var(--muted); margin: 0; }
.aff-box .aff-commission { font-size: 11px; font-weight: 700; color: var(--green); margin-top: 6px; }

/* FAQ */
.faq-section { max-width: 1160px; margin: 0 auto; padding: 60px clamp(20px,5vw,80px) 80px; }
.faq-section h2 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin-bottom: 28px; }
.faq-section h2 em { font-style: italic; color: var(--accent); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; padding: 20px 0; background: none; border: none; font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-icon { color: var(--accent); font-size: 22px; flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { font-size: 15px; font-weight: 500; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s; line-height: 1.75; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* Disclosure */
.disclosure-bar { background: rgba(124,106,247,.06); border: 1px solid rgba(124,106,247,.15); border-radius: 8px; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 32px; line-height: 1.6; }
.tag-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }

/* Footer (legacy) */
.site-footer { margin-top: 100px; border-top: 1px solid var(--border); padding: 48px clamp(20px,5vw,80px); }
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; font-weight: 500; color: var(--dim); }

/* TradingView sections (crypto page) */
.tv-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tv-tape-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 16px; overflow: hidden; min-height: 46px; }
.tv-chart-wrap, .tv-heatmap-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; min-height: 300px; }
@media (min-width: 769px) {
  .tv-grid { grid-template-columns: 1fr 1fr; }
  .tv-tape-wrap { grid-column: 1/3; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

/* Tablet — collapse rail, show hamburger */
@media (max-width: 1024px) {
  .page-shell {
    grid-template-columns: 1fr;
  }
  .rail { display: none; }
  .menu-trigger { display: flex; }
  .topbar-ticker { display: none; }
  .surprise-text { display: none; }
}

@media (max-width: 768px) {
  .masonry { grid-template-columns: 1fr; }
  .m-big { grid-row: span 1; }
  .m-wide, .m-cluster, .m-ribbon, .m-ad, .m-tool { grid-column: auto; }
  .trust-bar { flex-wrap: wrap; gap: 0; }
  .tb-sep { display: none; }
  .tb-item { min-width: 80px; }
  .sc-pros-cons { grid-template-columns: 1fr; }
  .aff-box { flex-direction: column; }
  .toc-sticky { position: static; }
  .mobile-sidebar { width: 240px; }
  .menu-label { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-hero { grid-row: auto; grid-column: auto; min-height: auto; }
  .bento-wide { grid-column: auto; flex-direction: column; }
  .category-panels { grid-template-columns: 1fr 1fr; }
  .cat-panel-tall { grid-row: auto; }
  .trust-strip-inner { flex-wrap: wrap; }
  .trust-sep { display: none; }
  .latest-card { flex-direction: column; gap: 12px; }
  .latest-arrow { display: none; }
  .cta-panel { padding: 48px 24px; }
  .search-results { width: 100%; }
}

@media (max-width: 480px) {
  .category-panels { grid-template-columns: 1fr; }
  .topbar-search { max-width: 160px; }
  .hero-btns { flex-direction: column; }
  .m-cluster-pills { gap: 6px; }
  .mc-pill { padding: 6px 10px; font-size: 11px; }
}
