/* ===================================================
   CGH — Crypto Gain Hub | Brand Stylesheet
   Trade. Educate. Elevate.
   =================================================== */

:root {
  --void-black: #050617;
  --panel-navy: #0B1030;
  --electric-blue: #1C40CD;
  --neon-sky: #4595EF;
  --royal-violet: #6D2671;
  --neon-magenta: #C516D8;
  --gain-green: #25D389;
  --alert-red: #F6465D;
  --white: #FFFFFF;
  --fog-gray: #A9AEC2;

  --font-head: 'Chakra Petch', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void-black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--neon-sky); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); color: var(--neon-sky); }
h3 { font-size: 1.3rem; color: var(--fog-gray); }

p { color: var(--fog-gray); margin: 0 0 1.2em; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background texture ---------- */
.glow-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    url('candles-bg.svg') left top / 900px 900px repeat,
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(109,38,113,0.35), transparent 60%),
    radial-gradient(ellipse 55% 45% at 100% 20%, rgba(28,64,205,0.30), transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(197,22,216,0.15), transparent 60%),
    url('smoke-bg.webp') center top / cover no-repeat,
    var(--void-black);
}

/* ---------- Nav ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(69, 149, 239, 0.25);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 18px; align-items: center; flex-wrap: nowrap; white-space: nowrap; margin-left: auto; }
.nav-links a {
  color: var(--fog-gray);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); text-decoration: none; }
.nav-cta {
  background: var(--electric-blue);
  color: var(--white) !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--neon-sky); text-decoration: none; }

.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; background: var(--panel-navy);
    flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 18px; border-bottom: 1px solid rgba(69,149,239,0.25);
    display: none; white-space: normal; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.95rem; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    background: none; border: 1px solid var(--neon-sky); color: var(--white);
    font-size: 1.1rem; border-radius: 6px; padding: 6px 10px; cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  text-align: center;
}
.hero .logo-mark {
  width: 140px; height: 140px; margin: 0 auto 28px;
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(197,22,216,0.35), 0 0 30px rgba(28,64,205,0.4);
}
.hero .tagline {
  font-family: var(--font-head);
  color: var(--neon-sky);
  letter-spacing: 0.25em;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--neon-magenta); }
.hero .lead {
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: 1.1rem;
}
.hero .cta-row {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
@media (max-width: 620px) {
  .hero .cta-row { flex-direction: column; align-items: stretch; gap: 12px; padding: 0 8px; }
  .hero .cta-row .btn { width: 100%; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--electric-blue), var(--royal-violet));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(28,64,205,0.35);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(197,22,216,0.4); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--neon-sky);
  color: var(--white);
}
.btn-outline:hover { background: rgba(69,149,239,0.12); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-tight { padding: 40px 0; }
.section-label {
  font-family: var(--font-head);
  color: var(--royal-violet);
  background: rgba(109,38,113,0.15);
  border: 1px solid rgba(197,22,216,0.3);
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--neon-magenta);
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: rgba(11, 16, 48, 0.65);
  border: 1px solid rgba(69, 149, 239, 0.18);
  border-radius: 14px;
  padding: 26px;
}
.card h3 { color: var(--white); margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.card .icon-img { width: 48px; height: 48px; margin-bottom: 12px; display: block; }

.resource-card {
  background: rgba(11, 16, 48, 0.65);
  border: 1px solid rgba(69, 149, 239, 0.18);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 16px;
}
.resource-card h3 { color: var(--white); margin-bottom: 6px; font-size: 1.1rem; }
.resource-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gain-green);
  border: 1px solid rgba(37,211,137,0.4);
  background: rgba(37,211,137,0.08);
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 10px;
  vertical-align: middle;
}
.resource-card .tag.pending {
  color: var(--fog-gray);
  border-color: rgba(169,174,194,0.4);
  background: rgba(169,174,194,0.08);
}
.resource-card p { margin-bottom: 8px; }
.resource-card a.rlink { font-weight: 600; }

/* ---------- Disclaimer / callout ---------- */
.callout {
  border-left: 4px solid var(--alert-red);
  background: rgba(246,70,93,0.08);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 30px 0;
}
.callout strong { color: var(--alert-red); }
.callout p { margin: 6px 0 0; color: var(--fog-gray); font-size: 0.95rem; }

