/* ==========================================================================
   CHFI v11 Master Learning Platform - Stylesheet
   Modern Cyber-Forensic Premium Dark UI with Glassmorphism & Neon Accents
   ========================================================================== */

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

:root {
  /* Color Palette - Cyber Theme (Default) */
  --bg-base: #090d16;
  --bg-surface: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Vibrant Accents */
  --accent-cyan: #06b6d4;
  --accent-blue: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-purple: #c084fc;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-red: #ef4444;

  --sidebar-width: 320px;
  --header-height: 72px;

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);
}

[data-theme="dark"] {
  --bg-base: #05070a;
  --bg-surface: #090d14;
  --bg-card: rgba(11, 17, 28, 0.85);
  --bg-card-hover: rgba(21, 32, 54, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.05);
}

[data-theme="matrix"] {
  --bg-base: #020b05;
  --bg-surface: #05190e;
  --bg-card: rgba(5, 25, 14, 0.85);
  --bg-card-hover: rgba(10, 39, 23, 0.95);
  --accent-cyan: #00ff66;
  --accent-blue: #10b981;
  --border-focus: #00ff66;
  --border-subtle: rgba(0, 255, 102, 0.15);
  --shadow-glow: 0 0 25px rgba(0, 255, 102, 0.25);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(129, 140, 248, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Layout Architecture */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* ================= TOP NAVBAR ================= */
.top-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  height: var(--header-height);
  background: rgba(9, 13, 22, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
  transition: all 0.3s ease;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-tabs-wrapper {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.nav-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(129, 140, 248, 0.25));
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.global-search-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.global-search-btn:hover {
  border-color: var(--border-focus);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.search-kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.theme-toggle-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  background: rgba(30, 41, 59, 0.9);
}

/* Progress Pill in Header */
.progress-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.9);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
}

.progress-bar-wrap {
  width: 90px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-emerald));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* ================= SIDEBAR ================= */
.app-sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 110;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.badge-v11 {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #090d16;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.sidebar-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

.sidebar-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
  padding: 8px 12px 12px;
}

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

