/* =========================================================
   ESCA NETWORK ENGINEER REHEARSAL STUDIO - STYLESHEET
   Curated Modern Dark Theme (Obsidian Slate + Neon Accents)
   ========================================================= */

:root {
  --bg-main: #090D16;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.88);
  
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-focus: rgba(56, 189, 248, 0.4);
  --border-glow: rgba(56, 189, 248, 0.25);
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --cyan-400: #38BDF8;
  --cyan-500: #0284C7;
  --orange-400: #FB923C;
  --orange-500: #EA580C;
  --emerald-400: #34D399;
  --emerald-500: #059669;
  --violet-400: #C084FC;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --shadow-stage: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.08);
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(251, 146, 60, 0.05) 0%, transparent 45%);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   TOP HEADER
   ========================================================= */
.app-header {
  height: 64px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 22px;
  background: linear-gradient(135deg, var(--cyan-400), var(--orange-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.company-tag {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--cyan-400);
}

.role-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.candidate-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 14px;
}

.avatar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-400);
  box-shadow: 0 0 8px var(--emerald-400);
}

.candidate-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.experience-badge {
  font-size: 11px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan-400);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

.highlight-btn {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(2, 132, 199, 0.3));
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--cyan-400);
}

.highlight-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(2, 132, 199, 0.45));
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* =========================================================
   MAIN LAYOUT (CINEMA VIDEO + SIDEBAR)
   ========================================================= */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 20px;
  padding: 20px 24px;
  flex: 1;
  max-width: 1720px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1200px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   LEFT: CINEMA VIDEO STAGE
   ========================================================= */
.video-container {
  display: flex;
  flex-direction: column;
}

.cinema-stage {
  background: #0B1120;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-stage);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.stage-top-bar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.current-chapter-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 10px var(--cyan-400);
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.chapter-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--cyan-400);
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}

.chapter-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.stage-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-source-badge {
  font-size: 11px;
  color: var(--text-muted);
}

.stage-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stage-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  color: var(--text-primary);
  border-color: var(--cyan-400);
}

/* Slide Screen Stage (16:9 Cinema Aspect) */
.slide-screen {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: radial-gradient(circle at 50% 30%, #111C33 0%, #0A0F1D 80%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-content-area {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   DYNAMIC SLIDE CONTENT STYLES
   ========================================================= */
.slide-hero {
  animation: fadeIn 0.4s ease-out;
}

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

.slide-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.slide-category-badge {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cyan-400);
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.slide-main-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.25;
}

.slide-sub-title {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Timeline Cards in Slide 1 */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.timeline-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.timeline-card.active-phase {
  border-color: var(--cyan-400);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan-400);
  margin-bottom: 4px;
}

.timeline-role {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-company {
  font-size: 11px;
  color: var(--text-muted);
}

/* Strategic Highlights Grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.highlight-card {
  background: rgba(15, 23, 42, 0.65);
  border-left: 3px solid var(--cyan-400);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
}

.highlight-card.orange {
  border-left-color: var(--orange-400);
}

.highlight-card.emerald {
  border-left-color: var(--emerald-400);
}

.highlight-card h4 {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.highlight-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Architecture Image Container in Slides */
.diagram-slide-wrapper {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  align-items: center;
}

.diagram-img-box {
  background: #070B14;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.diagram-img-box:hover {
  transform: scale(1.015);
  border-color: var(--cyan-400);
}

.diagram-img-box img {
  width: 100%;
  height: auto;
  display: block;
}

.diagram-badge-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  font-size: 10px;
  color: var(--cyan-400);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.diagram-points-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.point-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}

.point-item.highlight-now {
  border-color: var(--cyan-400);
  background: rgba(2, 132, 199, 0.15);
}

.point-item strong {
  font-size: 12px;
  color: var(--cyan-400);
  display: block;
  margin-bottom: 2px;
}

.point-item span {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Interactive Code Snippet Box inside slides */
.slide-code-box {
  background: #040810;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #E2E8F0;
  margin-top: 10px;
  white-space: pre-wrap;
  line-height: 1.4;
}

/* Teleprompter Subtitle Overlay */
.teleprompter-overlay {
  background: rgba(8, 12, 22, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.teleprompter-inner {
  width: 100%;
}

.teleprompter-label {
  font-family: var(--font-heading);
  font-size: 9.5px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--orange-400);
  display: block;
  margin-bottom: 4px;
}

.teleprompter-active-sentence {
  font-size: 14.5px;
  line-height: 1.45;
  color: #FFFFFF;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* Shadowing Fullscreen / Focus Mode */
body.shadow-mode-active .teleprompter-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  background: rgba(4, 7, 14, 0.97);
}

body.shadow-mode-active .teleprompter-label {
  font-size: 13px;
  margin-bottom: 12px;
}

body.shadow-mode-active .teleprompter-active-sentence {
  font-size: 26px;
  line-height: 1.4;
  text-align: center;
  color: #38BDF8;
}

/* Visualizer Waveform Canvas */
.visualizer-container {
  height: 36px;
  background: #080D18;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  overflow: hidden;
}

#waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* =========================================================
   PLAYER CONTROLS TOOLBAR
   ========================================================= */
.player-controls {
  background: rgba(15, 23, 42, 0.96);
  padding: 12px 20px;
}

/* Timeline */
.timeline-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.timeline-bar {
  flex: 1;
  height: 6px;
  background: rgba(51, 65, 85, 0.6);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.timeline-bar:hover {
  height: 8px;
}

.timeline-buffered {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
}

.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-500), var(--cyan-400));
  border-radius: 999px;
}

.timeline-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 10px var(--cyan-400);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.timeline-bar:hover .timeline-thumb {
  opacity: 1;
}

.time-readout {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.time-sep {
  margin: 0 2px;
  color: var(--text-muted);
}

/* Controls Toolbar Row */
.controls-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.left-controls, .right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctrl-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ctrl-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: var(--cyan-400);
  color: var(--cyan-400);
}

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-400), var(--cyan-500));
  border: none;
  color: #0F172A;
  font-size: 17px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.5);
  color: #0F172A;
}