.callout.info {
  border-left-color: var(--neon-sky);
  background: rgba(69,149,239,0.08);
}
.callout.info strong { color: var(--neon-sky); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(69,149,239,0.2);
  padding: 40px 0 30px;
  margin-top: 60px;
}
footer .foot-grid {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 24px;
}
footer .foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; }
footer .foot-brand img { width: 30px; height: 30px; border-radius: 50%; }
footer .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
footer .foot-links a { color: var(--fog-gray); font-size: 0.9rem; }
footer .disclaimer {
  font-size: 0.78rem;
  color: rgba(169,174,194,0.7);
  border-top: 1px solid rgba(69,149,239,0.12);
  padding-top: 18px;
  line-height: 1.7;
}
footer .copyright { font-size: 0.78rem; color: rgba(169,174,194,0.5); margin-top: 10px; }

/* ---------- Data-style stat strip ---------- */
.stat-strip {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  font-family: var(--font-mono);
  color: var(--gain-green);
  font-size: 0.95rem;
  margin: 26px 0;
}
.stat-strip span.label { color: var(--fog-gray); font-family: var(--font-body); }

/* ---------- Jump nav ---------- */
.jump-nav {
  position: sticky;
  top: 66px;
  z-index: 90;
  background: rgba(5, 6, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(69, 149, 239, 0.18);
  padding: 12px 0;
}
.jump-nav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.jump-nav a {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fog-gray);
  background: rgba(11, 16, 48, 0.6);
  border: 1px solid rgba(69, 149, 239, 0.25);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
}
.jump-nav a:hover {
  color: var(--white);
  border-color: var(--neon-sky);
  background: rgba(69, 149, 239, 0.15);
  text-decoration: none;
}
@media (max-width: 720px) {
  .jump-nav { top: 0; overflow-x: auto; flex-wrap: nowrap; }
  .jump-nav .container { flex-wrap: nowrap; overflow-x: auto; }
}

section h2[id] { scroll-margin-top: 130px; }

