/* ============================================
   BitcoinBeginners — Main Stylesheet
   ============================================ */

/* --- Variables --- */
:root {
  --orange:        #F7931A;
  --orange-dark:   #D4780E;
  --orange-glow:   rgba(247, 147, 26, 0.12);
  --orange-border: rgba(247, 147, 26, 0.25);

  --bg-primary:    #0D0D0D;
  --bg-secondary:  #111111;
  --bg-card:       #181818;
  --bg-card-hover: #1F1F1F;

  --text-primary:  #F0F0F0;
  --text-secondary:#C0C0C0;
  --text-muted:    #777777;

  --border:        #252525;
  --radius:        12px;
  --radius-sm:     8px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }

/* --- Utility --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 80px 0; }
.section-alt { background: var(--bg-secondary); }

.badge {
  display: inline-block;
  background: var(--orange-glow);
  color: var(--orange);
  border: 1px solid var(--orange-border);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #000;
}
.btn-primary:hover {
  background: var(--orange-dark);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(247, 147, 26, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange-border);
}
.btn-outline:hover {
  background: var(--orange-glow);
  border-color: var(--orange);
  color: var(--orange);
}
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 56px;
  max-width: 1400px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-logo-icon {
  width: 32px; height: 32px;
  background: var(--orange);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: #000;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile Nav --- */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 20px;
  gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(247,147,26,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-glow);
  color: var(--orange);
  border: 1px solid var(--orange-border);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--orange); }
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
}
.hero-stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--orange-border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.card-icon {
  width: 44px; height: 44px;
  background: var(--orange-glow);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--orange);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 14px;
}
.card-link:hover { gap: 8px; }

/* --- Learn Sections --- */
.learn-section { padding: 72px 0; }
.learn-section:nth-child(even) { background: var(--bg-secondary); }

.learn-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.learn-layout.reverse { direction: rtl; }
.learn-layout.reverse > * { direction: ltr; }

