/* ==========================================================================
   FOREX DESK 365 — Institutional Obsidian & Gold Academy Design System
   Pixel-matched to Media_Engine/forexdesk365/design/lesson_page_mockup.png
   ========================================================================== */

:root {
  --bg-canvas: #0B0E14;
  --bg-surface: #0E131D;
  --bg-card: #121824;
  --bg-elevated: #171F2E;
  --bg-input: #0B0F17;
  --border: #1C2536;
  --border-strong: #263349;

  --text-primary: #F4F6FA;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-prose: #CBD5E1;

  --gold: #F5A623;
  --gold-soft: #FBBF24;
  --gold-bg: rgba(245, 166, 35, 0.10);
  --gold-border: rgba(245, 166, 35, 0.42);

  --emerald: #10B981;
  --emerald-soft: #34D399;
  --emerald-bg: rgba(16, 185, 129, 0.11);
  --emerald-border: rgba(16, 185, 129, 0.36);

  --cyan: #38BDF8;
  --cyan-bg: rgba(56, 189, 248, 0.10);
  --cyan-border: rgba(56, 189, 248, 0.34);

  --purple: #A855F7;
  --purple-bg: rgba(168, 85, 247, 0.10);
  --purple-border: rgba(168, 85, 247, 0.36);

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --topbar-h: 58px;
  --banner-h: 38px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--text-muted);
}

/* ==========================================================================
   APP SHELL & TOP STICKY NAVBAR
   ========================================================================== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar-h);
  background: rgba(11, 14, 20, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  height: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.mobile-menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.fd-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #0B0E14;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 5px 8px;
  border-radius: 7px;
  line-height: 1;
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  white-space: nowrap;
}

.academy-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  background: rgba(245, 166, 35, 0.10);
  border: 1px solid rgba(245, 166, 35, 0.32);
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 100%;
}

.nav-tab {
  position: relative;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.nav-tab:hover {
  color: #FFFFFF;
}

.nav-tab.active {
  color: #FFFFFF;
  font-weight: 600;
}

.nav-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
}

.nav-telegram-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 7px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.30);
  color: var(--cyan);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-telegram-pill:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--cyan);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.global-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.progress-track {
  width: 68px;
  height: 5px;
  background: #1E293B;
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  border-radius: 99px;
  transition: width 0.25s ease;
}

.progress-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-primary);
}

.progress-count strong {
  color: var(--gold-soft);
}

.auth-area {
  position: relative;
}

.member-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 8px 3px 4px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.member-pill:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

.member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #172133;
  border: 1px solid var(--border-strong);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.member-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  padding: 6px;
  z-index: 80;
}

.member-dropdown-head {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.member-dropdown-name {
  font-weight: 600;
  font-size: 13px;
  color: #FFFFFF;
}

.member-dropdown-email {
  font-size: 11.5px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-prose);
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-item:hover {
  background: var(--bg-elevated);
  color: #FFFFFF;
}

.dropdown-item.danger {
  color: #FCA5A5;
}

/* ==========================================================================
   1-ROW LIVE DESK ANNOUNCEMENT BANNER
   ========================================================================== */
.desk-banner {
  background: #0F1420;
  border-bottom: 1px solid var(--border);
  padding: 8px 20px;
}

.desk-banner-inner {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.desk-badge {
  background: var(--gold);
  color: #0B0E14;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 2.5px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.desk-text strong {
  color: #FFFFFF;
  font-weight: 600;
}

.desk-cta {
  color: var(--gold-soft);
  font-weight: 600;
  white-space: nowrap;
}

.desk-cta:hover {
  text-decoration: underline;
}

/* ==========================================================================
   MAIN VIEWPORT & 3-COLUMN LESSON DASHBOARD
   ========================================================================== */
.main-viewport {
  flex: 1;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}

.loading-shell {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid var(--border-strong);
  border-top-color: var(--gold);
  animation: spin 0.7s linear infinite;
}

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

.lesson-workspace {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr) 318px;
  min-height: calc(100vh - var(--topbar-h) - var(--banner-h) - 46px);
}

/* --- LEFT SIDEBAR: 12-MONTH CURRICULUM NAVIGATOR --- */
.sidebar-left {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 16px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow: hidden;
}

