/* ===================================================================
   TRAINQUANTS - UNIFIED SUB-PAGES DESIGN SYSTEM (css/subpages.css)
   Brings 100% visual, layout, and UX parity with the $10,000 Landing Page:
   - Floating Glass Capsule Navbar & Drawer System
   - Celestial Starfield Background & Ambient Light Blooms
   - Glassmorphism Bento Card Architecture & Specular Highlights
   - Kinetic Typography (Syne, Plus Jakarta Sans, JetBrains Mono)
   - Institutional Footer with Complete Arena Links
   - True Multi-Ratio Responsiveness (Mobile 320px to Ultrawide 4K)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800;900&display=swap');

:root {
  /* Apple Monochromatic Dark Mode Architecture */
  --bg-void: #000000;
  --bg-deep: #08080a;
  --bg-surface: rgba(18, 18, 20, 0.78);
  --bg-surface-elevated: rgba(28, 28, 30, 0.88);
  --bg-card: rgba(16, 16, 20, 0.72);
  --bg-card-hover: rgba(24, 24, 28, 0.92);

  /* Apple Cupertino Blue Accents & Starlight Hierarchy */
  --apple-blue: #2997ff;
  --apple-blue-deep: #0071e3;
  --apple-blue-light: #70b4ff;
  --apple-blue-glow: rgba(41, 151, 255, 0.25);
  --apple-blue-glow-strong: rgba(41, 151, 255, 0.45);
  --apple-blue-subtle: rgba(41, 151, 255, 0.08);
  --apple-blue-border: rgba(41, 151, 255, 0.32);
  --apple-blue-rim: rgba(41, 151, 255, 0.55);

  --text-pure: #ffffff;
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-muted: #6e6e73;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(255, 255, 255, 0.35);

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", 'Syne', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", 'Plus Jakarta Sans', sans-serif;
  --font-mono: "SF Mono", 'JetBrains Mono', monospace;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Light Mode Institutional Tokens */
html.light-mode {
  --bg-void: #fafafa;
  --bg-deep: #f4f4f6;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-surface-elevated: rgba(248, 250, 252, 0.94);
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(241, 245, 249, 0.98);

  --apple-blue: #0071e3;
  --apple-blue-deep: #0056b3;
  --apple-blue-light: #2997ff;

  --text-pure: #09090b;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.14);
  --border-highlight: rgba(0, 0, 0, 0.28);
}

/* Base Body Reset & Fixed Starfield Canvas */
html {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body) !important;
  overflow-x: clip !important;
  margin: 0;
  padding: 0;
}

html.light-mode,
html.light-mode body {
  background-color: #fafafa !important;
  color: #09090b !important;
}

html.light-mode body::before {
  opacity: 0.16;
}

/* Celestial Starlight Background Layer */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  background-color: transparent;
  background-image: 
    radial-gradient(1px 1px at 35px 45px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 160px 110px, rgba(41, 151, 255, 0.75), transparent),
    radial-gradient(1px 1px at 320px 240px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 480px 360px, rgba(180, 220, 255, 0.7), transparent),
    radial-gradient(1px 1px at 640px 160px, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 800px 520px, rgba(41, 151, 255, 0.7), transparent),
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(41, 151, 255, 0.09), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 40%, rgba(41, 151, 255, 0.04), transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 70%, rgba(41, 151, 255, 0.035), transparent 60%);
  background-size: 800px 600px, 800px 600px, 800px 600px, 800px 600px, 800px 600px, 800px 600px, 100% 100%, 100% 100%, 100% 100%;
  transform: translateZ(0);
}

/* Cybernetic Transition Bar */
.cyber-transition-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #0071e3 0%, #2997ff 50%, #ffffff 100%);
  box-shadow: 0 0 14px rgba(41, 151, 255, 0.8), 0 0 28px rgba(41, 151, 255, 0.4);
  z-index: 1000000;
  pointer-events: none;
  transition: width 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.cyber-transition-bar.active {
  width: 100%;
}

/* ===================================================================
   FLOATING GLASS NAVBAR ($10,000 APPLE FINTECH DESIGN)
   =================================================================== */
.landing-nav-wrapper {
  position: fixed;
  top: 14px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
  padding: 0 16px;
  box-sizing: border-box;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(6px, 1.2vw, 16px);
  padding: 6px 14px 6px 18px;
  background: rgba(10, 12, 18, 0.85);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.08) inset;
  width: 100%;
  max-width: min(1280px, calc(100% - 24px));
  box-sizing: border-box;
  overflow: visible;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-nav:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 255, 255, 0.06), 0 0 1px 1px rgba(255, 255, 255, 0.14) inset;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: transparent url('../assets/trainquants-tq-mark.png?v=12.0') center/contain no-repeat;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.65)) drop-shadow(0 0 16px rgba(41, 121, 255, 0.35));
  position: relative;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.nav-brand:hover .nav-logo-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.9)) drop-shadow(0 0 24px rgba(41, 121, 255, 0.55));
}

