/* =========================================================
   OptionIncomeTools — Design System v2
   Theme: Robinhood/Public-bold, retail-trader energy
   Pure black, vibrant green, violet accents, bento layouts
   ========================================================= */

:root {
  /* Surface */
  --bg: #050505;
  --bg-elev: #0d0d0f;
  --bg-elev-2: #16161a;
  --bg-glass: rgba(20,20,24,0.6);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --border-glow: rgba(0,200,5,0.4);

  /* Text */
  --text: #ffffff;
  --text-dim: #a1a1aa;
  --text-faint: #6b6b75;

  /* Brand — bull (green) vs bear (orange) crystalline */
  --brand: #3dd647;             /* Crystalline bull green */
  --brand-deep: #1fa330;
  --brand-soft: rgba(61,214,71,0.14);
  --brand-2: #ff6a1a;           /* Crystalline bear orange */
  --brand-2-deep: #cc4d00;
  --brand-2-soft: rgba(255,106,26,0.16);
  --brand-3: #ffd24a;           /* warm gold accent */

  /* Status */
  --warn: #fbbf24;
  --danger: #ff4d4f;
  --gain: #3dd647;
  --loss: #ff4d4f;

  /* Geometry */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow: 0 12px 60px rgba(0,0,0,0.6);
  --shadow-soft: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 0 1px rgba(61,214,71,0.35), 0 20px 60px rgba(61,214,71,0.18);
  --shadow-bear: 0 0 0 1px rgba(255,106,26,0.35), 0 20px 60px rgba(255,106,26,0.18);

  /* Type — system stack for instant text rendering, zero network round-trips */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --max-w: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11','ss01','ss03';
  overflow-x: hidden;
  position: relative;
}

/* Background orbs removed entirely — were costing 200-400ms of paint work for minimal visual gain.
   The dot grid + bg color does enough atmospheric work on its own. */

/* Dot grid overlay */
body { background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 28px 28px; background-position: 0 0; }

/* Content sits above the orbs */
header, section, footer, main, nav, div { position: relative; z-index: 1; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand); opacity: 0.85; }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); margin-top: 3rem; letter-spacing: -0.03em; }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
code, .mono { font-family: var(--mono); font-size: 0.95em; font-variant-numeric: tabular-nums; }

p { color: var(--text-dim); }

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
/* Reserve space for JS-injected header to prevent CLS on mount.
   This must match the actual rendered height (nav ~72px + risk-strip ~38px). */
#site-header { min-height: 110px; display: block; }
@media (max-width: 768px) { #site-header { min-height: 96px; } }
#site-footer { min-height: 600px; display: block; }
@media (max-width: 700px) { #site-footer { min-height: 1100px; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: rgba(5,5,5,0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; max-width: var(--max-w); margin: 0 auto;
}
.logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 48px; width: auto; display: block;
  transition: transform .2s ease;
}
.logo:hover .logo-img { transform: scale(1.04); }
@media (max-width: 768px) {
  .logo-img { height: 38px; }
}
@media (max-width: 480px) {
  .logo-img { height: 32px; }
}
/* Legacy fallback styles kept in case any old markup loads */
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #000;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-mark-fallback {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #000; font-weight: 900; font-size: 1.15rem;
}
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a {
  color: var(--text-dim); font-weight: 500; font-size: 0.92rem;
  transition: color .15s ease;
}
.nav-links a.active, .nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--brand); color: #000 !important;
  padding: 0.55rem 1.1rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(61,214,71,0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(61,214,71,0.5); color: #000 !important; }

.menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; font-size: 1.4rem; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-elev); padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .menu-btn { display: block; }
}