/* ---------- Page header (non-home pages) ---------- */
.page-header { padding: 60px 0 30px; text-align: center; }
.page-header .section-label { display: inline-block; }
.page-header p.lead { max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- News page ---------- */
.news-embed-wrap {
  background: rgba(11,16,48,0.5);
  border: 1px solid rgba(69,149,239,0.18);
  border-radius: 16px;
  padding: 24px;
  min-height: 300px;
}
.news-fallback {
  text-align: center;
  padding: 40px 20px;
  color: var(--fog-gray);
}

/* ---------- Live Market Radar ---------- */
.radar-card {
  background: rgba(11, 16, 48, 0.65);
  border: 1px solid rgba(69, 149, 239, 0.25);
  border-radius: 14px;
  padding: 24px 26px;
}
.radar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.radar-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 0;
}
.radar-title .radar-dot { color: var(--gain-green); }
.radar-updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fog-gray);
}
.radar-list { display: flex; flex-direction: column; gap: 14px; }
.radar-item {
  border-top: 1px solid rgba(69, 149, 239, 0.12);
  padding-top: 14px;
}
.radar-item:first-child { border-top: none; padding-top: 0; }
.radar-headline {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.radar-summary { color: var(--fog-gray); font-size: 0.9rem; }
.radar-fallback {
  color: var(--fog-gray);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-align: center;
  padding: 16px 0;
  margin: 0;
}

/* ---------- Newsletter (The CGH Brief) ---------- */
.brief-card {
  background: rgba(11, 16, 48, 0.65);
  border: 1px solid rgba(69, 149, 239, 0.25);
  border-radius: 16px;
  padding: 28px 26px;
  max-width: 720px;
}
.brief-form { display: flex; flex-direction: column; gap: 16px; }
.brief-field { display: flex; flex-direction: column; gap: 6px; }
.brief-field label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fog-gray);
}
.brief-optional { text-transform: none; opacity: 0.75; }
.brief-form input {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(5, 6, 23, 0.6);
  border: 1px solid rgba(69, 149, 239, 0.3);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.brief-form input::placeholder { color: rgba(169, 174, 194, 0.55); }
.brief-form input:focus {
  outline: none;
  border-color: var(--neon-sky);
  box-shadow: 0 0 0 3px rgba(69, 149, 239, 0.18);
}
.brief-form .btn-primary { align-self: flex-start; border: 0; cursor: pointer; }
.brief-form .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
/* Honeypot — visually hidden, off-screen, kept in the tab-less flow for bots. */
.brief-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.brief-status { margin: 4px 0 0; font-size: 0.9rem; min-height: 1.2em; }
.brief-status--pending { color: var(--fog-gray); }
.brief-status--success { color: var(--gain-green); }
.brief-status--error { color: var(--alert-red); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.price-card {
  background: rgba(11, 16, 48, 0.65);
  border: 1px solid rgba(28, 64, 205, 0.18);
  border-radius: 16px;
  padding: 30px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 1.5px solid var(--gold, #FFC553);
  box-shadow: 0 0 40px rgba(255,197,83,0.18);
  transform: translateY(-8px);
}
@media (max-width: 900px) {
  .price-card.featured { transform: none; }
}
.price-card .badge {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #FFC553, #1C40CD);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 4px; }
.price-card .price {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  color: var(--white);
  margin: 10px 0 2px;
}
.price-card .price span { font-size: 0.95rem; color: var(--fog-gray); font-family: var(--font-body); }
.price-card .price-note { font-size: 0.82rem; color: var(--fog-gray); margin-bottom: 20px; }
.price-card ul { list-style: none; margin: 0 0 24px; padding: 0; flex-grow: 1; }
.price-card li {
  color: var(--fog-gray);
  font-size: 0.92rem;
  padding: 8px 0;
  border-top: 1px solid rgba(28,64,205,0.1);
  display: flex;
  gap: 10px;
}
.price-card li:first-child { border-top: none; }
.price-card li::before { content: "✓"; color: var(--gain-green); font-weight: 700; flex-shrink: 0; }
.price-card .btn { text-align: center; width: 100%; }
.btn-disabled {
  background: rgba(169,174,194,0.1);
  border: 1.5px solid rgba(169,174,194,0.3);
  color: var(--fog-gray) !important;
  cursor: not-allowed;
}
.btn-disabled:hover { transform: none; text-decoration: none; }

/* ---------- Shop / product grid ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .shop-grid { grid-template-columns: 1fr; }
}
.product-card {
  background: rgba(11, 16, 48, 0.65);
  border: 1px solid rgba(69, 149, 239, 0.18);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-thumb {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(28,64,205,0.35), rgba(109,38,113,0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.product-thumb .icon-img { width: 40%; height: 40%; object-fit: contain; }
.product-card .product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex-grow: 1; }
.product-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 4px; }
.product-card .product-price { font-family: var(--font-mono); color: var(--fog-gray); font-size: 0.9rem; margin-bottom: 14px; }
.product-card p { font-size: 0.88rem; margin-bottom: 16px; }
.product-card .btn { margin-top: auto; text-align: center; }

/* ---------- Follow / social row ---------- */
.follow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.follow-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(11, 16, 48, 0.6);
  border: 1px solid rgba(69, 149, 239, 0.3);
  border-radius: 999px;
  padding: 8px 16px;
}
.follow-link:hover {
  border-color: var(--neon-sky);
  background: rgba(69, 149, 239, 0.15);
  text-decoration: none;
}
.follow-link .icon { font-size: 1rem; }
.follow-link .icon-img { width: 20px; height: 20px; display: block; }
.follow-link.disabled {
  color: var(--fog-gray);
  border-color: rgba(169,174,194,0.25);
  background: rgba(169,174,194,0.05);
  cursor: default;
}
.follow-link.disabled .badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fog-gray);
  opacity: 0.8;
}

footer .follow-row { margin: 20px 0; }
footer .follow-link { font-size: 0.8rem; padding: 6px 14px; }
footer .follow-link .icon-img { width: 18px; height: 18px; }

/* ---------- Feed (Trade Updates / Technical Analysis) ---------- */
.feed-entry {
  background: rgba(11, 16, 48, 0.65);
  border: 1px solid rgba(69, 149, 239, 0.18);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 20px;
}
.feed-entry .feed-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.feed-entry .feed-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fog-gray);
}
.feed-entry .feed-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-sky);
  border: 1px solid rgba(69,149,239,0.4);
  background: rgba(69,149,239,0.08);
  border-radius: 4px;
  padding: 2px 8px;
}
.feed-entry .feed-tag.long { color: var(--gain-green); border-color: rgba(37,211,137,0.4); background: rgba(37,211,137,0.08); }
.feed-entry .feed-tag.short { color: var(--alert-red); border-color: rgba(246,70,93,0.4); background: rgba(246,70,93,0.08); }
.feed-entry h3 { color: var(--white); margin-bottom: 10px; }
.feed-chart {
  aspect-ratio: 16 / 8;
  background: linear-gradient(135deg, rgba(28,64,205,0.25), rgba(109,38,113,0.25));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--fog-gray);
  margin-bottom: 16px;
}
.feed-entry p:last-child { margin-bottom: 0; }
.ta-longform h3 { font-size: 1.4rem; margin-bottom: 16px; }
.ta-longform p { line-height: 1.7; }
.ta-chart-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(69,149,239,0.2);
  margin: 8px 0 4px;
}
.ta-caption {
  font-size: 0.78rem;
  color: var(--fog-gray);
  text-align: center;
  margin-bottom: 22px !important;
  font-family: var(--font-mono);
}
.feed-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--fog-gray);
  border: 1px dashed rgba(69,149,239,0.3);
  border-radius: 14px;
}