.learn-content .badge { margin-bottom: 12px; }
.learn-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}
.learn-content p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.97rem;
}
.learn-content ul {
  list-style: none;
  margin: 16px 0 24px;
}
.learn-content ul li {
  display: flex;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.learn-content ul li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

.learn-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.visual-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Blockchain visual */
.blockchain-blocks {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  gap: 4px;
}
.block {
  background: var(--orange-glow);
  border: 1px solid var(--orange-border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
  text-align: center;
}
.block-arrow { color: var(--text-muted); font-size: 1.1rem; padding: 0 2px; }

/* Wallet types visual */
.wallet-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.wallet-row-icon { font-size: 1.5rem; }
.wallet-row-info { flex: 1; }
.wallet-row-label {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.wallet-row-desc { font-size: 0.78rem; color: var(--text-muted); }
.wallet-row-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
}
.badge-green { background: rgba(34,197,94,0.12); color: #22c55e; }
.badge-yellow { background: rgba(234,179,8,0.12); color: #eab308; }

/* Steps visual */
.steps-list { display: flex; flex-direction: column; gap: 12px; }
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.step-num {
  width: 26px; height: 26px;
  background: var(--orange);
  color: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.step-text { font-size: 0.88rem; color: var(--text-secondary); padding-top: 3px; }
.step-text strong { color: var(--text-primary); display: block; margin-bottom: 2px; }

/* Chart visual */
.chart-mockup {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 16px;
  flex: 1;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.chart-label { font-size: 0.78rem; color: var(--text-muted); }
.chart-label.green { color: #22c55e; font-weight: 700; }
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
}
.bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--orange-glow);
  border: 1px solid var(--orange-border);
}
.bar.up { background: rgba(34,197,94,0.2); border-color: rgba(34,197,94,0.4); }
.bar.down { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); }

/* Earn methods visual */
.earn-list { display: flex; flex-direction: column; gap: 10px; }
.earn-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.earn-icon { font-size: 1.2rem; }
.earn-info { flex: 1; }
.earn-name { font-size: 0.88rem; font-weight: 700; }
.earn-note { font-size: 0.76rem; color: var(--text-muted); }
.earn-amount { font-size: 0.82rem; font-weight: 700; color: #22c55e; }

/* --- Affiliate Cards --- */
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.aff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
}
.aff-card:hover {
  border-color: var(--orange-border);
  transform: translateY(-2px);
}
.aff-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.aff-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.aff-type {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.aff-bonus {
  background: var(--orange-glow);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--orange);
  font-weight: 700;
}
.aff-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.aff-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aff-features li {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.aff-features li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
}
.aff-cta {
  margin-top: auto;
}
.aff-cta .btn { width: 100%; justify-content: center; }
.aff-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

/* --- Newsletter / Email Capture --- */
.newsletter {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #0F0F0F 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}
.newsletter h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.newsletter h2 span { color: var(--orange); }
.newsletter p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-perks {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.newsletter-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.newsletter-perk span:first-child { color: var(--orange); font-size: 1rem; }

/* Email embed container */
.newsletter-embed {
  display: flex;
  justify-content: center;
  width: 100%;
}
.newsletter-embed iframe {
  display: block;
  margin: 0 auto;
}
/* Do not add styles targeting .beehiiv-embed — that class is used by Beehiiv's own script */

/* --- Guide Page --- */
.guide-hero {
  padding: 70px 0 50px;
  text-align: center;
}
.guide-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.guide-hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}
.guide-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 80px;
}
.guide-chapter {
  margin-bottom: 52px;
}
.guide-chapter-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.guide-chapter h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.guide-chapter p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.97rem;
}
.guide-chapter ul, .guide-chapter ol {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.97rem;
  margin: 12px 0;
}
.guide-chapter li { margin-bottom: 8px; }
.callout {
  background: var(--orange-glow);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.callout strong { color: var(--orange); }

/* --- Disclosure Banner --- */
.disclosure {
  background: rgba(247,147,26,0.06);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  text-align: center;
}
.disclosure a { color: var(--orange); font-size: 0.82rem; }

/* --- Footer --- */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 300px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-affiliate-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.page-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
}

/* --- BTC Ticker Bar --- */
.ticker-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 7px 20px;
  font-size: 0.82rem;
}
.ticker-bar-label {
  color: var(--text-muted);
  font-weight: 600;
}
.ticker-price {
  color: var(--text-primary);
  font-weight: 700;
}
.ticker-change { font-weight: 700; }
.ticker-change.up   { color: #22c55e; }
.ticker-change.down { color: #ef4444; }
.ticker-bar-note {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* --- FAQ --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--orange-border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--orange); }
.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--orange-glow);
  border: 1px solid var(--orange-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--orange);
  font-weight: 700;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 24px 18px;
}
.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}
.faq-item.open .faq-answer { display: block; }

/* --- Social Proof --- */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.social-proof-avatars {
  display: flex;
}
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--orange-glow);
  border: 2px solid var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }

/* --- Sticky Mobile CTA --- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--bg-secondary);
  border-top: 1px solid var(--orange-border);
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta span {
  font-size: 0.88rem;
  color: var(--text-secondary);
  flex: 1;
}

/* --- Comparison Table --- */
.compare-wrap {
  overflow-x: auto;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 600px;
}
.compare-table thead {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  padding: 13px 18px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}
.compare-table td {
  padding: 16px 18px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr {
  background: var(--bg-card);
  transition: background var(--transition);
}
.compare-table tbody tr:hover { background: var(--bg-card-hover); }
.compare-bonus {
  color: var(--orange) !important;
  font-weight: 700;
}
.compare-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 10px 18px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin: 0;
}

/* --- Guide TOC --- */
.guide-toc {
  background: var(--bg-card);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-bottom: 36px;
}
.guide-toc-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--orange);
  margin-bottom: 12px;
}
.guide-toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: toc;
}
.guide-toc-list li {
  counter-increment: toc;
  display: flex;
  align-items: center;
  gap: 10px;
}
.guide-toc-list li::before {
  content: counter(toc);
  width: 22px; height: 22px;
  background: var(--orange-glow);
  border: 1px solid var(--orange-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  flex-shrink: 0;
}
.guide-toc-list a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.guide-toc-list a:hover { color: var(--orange); }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 150;
  width: 40px; height: 40px;
  background: var(--orange);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 16px rgba(247,147,26,0.35);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--orange-dark); }