.icon-only {
  padding: 6px 9px;
}

.volume-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-slider {
  width: 70px;
  accent-color: var(--cyan-400);
  cursor: pointer;
}

/* Speed Selector */
.speed-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.7);
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.ctrl-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-right: 4px;
}

.speed-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.speed-btn.active, .speed-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: var(--cyan-400);
}

/* Autoplay toggle */
.autoplay-toggle-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-label {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--cyan-500);
}

input:checked + .slider:before {
  transform: translateX(14px);
}

.download-btn {
  text-decoration: none;
  font-size: 11.5px;
  color: var(--text-primary);
}

/* =========================================================
   RIGHT: SIDEBAR TABS & CONTENT
   ========================================================= */
.sidebar-container {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.sidebar-tabs {
  display: flex;
  background: rgba(11, 15, 25, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  padding: 12px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--cyan-400);
  border-bottom-color: var(--cyan-400);
  background: rgba(56, 189, 248, 0.04);
}

.tab-pane {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.tab-pane.active {
  display: flex;
}

.tab-header {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tab-header h3 {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.total-runtime, .sub-hint {
  font-size: 11px;
  color: var(--cyan-400);
}

/* Tab 1: Chapter List */
.chapter-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chapter-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chapter-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.3);
}

.chapter-card.active {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--cyan-400);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chapter-num-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(51, 65, 85, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.chapter-card.active .chapter-num-badge {
  background: var(--cyan-400);
  color: #0F172A;
}

.chapter-info h4 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.chapter-duration {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.chapter-card.active .chapter-duration {
  color: var(--cyan-400);
}

/* Tab 2: Interactive Teleprompter Transcript */
.transcript-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sentence-item {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.sentence-item:hover {
  background: rgba(51, 65, 85, 0.25);
}

.sentence-item.active {
  background: rgba(56, 189, 248, 0.1);
  border-left-color: var(--cyan-400);
}

.sentence-timestamp {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--cyan-400);
  margin-bottom: 2px;
  display: inline-block;
}

.sentence-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.sentence-item.active .sentence-text {
  color: #FFFFFF;
  font-weight: 500;
}

/* Tab 3: Cheat Sheet Cards */
.cheatsheet-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cheat-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-title.cyan { color: var(--cyan-400); }
.card-title.orange { color: var(--orange-400); }
.card-title.emerald { color: var(--emerald-400); }
.card-title.violet { color: var(--violet-400); }

.code-box {
  background: #040810;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan-400);
  margin-bottom: 6px;
  white-space: pre-wrap;
}

.card-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.cheat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cheat-list li {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.cheat-list li strong {
  color: var(--text-primary);
}

/* =========================================================
   MODAL OVERLAY (DIAGRAM ZOOM)
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: #0B1120;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

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

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--cyan-400);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

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

.modal-body {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(11, 15, 25, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.6);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-500);
}