/* ---------- Site link grid (compact) ---------- */
.site-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 700px) {
  .site-grid { grid-template-columns: 1fr; }
}
.site-card {
  background: rgba(11, 16, 48, 0.5);
  border: 1px solid rgba(69, 149, 239, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
}
.site-card a.rlink {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}
.site-card a.rlink:hover { color: var(--neon-sky); text-decoration: none; }
.site-card p { font-size: 0.85rem; color: var(--fog-gray); margin: 0; }

/* ---------- Legends (creator cards) ---------- */
.legend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 16px;
}
@media (max-width: 700px) {
  .legend-grid { grid-template-columns: 1fr; }
}
.legend-card {
  background: rgba(11, 16, 48, 0.65);
  border: 1px solid rgba(69, 149, 239, 0.18);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.legend-avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--electric-blue), var(--neon-magenta));
}
.legend-card h3 { color: var(--white); margin-bottom: 4px; font-size: 1.1rem; }
.legend-card .legend-role { display: block; font-size: 0.78rem; color: var(--neon-sky); font-family: var(--font-mono); margin-bottom: 8px; }
.legend-card p { margin-bottom: 12px; font-size: 0.92rem; }
.legend-links { display: flex; flex-wrap: wrap; gap: 8px; }
.legend-links a {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(69, 149, 239, 0.3);
  color: var(--white);
}
.legend-links a:hover { text-decoration: none; border-color: var(--neon-sky); color: var(--neon-sky); }
.legend-links a.live { border-color: rgba(246, 70, 93, 0.5); color: var(--alert-red); }
.legend-links a.live:hover { border-color: var(--alert-red); color: var(--alert-red); background: rgba(246,70,93,0.08); }



/*b1784642649*/