/* --- Nav Metrics Link --- */
.nav-metrics {
  background: var(--orange-glow);
  border: 1px solid var(--orange-border);
  border-radius: 50px;
  padding: 4px 13px !important;
  color: var(--orange) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
  margin-left: 16px;
}
.nav-metrics:hover {
  background: rgba(247,147,26,0.2) !important;
  color: var(--orange) !important;
}
.nav-metrics.active {
  background: var(--orange) !important;
  color: #000 !important;
}

/* ============================================
   Metrics Page
   ============================================ */

/* --- Hero --- */
.metrics-hero {
  padding: 56px 0 44px;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.metrics-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.metrics-hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 8px;
}
.metrics-disclaimer {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  margin-top: 4px !important;
}

/* --- Metrics Grid --- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* --- Metric Card --- */
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--mc-accent, var(--border));
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}
.metric-card:not(.mc-loading) {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--mc-accent, transparent) 15%, transparent);
}
.mc-loading {
  opacity: 0.55;
}
.mc-error {
  opacity: 0.5;
}
.mc-error .mc-value {
  font-size: 1rem !important;
  color: var(--text-muted) !important;
}
.mc-error .mc-zone {
  color: var(--text-muted) !important;
}

.mc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mc-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mc-live {
  font-size: 0.65rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 50px;
  padding: 2px 8px;
  letter-spacing: 0.06em;
}

.mc-body {
  margin-bottom: 20px;
}
.mc-value {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--mc-accent, var(--text-primary));
  margin-bottom: 6px;
  transition: color 0.4s ease;
}
.mc-zone {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: color 0.4s ease;
}
.mc-sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Bar */
.mc-bar-wrap { margin-bottom: 14px; }
.mc-bar-track {
  height: 6px;
  border-radius: 3px;
  position: relative;
  margin-bottom: 6px;
}
.mc-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.5);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.18), 0 2px 6px rgba(0,0,0,0.5);
  transition: left 0.5s ease;
  z-index: 2;
}
.mc-ref-line {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 12px;
  background: rgba(255,255,255,0.4);
  border-radius: 1px;
  transform: translateX(-50%);
}
.mc-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Bar gradient themes */
.mc-bar-fg {
  background: linear-gradient(to right,
    #4338ca 0%,
    #ea580c 28%,
    #ca8a04 50%,
    #65a30d 72%,
    #dc2626 100%
  );
}
.mc-bar-ahr {
  background: linear-gradient(to right,
    #4338ca 0%,
    #16a34a 30%,
    #ca8a04 65%,
    #dc2626 100%
  );
}
.mc-bar-mayer {
  background: linear-gradient(to right,
    #4338ca 0%,
    #16a34a 25%,
    #ca8a04 55%,
    #dc2626 100%
  );
}
.mc-bar-ma {
  background: linear-gradient(to right,
    #4338ca 0%,
    #16a34a 9%,
    #ca8a04 55%,
    #dc2626 100%
  );
}

.mc-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Error banner --- */
.metrics-error-banner {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.88rem;
  color: #f87171;
  margin-bottom: 24px;
}

/* --- Rainbow Chart --- */
.rainbow-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.tf-buttons {
  display: flex;
  gap: 6px;
}
.tf-btn {
  padding: 6px 16px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.tf-btn:hover {
  border-color: var(--orange-border);
  color: var(--orange);
  background: var(--orange-glow);
}
.tf-btn.active {
  background: var(--orange-glow);
  border-color: var(--orange);
  color: var(--orange);
}
.current-band-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.4s ease, border-color 0.4s ease;
}

.rainbow-chart-wrap {
  position: relative;
  height: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px 12px;
  margin-bottom: 16px;
}
.chart-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  z-index: 5;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.rainbow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-bottom: 14px;
}
.rl-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.rl-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.rainbow-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.55;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .learn-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .learn-layout.reverse { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .sticky-cta { display: flex; }
  .back-to-top { bottom: 72px; }
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .affiliate-grid { grid-template-columns: 1fr; }
  .newsletter-perks { flex-direction: column; align-items: center; }
  .metrics-grid { grid-template-columns: 1fr; }
  .mc-value { font-size: 2.2rem; }
  .rainbow-chart-wrap { height: 320px; }
  .rainbow-controls { flex-direction: column; align-items: flex-start; }
}