.nav-logo-icon i {
  display: none;
}

.nav-brand-title {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  white-space: nowrap;
}

.nav-brand-title span {
  background: linear-gradient(180deg, #ffffff 20%, #70b4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.4vw, 5px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
}

.nav-link {
  color: #86868b;
  text-decoration: none;
  font-size: clamp(11px, 0.82vw, 12.5px);
  font-weight: 600;
  padding: 5px clamp(5px, 0.65vw, 11px);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #ffffff !important;
  background: rgba(41, 151, 255, 0.16) !important;
  border: 1px solid rgba(41, 151, 255, 0.38) !important;
  box-shadow: 0 0 16px rgba(41, 151, 255, 0.2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-right: 4px;
}

.btn-sound-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #86868b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 12px;
}

.btn-sound-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

.btn-nav-google {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 6px 13px;
  height: 32px;
  box-sizing: border-box;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.btn-nav-google:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.google-icon-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-nav-launch {
  display: none !important;
}

.nav-trader-executive-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 4px;
  background: rgba(20, 20, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.nav-trader-executive-btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.trader-avatar-ring {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff, #8e8e93);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.trader-avatar-ring.large {
  width: 44px;
  height: 44px;
}

.trader-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.trader-avatar-fallback {
  font-size: 10px;
  font-weight: 800;
  color: #000000;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.trader-live-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #000000;
}

.trader-details {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trader-name-label {
  font-size: 12px;
  font-weight: 700;
  color: #f5f5f7;
}

.trader-pro-chip {
  display: none !important;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 19px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

/* ===================================================================
   MOBILE NAVIGATION DRAWER SYSTEM
   =================================================================== */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 88%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: rgba(8, 12, 22, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)) 20px;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
}
.mobile-nav-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.mobile-trader-card {
  margin-bottom: 20px;
}

.mobile-trader-auth-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  flex-direction: column;
  gap: 14px;
}

.mobile-trader-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-trader-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-trader-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-trader-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.mobile-trader-desc {
  font-size: 11px;
  color: #86868b;
  font-family: var(--font-mono);
}

.btn-mobile-launch-terminal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0071e3, #2997ff);
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-mobile-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.mobile-desks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.mobile-desk-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.mobile-desk-card.active {
  border-color: rgba(41, 151, 255, 0.5);
  background: rgba(41, 151, 255, 0.08);
}

.mobile-desk-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #2997ff;
  background: rgba(41, 151, 255, 0.15);
  flex-shrink: 0;
}

.mobile-desk-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-desk-title {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.mobile-desk-sub {
  font-size: 9.5px;
  color: #86868b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-desk-arrow {
  margin-left: auto;
  font-size: 11px;
  color: #86868b;
}

.mobile-drawer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  color: #d1d1d6;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mobile-drawer-link:hover, .mobile-drawer-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-drawer-link i {
  width: 20px;
  font-size: 14px;
  color: #2997ff;
}

/* ===================================================================
   SUB-PAGE MAIN CONTAINERS & MULTI-RATIO VIEWPORT SPACING
   =================================================================== */
.qt-curriculum-main,
.qt-hero-section,
.qt-discipline-detail-container,
.sim-container {
  position: relative !important;
  z-index: 1 !important;
}

.qt-curriculum-main,
.qt-hero-section,
.qt-discipline-detail-container {
  padding-top: clamp(86px, 11vh, 108px) !important;
  max-width: min(1320px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* Hero Pill Tag (Landing Page Style) */
.qt-pill-tag,
.sim-hero-badge,
.hero-pill-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-full) !important;
  background: rgba(41, 151, 255, 0.08) !important;
  border: 1px solid rgba(41, 151, 255, 0.28) !important;
  color: #70b4ff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  box-shadow: 0 0 20px rgba(41, 151, 255, 0.12) !important;
  margin-bottom: 12px !important;
}

/* Kinetic Gradient Headings */
.qt-discipline-heading,
.sim-hero-title,
.qt-hero-title,
.qt-discipline-page-title {
  font-family: var(--font-display) !important;
  font-size: clamp(28px, 4.2vw, 48px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
  margin: 8px 0 14px 0 !important;
  color: #ffffff !important;
}

.qt-discipline-heading span,
.sim-hero-title .gradient-text,
.qt-hero-title .qt-gradient-text,
.qt-discipline-page-title span {
  background: linear-gradient(180deg, #ffffff 20%, #70b4ff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Sub-Headline Descriptions */
.qt-discipline-desc,
.sim-hero-desc,
.qt-hero-subtitle,
.qt-discipline-page-desc {
  font-size: clamp(14px, 1.4vw, 16px) !important;
  color: #a1a1aa !important;
  line-height: 1.6 !important;
  max-width: 820px !important;
}

/* ===================================================================
   GLASSMORPHIC CARDS ARCHITECTURE (APPLE FINTECH LOOK)
   =================================================================== */
.qt-discipline-btn-card,
.qt-discipline-page-hero,
.qt-problem-card,
.sim-scenario-tab,
.qt-lb-quantit-banner,
.qt-podium-card,
.qt-table-container,
.sim-step-box,
.sim-dossier-verdict-box,
.qt-usp-banner,
.qt-modal-card {
  background: rgba(14, 18, 28, 0.72) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.qt-discipline-btn-card:hover,
.qt-problem-card:hover,
.sim-scenario-tab:hover,
.sim-scenario-tab.active {
  border-color: rgba(41, 151, 255, 0.45) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 24px rgba(41, 151, 255, 0.16) !important;
}

/* 5 Discipline Grid */
.qt-discipline-buttons-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 16px !important;
  margin-top: 28px !important;
}

.qt-discipline-btn-card {
  display: flex !important;
  flex-direction: column !important;
  padding: 22px !important;
  text-decoration: none !important;
  color: inherit !important;
}

.qt-disc-card-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
}

.qt-disc-icon-badge {
  width: 42px !important;
  height: 42px !important;
  border-radius: 11px !important;
  background: rgba(41, 151, 255, 0.14) !important;
  border: 1px solid rgba(41, 151, 255, 0.35) !important;
  color: #38bdf8 !important;
  font-size: 17px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.qt-disc-count-pill {
  font-size: 10px !important;
  font-family: var(--font-mono) !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--radius-full) !important;
  color: #a1a1aa !important;
}

.qt-disc-name {
  font-family: var(--font-display) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 0 4px 0 !important;
}

.qt-disc-role {
  font-size: 11px !important;
  font-family: var(--font-mono) !important;
  color: #38bdf8 !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
  display: block !important;
}

.qt-disc-summary {
  font-size: 13px !important;
  color: #94a3b8 !important;
  line-height: 1.5 !important;
  margin: 0 0 16px 0 !important;
  flex-grow: 1 !important;
}

.qt-disc-card-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.qt-disc-firm-tags {
  font-size: 11.5px !important;
  font-family: var(--font-mono) !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.qt-disc-enter-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #2997ff !important;
}

/* ===================================================================
   INSTITUTIONAL FOOTER (EXACT MATCH WITH LANDING PAGE)
   =================================================================== */
.landing-footer {
  position: relative;
  background-color: #000000;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 35px 0;
  margin-top: 80px;
  overflow: hidden;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 380px;
  margin-top: 14px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #86868b;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.system-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #86868b;
}

.ticker-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* ===================================================================
   MULTI-RATIO RESPONSIVENESS & BREAKPOINTS (ALL PHONES & SCREENS)
   =================================================================== */

/* Laptops & Desktops (<= 1240px) */
@media (max-width: 1240px) {
  .landing-nav {
    gap: clamp(6px, 1.2vw, 12px);
    padding: 6px clamp(8px, 1.2vw, 16px);
  }
  .nav-brand-title {
    font-size: 16.5px;
  }
  /* On subpages <= 1240px, hide redundant CTA launch button since all links are already in nav-links */
  .landing-nav .btn-nav-launch {
    display: none !important;
  }
  .nav-links {
    gap: clamp(2px, 0.4vw, 5px);
  }
  .nav-link {
    font-size: clamp(11px, 0.8vw, 12px);
    padding: 5px clamp(4px, 0.6vw, 9px);
  }
}

/* Compact Laptops & Tablets (<= 1140px) */
@media (max-width: 1140px) {
  .landing-nav {
    gap: 8px;
    padding: 6px 10px 6px 14px;
  }
  .nav-link {
    font-size: 11px;
    padding: 4px 6px;
  }
  .nav-brand-title {
    font-size: 16px;
  }
  .nav-logo-icon {
    width: 30px;
    height: 30px;
  }
}

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* Mobile Devices & Tablets (<= 960px) */
@media (max-width: 960px) {
  .landing-nav .nav-links {
    display: none !important;
  }
  .landing-nav .btn-nav-launch {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .landing-nav {
    padding: 6px 10px 6px 14px;
    justify-content: space-between;
  }
  .btn-nav-google span {
    display: inline;
  }
}

/* Phone Ratios (<= 640px - iPhone 14/15/16 Pro, Galaxy, Pixel) */
@media (max-width: 640px) {
  .landing-nav-wrapper {
    top: 10px;
    padding: 0 10px;
  }
  .nav-brand-title {
    font-size: 16px;
  }
  .nav-logo-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .btn-nav-google {
    padding: 4px 10px;
    height: 28px;
    font-size: 11px;
  }
  .btn-nav-launch {
    padding: 4px 10px;
    height: 28px;
    font-size: 10.5px;
  }
  .btn-sound-toggle {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .qt-curriculum-main,
  .sim-container,
  .qt-hero-section,
  .qt-discipline-detail-container {
    padding-top: 76px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .qt-discipline-buttons-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .sim-scenario-selector {
    grid-template-columns: 1fr !important;
  }
  .sim-pipeline-stepper {
    flex-direction: column !important;
  }
  .qt-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Ultra-Compact Phone Screens (<= 380px - iPhone SE, Galaxy Fold outer) */
@media (max-width: 380px) {
  .btn-nav-google span {
    display: none;
  }
  .btn-nav-launch span {
    font-size: 10px;
  }
}

/* Widescreen & Ultrawide Display Tuning (>= 1600px - 1440p, 4K, 21:9) */
@media (min-width: 1600px) {
  .qt-curriculum-main,
  .qt-hero-section,
  .qt-discipline-detail-container {
    max-width: 1400px !important;
  }
}

/* ===================================================================
   EXECUTIVE TRADER DROPDOWN & LOGOUT SYSTEM (SUBPAGES)
   =================================================================== */
.nav-trader-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
}

button.nav-trader-executive-btn,
a.nav-trader-executive-btn {
  cursor: pointer;
}

.trader-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  background: rgba(18, 19, 23, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.2);
  padding: 14px;
  z-index: 10001;
  transform-origin: top right;
  animation: dropdownPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownPop {
  0% { opacity: 0; transform: scale(0.95) translateY(-6px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.dropdown-header {
  padding: 4px 6px 10px;
}

.dropdown-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-user-info {
  flex: 1;
  min-width: 0;
}

.dropdown-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.dropdown-user-email {
  font-size: 11.5px;
  color: #9aa0a6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.dropdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #34a853;
  background: rgba(52, 168, 83, 0.12);
  border: 1px solid rgba(52, 168, 83, 0.3);
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 6px;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}

.dropdown-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #d1d5db;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.dropdown-link-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(2px);
}

.dropdown-link-item i {
  width: 16px;
  font-size: 12px;
  text-align: center;
}

.dropdown-tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  background: #2997ff;
  color: #000;
  padding: 1px 5px;
  border-radius: 4px;
}

.dropdown-footer {
  padding-top: 4px;
}

.btn-dropdown-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(234, 67, 53, 0.1);
  border: 1px solid rgba(234, 67, 53, 0.25);
  border-radius: 10px;
  color: #ff6b6b;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-dropdown-logout:hover {
  background: rgba(234, 67, 53, 0.22);
  border-color: rgba(234, 67, 53, 0.5);
  color: #ffffff;
}

.btn-mobile-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: rgba(234, 67, 53, 0.12);
  border: 1px solid rgba(234, 67, 53, 0.3);
  color: #ff6b6b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: 6px;
}

.btn-mobile-logout:hover,
.btn-mobile-logout:active {
  background: rgba(234, 67, 53, 0.25);
  color: #ffffff;
}

/* ===================================================================
   120HZ / 120 FPS HARDWARE COMPOSITOR ACCELERATION ENGINE
   Promotes key interaction surfaces to dedicated GPU layers
   =================================================================== */
html, body {
  scroll-behavior: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.sky-horizon-canvas,
.nav-floating-capsule,
.bento-card,
.desk-sim-card,
.prop-spec-card,
.problem-card,
.profile-card,
.leaderboard-table-card,
.subpage-hero-card,
.cta-vortex-card {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===================================================================
   LIGHT MODE OVERRIDES FOR SUBPAGES (APPLE / LINEAR CRAFT)
   =================================================================== */
html.light-mode .landing-nav {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

html.light-mode .nav-brand-title {
  color: #09090b !important;
}

html.light-mode .nav-brand-accent {
  color: #0071e3 !important;
}

html.light-mode .nav-brand-dot {
  background: #0071e3 !important;
  box-shadow: 0 0 10px rgba(0, 113, 227, 0.4) !important;
}

html.light-mode .nav-link {
  color: #515154 !important;
}

html.light-mode .nav-link:hover {
  color: #09090b !important;
  background: rgba(0, 0, 0, 0.05) !important;
}

html.light-mode .nav-link.active {
  color: #0071e3 !important;
  background: rgba(0, 113, 227, 0.08) !important;
  border-color: rgba(0, 113, 227, 0.25) !important;
  box-shadow: 0 0 16px rgba(0, 113, 227, 0.12) !important;
}

html.light-mode .btn-sound-toggle,
html.light-mode .btn-theme-toggle {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #515154 !important;
}

html.light-mode .btn-sound-toggle:hover,
html.light-mode .btn-theme-toggle:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #09090b !important;
}

html.light-mode .btn-nav-google {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1d1d1f !important;
}

html.light-mode .btn-nav-google:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.22) !important;
}

html.light-mode .btn-nav-launch {
  background: #09090b !important;
  border-color: #09090b !important;
  color: #ffffff !important;
}

html.light-mode .qt-discipline-heading,
html.light-mode .sim-hero-title,
html.light-mode .qt-hero-title,
html.light-mode .qt-discipline-page-title {
  color: #09090b !important;
}

html.light-mode .qt-discipline-heading span,
html.light-mode .sim-hero-title .gradient-text,
html.light-mode .qt-hero-title .qt-gradient-text,
html.light-mode .qt-discipline-page-title span {
  background: linear-gradient(180deg, #09090b 20%, #0071e3 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html.light-mode .qt-discipline-desc,
html.light-mode .sim-hero-desc,
html.light-mode .qt-hero-subtitle,
html.light-mode .qt-discipline-page-desc {
  color: #475569 !important;
}

html.light-mode .qt-discipline-btn-card,
html.light-mode .qt-discipline-page-hero,
html.light-mode .qt-problem-card,
html.light-mode .sim-scenario-tab,
html.light-mode .qt-lb-quantit-banner,
html.light-mode .qt-podium-card,
html.light-mode .qt-table-container,
html.light-mode .sim-step-box,
html.light-mode .sim-dossier-verdict-box,
html.light-mode .qt-usp-banner,
html.light-mode .qt-modal-card {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

html.light-mode .qt-discipline-btn-card:hover,
html.light-mode .qt-problem-card:hover {
  background: #ffffff !important;
  border-color: rgba(0, 113, 227, 0.35) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(0, 113, 227, 0.08) !important;
}

html.light-mode .qt-disc-name {
  color: #09090b !important;
}

html.light-mode .qt-disc-summary {
  color: #475569 !important;
}

html.light-mode .qt-disc-count-pill {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
}

html.light-mode .qt-disc-card-footer {
  border-top-color: rgba(0, 0, 0, 0.06) !important;
}

html.light-mode .landing-footer {
  background-color: #f8fafc !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .footer-col h4 {
  color: #09090b !important;
}

html.light-mode .footer-links a {
  color: #64748b !important;
}

html.light-mode .footer-links a:hover {
  color: #0071e3 !important;
}

html.light-mode .footer-brand p {
  color: #64748b !important;
}

html.light-mode .mobile-nav-drawer {
  background: rgba(255, 255, 255, 0.97) !important;
  border-left-color: rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .mobile-trader-name {
  color: #09090b !important;
}

html.light-mode .mobile-drawer-link {
  color: #475569 !important;
}

html.light-mode .mobile-drawer-link:hover,
html.light-mode .mobile-drawer-link.active {
  color: #09090b !important;
  background: rgba(0, 0, 0, 0.05) !important;
}

/* Subpages Discipline & Syllabus Enhancements */
html.light-mode .qt-discipline-page-hero,
html.light-mode .qt-discipline-topic-card,
html.light-mode .qt-discipline-details-box {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

html.light-mode .qt-discipline-topic-title,
html.light-mode .qt-syllabus-title {
  color: #09090b !important;
}

html.light-mode .qt-discipline-topic-desc,
html.light-mode .qt-syllabus-desc {
  color: #475569 !important;
}

html.light-mode .qt-company-tag,
html.light-mode span[style*="background: rgba(255,255,255,0.06)"],
html.light-mode span[style*="background:rgba(255,255,255,0.06)"] {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .qt-syllabus-item {
  color: #334155 !important;
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}