.sidebar-search-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 12.5px;
  transition: border-color 0.15s ease;
}

.sidebar-search-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.search-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kbd-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 1px 5px;
}

.roadmap-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.month-pills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.month-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s ease;
}

.month-pill:hover {
  border-color: var(--border-strong);
  color: #FFFFFF;
}

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

.month-pill.partial {
  border-color: rgba(245, 166, 35, 0.28);
  color: #E2E8F0;
}

.month-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0B0E14;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.25);
}

.month-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 12px;
}

.month-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.month-summary-kicker {
  color: var(--month-accent, var(--gold-soft));
}

.month-summary-days {
  color: var(--emerald-soft);
}

.month-summary-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

.month-summary-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.episode-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #243044 transparent;
}

.ep-nav-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 10px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-prose);
  transition: background 0.14s ease, border-color 0.14s ease;
}

.ep-nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}

.ep-nav-item.active {
  background: var(--gold-bg);
  border-color: var(--gold-border);
}

.ep-status-dot {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  margin-top: 2px;
  background: #161E2E;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.ep-nav-item.done .ep-status-dot {
  background: var(--emerald-bg);
  border-color: var(--emerald-border);
  color: var(--emerald-soft);
}

.ep-nav-item.active .ep-status-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #0B0E14;
}

.ep-nav-item.locked .ep-status-dot {
  background: #131926;
  color: var(--text-muted);
}

.ep-nav-body {
  flex: 1;
  min-width: 0;
}

.ep-nav-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.8px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.ep-nav-item.active .ep-nav-meta {
  color: var(--gold-soft);
}

.ep-nav-title {
  font-size: 12.4px;
  font-weight: 500;
  line-height: 1.3;
  color: #CBD5E1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-nav-item.active .ep-nav-title {
  color: #FFFFFF;
  font-weight: 600;
}

.sidebar-telegram-card {
  background: linear-gradient(160deg, rgba(14, 30, 48, 0.92), rgba(14, 19, 29, 0.96));
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-md);
  padding: 12px;
  flex-shrink: 0;
}

.tg-card-kicker {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 4px;
}

.tg-card-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.tg-card-desc {
  font-size: 11.5px;
  line-height: 1.42;
  color: var(--text-secondary);
  margin: 0 0 10px 0;
}

.btn-telegram-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: var(--cyan);
  color: #06131F;
  font-weight: 700;
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: 7px;
  transition: filter 0.15s ease;
}

.btn-telegram-full:hover {
  filter: brightness(1.08);
}

/* --- CENTER MAIN COLUMN: WATCH + DETAILED READING --- */
.main-column {
  padding: 20px 24px 36px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.episode-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.episode-header-main {
  flex: 1;
  min-width: 0;
}

.episode-breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.episode-breadcrumb .bc-month {
  color: var(--month-accent, var(--gold-soft));
  font-weight: 600;
}

.episode-title {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 5px 0;
}

.episode-subtitle {
  font-size: 12.8px;
  color: var(--text-secondary);
  margin: 0;
}

.embed-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-soft);
}

.embed-status-pill.preview {
  background: var(--gold-bg);
  border-color: var(--gold-border);
  color: var(--gold-soft);
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* 16:9 YouTube Player & Preview Stage */
.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #070A0F;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.video-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #080C13;
}

.video-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.2s ease, transform 0.35s ease;
}

.video-facade.clickable:hover .video-thumb-img {
  opacity: 0.86;
  transform: scale(1.015);
}

.video-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(11, 14, 20, 0.25) 0%, rgba(11, 14, 20, 0.82) 100%),
    linear-gradient(180deg, rgba(11, 14, 20, 0.65) 0%, transparent 28%, transparent 55%, rgba(11, 14, 20, 0.94) 100%);
}

.video-overlay-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.video-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 14, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #E2E8F0;
}

.video-center-cta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  gap: 10px;
}

.play-circle-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--gold);
  color: #0B0E14;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 36px rgba(245, 166, 35, 0.48);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.play-circle-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 46px rgba(245, 166, 35, 0.65);
}