/* ---------- Ticker tape ---------- */
.ticker-tape {
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.6);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.ticker-tape-inner { display: flex; gap: 2.5rem; padding: 0.55rem 1rem; animation: ticker-scroll 60s linear infinite; white-space: nowrap; }
.ticker-tape .t-sym { color: var(--text); font-weight: 700; }
.ticker-tape .t-price { color: var(--text-dim); margin-left: 0.4rem; }
.ticker-tape .t-chg.gain { color: var(--gain); }
.ticker-tape .t-chg.loss { color: var(--loss); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
}
.hero-logo {
  display: block;
  max-width: min(640px, 90vw);
  width: 100%;
  height: auto;
  margin: 0 auto 2rem;
  animation: logo-float 6s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (max-width: 600px) {
  .hero-logo { max-width: 86vw; margin-bottom: 1.25rem; }
}
.hero-headline { font-size: clamp(2rem, 5vw, 4.5rem) !important; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 1.05rem;
  background: var(--brand-soft);
  border: 1px solid rgba(61,214,71,0.3);
  border-radius: var(--radius-pill);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}
.hero-eyebrow::before {
  content: ''; width: 7px; height: 7px;
  background: var(--brand); border-radius: 50%;
  box-shadow: 0 0 12px var(--brand);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(1.4); }
}
.hero h1 {
  margin: 0 0 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #b6b6c0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 18ch; margin-left: auto; margin-right: auto;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--text-dim);
  max-width: 640px; margin: 0 auto 2.5rem;
  line-height: 1.5;
}
.hero-cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Hero stats bar */
.hero-stats {
  display: flex; justify-content: center; gap: 3.5rem;
  margin: 3rem auto 0; flex-wrap: wrap;
  max-width: 800px;
}
.hero-stat-value {
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.hero-stat-label { font-size: 0.85rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .15s ease;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--brand);
  color: #000;
  box-shadow: 0 6px 22px rgba(61,214,71,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(61,214,71,0.55); color: #000; }
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: var(--text); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-dim); padding: 0.6rem 1rem; }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-bear {
  background: linear-gradient(135deg, var(--brand-2) 0%, #cc4d00 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(255,106,26,0.4);
}
.btn-bear:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,106,26,0.55); color: #fff; }

/* ---------- Uniform tools grid (homepage) ---------- */
.tools-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin: 2.5rem 0;
}
.tools-grid > .calc-card {
  /* All tiles equal — equal height too thanks to grid item stretch */
  min-height: 100%;
}
@media (max-width: 1100px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .tools-grid { grid-template-columns: 1fr; } }

/* ---------- Bento grid / calc grid ---------- */
.calc-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 2.5rem 0;
}
.bento-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  margin: 2.5rem 0;
}
.bento-grid .calc-card { grid-column: span 2; }
.bento-grid .calc-card.bento-wide { grid-column: span 3; }
.bento-grid .calc-card.bento-tall { grid-row: span 2; grid-column: span 2; }
.bento-grid .calc-card.bento-hero { grid-column: span 4; grid-row: span 2; }
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-grid .calc-card, .bento-grid .calc-card.bento-wide, .bento-grid .calc-card.bento-hero, .bento-grid .calc-card.bento-tall { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 540px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-grid .calc-card, .bento-grid .calc-card.bento-wide, .bento-grid .calc-card.bento-hero, .bento-grid .calc-card.bento-tall { grid-column: span 1; }
}

.calc-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; gap: 0.85rem;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  backdrop-filter: blur(8px);
}
.calc-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,0%), rgba(61,214,71,0.12), transparent 40%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.calc-card:hover::before { opacity: 1; }
.calc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61,214,71,0.35);
  box-shadow: var(--shadow-glow);
  color: inherit;
}
.calc-card-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--brand-2-soft) 100%);
  border: 1px solid rgba(61,214,71,0.25);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 1.6rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.calc-card h3 { margin: 0; color: var(--text); font-size: 1.2rem; }
.calc-card p { margin: 0; color: var(--text-dim); font-size: 0.93rem; line-height: 1.55; }
.calc-card-arrow {
  margin-top: auto; color: var(--brand); font-weight: 700; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: gap .2s ease;
}
.calc-card:hover .calc-card-arrow { gap: 0.65rem; }

