/* ==========================================================================
   Black Tie Math — QR Video Solutions Hub Stylesheet
   Brand Palette:
     Obsidian Tuxedo Black: #0B0F17
     Midnight Charcoal:     #151C28
     Champagne Gold:        #D4AF37
     Goal Sky Blue:         #38BDF8
     Verified Emerald:      #10B981
     Alert Amber:           #F59E0B
   ========================================================================== */

:root {
  --bg: #0B0F17;
  --surface: #151C28;
  --surface-2: #1B2434;
  --border: rgba(203, 213, 225, 0.11);
  --border-gold: rgba(212, 175, 55, 0.35);
  --text: #FFFFFF;
  --text-muted: #CBD5E1;
  --text-dim: #8B9BB4;
  --gold: #D4AF37;
  --gold-soft: rgba(212, 175, 55, 0.14);
  --blue: #38BDF8;
  --blue-soft: rgba(56, 189, 248, 0.13);
  --emerald: #10B981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --amber: #F59E0B;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --rose: #F43F5E;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Subtle Desmos-style dark coordinate grid backdrop */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(51, 65, 85, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 65, 85, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 10%, #000 35%, transparent 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ==========================================================================
   Top Navigation
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 23, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 38px;
  height: 26px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--text);
}

.brand-sub {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 9px;
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-cta:hover {
  background: rgba(212, 175, 55, 0.22);
  transform: translateY(-1px);
}

/* ==========================================================================
   Main Content & Hero
   ========================================================================== */
.main-content {
  flex: 1;
  padding-top: 26px;
  padding-bottom: 56px;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  color: var(--text-dim);
  gap: 14px;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero {
  background: linear-gradient(145deg, rgba(21, 28, 40, 0.96), rgba(11, 15, 23, 0.92));
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 28px 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.hero h1 .gold {
  color: var(--gold);
}

.hero-sub {
  margin: 0 0 20px;
  color: var(--text-muted);
  max-width: 720px;
  font-size: 0.96rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.stat-card {
  background: rgba(11, 15, 23, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.stat-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: #0B0F17;
}

.btn-gold:hover {
  background: #e2be47;
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--border-gold);
  color: var(--gold);
}

.btn-emerald {
  background: var(--emerald-soft);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--emerald);
}

/* ==========================================================================
   Filter & Search Controls
   ========================================================================== */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.domain-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill-btn {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  border-color: var(--border-gold);
  color: var(--text);
}

.pill-btn.active {
  background: var(--gold);
  color: #0B0F17;
  border-color: var(--gold);
  font-weight: 700;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 320px;
}

.search-input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-input:focus {
  border-color: var(--gold);
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

/* ==========================================================================
   Chapters Directory Grid
   ========================================================================== */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.chapter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.chapter-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

.chapter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.chapter-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
}

.domain-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.chapter-title {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.32;
}

.test-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.test-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: rgba(11, 15, 23, 0.65);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.test-row:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

.test-row-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.test-row-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.test-row-meta {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-dim);
}

.status-badge {
  flex-shrink: 0;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-live {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-rendered {
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-soon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ==========================================================================
   Test Player Page (/s1/XX-Y)
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--gold);
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.player-header {
  margin-bottom: 18px;
}

.player-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.meta-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.meta-pill.gold {
  background: var(--gold-soft);
  border-color: var(--border-gold);
  color: var(--gold);
}

.meta-pill.blue {
  background: var(--blue-soft);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--blue);
}

.player-header h1 {
  margin: 0 0 4px;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.22;
}

.player-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.player-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 920px) {
  .player-layout {
    grid-template-columns: 1.55fr 1fr;
    align-items: start;
  }
}

/* Video Container */
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #06090f;
}

.video-frame-wrap iframe,
.video-frame-wrap #yt-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.11), rgba(11, 15, 23, 0.98) 70%);
}

.placeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 14px;
}

.video-placeholder h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
}

.video-placeholder p {
  margin: 0 0 18px;
  max-width: 440px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.video-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-top: 1px solid var(--border);
  background: rgba(11, 15, 23, 0.5);
}

.now-playing {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.now-playing strong {
  color: var(--gold);
  font-family: var(--font-mono);
}

.toolbar-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* Jump-to-Question Panel */
.chapters-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-head h2 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.panel-hint {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.q-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 490px;
  overflow-y: auto;
  padding-right: 4px;
}

.q-list::-webkit-scrollbar {
  width: 6px;
}

.q-list::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, 0.2);
  border-radius: 999px;
}

.q-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(11, 15, 23, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: all 0.14s ease;
}

.q-btn:hover {
  border-color: var(--border-gold);
  background: rgba(212, 175, 55, 0.08);
}

.q-btn.active {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.q-btn:disabled {
  cursor: default;
  opacity: 0.72;
}

.q-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.q-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 44px;
  text-align: center;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--blue);
  flex-shrink: 0;
}