.preview-notice-card {
  max-width: 540px;
  background: rgba(11, 14, 20, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 166, 35, 0.34);
  border-radius: 12px;
  padding: 16px 20px;
}

.preview-notice-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.preview-notice-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.preview-notice-desc {
  font-size: 12.5px;
  color: var(--text-prose);
  margin: 0 0 12px 0;
}

.preview-notice-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.video-overlay-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 14, 20, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.chapter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chapter-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10.5px;
  color: #E2E8F0;
}

/* Action Bar */
.action-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.action-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-complete {
  background: var(--emerald);
  color: #041B12;
  border: 1px solid var(--emerald);
  font-weight: 700;
  font-size: 12.8px;
  padding: 7px 14px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-complete:hover {
  filter: brightness(1.08);
}

.btn-complete.is-done {
  background: var(--emerald-bg);
  color: var(--emerald-soft);
  border-color: var(--emerald-border);
}

.day-check-chip {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.14s ease;
}

.day-check-chip:hover {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-primary);
}

.day-check-chip.done {
  color: var(--emerald-soft);
}

.action-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav-prev {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-prose);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 7px;
  transition: border-color 0.15s ease;
}

.btn-nav-prev:hover:not(:disabled) {
  border-color: var(--text-secondary);
  color: #FFFFFF;
}

.btn-nav-prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-nav-next {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  color: var(--gold-soft);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 7px;
  transition: background 0.15s ease;
}

.btn-nav-next:hover:not(:disabled) {
  background: rgba(245, 166, 35, 0.18);
  color: #FDE68A;
}

/* Detailed Reading Card */
.reading-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px 22px;
}

.reading-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.day-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.day-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 8px;
  transition: all 0.14s ease;
}

.day-tab-btn:hover {
  border-color: var(--border-strong);
  color: #FFFFFF;
}

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

.reading-meta-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reading-section {
  margin-bottom: 20px;
}

.reading-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 7px 0;
}

.reading-h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  margin: 0 0 10px 0;
}

.reading-prose p {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text-prose);
  margin: 0 0 12px 0;
}

.reading-prose p:last-child {
  margin-bottom: 0;
}

/* Gold Desk Analogy Callout Box */
.desk-analogy-box {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.08), rgba(245, 166, 35, 0.03));
  border: 1px solid rgba(245, 166, 35, 0.30);
  border-left: 3.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 18px 0 22px;
}

.desk-analogy-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}

.desk-analogy-text {
  font-size: 14px;
  line-height: 1.65;
  color: #F3E8D2;
  margin: 0;
}

/* Step-by-Step Practical Example Cards */
.example-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.example-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 13px;
}

.example-step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #A78BFA;
  margin-bottom: 4px;
}

.example-step-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 5px;
}

.example-step-body {
  font-size: 12.6px;
  line-height: 1.52;
  color: var(--text-secondary);
  margin: 0;
}

.example-prose-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 8px;
}

/* Emerald Key Rule Strip */
.key-rule-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
}

.key-rule-badge {
  background: var(--emerald);
  color: #031B12;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
  margin-top: 2px;
}

.key-rule-text {
  font-size: 13.8px;
  font-weight: 600;
  line-height: 1.55;
  color: #D1FAE5;
  margin: 0;
}

/* Desk Checklist & Interactive Quiz */
.reading-extras-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.desk-checklist-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 15px;
}

.checklist-list {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.checklist-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-prose);
}

.checklist-bullet {
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-top: 1px;
}

.quiz-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 15px;
}

.quiz-details summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-transform: uppercase;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-details summary::-webkit-details-marker {
  display: none;
}

.quiz-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.quiz-q {
  font-size: 13.8px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 10px 0;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.quiz-opt-btn {
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-prose);
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 13px;
  transition: all 0.14s ease;
}

.quiz-opt-btn:hover {
  border-color: var(--cyan);
  color: #FFFFFF;
}

.quiz-opt-btn.selected {
  border-color: var(--gold);
  background: var(--gold-bg);
  color: #FFFFFF;
}

.quiz-answer-reveal {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  font-size: 12.8px;
  color: #D1FAE5;
}