.sidebar-item {
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-item.active {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

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

.mod-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-item-info {
  flex: 1;
  min-width: 0;
}

.sidebar-item-title {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-item.active .sidebar-item-title {
  color: #fff;
}

.sidebar-item-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.item-check {
  color: var(--accent-emerald);
  font-size: 0.85rem;
}

/* ================= MAIN CONTENT VIEWPORT ================= */
.main-viewport {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  flex: 1;
  min-height: calc(100vh - var(--header-height));
  padding: 36px 48px 80px;
  position: relative;
}

/* ================= MODULE DETAIL VIEW ================= */
.module-detail-hero {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 36px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.hero-top-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-weight, .hero-time {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-weight strong, .hero-time strong {
  color: #fff;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 24px;
}

/* Mnemonic Banner */
.mnemonic-banner {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.mnemonic-icon-wrap {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.mnemonic-header-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.mnemonic-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}

.mnemonic-pill {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #0f172a;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.mnemonic-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.mnemonic-tip {
  font-size: 0.85rem;
  color: #fbbf24;
}

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

.btn-action {
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #090d16;
  border: none;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.btn-completed {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Subchapters Section */
.subchapters-container {
  margin-bottom: 48px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sub-counter {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

.subchapter-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.subchapter-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s ease;
  position: relative;
}

.subchapter-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.subchapter-card.completed-card {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(15, 23, 42, 0.85);
}

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

.sub-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-blue);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.sub-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.sub-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-action-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.icon-action-btn.active {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
}

.sub-summary {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

.sub-keypoints {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.keypoints-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-keypoints ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-keypoints li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: #e2e8f0;
}

.sub-keypoints li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent-cyan);
  font-size: 1.2rem;
  line-height: 1;
}

.inline-code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Exam Trap Box */
.exam-trap-box {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

.trap-header {
  color: var(--accent-rose);
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.exam-trap-box p {
  font-size: 0.9rem;
  color: #fecdd3;
  line-height: 1.5;
}

/* Commands Box */
.sub-commands-box {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
}

.cmd-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cmd-row:last-child {
  border-bottom: none;
}

.cmd-meta {
  flex: 1;
}

.cmd-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
}

.cmd-desc {
  display: block;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.cmd-code {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cmd-code code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #38bdf8;
}

.copy-cmd-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}

.copy-cmd-btn:hover {
  color: #fff;
}

/* Module Nav Footer */
.module-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.btn-prev-mod, .btn-next-mod {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.btn-prev-mod:hover, .btn-next-mod:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ================= MIND MAP VIEW ================= */
.mindmap-view-container {
  height: calc(100vh - var(--header-height) - 72px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.mindmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mindmap-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mindmap-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.mm-legend {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.legend-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mindmap-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px 12px 0 0;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mindmap-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mm-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.mm-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.mm-btn.active {
  background: var(--accent-cyan);
  color: #090d16;
  border-color: var(--accent-cyan);
  font-weight: 800;
}

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

.mm-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 12px;
  gap: 8px;
}

.mm-search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  width: 220px;
}

.ctrl-btn {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mindmap-mount {
  flex: 1;
  background: #060911;
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  position: relative;
}

.mindmap-canvas-wrapper {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.mindmap-svg {
  width: 100%;
  height: 100%;
  user-select: none;
}

.mm-link-path {
  transition: stroke 0.3s ease;
}

.mm-node {
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mm-node:hover .mm-card-rect {
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.5));
}

.mm-highlight-pulse {
  animation: pulse-border 1.5s infinite;
}

@keyframes pulse-border {
  0% { filter: drop-shadow(0 0 4px #f59e0b); }
  50% { filter: drop-shadow(0 0 16px #f59e0b); }
  100% { filter: drop-shadow(0 0 4px #f59e0b); }
}

/* Mind Map Side Drawer */
.node-drawer {
  position: absolute;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-subtle);
  border-radius: 0 12px 12px 0;
  padding: 24px;
  z-index: 120;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.node-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.close-btn:hover {
  color: #fff;
}

.drawer-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.drawer-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.drawer-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.drawer-meta-grid .meta-item {
  display: flex;
  flex-direction: column;
}

.drawer-meta-grid .label {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.drawer-meta-grid .value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.drawer-mnemonic {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
}

.drawer-mnemonic strong {
  display: block;
  font-size: 0.88rem;
  color: #fbbf24;
  margin-bottom: 4px;
}

.drawer-mnemonic p {
  font-size: 0.82rem;
  color: #fde68a;
}

.drawer-sub-list h4, .drawer-keypoints h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.drawer-sub-list ul, .drawer-keypoints ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.drawer-sub-list li, .drawer-keypoints li {
  font-size: 0.84rem;
  color: #cbd5e1;
  padding-left: 14px;
  position: relative;
}

.drawer-sub-list li::before, .drawer-keypoints li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

.full-width-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ================= INFOGRAPHICS VIEW ================= */
.infographics-view-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.infographics-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.infographics-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

.infographics-tabs-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.info-tab-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 200px;
  transition: all 0.2s;
}

.info-tab-pill:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.info-tab-pill.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
}

.info-pill-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.info-pill-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.active-infographic-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.active-info-hero {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

.info-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.badge-primary {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}

.mnemonic-tag {
  font-size: 0.85rem;
  color: var(--accent-amber);
}

.active-info-hero h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.active-info-hero p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Infographic 1: Volatility Spectrum */
.volatility-spectrum {
  background: #020617;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}

.spectrum-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.badge-vol-high {
  color: #f43f5e;
}

.badge-vol-low {
  color: #38bdf8;
}

.volatility-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vol-step {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(15, 23, 42, 0.8);
  border-left: 4px solid #334155;
  border-radius: 0 8px 8px 0;
  padding: 12px 18px;
  transition: transform 0.2s;
}

.vol-step:hover {
  transform: translateX(6px);
}

.vol-step.step-1 { border-left-color: #ef4444; }
.vol-step.step-2 { border-left-color: #f97316; }
.vol-step.step-3 { border-left-color: #f59e0b; background: rgba(245, 158, 11, 0.12); }
.vol-step.step-4 { border-left-color: #eab308; }
.vol-step.step-5 { border-left-color: #10b981; }
.vol-step.step-6 { border-left-color: #06b6d4; }
.vol-step.step-7 { border-left-color: #3b82f6; }
.vol-step.step-8 { border-left-color: #8b5cf6; }

.vol-rank {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  width: 40px;
}

.vol-content h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.vol-content p {
  font-size: 0.85rem;
  color: #94a3b8;
}

.vol-time {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  display: block;
  margin-top: 4px;
}

.mnemonic-alert {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.mnemonic-alert i {
  font-size: 1.4rem;
  color: var(--accent-amber);
}

/* Infographic 2: MFT Diagram */
.mft-diagram-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.mft-record-box {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mft-block {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 8px;
  padding: 14px;
  border-left: 4px solid var(--accent-cyan);
}

.mft-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.mft-block h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.mft-block p, .mft-block li {
  font-size: 0.84rem;
  color: #94a3b8;
}

.mft-block ul {
  padding-left: 18px;
}

.resident-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.res-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.res-box strong {
  display: block;
  color: var(--accent-emerald);
  margin-bottom: 4px;
}

.res-box.non-res strong {
  color: var(--accent-amber);
}

.timestomp-detector-card {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 12px;
  padding: 20px;
}

.timestomp-detector-card h4 {
  color: var(--accent-rose);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.code-compare {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.compare-item {
  flex: 1;
  background: #020617;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-item .label {
  display: block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 4px;
}

.compare-item .time-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #fff;
}

.compare-item.fake {
  border-color: rgba(244, 63, 94, 0.4);
}

.compare-item.real {
  border-color: rgba(16, 185, 129, 0.4);
}

.compare-sign {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-amber);
}

.conclusion {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Infographic 3: MBR vs GPT */
.disk-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.disk-arch-card {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
}

.arch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.arch-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.badge-legacy {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-modern {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.sector-strip {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
}

.sec-part {
  padding: 8px 4px;
}

.code-446 { flex: 7; background: #1e293b; color: #94a3b8; }
.table-64 { flex: 2; background: #0284c7; color: #fff; font-weight: bold; }
.sig-2 { flex: 1; background: #10b981; color: #000; font-weight: 900; }

.gpt-strip .lba-0 { flex: 1; background: #334155; }
.gpt-strip .lba-1 { flex: 1.5; background: #0284c7; }
.gpt-strip .lba-part { flex: 5; background: #0d9488; }
.gpt-strip .lba-tail { flex: 1.5; background: #8b5cf6; }

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-list li {
  font-size: 0.88rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 6px;
}

/* Infographic 4: Pipeline Track */
.pipeline-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  padding: 20px 0;
}

.pipe-node {
  flex: 1;
  min-width: 170px;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.pipe-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.pipe-step {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin-bottom: 4px;
}

.pipe-node h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.pipe-node p {
  font-size: 0.78rem;
  color: #94a3b8;
  flex: 1;
  margin-bottom: 12px;
}

.pipe-loc {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-blue);
  padding: 2px 6px;
  border-radius: 4px;
}

.pipe-arrow {
  display: flex;
  align-items: center;
  color: var(--text-dim);
  font-size: 1.1rem;
}

/* Infographic 5: Mobile Pyramid */
.pyramid-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.pyr-level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 24px;
  transition: all 0.2s;
}

.pyr-level:hover {
  transform: scale(1.02);
}

.pyr-rank {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  width: 90px;
}

.pyr-info {
  flex: 1;
}

.pyr-info strong {
  display: block;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 2px;
}

.pyr-info p {
  font-size: 0.82rem;
  color: #94a3b8;
}

.pyr-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}

.pyr-badge.danger { background: rgba(244, 63, 94, 0.2); color: #f43f5e; }
.pyr-badge.high { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.pyr-badge.med { background: rgba(14, 165, 233, 0.2); color: #0ea5e9; }
.pyr-badge.low { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.pyr-badge.base { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

/* Infographic 6: Legal Comparison Grid */
.legal-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  margin-bottom: 20px;
}

.legal-card {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
}

.legal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.legal-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.legal-rule {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 0.88rem;
}

.legal-rule strong {
  display: block;
  color: var(--accent-amber);
  margin-bottom: 4px;
}

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

.d-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(15, 23, 42, 0.8);
  padding: 10px;
  border-radius: 8px;
}

.d-letter {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-cyan);
  color: #090d16;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.d-item strong {
  display: block;
  font-size: 0.85rem;
  color: #fff;
}

.d-item p {
  font-size: 0.74rem;
  color: #94a3b8;
}

/* ================= TOOLS ARSENAL VIEW ================= */
.tools-view-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tools-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tools-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.tools-header p {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.tools-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 16px;
  gap: 10px;
  min-width: 320px;
}

.tools-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  width: 100%;
}

.tools-filter-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.tool-filter-btn:hover {
  color: #fff;
}

.tool-filter-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #090d16;
  border-color: var(--accent-cyan);
  font-weight: 800;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s;
}

.tool-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.tool-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.tool-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.tool-vendor {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.tool-license {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 6px;
}

.tool-usage {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
  flex: 1;
}

.tool-cmd-box {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px;
}

.cmd-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 4px;
}

.tool-cmd-box code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #38bdf8;
  word-break: break-all;
}

.tool-tips-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--accent-amber);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
}

.tool-tips-box strong {
  display: block;
  color: #fbbf24;
  margin-bottom: 2px;
}

.tool-tips-box p {
  color: #e2e8f0;
}

.tool-tags-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-pill {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ================= QUIZ & FLASHCARDS ================= */
.quiz-view-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.quiz-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.quiz-view-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-view-header p {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.quiz-mode-switch {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.mode-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  color: #fff;
}

/* Flashcards 3D Flip */
.flashcards-section-container {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.flashcard-deck-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.fc-tip {
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

.flashcard-scene {
  height: 380px;
  perspective: 1200px;
  cursor: pointer;
  margin-bottom: 24px;
}

.flashcard-flipper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flashcard-flipper.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
}

.card-front {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-color: rgba(56, 189, 248, 0.3);
}

.card-back {
  background: linear-gradient(135deg, #090d16, #0f172a);
  border-color: rgba(16, 185, 129, 0.4);
  transform: rotateY(180deg);
}

.card-tag {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.card-question {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}

.card-answer {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.card-prompt {
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.flashcard-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.fc-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 10px 24px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.fc-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.fc-flip-btn {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #090d16;
  border: none;
}

/* Exam Quiz Section */
.exam-quiz-section-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quiz-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 24px;
}

.quiz-total-info {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.quiz-btn-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-score-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid var(--accent-cyan);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

.score-grid {
  display: flex;
  align-items: center;
  gap: 32px;
}

.score-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--accent-cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-pct {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.score-lbl {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.score-feedback h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.score-feedback p {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.questions-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

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

.q-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.q-result-badge {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-correct {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.badge-wrong {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
}

.q-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 20px;
}

.q-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.option-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.option-item input[type="radio"] {
  display: none;
}

.opt-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.option-item.opt-selected {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--accent-cyan);
}

.option-item.opt-selected .opt-indicator {
  background: var(--accent-cyan);
  color: #090d16;
}

.option-item.opt-is-correct {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: var(--accent-emerald) !important;
}

.option-item.opt-is-correct .opt-indicator {
  background: var(--accent-emerald);
  color: #090d16;
}

.option-item.opt-is-wrong {
  background: rgba(244, 63, 94, 0.18) !important;
  border-color: var(--accent-rose) !important;
}

.option-item.opt-is-wrong .opt-indicator {
  background: var(--accent-rose);
  color: #fff;
}

.opt-label {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.q-explanation-box {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 18px;
}

.exp-header {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.q-explanation-box p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 10px;
}

.exp-mnemonic {
  font-size: 0.85rem;
  color: #fbbf24;
}

/* ================= CHEAT SHEET VIEW ================= */
.cheatsheet-view-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cheatsheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cheatsheet-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cheatsheet-header p {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.cheatsheet-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cheat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
}

.cheat-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cheat-table {
  width: 100%;
  border-collapse: collapse;
}

.cheat-table th, .cheat-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.cheat-table th {
  background: rgba(0, 0, 0, 0.3);
  font-weight: 700;
  color: var(--accent-cyan);
}

.cheat-table td {
  color: #cbd5e1;
}

.pill-code {
  font-family: var(--font-mono);
  font-weight: 800;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ================= SEARCH MODAL ================= */
.search-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-modal-backdrop.open {
  display: flex;
}

.search-modal-box {
  width: 640px;
  max-width: 90vw;
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: modal-slide-down 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-slide-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-input-wrap {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 14px;
}

.modal-input-wrap i {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.modal-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.1rem;
}

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

.search-result-item {
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-res-type {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

.search-res-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.search-res-info p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.search-empty {
  padding: 32px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ================= SLIDE DECK PRESENTER ================= */
.slides-view-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slides-header-intro h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.slides-header-intro p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.slide-deck-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

/* Slide Top Bar */
.slide-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
  flex-wrap: wrap;
}

.slide-module-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slide-module-selector label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.slide-select-dropdown {
  background: #020617;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}

.slide-meta-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slide-counter-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
}

.slide-ctrl-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.slide-ctrl-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Slide Canvas / Stage */
.slide-canvas {
  min-height: 480px;
  padding: 44px 56px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(9, 13, 22, 0.95));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

/* Title Slide Layout */
.slide-layout-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 880px;
}

.title-slide-badge {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-slide-h1 {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}

.title-slide-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.title-slide-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.metric-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.metric-pill strong {
  color: #fff;
}

.title-slide-mnemonic {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 24px;
  width: 100%;
}

.tsm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.tsm-icon {
  font-size: 1.2rem;
  color: var(--accent-amber);
}

.tsm-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.tsm-code {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #0f172a;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.tsm-meaning {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.tsm-tip {
  font-size: 0.85rem;
  color: #fbbf24;
}

/* Content Slide Layout */
.slide-layout-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-slide-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.cs-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.cs-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

.cs-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.content-slide-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.content-slide-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.content-slide-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.cs-section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-points-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-points-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.cs-points-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.cs-right-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-trap-box {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 12px;
  padding: 16px;
}

.cs-trap-header {
  color: var(--accent-rose);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.cs-trap-box p {
  font-size: 0.85rem;
  color: #fecdd3;
  line-height: 1.45;
}

.cs-cmd-box {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.cs-cmd-header {
  color: var(--accent-emerald);
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.cs-cmd-item {
  margin-bottom: 8px;
}

.cs-cmd-item:last-child {
  margin-bottom: 0;
}

.cs-cmd-desc {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.cs-cmd-item code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #38bdf8;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Summary Slide Layout */
.slide-layout-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 820px;
}

.summary-slide-badge {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.summary-slide-h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.summary-slide-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.summary-mnemonic-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  width: 100%;
}

.sm-code {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.4rem;
  color: #fbbf24;
}

.sm-info strong {
  display: block;
  font-size: 1rem;
  color: #fff;
}

.sm-info p {
  font-size: 0.88rem;
  color: #fde68a;
}

.summary-takeaways h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-takeaways ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-takeaways li {
  font-size: 0.92rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.summary-takeaways li i {
  color: var(--accent-emerald);
  margin-top: 4px;
}

/* Slide Bottom Bar */
.slide-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-subtle);
}

.slide-nav-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-slide-nav {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-slide-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.btn-slide-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

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

.slide-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s;
}

.slide-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.slide-dot.active {
  background: var(--accent-cyan);
  width: 22px;
  border-radius: 6px;
}

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

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

/* Speaker Notes Drawer */
.speaker-notes-box {
  background: #020617;
  border-top: 2px solid var(--accent-amber);
  padding: 16px 24px;
  font-size: 0.88rem;
  animation: slide-up 0.2s ease;
}

.notes-header {
  color: var(--accent-amber);
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.speaker-notes-box p {
  color: #cbd5e1;
  line-height: 1.5;
}

/* Fullscreen Slide Styling */
.slide-deck-wrapper:fullscreen,
.slide-deck-wrapper:-webkit-full-screen {
  border-radius: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  border: none;
  background: var(--bg-card, #0f172a);
  display: flex;
  flex-direction: column;
  padding: 24px 36px;
  box-sizing: border-box;
  overflow: hidden;
}

.slide-deck-wrapper:focus {
  outline: none;
}

.slide-deck-wrapper:fullscreen .slide-canvas,
.slide-deck-wrapper:-webkit-full-screen .slide-canvas {
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
}

.slide-deck-wrapper:fullscreen .slide-top-bar,
.slide-deck-wrapper:-webkit-full-screen .slide-top-bar,
.slide-deck-wrapper:fullscreen .slide-bottom-bar,
.slide-deck-wrapper:-webkit-full-screen .slide-bottom-bar {
  flex-shrink: 0;
}

/* ================= AGENDA & ROADMAP VIEW ================= */
.agenda-view-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.agenda-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.agenda-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.agenda-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.agenda-mode-switcher {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.agenda-progress-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ap-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ap-info i {
  font-size: 1.8rem;
  color: var(--accent-cyan);
}

.ap-info strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
}

.ap-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ap-bar-wrap {
  flex: 1;
  max-width: 400px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.ap-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-emerald));
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Agenda Day Cards */
.agenda-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.agenda-day-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.day-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.day-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.day-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.day-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.day-mods-pill {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
}

.day-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.session-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px 20px;
  transition: all 0.2s;
}

.session-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.session-item.session-done {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.sess-time-col {
  width: 130px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sess-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.sess-type-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  text-align: center;
}

.type-lecture { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.type-deepdive { background: rgba(129, 140, 248, 0.15); color: #818cf8; }
.type-lab { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.type-exam { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }

.sess-body-col {
  flex: 1;
}

.sess-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.sess-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 6px;
}

.sess-subs {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.sess-subs code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
}

.sess-lab-tool {
  font-size: 0.8rem;
  color: var(--accent-emerald);
}

.sess-action-col {
  flex-shrink: 0;
  margin-top: 4px;
}

.btn-toggle-sess {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-toggle-sess:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-toggle-sess.active {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
}

.day-outcome-footer {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.day-outcome-footer i {
  font-size: 1.3rem;
  color: var(--accent-amber);
}

.day-outcome-footer strong {
  display: block;
  font-size: 0.85rem;
  color: #fbbf24;
}

.day-outcome-footer p {
  font-size: 0.85rem;
  color: #fde68a;
}

/* 4-Week Self Study Grid */
.selfstudy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.selfstudy-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ssc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ssc-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
}

.ssc-hours {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ssc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.ssc-goals {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ssc-goals li {
  font-size: 0.88rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.ssc-goals li i {
  color: var(--accent-emerald);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Print Styles */
@media print {
  .top-navbar, .app-sidebar, .module-nav-footer, .module-action-bar, #btn-print-sheet {
    display: none !important;
  }
  .main-viewport {
    margin: 0 !important;
    padding: 0 !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .cheat-card, .cheat-table th, .cheat-table td {
    background: #fff !important;
    color: #000 !important;
    border-color: #ccc !important;
  }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 0px;
  }
  .app-sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }
  .top-navbar {
    left: 0;
    padding: 0 16px;
  }
  .main-viewport {
    margin-left: 0;
    padding: 24px 16px 60px;
  }
  .mft-diagram-container, .disk-compare-grid, .legal-comparison-grid {
    grid-template-columns: 1fr;
  }
}