.q-btn.active .q-num {
  background: var(--gold);
  color: #0B0F17;
}

.q-btn.kind-outro .q-num {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.q-btn.kind-intro .q-num {
  background: var(--gold-soft);
  color: var(--gold);
}

.q-topic {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.q-time {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
  flex-shrink: 0;
}

.q-btn.active .q-time {
  color: var(--gold);
}

/* Prev / Next Bar */
.pager-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

/* Optional Bonus Callout (Zero Friction, No Paywall) */
.bonus-callout {
  margin-top: 22px;
  background: linear-gradient(135deg, rgba(21, 28, 40, 0.95), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bonus-callout h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
}

.bonus-callout p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* ==========================================================================
   Bonuses Page (/bonuses)
   ========================================================================== */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.bonus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.bonus-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
}

.bonus-card p {
  margin: 0 0 10px;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.code-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(11, 15, 23, 0.85);
  border: 1px solid var(--border);
  color: var(--blue);
}

.notify-box {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.notify-box h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.notify-box p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 540px;
}

.email-form input {
  flex: 1;
  min-width: 220px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.email-form input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ==========================================================================
   Toast & Footer
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--gold);
  color: #0B0F17;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 15, 23, 0.85);
  padding: 26px 0 34px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-title {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.86rem;
  color: var(--gold);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Mobile refinements */
@media (max-width: 600px) {
  .topbar-inner {
    min-height: 58px;
  }
  .brand-name {
    font-size: 0.84rem;
  }
  .nav-link {
    padding: 6px 8px;
    font-size: 0.78rem;
  }
  .nav-cta span {
    display: none;
  }
  .hero {
    padding: 20px 16px;
  }
  .pager-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   Executive Brand Homepage (/)
   ========================================================================== */
.nav-solutions-pill {
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
}

.nav-solutions-pill:hover,
.nav-solutions-pill.active {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold);
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(145deg, rgba(21, 28, 40, 0.96), rgba(11, 15, 23, 0.94));
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 32px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

@media (min-width: 860px) {
  .home-hero {
    grid-template-columns: 1.3fr 0.85fr;
    padding: 40px 38px;
  }
}

.home-hero::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14), transparent 70%);
  pointer-events: none;
}

.home-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.home-hero h1 .gold {
  color: var(--gold);
}

.home-lead {
  margin: 0 0 22px;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
}

.quick-jump-box {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(11, 15, 23, 0.72);
  border: 1px solid var(--border);
}

.quick-jump-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.quick-jump-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-select {
  flex: 1;
  min-width: 140px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
}

.quick-select:focus {
  border-color: var(--gold);
}

/* Luxury CSS/SVG Book #1 Cover Mockup */
.book-stage {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.book-mockup {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 8.5 / 11;
  background: linear-gradient(160deg, #111827 0%, #0B0F17 55%, #070A10 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-left: 8px solid #D4AF37;
  border-radius: 5px 14px 14px 5px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -12px 18px 36px rgba(0, 0, 0, 0.65), 0 0 40px rgba(212, 175, 55, 0.12);
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform 0.25s ease;
}

.book-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-3px);
}

.book-top-bar {
  background: var(--gold);
  color: #0B0F17;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: center;
  padding: 4px 6px;
  border-radius: 4px;
}

.book-cover-title {
  text-align: center;
  margin-top: 8px;
}

.book-cover-title .l1 {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  line-height: 1.05;
}

.book-cover-title .l2 {
  display: block;
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold);
  line-height: 1.02;
}

.book-cover-title .l3 {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 4px;
}

.book-graph-svg {
  width: 100%;
  height: 92px;
  border-radius: 8px;
  background: rgba(21, 28, 40, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.book-stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  text-align: center;
  padding: 7px 4px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 7px;
  background: rgba(212, 175, 55, 0.06);
}

.book-stats-mini strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--gold);
}

.book-stats-mini span {
  font-size: 0.56rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.book-cover-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.45);
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  color: var(--gold);
}

.book-cover-footer span:last-child {
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Home Sections */
.section-block {
  margin-bottom: 34px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.section-header p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.pillar-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  margin-bottom: 10px;
}

.pillar-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 800;
}

.pillar-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* Featured Live Videos Strip */
.live-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
}

.live-video-card {
  background: linear-gradient(135deg, rgba(21, 28, 40, 0.96), rgba(16, 185, 129, 0.07));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.live-video-card:hover {
  transform: translateY(-2px);
  border-color: var(--emerald);
}

/* Series Roadmap Cards */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.series-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.series-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.series-card h3 {
  margin: 2px 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
}

.series-card p {
  margin: 0;
  font-size: 0.81rem;
  color: var(--text-muted);
}