.next-up-strip {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.next-up-text {
  font-size: 12.8px;
  color: var(--text-secondary);
}

.next-up-text strong {
  color: #FFFFFF;
}

/* --- RIGHT DOCK: PRINTABLE STUDY POSTER & FD365 PDF VAULT --- */
.sidebar-right {
  border-left: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 18px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vault-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.vault-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}

.vault-card-title {
  font-family: var(--font-display);
  font-size: 13.8px;
  font-weight: 700;
  color: #FFFFFF;
}

.fd-branded-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  background: var(--gold-bg);
  border: 1px solid rgba(245, 166, 35, 0.34);
  padding: 2.5px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

.poster-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #FAF8F3;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid #2A3548;
  margin-bottom: 11px;
  cursor: zoom-in;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.poster-frame:hover img {
  transform: scale(1.02);
}

.poster-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(11, 14, 20, 0.82);
  color: #F4F6FA;
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 3px 7px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.poster-frame:hover .poster-zoom-hint {
  opacity: 1;
}

.btn-download-gold {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: var(--gold);
  color: #0B0E14;
  border: none;
  border-radius: 8px;
  padding: 9.5px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  margin-bottom: 8px;
  transition: filter 0.15s ease;
}

.btn-download-gold:hover {
  filter: brightness(1.07);
}

.btn-download-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: var(--bg-surface);
  color: var(--text-prose);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8.5px 11px;
  font-size: 11.4px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-download-secondary:hover {
  border-color: var(--text-secondary);
  color: #FFFFFF;
}

.file-size-mono {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.85;
  white-space: nowrap;
  flex-shrink: 0;
}

.slide-deck-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-deck-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 9px;
}

.slide-mini-thumb {
  width: 34px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  background: #FAF8F3;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.slide-deck-info {
  flex: 1;
  min-width: 0;
}

.slide-deck-title {
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide-deck-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-pdf-mini {
  background: var(--gold-bg);
  border: 1px solid rgba(245, 166, 35, 0.36);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.btn-pdf-mini:hover {
  background: var(--gold);
  color: #0B0E14;
}

.bonus-month-card {
  background: linear-gradient(155deg, rgba(28, 22, 46, 0.85), rgba(16, 20, 32, 0.96));
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.bonus-kicker {
  font-family: var(--font-mono);
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #C084FC;
  margin-bottom: 5px;
}

.bonus-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 5px;
}

.bonus-desc {
  font-size: 12px;
  line-height: 1.48;
  color: var(--text-secondary);
  margin: 0 0 11px 0;
}

.btn-month-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(192, 132, 252, 0.42);
  color: #F3E8FF;
  font-size: 12.2px;
  font-weight: 600;
  padding: 9px 11px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.btn-month-download:hover {
  background: rgba(168, 85, 247, 0.22);
}

/* ==========================================================================
   PUBLIC LANDING PAGE (/) — OBSIDIAN & GOLD INSTITUTIONAL CONVERSION HUB
   ========================================================================== */
.landing-page {
  width: 100%;
  overflow: hidden;
}

.landing-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 54px 28px;
}

.landing-section-tight {
  padding-top: 34px;
  padding-bottom: 34px;
}

/* Hero Section */
.hero-wrap {
  position: relative;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 65% 55% at 76% 18%, rgba(245, 166, 35, 0.13) 0%, transparent 62%),
    radial-gradient(ellipse 45% 45% at 15% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #0D1119 0%, var(--bg-canvas) 100%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, transparent 96%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 58px 28px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 166, 35, 0.10);
  border: 1px solid rgba(245, 166, 35, 0.34);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin: 0 0 18px 0;
}

.hero-title .gold-accent {
  color: var(--gold-soft);
}

.hero-sub {
  font-size: 16px;
  line-height: 1.66;
  color: var(--text-prose);
  max-width: 560px;
  margin: 0 0 26px 0;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-hero-gold {
  background: var(--gold);
  color: #0B0E14;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 28px rgba(245, 166, 35, 0.24);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.btn-hero-gold:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.btn-hero-ghost {
  background: rgba(18, 24, 36, 0.85);
  color: #F4F6FA;
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 12.5px 19px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-hero-ghost:hover {
  border-color: var(--gold-border);
  background: var(--bg-elevated);
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  max-width: 560px;
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.1;
}

.hero-stat-val.emerald {
  color: var(--emerald-soft);
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Right Hero Visual Stage (Dark Video + Floating All-Light Poster Contrast) */
.hero-visual-stage {
  position: relative;
  padding-bottom: 36px;
  padding-right: 18px;
}

.hero-video-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.hero-video-card:hover {
  border-color: var(--gold-border);
}

.hero-chrome-bar {
  background: #0D121B;
  border-bottom: 1px solid var(--border);
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chrome-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chrome-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #273247;
}

.chrome-url-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
  background: var(--bg-canvas);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 5px;
}

.hero-thumb-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #080B10;
  overflow: hidden;
}

.hero-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.15) 0%, rgba(11, 14, 20, 0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
}

.hero-play-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(11, 14, 20, 0.88);
  border: 1px solid rgba(245, 166, 35, 0.45);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}

.hero-thumb-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-right: 170px;
}

.hero-thumb-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

.hero-thumb-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.hero-card-meta-bar {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  padding-right: 196px;
}

/* Floating All-Light Poster Preview overlapping bottom-right of dark video */
.hero-floating-poster {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 176px;
  background: #0F1522;
  border: 1px solid rgba(245, 166, 35, 0.45);
  border-radius: 11px;
  padding: 7px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.72);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.hero-floating-poster:hover {
  transform: translateY(-4px);
}

.hero-floating-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 7px;
  display: block;
  background: #FAF8F3;
}

.floating-poster-tag {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--gold-soft);
}

/* Section Headers */
.sec-head-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.sec-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 7px;
}

.sec-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 8px 0;
}

.sec-sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* 3-Pillar Bento */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-icon-pill {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  color: var(--gold-soft);
}

.pillar-icon-pill.emerald {
  background: var(--emerald-bg);
  border-color: var(--emerald-border);
  color: var(--emerald-soft);
}

.pillar-icon-pill.cyan {
  background: var(--cyan-bg);
  border-color: var(--cyan-border);
  color: var(--cyan);
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 2px 0 0 0;
}

.pillar-card p {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--text-secondary);
  margin: 0;
}

.pillar-spec-list {
  list-style: none;
  margin: 6px 0 0 0;
  padding: 12px 0 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-prose);
}

.pillar-spec-list li::before {
  content: "✓ ";
  color: var(--emerald-soft);
  font-weight: 700;
}

/* Tactile All-Light Poster Showcase Strip */
.poster-showcase-band {
  background: #0D121C;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.poster-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.poster-gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  cursor: zoom-in;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.poster-gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
}

.poster-gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 7px;
  display: block;
  background: #FAF8F3;
}

.poster-gallery-meta {
  padding: 9px 3px 2px;
}

.poster-gallery-kicker {
  font-family: var(--font-mono);
  font-size: 9.8px;
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: 0.06em;
}

.poster-gallery-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 12-Month Curriculum Grid */
.roadmap-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.roadmap-month-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--month-accent, var(--gold));
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.roadmap-month-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card);
  border-color: var(--border-strong);
  border-top-color: var(--month-accent, var(--gold));
}

.rm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--month-accent, var(--gold-soft));
}

.rm-days-badge {
  color: var(--text-muted);
  font-weight: 600;
}

.rm-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

.rm-theme {
  font-size: 12.2px;
  line-height: 1.48;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.rm-foot {
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-prose);
}

.rm-cta {
  color: var(--gold-soft);
  font-weight: 700;
}

/* Unlocked Episode 01 Sample Card */
.ep01-preview-box {
  background: linear-gradient(135deg, rgba(18, 24, 36, 0.96), rgba(13, 18, 28, 0.98));
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 26px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.ep01-poster-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: #FAF8F3;
  cursor: zoom-in;
}

.ep01-sample-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.ep01-sample-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 8px 0;
}

.ep01-sample-quote {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-prose);
  margin: 0 0 18px 0;
}

/* Dual Bottom Conversion Grid (Inline Free Sign-Up + Telegram Desk) */
.conversion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

.inline-signup-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 28px;
}