/* ---------- Calculator Layout ---------- */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  margin: 2.5rem 0 3rem;
  align-items: start;
}
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
}
.panel h2, .panel h3 { margin-top: 0; }
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }

/* ---------- Form ---------- */
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--text-faint); margin-bottom: 0.4rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.field input, .field select {
  width: 100%; padding: 0.85rem 1rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-xs);
  font-family: var(--mono);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus {
  outline: 0;
  border-color: var(--brand);
  background: rgba(0,0,0,0.7);
  box-shadow: 0 0 0 4px rgba(61,214,71,0.15);
}
.field input::placeholder { color: var(--text-faint); }
.field-hint { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.35rem; }
.input-prefix-wrap { position: relative; }
.input-prefix-wrap .prefix {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); font-family: var(--mono); pointer-events: none;
}
.input-prefix-wrap input { padding-left: 1.9rem; }

.btn-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* ---------- Results / KPIs ---------- */
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.kpi {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.15rem;
  position: relative; overflow: hidden;
}
.kpi::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61,214,71,0.5), transparent);
  opacity: 0.6;
}
.kpi-label { font-size: 0.5rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.kpi-value {
  font-family: var(--mono); font-size: 1.65rem; font-weight: 700;
  color: var(--text); margin-top: 0.45rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.kpi-value.gain { color: var(--gain); }
.kpi-value.loss { color: var(--loss); }
.kpi-value.warn { color: var(--warn); }
.kpi-sub { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.25rem; }

/* ---------- Alerts ---------- */
.alert {
  padding: 1rem 1.15rem; border-radius: var(--radius-sm); margin: 1.25rem 0;
  font-size: 0.92rem; border: 1px solid; display: flex; gap: 0.7rem; align-items: flex-start;
  backdrop-filter: blur(6px);
}
.alert-warn    { background: rgba(251,191,36,0.06); border-color: rgba(251,191,36,0.3); color: #fde68a; }
.alert-danger  { background: rgba(255,77,79,0.07);  border-color: rgba(255,77,79,0.35); color: #ffcdce; }
.alert-info    { background: rgba(255,106,26,0.07); border-color: rgba(255,106,26,0.35); color: #ddd6fe; }
.alert-success { background: rgba(61,214,71,0.07);   border-color: rgba(61,214,71,0.35);  color: #bbf7d0; }

/* ---------- Chart ---------- */
.chart-wrap {
  position: relative; height: 340px; margin: 1.25rem 0;
  background: rgba(0,0,0,0.35);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border: 1px solid var(--border);
}
.chart-wrap canvas { max-height: 320px; }

/* ---------- Table scroll container (mobile-friendly) ---------- */
.table-scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
  /* Fading shadow hints on left/right edges signal scrollability.
     Uses background-attachment: local so shadows reveal when scrolled. */
  background:
    linear-gradient(to right, var(--bg) 0%, transparent 6px) 0 0 / 24px 100% no-repeat local,
    linear-gradient(to left,  var(--bg) 0%, transparent 6px) 100% 0 / 24px 100% no-repeat local,
    linear-gradient(to right, rgba(0,0,0,0.4), transparent 12%) 0 0 / 100% 100% no-repeat scroll,
    linear-gradient(to left,  rgba(0,0,0,0.4), transparent 12%) 100% 0 / 100% 100% no-repeat scroll;
}
.table-scroll > .table { min-width: 640px; }
@media (max-width: 600px) {
  .table-scroll > .table th, .table-scroll > .table td {
    padding: 0.6rem 0.55rem;
    font-size: 0.82rem;
  }
}

/* Mobile typography + spacing polish */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .container, .container-narrow { padding: 0 1rem; }
  .panel { padding: 1.25rem; }
  .hero { padding: 3.5rem 1rem 3rem; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .calc-card { padding: 1.4rem; }
  .calc-card-icon { width: 44px; height: 44px; font-size: 1.4rem; }
  .field input, .field select {
    font-size: 16px; /* Prevents iOS auto-zoom on focus */
    min-height: 44px; /* WCAG / Apple touch-target minimum */
  }
  .btn { min-height: 44px; padding: 0.85rem 1.4rem; }
  .home-opp-card { padding: 0.95rem 1rem; }
  .related-ticker-card { padding: 0.85rem 0.95rem; }
}

/* ---------- Tables ---------- */
.table {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.table th, .table td {
  text-align: right; padding: 0.8rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.table th {
  color: var(--text-faint); font-weight: 700;
  text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.1em;
  background: rgba(0,0,0,0.3);
  position: sticky; top: 0;
}
.table td:first-child, .table th:first-child { text-align: left; font-family: var(--font); font-weight: 600; }
.table tr { transition: background .12s ease; }
.table tr:hover td { background: rgba(61,214,71,0.04); }

/* ---------- Ad slots ---------- */
.ad-slot {
  margin: 2.5rem auto; max-width: 728px;
  min-height: 90px;
  background: rgba(255,255,255,0.025);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-size: 0.82rem;
}
.ad-slot[data-format="rectangle"] { max-width: 336px; min-height: 280px; }
.ad-slot[data-format="sidebar"]   { max-width: 300px; min-height: 600px; }

/* ---------- FAQ ---------- */
.faq details {
  background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.7rem;
  transition: border-color .2s ease, background .2s ease;
}
.faq details:hover { border-color: rgba(255,255,255,0.18); }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; color: var(--brand); font-size: 1.4rem; font-weight: 300;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: '×'; }
.faq details[open] { border-color: rgba(61,214,71,0.3); }
.faq p { margin: 0.9rem 0 0; color: var(--text-dim); line-height: 1.65; }

.prose p { color: var(--text-dim); line-height: 1.7; }
.prose ul { color: var(--text-dim); line-height: 1.7; }
.prose strong { color: var(--text); }

/* ---------- Related-tickers block ---------- */
.related-ticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
@media (max-width: 900px) { .related-ticker-grid { grid-template-columns: repeat(2, 1fr); } }
.related-ticker-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color .15s ease, transform .15s ease;
}
.related-ticker-card:hover {
  border-color: rgba(61,214,71,0.4);
  transform: translateY(-2px);
}
.related-ticker-card strong {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.related-ticker-label {
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 1.25rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .15s ease;
}
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs-sep { color: var(--text-faint); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 6rem;
  padding: 3.5rem 1.5rem 2.5rem;
  background: rgba(0,0,0,0.6);
  color: var(--text-dim); font-size: 0.9rem;
  backdrop-filter: blur(12px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(5, 1fr);
  gap: 2rem;
  max-width: var(--max-w); margin: 0 auto 2.5rem;
}
.footer-brand { grid-column: span 1; }
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 1.75rem; }
  .footer-brand { grid-column: span 3; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .footer-brand { grid-column: span 2; }
}
.footer-col h4 { color: var(--text); font-size: 0.9rem; margin: 0 0 0.85rem; letter-spacing: -0.01em; }
.footer-col a { display: block; color: var(--text-dim); padding: 0.25rem 0; font-size: 0.88rem; transition: color .15s ease; }
.footer-col a:hover { color: var(--brand); }

.disclaimer {
  max-width: var(--max-w); margin: 0 auto; padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-faint); line-height: 1.6;
}
.disclaimer-block {
  background: rgba(251,191,36,0.04);
  border: 1px solid rgba(251,191,36,0.18);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
}
.disclaimer-title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--warn);
  font-weight: 700;
}
.disclaimer-block p {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-faint);
}
.disclaimer-block p strong { color: var(--text-dim); font-weight: 700; }
.disclaimer-block p a { color: var(--text-dim); text-decoration: underline; }
.disclaimer-block p a:hover { color: var(--brand); }
.disclaimer-copyright {
  margin-top: 1rem !important;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-faint);
}

/* Top-of-page risk strip */
.risk-strip {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.5rem 1rem;
  background: rgba(251,191,36,0.07);
  border-top: 1px solid rgba(251,191,36,0.15);
  border-bottom: 1px solid rgba(251,191,36,0.15);
  font-size: 0.78rem;
  color: #fde68a;
  text-align: center;
  line-height: 1.45;
}
.risk-strip strong { color: var(--warn); font-weight: 700; }
.risk-strip-icon { color: var(--warn); font-size: 0.95rem; flex-shrink: 0; }
@media (max-width: 600px) {
  .risk-strip { font-size: 0.72rem; padding: 0.45rem 0.85rem; }
}

/* ---------- Animations ---------- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,214,71,0.5); }
  50%      { box-shadow: 0 0 0 14px rgba(61,214,71,0); }
}
.pulse { animation: pulse-glow 2s infinite; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fade-up .8s cubic-bezier(.2,.8,.2,1) both; }
.fade-up-2 { animation: fade-up .8s cubic-bezier(.2,.8,.2,1) .15s both; }
.fade-up-3 { animation: fade-up .8s cubic-bezier(.2,.8,.2,1) .3s both; }
.fade-up-4 { animation: fade-up .8s cubic-bezier(.2,.8,.2,1) .45s both; }

@keyframes draw-line {
  from { stroke-dashoffset: 1200; }
  to   { stroke-dashoffset: 0; }
}
.draw-line { stroke-dasharray: 1200; animation: draw-line 2.5s ease forwards; }

@keyframes coin-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.coin-bounce { animation: coin-bounce 2s ease-in-out infinite; }

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin-slow { animation: spin-slow 30s linear infinite; transform-origin: center; }

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-text {
  background: linear-gradient(90deg, var(--text-dim) 0%, var(--brand) 50%, var(--text-dim) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

.strategy-svg {
  width: 100%; max-width: 680px; height: auto;
  margin: 2.5rem auto 0; display: block;
  filter: drop-shadow(0 8px 40px rgba(61,214,71,0.18));
}

.loading {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid var(--border-strong); border-top-color: var(--brand);
  border-radius: 50%; animation: spin-slow 0.7s linear infinite;
}

.toggle-group {
  display: inline-flex; background: rgba(0,0,0,0.4); border-radius: var(--radius-pill); padding: 4px;
  border: 1px solid var(--border);
}
.toggle-group button {
  background: transparent; border: 0; color: var(--text-dim);
  padding: 0.45rem 1rem; border-radius: var(--radius-pill);
  font-weight: 600; cursor: pointer; font-size: 0.85rem;
  transition: background .15s ease, color .15s ease;
}
.toggle-group button:hover { color: var(--text); }
.toggle-group button.active { background: var(--brand); color: #000; }

.affiliate-strip {
  background: linear-gradient(135deg, rgba(61,214,71,0.08) 0%, rgba(255,106,26,0.08) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between;
  backdrop-filter: blur(8px);
}
.affiliate-strip .copy { color: var(--text); font-size: 1rem; line-height: 1.45; }
.affiliate-strip .copy strong { color: var(--brand); }

.text-dim    { color: var(--text-dim); }
.text-faint  { color: var(--text-faint); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.hide-mobile {}
@media (max-width: 600px) { .hide-mobile { display: none; } }

.home-opp-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  transition: transform .2s ease, border-color .2s ease;
  text-decoration: none; color: inherit; display: block;
}
.home-opp-card:hover { transform: translateY(-2px); border-color: rgba(61,214,71,0.3); color: inherit; }
.home-opp-sym { font-weight: 800; font-size: 1.05rem; color: var(--text); letter-spacing: -0.01em; }
.home-opp-yield     { font-family: var(--mono); font-size: 1.6rem; color: var(--brand);   font-weight: 700; margin-top: 0.3rem; font-variant-numeric: tabular-nums; }
.home-opp-yield-csp { font-family: var(--mono); font-size: 1.6rem; color: var(--brand-2); font-weight: 700; margin-top: 0.3rem; font-variant-numeric: tabular-nums; }
.home-opp-meta { font-size: 0.8rem; color: var(--text-faint); margin-top: 0.4rem; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

: