/* ==========================================================================
   MedVoice Elite Academy — Neuro-UX & Broadcast Studio Design System
   Light Academic Daylight + Dark ISO-4043 Booth & International MC Stage
   ========================================================================== */

:root {
  --bg-page: #f5f7fb;
  --bg-surface: #ffffff;
  --bg-subtle: #eef2f7;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --ink-primary: #0f172a;
  --ink-secondary: #475569;
  --ink-muted: #64748b;

  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #ccfbf1;
  --teal-tint: #f0fdfa;

  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --amber: #d97706;
  --amber-bright: #f59e0b;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --emerald: #059669;
  --emerald-soft: #d1fae5;
  --violet: #7c3aed;
  --violet-soft: #ede9fe;

  /* Dark Studio Console Tokens (Booth & MC Stage) */
  --studio-bg: #0b1120;
  --studio-panel: #111b2e;
  --studio-elevated: #18253e;
  --studio-border: #263653;
  --studio-ink: #f8fafc;
  --studio-muted: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 44px -12px rgba(15, 23, 42, 0.16);
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  color: var(--ink-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.mono, code {
  font-family: "JetBrains Mono", monospace;
}

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

/* ==========================================================================
   APP SHELL
   ========================================================================== */
.app-shell {
  display: grid;
  grid-template-columns: 268px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
}

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

.brand-mark svg {
  width: 100%;
  height: 100%;
}

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

.brand-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 11px;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  transition: all 0.16s ease;
}

.nav-item:hover {
  background: var(--bg-subtle);
  color: var(--ink-primary);
}

.nav-item.active {
  background: var(--teal-tint);
  color: var(--teal-dark);
  border-color: #99f6e4;
}

.nav-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
}

.nav-label {
  flex: 1;
}

.nav-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-family: "JetBrains Mono", monospace;
}

.nav-pill.hot {
  background: var(--amber-soft);
  color: #b45309;
}

.nav-pill.live {
  background: var(--red-soft);
  color: var(--red);
}

.sidebar-card {
  background: linear-gradient(155deg, #0f172a 0%, #162540 100%);
  color: #f8fafc;
  padding: 15px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.mono-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(13, 148, 136, 0.28);
  color: #5eead4;
}

.xp-bar-wrap {
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #38bdf8);
  border-radius: 99px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #94a3b8;
}

.btn-ghost-sm {
  margin-top: 2px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.16s;
}

.btn-ghost-sm:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   TOPBAR & MAIN CONTENT
   ========================================================================== */
.main-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.mobile-menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 18px;
}

.page-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.topbar-telemetry {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.telemetry-pill.streak {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.telemetry-pill.combo {
  border-color: #99f6e4;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-family: "JetBrains Mono", monospace;
}

.telemetry-pill.xp {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.icon-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.icon-toggle:hover {
  background: var(--bg-subtle);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  gap: 2px;
}

.lang-opt {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 7px;
  transition: all 0.16s ease;
  letter-spacing: 0.03em;
}

.lang-opt:hover:not(.active) {
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.7);
}

.lang-opt.active {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.28);
}

.content-area {
  padding: 26px 28px 48px;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
}

.view {
  display: none;
  animation: fadeSlideIn 0.24s ease;
}

.view.active {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   COMMON CARDS, BUTTONS, TAGS & GRIDS
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.grid-asymmetric {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

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

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--bg-subtle);
  color: var(--ink-secondary);
}

.pill.teal { background: var(--teal-soft); color: var(--teal-dark); }
.pill.amber { background: var(--amber-soft); color: #b45309; }
.pill.blue { background: var(--blue-soft); color: #1d4ed8; }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.emerald { background: var(--emerald-soft); color: #047857; }
.pill.violet { background: var(--violet-soft); color: #6d28d9; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.16s ease;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.24);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }

.btn-amber {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
}
.btn-amber:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-dark {
  background: var(--ink-primary);
  color: #fff;
}
.btn-dark:hover { background: #1e293b; }

.btn-outline {
  background: var(--bg-surface);
  color: var(--ink-primary);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--bg-subtle); }

.btn-danger {
  background: var(--red);
  color: #fff;
}
.btn-danger:hover { background: #b91c1c; }

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

/* ==========================================================================
   HERO BANNER (DASHBOARD)
   ========================================================================== */
.hero-banner {
  background: linear-gradient(125deg, #0f172a 0%, #132c47 58%, #0f4c5c 100%);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.26) 0%, transparent 70%);
  pointer-events: none;
}

.hero-banner h2 {
  margin: 8px 0 10px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-banner p {
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 14px;
  max-width: 600px;
}

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

.hero-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  position: relative;
  z-index: 2;
}

.hero-kpi {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  padding: 14px 16px;
}

.hero-kpi-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  font-weight: 800;
  color: #5eead4;
}

.hero-kpi-val.amber { color: #fcd34d; }

.hero-kpi-label {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 2px;
}

/* Persona Quick Switcher */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.persona-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 15px;
  text-align: left;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.persona-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.persona-card.selected {
  border-color: var(--teal);
  background: var(--teal-tint);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.persona-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.persona-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
}

.persona-summary {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

/* Radar SVG Box */
.radar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radar-wrap svg {
  width: 100%;
  max-width: 370px;
  height: auto;
}

/* Quick Arena Launchers */
.arena-tile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all 0.16s ease;
  text-align: left;
  width: 100%;
}

.arena-tile:hover {
  border-color: var(--teal);
  background: var(--teal-tint);
  transform: translateY(-1px);
}

.arena-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--bg-subtle);
}

.arena-tile h4 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
}

.arena-tile p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   NEURO-SPRINT 12-MINUTE ARENA
   ========================================================================== */
.sprint-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.sprint-step {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.16s;
}

.sprint-step.active {
  border-color: var(--teal);
  background: var(--teal-tint);
}

.sprint-step.done {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12.5px;
  font-family: "JetBrains Mono", monospace;
}

.sprint-step.active .step-num {
  background: var(--teal);
  color: #fff;
}

.sprint-step.done .step-num {
  background: var(--emerald);
  color: #fff;
}

.sprint-stage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

/* Breathing Prime Circle */
.breath-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 0;
  gap: 18px;
}

.breath-orb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2dd4bf, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 0 0 14px rgba(13, 148, 136, 0.12), 0 14px 36px rgba(2, 132, 199, 0.28);
  transition: transform 2.2s ease-in-out;
}

.breath-orb.inhale { transform: scale(1.22); }
.breath-orb.exhale { transform: scale(0.92); }

/* Blitz Quiz Card */
.blitz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.timer-bar-wrap {
  height: 8px;
  background: var(--bg-subtle);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 18px;
}

.timer-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--amber-bright));
  transition: width 0.2s linear;
}

.blitz-source {
  background: #0f172a;
  color: #f8fafc;
  padding: 20px 22px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.options-stack {
  display: grid;
  gap: 10px;
}

.option-btn {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-primary);
  transition: all 0.14s ease;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--teal);
  background: var(--teal-tint);
}

.option-btn.correct {
  border-color: var(--emerald);
  background: var(--emerald-soft);
  color: #065f46;
  font-weight: 700;
}

.option-btn.wrong {
  border-color: var(--red);
  background: var(--red-soft);
  color: #991b1b;
}

.insight-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 13.5px;
}

/* ==========================================================================
   MORPHEME LEGO LAB & FSRS SMART VAULT
   ========================================================================== */
.morpheme-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.lego-piece {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  min-width: 112px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.lego-piece .lego-role {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

.lego-piece .lego-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 17px;
  font-weight: 800;
}

.lego-piece .lego-meaning {
  font-size: 12px;
  margin-top: 2px;
  opacity: 0.95;
}

.builder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip-btn {
  padding: 6px 11px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
  transition: all 0.14s;
}

.chip-btn:hover { border-color: var(--teal); }
.chip-btn.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* FSRS Flashcard */
.fsrs-card {
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid var(--border-strong);
  border-radius: 18px;
  padding: 26px;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.fsrs-term {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin: 8px 0 4px;
}

.fsrs-ipa {
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  color: var(--teal-dark);
}

.fsrs-answer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-strong);
  animation: fadeSlideIn 0.2s ease;
}

.fsrs-vi {
  font-size: 19px;
  font-weight: 800;
  color: var(--emerald);
  margin-bottom: 10px;
}

.fsrs-ratings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.rate-btn {
  padding: 10px 8px;
  border-radius: 11px;
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.15s;
}

.rate-btn strong { font-size: 13px; }
.rate-btn span { font-size: 11px; color: var(--ink-muted); font-family: "JetBrains Mono", monospace; }
.rate-btn.again:hover { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.rate-btn.hard:hover { border-color: var(--amber); background: var(--amber-soft); color: #b45309; }
.rate-btn.good:hover { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.rate-btn.easy:hover { border-color: var(--blue); background: var(--blue-soft); color: #1d4ed8; }

/* ==========================================================================
   DARK BROADCAST STUDIO: INTERPRETER BOOTH & INTERNATIONAL MC STAGE
   ========================================================================== */
.studio-shell {
  background: var(--studio-bg);
  color: var(--studio-ink);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--studio-border);
  box-shadow: var(--shadow-lg);
}

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

.on-air-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
}

.on-air-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.studio-select {
  background: var(--studio-elevated);
  color: var(--studio-ink);
  border: 1px solid var(--studio-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  max-width: 100%;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
}

.studio-panel {
  background: var(--studio-panel);
  border: 1px solid var(--studio-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.studio-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

/* Visual Conference Slide inside Booth */
.conference-slide {
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid #cbd5e1;
}

.slide-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.05em;
}

.slide-h {
  margin: 4px 0 2px;
  font-size: 14.5px;
  font-weight: 800;
}

.slide-sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--ink-muted);
}

.slide-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #334155;
}

.segment-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

.seg-item {
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  font-size: 13.5px;
  color: #cbd5e1;
  transition: all 0.18s;
}

.seg-item.active {
  background: rgba(20, 184, 166, 0.16);
  border-color: #14b8a6;
  color: #ffffff;
  font-weight: 600;
}

.seg-model {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
  font-size: 12.5px;
  color: #5eead4;
}

.waveform-canvas {
  width: 100%;
  height: 68px;
  background: #070c17;
  border: 1px solid var(--studio-border);
  border-radius: 10px;
  display: block;
}

.rozan-pad, .interp-textarea {
  width: 100%;
  min-height: 110px;
  background: #070c17;
  color: #e2e8f0;
  border: 1px solid var(--studio-border);
  border-radius: 10px;
  padding: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  line-height: 1.55;
  resize: vertical;
}

.interp-textarea {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 13.5px;
}

.symbol-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sym-btn {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--studio-border);
  background: var(--studio-elevated);
  color: #5eead4;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}
.sym-btn:hover { background: #243658; }

.studio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.audit-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.audit-box {
  background: var(--studio-elevated);
  border: 1px solid var(--studio-border);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}

.audit-val {
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
}

.audit-lbl {
  font-size: 11px;
  color: #94a3b8;
}

/* MC Teleprompter */
.teleprompter-box {
  background: #060a14;
  border: 1.5px solid #283c63;
  border-radius: 14px;
  padding: 20px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.mc-cue {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #14b8a6;
}

.mc-cue.vi { border-left-color: #f59e0b; }

.mc-cue-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #5eead4;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.mc-cue.vi .mc-cue-tag { color: #fcd34d; }

.mc-cue-text {
  font-size: 18px;
  line-height: 1.65;
  color: #f8fafc;
  font-weight: 500;
}

.stage-marker {
  display: inline-block;
  padding: 1px 7px;
  margin: 0 2px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fcd34d;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  vertical-align: middle;
}

/* Crisis Roulette Card */
.crisis-card {
  background: linear-gradient(145deg, #2a0f18 0%, #1c1026 100%);
  border: 1.5px solid rgba(244, 63, 94, 0.55);
  border-radius: 14px;
  padding: 18px;
  color: #fff1f2;
}

/* ==========================================================================
   ROADMAP & NEURO-THEORIES & BLUEPRINT
   ========================================================================== */
.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.roadmap-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: flex-start;
  transition: border-color 0.16s;
}

.roadmap-card.recommended {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.level-badge-lg {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.level-badge-lg span { font-size: 10px; opacity: 0.85; letter-spacing: 0.06em; }
.level-badge-lg strong { font-size: 24px; line-height: 1; font-family: "JetBrains Mono", monospace; }

.module-ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.module-ul li {
  font-size: 13px;
  color: var(--ink-secondary);
  padding-left: 18px;
  position: relative;
}

.module-ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

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

.theory-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  color: var(--teal);
}

.blueprint-reader {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 30px;
  max-height: 620px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
}

.blueprint-reader h1, .blueprint-reader h2, .blueprint-reader h3 {
  color: var(--ink-primary);
  margin-top: 20px;
}

.blueprint-reader table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13px;
}

.blueprint-reader th, .blueprint-reader td {
  border: 1px solid var(--border);
  padding: 9px 11px;
  text-align: left;
}

.blueprint-reader th {
  background: var(--bg-subtle);
  font-weight: 700;
}

.blueprint-reader pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 12.5px;
}

/* ==========================================================================
   MODAL & DOPAMINE TOASTS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 60;
}

.modal-backdrop.hidden { display: none; }

.modal-card {
  background: var(--bg-surface);
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 24px 26px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.modal-close {
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 16px;
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 80;
  pointer-events: none;
}

.toast {
  background: #0f172a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--teal);
  animation: toastPop 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 340px;
}

.toast.amber { border-left-color: var(--amber-bright); }
.toast.red { border-left-color: var(--red); }

@keyframes toastPop {
  from { opacity: 0; transform: translateX(24px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1120px) {
  .persona-grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-banner, .grid-asymmetric, .studio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: -290px;
    width: 268px;
    transition: left 0.22s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { left: 0; }
  .mobile-menu-btn { display: inline-flex; }
  .grid-2, .grid-3, .sprint-stepper, .module-ul { grid-template-columns: 1fr; }
  .content-area { padding: 18px 16px 40px; }
  .topbar { padding: 12px 16px; }
}