/* Resource logos */
.resource-card .res-logo { width:44px; height:44px; border-radius:10px; object-fit:contain; float:left; margin:4px 14px 8px 0; }
.resource-card::after { content:""; display:block; clear:both; }
.site-card .site-logo { width:18px; height:18px; border-radius:4px; object-fit:contain; vertical-align:-3px; margin-right:6px; }
img.legend-avatar { object-fit: cover; background: none; width:64px; height:64px; }
.legend-highlights { margin: 0 0 12px 18px; padding: 0; }
.legend-highlights li { font-size: 0.88rem; color: var(--fog-gray); margin-bottom: 5px; }
.legend-community { font-size: 0.88rem; margin-bottom: 12px; }
.legend-community strong { color: var(--neon-sky); font-weight: 600; }

/* ===== Beginner Guides ===== */
.guide-hero { padding: 72px 0 28px; }
.guide-hero .crumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--neon-sky); margin-bottom: 14px; display: block; }
.guide-hero .crumb a { color: var(--neon-sky); text-decoration: none; }
.guide-hero .crumb a:hover { color: var(--white); }
.guide-hero h1 { font-family: var(--font-head); font-size: clamp(30px, 4.5vw, 46px); margin: 0 0 12px; line-height: 1.12; }
.guide-hero .lead { color: var(--fog-gray); max-width: 760px; }
.guide-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.guide-meta .chip { font-family: var(--font-mono); font-size: 11.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(69,149,239,.35); color: var(--neon-sky); background: rgba(28,64,205,.12); }