.telegram-feature-card {
  background: linear-gradient(155deg, rgba(13, 33, 54, 0.92), rgba(12, 18, 29, 0.98));
  border: 1px solid var(--cyan-border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.tg-feature-list {
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.tg-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.8px;
  color: #E2E8F0;
}

.tg-check {
  color: var(--cyan);
  font-weight: 700;
  font-family: var(--font-mono);
}

.inline-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Responsive Landing Breakpoints */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 40px 22px 48px;
  }
  .hero-title {
    font-size: 40px;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .poster-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roadmap-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .conversion-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-wordmark {
    display: none;
  }
}

@media (max-width: 640px) {
  .landing-section {
    padding: 36px 14px;
  }
  .hero-inner {
    padding: 28px 14px 36px;
  }
  .hero-title {
    font-size: 31px;
  }
  .hero-sub {
    font-size: 14.5px;
  }
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .hero-visual-stage {
    padding-bottom: 0;
    padding-right: 0;
  }
  .hero-floating-poster {
    position: relative;
    width: 100%;
    max-width: 240px;
    margin: 14px auto 0;
  }
  .hero-thumb-foot, .hero-card-meta-bar {
    padding-right: 16px;
  }
  .sec-title {
    font-size: 25px;
  }
  .roadmap-cards-grid {
    grid-template-columns: 1fr;
  }
  .ep01-preview-box {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .ep01-poster-thumb {
    max-width: 220px;
    margin: 0 auto;
  }
  .inline-form-grid {
    grid-template-columns: 1fr;
  }
  .inline-signup-card, .telegram-feature-card {
    padding: 20px;
  }
}

/* ==========================================================================
   LANDING / REGISTRATION GATE BANNER & CATALOG VIEWS (EPISODES / WORKBOOKS)
   ========================================================================== */
.preview-welcome-strip {
  background: linear-gradient(120deg, rgba(245, 166, 35, 0.12), rgba(14, 19, 29, 0.96) 55%, rgba(56, 189, 248, 0.09));
  border: 1px solid rgba(245, 166, 35, 0.34);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.preview-welcome-copy h3 {
  font-family: var(--font-display);
  font-size: 15.5px;
  margin: 0 0 3px 0;
  color: #FFFFFF;
}

.preview-welcome-copy p {
  font-size: 12.6px;
  color: var(--text-prose);
  margin: 0;
}

.catalog-page {
  padding: 26px 28px 44px;
}

.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.catalog-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.catalog-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #FFFFFF;
}

.catalog-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
}

.catalog-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 7px;
}

.filter-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0B0E14;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.episode-catalog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.16s ease, transform 0.16s ease;
  cursor: pointer;
}

.episode-catalog-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.ep-card-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #080C13;
  overflow: hidden;
}

.ep-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ep-card-dur {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(11, 14, 20, 0.88);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.ep-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(11, 14, 20, 0.86);
  border: 1px solid rgba(245, 166, 35, 0.4);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.ep-card-body {
  padding: 13px 14px 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ep-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 6px;
}

.ep-card-days {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: auto;
}

.playbooks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.playbook-vault-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--month-accent, var(--gold));
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playbook-vault-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--month-accent, var(--gold-soft));
}

.playbook-vault-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
}

.playbook-vault-meta {
  font-size: 12.2px;
  color: var(--text-secondary);
  flex: 1;
}

/* ==========================================================================
   BUTTONS, MODALS, SEARCH, AUTH & LIGHTBOX
   ========================================================================== */
.btn-gold-sm {
  background: var(--gold);
  color: #0B0E14;
  border: none;
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 7px;
  white-space: nowrap;
}

.btn-gold-sm:hover {
  filter: brightness(1.07);
}

.btn-gold-full {
  width: 100%;
  background: var(--gold);
  color: #0B0E14;
  border: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 16px;
  border-radius: 8px;
}

.btn-gold-full:hover {
  filter: brightness(1.07);
}

.btn-outline-sm {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-prose);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 7px;
}

.btn-outline-sm:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 8, 13, 0.80);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-close-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close-x:hover {
  color: #FFFFFF;
}

/* Search Modal */
.search-modal-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.search-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-modal-head input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 14.5px;
  font-family: inherit;
}