.guide-body { max-width: 820px; margin: 0 auto; padding: 8px 0 56px; }
.guide-body h2 { font-family: var(--font-head); font-size: clamp(22px, 3vw, 30px); margin: 44px 0 14px; padding-top: 18px; border-top: 1px solid rgba(169,174,194,.14); }
.guide-body h2:first-child { border-top: 0; margin-top: 8px; }
.guide-body h3 { font-family: var(--font-head); font-size: 19px; margin: 26px 0 8px; color: var(--neon-sky); }
.guide-body p { color: #cfd4e4; line-height: 1.75; }
.guide-body li { color: #cfd4e4; line-height: 1.7; margin: 6px 0; }
.guide-body a { color: var(--neon-sky); }
.guide-body a:hover { color: var(--white); }
.guide-body strong { color: var(--white); }
.guide-body code { font-family: var(--font-mono); font-size: .9em; background: rgba(28,64,205,.18); border: 1px solid rgba(69,149,239,.25); border-radius: 6px; padding: 1px 6px; }

/* Table of contents */
.guide-toc { background: var(--panel-navy); border: 1px solid rgba(69,149,239,.22); border-radius: 14px; padding: 18px 22px; margin: 26px 0 8px; }
.guide-toc .toc-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--neon-sky); margin-bottom: 10px; }
.guide-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 34px; }
.guide-toc li { margin: 5px 0; break-inside: avoid; }
.guide-toc a { color: #cfd4e4; text-decoration: none; }
.guide-toc a:hover { color: var(--neon-sky); }
@media (max-width: 640px) { .guide-toc ol { columns: 1; } }

/* Timeline */
.timeline { list-style: none; margin: 26px 0 10px; padding: 0 0 0 30px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--electric-blue), var(--neon-magenta)); border-radius: 2px; opacity: .75; }
.timeline li { position: relative; margin: 0 0 22px; padding-left: 8px; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--void-black); border: 2.5px solid var(--neon-sky); box-shadow: 0 0 10px rgba(69,149,239,.6); }
.timeline .tl-year { display: inline-block; font-family: var(--font-mono); font-size: 12.5px; color: var(--neon-sky); background: rgba(28,64,205,.16); border: 1px solid rgba(69,149,239,.35); border-radius: 999px; padding: 2px 11px; margin-bottom: 6px; letter-spacing: .04em; }
.timeline .tl-text { display: block; color: #cfd4e4; line-height: 1.65; }

/* FAQ */
.guide-faq details { background: var(--panel-navy); border: 1px solid rgba(169,174,194,.16); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
.guide-faq details[open] { border-color: rgba(69,149,239,.4); }
.guide-faq summary { cursor: pointer; font-weight: 600; color: var(--white); font-size: 15.5px; }
.guide-faq details p { margin: 10px 0 2px; }

/* Glossary */
.guide-glossary { background: rgba(11,16,48,.6); border: 1px solid rgba(169,174,194,.14); border-radius: 14px; padding: 8px 22px; }

/* Guide cards on index */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 30px 0 50px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; background: var(--panel-navy); border: 1px solid rgba(169,174,194,.16); border-radius: 16px; padding: 24px; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.guide-card:hover { transform: translateY(-3px); border-color: rgba(69,149,239,.55); }
.guide-card .g-num { font-family: var(--font-mono); font-size: 12px; color: var(--neon-magenta); letter-spacing: .1em; }
.guide-card h3 { font-family: var(--font-head); font-size: 19px; margin: 0; color: var(--white); }
.guide-card p { color: var(--fog-gray); font-size: 14px; line-height: 1.6; margin: 0; }
.guide-card .g-cta { font-family: var(--font-mono); font-size: 12.5px; color: var(--neon-sky); margin-top: auto; }

/* Next-guide footer nav */
.guide-next { display: flex; justify-content: space-between; gap: 14px; margin: 44px 0 8px; flex-wrap: wrap; }
.guide-next a { flex: 1 1 240px; background: var(--panel-navy); border: 1px solid rgba(69,149,239,.28); border-radius: 12px; padding: 14px 18px; text-decoration: none; color: var(--white); font-weight: 600; }
.guide-next a span { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--neon-sky); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; font-weight: 400; }
.guide-next a:hover { border-color: var(--neon-sky); }

/* ---------- Guide PDF request panel ---------- */
.guide-pdf-panel {
  position: relative;
  background: rgba(11, 16, 48, 0.65);
  border: 1px solid rgba(197, 22, 216, 0.35);
  border-radius: 16px;
  padding: 30px 28px;
  margin: 52px auto 10px;
  max-width: 720px;
}
.guide-pdf-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--electric-blue), var(--neon-sky), var(--neon-magenta));
  border-radius: 2px;
}
.guide-pdf-panel .g-num { color: var(--neon-magenta); }
.guide-pdf-panel h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin: 10px 0 8px;
  color: var(--white);
}
.guide-pdf-panel > p {
  color: var(--fog-gray);
  font-size: 0.95rem;
  max-width: 580px;
  margin: 0 0 18px;
}
.brief-form select {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(5, 6, 23, 0.6);
  border: 1px solid rgba(69, 149, 239, 0.3);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234595EF' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.brief-form select:focus {
  outline: none;
  border-color: var(--neon-sky);
  box-shadow: 0 0 0 3px rgba(69, 149, 239, 0.18);
}
.brief-form select option { background: #0B1030; color: #fff; }

/* Guide content gate */
.guide-gate{position:relative;margin-top:-40px;padding-top:60px}
.gate-fade{position:absolute;top:-140px;left:0;right:0;height:140px;background:linear-gradient(to bottom,rgba(5,6,23,0),var(--void-black));pointer-events:none}
.guide-gate .guide-pdf-panel{margin-top:0}

/* News category thumbnails */
.feed-entry { position: relative; }
.feed-entry .feed-thumb {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.feed-entry .feed-meta,
.feed-entry h3 { padding-right: 58px; }
@media (max-width: 560px) {
  .feed-entry .feed-thumb { width: 36px; height: 36px; top: 20px; right: 18px; }
  .feed-entry .feed-meta, .feed-entry h3 { padding-right: 46px; }
}

/* --- Learn dropdown --- */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-toggle { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop-toggle .caret { width: 10px; height: 6px; }
.nav-drop-menu { display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--panel-navy, #10152e); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  padding: 8px; min-width: 200px; flex-direction: column; gap: 2px; box-shadow: 0 14px 34px rgba(0,0,0,0.45); z-index: 60; }
.nav-drop-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: flex; }
.nav-drop-menu a { padding: 8px 12px; border-radius: 7px; white-space: nowrap; }
.nav-drop-menu a:hover { background: rgba(255,255,255,0.06); }
@media (max-width: 1100px) {
  .nav-drop { flex-direction: column; align-items: stretch; }
  .nav-drop-menu { display: flex; position: static; transform: none; background: transparent; border: 0;
    box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .nav-drop-menu::before { display: none; }
}
/* --- Store funnel strip --- */
.shop-strip { display: flex; align-items: center; gap: 18px; margin: 34px 0 6px; padding: 16px 18px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; }
.shop-strip img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; }
.shop-strip .g-num { display: block; margin-bottom: 2px; }
.shop-strip h3 { margin: 0 0 4px; font-size: 1.02rem; }
.shop-strip p { margin: 0; font-size: 0.9rem; color: var(--muted, #9aa3b5); }
.shop-strip .btn { flex: none; white-space: nowrap; }
@media (max-width: 620px) {
  .shop-strip { flex-wrap: wrap; }
  .shop-strip .btn { width: 100%; text-align: center; }
}
/* --- Encyclopedia index --- */
.ency-index ol { columns: 3; column-gap: 34px; padding-left: 1.4em; margin: 18px 0 0; }
.ency-index li { break-inside: avoid; padding: 3px 0; color: var(--muted, #9aa3b5); font-size: 0.95rem; }
@media (max-width: 900px) { .ency-index ol { columns: 2; } }
@media (max-width: 620px) { .ency-index ol { columns: 1; } }

/* Phase 3: encyclopedia article pager */
.ency-pager { display:flex; gap:12px; justify-content:space-between; align-items:center; margin:34px 0 8px; flex-wrap:wrap; }
.ency-pager .btn-outline { flex:0 1 auto; }
.ency-pager .pager-spacer { flex:1; }

/* Phase 4 — inline diagrams */
.cgh-diagram{margin:30px 0;padding:0}
.diagram-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.diagram-scroll svg{display:block;width:100%;height:auto;min-width:680px}

/* E13: Dark theme native select styling */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(11, 16, 48, 0.9);
  color: var(--white, #fff);
  border: 1px solid rgba(28, 64, 205, 0.3);
  border-radius: 8px;
  padding: 8px 36px 8px 12px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.9rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238B8BA8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.18s ease;
}
select:hover { border-color: rgba(28, 64, 205, 0.5); }
select:focus { outline: none; border-color: var(--neon-sky, #1C40CD); box-shadow: 0 0 0 3px rgba(28, 64, 205, 0.15); }
select option { background: #0b1030; color: #fff; padding: 8px; }

/* V10: Home page two-column layout for free guide section */
.free-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.free-guide-text h2 { margin-top: 8px; }
@media (max-width: 768px) {
  .free-guide-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* V11: Encyclopedia card surface */
.ency-index {
  background: rgba(11, 16, 48, 0.6);
  border: 1px solid rgba(28, 64, 205, 0.15);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
}
.ency-index ol { columns: 2; column-gap: 32px; list-style-position: inside; }
.ency-index li { padding: 4px 0; break-inside: avoid; }
.ency-index a { color: var(--fog-gray); text-decoration: none; font-size: 0.9rem; }
.ency-index a:hover { color: var(--neon-sky); }
@media (max-width: 768px) {
  .ency-index ol { columns: 1; }
}

/* V12: News accordion */
.news-accordion summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  list-style: none;
}
.news-accordion summary::-webkit-details-marker { display: none; }
.news-accordion summary::before { content: '▶ '; font-size: 0.7em; color: var(--neon-sky); }
.news-accordion[open] summary::before { content: '▼ '; }
.news-accordion[open] summary { border-bottom: 1px solid rgba(28,64,205,0.15); margin-bottom: 12px; }

/* E18: Premium badge for paywalled guide links */
.premium-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #FFC553, #1C40CD);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}