.kbd-esc {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 5px;
}

.search-modal-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
}

.search-result-row {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-prose);
}

.search-result-row:hover {
  background: var(--bg-card);
  border-color: var(--border);
  color: #FFFFFF;
}

.search-res-day {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold-soft);
  margin-right: 8px;
}

.search-res-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Auth Modal */
.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 24px 24px 20px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.72);
}

.auth-modal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-right: 26px;
}

.auth-brand-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
}

.auth-brand-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-canvas);
  padding: 4px;
  border-radius: 9px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.auth-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px;
  border-radius: 6px;
}

.auth-tab.active {
  background: var(--bg-elevated);
  color: #FFFFFF;
}

.auth-message {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-bottom: 12px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  color: #D1FAE5;
}

.auth-message.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.40);
  color: #FECACA;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-prose);
}

.field-group input {
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 12px;
  color: #FFFFFF;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}

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

.optin-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  cursor: pointer;
}

.optin-row input {
  margin-top: 3px;
  accent-color: var(--gold);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--text-muted);
  font-size: 11.5px;
}

.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google-full {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #FFFFFF;
  color: #111827;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}

.btn-google-full:hover {
  background: #F3F4F6;
}

.local-preview-hint {
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.38);
  text-align: center;
}

.local-hint-text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.auth-foot-note {
  margin: 12px 0 0 0;
  font-size: 11.5px;
  text-align: center;
  color: var(--text-muted);
}

/* Lightbox */
.lightbox-inner {
  position: relative;
  max-width: 640px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lightbox-inner img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  background: #FAF8F3;
}

.lightbox-close {
  z-index: 5;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

/* Compliance Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-canvas);
  padding: 12px 20px;
}

.site-footer-inner {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-muted);
}

.footer-left strong {
  color: var(--text-secondary);
}

/* Drawer backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(5, 8, 13, 0.72);
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   RESPONSIVE TABLET & MOBILE LAYOUT (ZERO HORIZONTAL OVERFLOW)
   ========================================================================== */
@media (max-width: 1240px) {
  .lesson-workspace {
    grid-template-columns: 248px minmax(0, 1fr) 288px;
  }
  .main-column {
    padding: 18px 18px 32px;
  }
}

@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  .topbar-nav {
    display: none;
  }
  .lesson-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar-left {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 86vw;
    height: 100vh;
    z-index: 70;
    transform: translateX(-104%);
    transition: transform 0.22s ease;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.65);
  }
  .sidebar-left.drawer-open {
    transform: translateX(0);
  }
  .sidebar-right {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 18px 16px 28px;
  }
}

@media (max-width: 480px) {
  .brand-wordmark {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    padding: 0 12px;
    gap: 8px;
  }
  .academy-pill, .progress-label, .progress-track, .member-name {
    display: none;
  }
  .brand-wordmark {
    font-size: 13px;
  }
  .global-progress {
    padding: 4px 10px;
    white-space: nowrap;
  }
  .progress-count {
    white-space: nowrap;
  }
  .topbar-right {
    gap: 8px;
  }
  .desk-banner {
    padding: 7px 12px;
  }
  .desk-banner-inner {
    justify-content: flex-start;
    font-size: 11.8px;
  }
  .main-column {
    padding: 14px 12px 24px;
  }
  .episode-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .episode-title {
    font-size: 20px;
  }
  .video-stage:has(.video-facade) {
    aspect-ratio: auto;
    min-height: 230px;
  }
  .video-facade {
    position: relative;
  }
  .video-overlay-top {
    padding: 10px 12px 6px;
  }
  .video-center-cta {
    padding: 6px 12px 12px;
  }
  .preview-notice-card {
    padding: 12px 14px;
  }
  .preview-notice-title {
    font-size: 14.5px;
  }
  .preview-notice-desc {
    font-size: 11.8px;
    margin-bottom: 10px;
  }
  .video-overlay-bottom {
    padding: 8px 12px;
    font-size: 10px;
  }
  .reading-card {
    padding: 14px 14px 18px;
  }
  .example-steps-grid {
    grid-template-columns: 1fr;
  }
  .catalog-page {
    padding: 18px 14px 32px;
  }
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
