/* DAAC CaseLab - Modern Corporate Audit Styling */
:root {
  --primary: #1e3a8a;          /* Classic Audit Navy */
  --primary-dark: #0f172a;
  --primary-light: #3b82f6;
  --accent: #0284c7;           /* Analytics Blue */
  --success: #10b981;          /* Low Risk / Clean Control */
  --warning: #f59e0b;          /* Elevated Audit Risk */
  --danger: #ef4444;           /* Material Misstatement / Red Flag */
  --purple: #8b5cf6;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: #f8fafc;
  color: #0f172a;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   1. HEADER & DASHBOARD STATUSBAR (Executive Dark Theme)
   ========================================================================== */
.app-header {
  background: #0b1329;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  backdrop-filter: blur(6px);
}

.brand-titles h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.brand-titles .subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vu-badge {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Header Stats Bar - Compact Semi-Transparent Badges */
.header-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  padding: 0;
  border: none;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 12px;
  min-width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 2px;
  font-weight: 600;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  font-family: var(--font-sans);
}

.stat-value.score {
  color: #34d399;
}

.stat-value.risk-high {
  color: #f87171;
}

.stat-value.risk-med {
  color: #fbbf24;
}

.stat-value.risk-low {
  color: #34d399;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Subtle Ghost Button for Reset Voortgang */
.btn-reset-header {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-reset-header:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  transform: translateY(-1px);
}

/* ==========================================================================
   2. HOOFDNAVIGATIE TABS (Pill / Segmented Controls)
   ========================================================================== */
.app-nav {
  background: transparent;
  border: none;
  box-shadow: none;
  position: sticky;
  top: 68px;
  z-index: 40;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-container {
  max-width: 1440px;
  display: inline-flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
}

.nav-btn {
  background: transparent;
  border: none;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border-bottom: none;
}

.nav-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.nav-btn.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  border-bottom: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Main Layout */
.main-container {
  max-width: 1440px;
  margin: 1rem auto 2.5rem auto;
  padding: 0 1.5rem;
  width: 100%;
  flex: 1;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   4. PART-FILTERBALK (Horizontal Outline Scroll Strip)
   ========================================================================== */
.part-filter-container {
  background: transparent;
  border: none;
  padding: 0.25rem 0 1rem 0;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  box-shadow: none;
  scrollbar-width: thin;
}

.part-filter-container::-webkit-scrollbar {
  height: 4px;
}

.part-filter-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.part-filter-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.part-filter-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.part-filter-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15);
}

/* ==========================================================================
   3. CASUS DOSSIER CARDS (Modern SaaS Card Grid)
   ========================================================================== */
.case-selector-bar {
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.case-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  border-color: #cbd5e1;
}

.case-card.active-case {
  border: 1.5px solid #0284c7;
  background: #f0f9ff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

.case-card.is-completed {
  border-left: 4px solid #10b981;
}

.case-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.chapter-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.case-status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  letter-spacing: 0.01em;
}

.case-status-badge.completed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.case-status-badge.pending {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.case-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.case-card-company {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.65rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.case-card-desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
  flex: 1;
}

.case-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  margin-top: auto;
}

.case-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #7c3aed;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
}

/* Active Case Execution Arena */
.case-arena {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  overflow: hidden;
}

.arena-header {
  background: linear-gradient(to right, #f8fafc, #edf2f7);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.arena-title-area h2 {
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.arena-title-area p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.arena-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-track {
  width: 140px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
}

/* Two-column layout in Arena */
.arena-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 600px;
}

@media (max-width: 1024px) {
  .arena-body {
    grid-template-columns: 1fr;
  }
}

.arena-left {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  max-height: 820px;
}

.arena-right {
  padding: 1.5rem;
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 820px;
}

/* Dossier & Evidence Cards */
.dossier-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.dossier-card h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dossier-card p {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.45;
}

/* Interactive Visual Canvas Container */
.visual-container {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.visual-header h4 {
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.visual-tools {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-tool-sm {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-tool-sm:hover, .btn-tool-sm.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Benford Chart Canvas */
.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
}

canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Evidence Table */
.evidence-table-wrapper {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.evidence-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.evidence-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
}

.evidence-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: #1e293b;
}

.evidence-table tr:hover {
  background: #f8fafc;
}

/* Right Panel: Multiple Choice Questions */
.question-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.phase-pill {
  align-self: flex-start;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.question-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.45;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  color: #1e293b;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
  position: relative;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--primary-light);
  background: #f8fafc;
  transform: translateX(3px);
}

.option-btn.selected {
  border-color: var(--primary);
  background: #eff6ff;
  font-weight: 500;
}

.option-btn.correct {
  border-color: var(--success);
  background: #f0fdf4;
  color: #166534;
  font-weight: 600;
}

.option-btn.incorrect {
  border-color: var(--danger);
  background: #fef2f2;
  color: #991b1b;
}

.option-btn:disabled {
  cursor: default;
}

/* Feedback Box */
.feedback-box {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.feedback-box.correct {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-left: 5px solid var(--success);
}

.feedback-box.incorrect {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-left: 5px solid var(--danger);
}

.feedback-title {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.feedback-box.correct .feedback-title {
  color: #166534;
}

.feedback-box.incorrect .feedback-title {
  color: #991b1b;
}

.feedback-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #1e293b;
}

.book-citation {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  font-size: 0.8rem;
  color: #475569;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Action Controls */
.arena-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f1f5f9;
}

/* Confusion Matrix Interactive Controls */
.slider-group {
  margin: 1rem 0;
  background: #f8fafc;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.matrix-slider {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1rem 0;
}

.matrix-cell {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid transparent;
}

.cell-tp {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}
.cell-fn {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}
.cell-fp {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}
.cell-tn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.cell-val {
  font-size: 1.2rem;
  font-weight: 800;
}
.cell-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
}

.matrix-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
  background: #ffffff;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

/* True/False Drill View Styling */
.tf-drill-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.tf-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.tf-chapter-select {
  min-width: 320px;
  width: 100%;
  max-width: 440px;
  padding: 0.65rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.tf-chapter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.tf-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tf-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.tf-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 32px;
  min-height: 140px;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.tf-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

.tf-statement {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tf-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-tf {
  flex: 1;
  max-width: 220px;
  padding: 0.85rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-tf.true-btn {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #38bdf8;
}

.btn-tf.true-btn:hover {
  background: #0284c7;
  color: #ffffff;
}

.btn-tf.false-btn {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #f87171;
}

.btn-tf.false-btn:hover {
  background: #dc2626;
  color: #ffffff;
}

/* Visual Widget Helpers for 18 Chapters */
.four-levels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.level-card {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  border-left: 3.5px solid var(--primary);
  font-size: 0.8rem;
}

.level-card h5 {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.crisp-phases-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.crisp-phase-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  display: flex;
  gap: 0.6rem;
}

.crisp-badge {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  height: fit-content;
}

/* Achievements & Badges Panel */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.badge-card.locked {
  opacity: 0.5;
  filter: grayscale(1);
  background: #f1f5f9;
}

.badge-icon {
  font-size: 2.2rem;
  width: 54px;
  height: 54px;
  background: #f3e8ff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.badge-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Modal for Audit Report & Certificate */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScale 0.25s ease;
}

@keyframes modalScale {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}

.modal-header {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  line-height: 1.6;
}

.modal-footer {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  padding: 1rem 1.75rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 200;
}

.toast {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Print styling */
@media print {
  .app-header, .app-nav, .case-selector-bar, .modal-footer, .btn-primary, .btn-secondary, .part-filter-container, .coding-lab-container {
    display: none !important;
  }
  body, .main-container, .modal-content {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   CODING LAB | OPERATION RESCUE (PYTHON / PYODIDE SANDBOX) STYLES
   ========================================================================== */

.coding-lab-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.coding-lab-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #334155;
}

.coding-lab-title-area {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.coding-lab-title-area h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coding-lab-title-area p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.coding-lab-status-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pyodide-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  color: #cbd5e1;
}

.pyodide-status-badge.loading {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fbbf24;
}

.pyodide-status-badge.ready {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
}

.pyodide-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Coding Lab Track Navigation (Weeks 1 - 4) */
.coding-lab-tracks-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.coding-track-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.coding-track-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

.coding-track-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.25);
}

.coding-track-badge {
  font-size: 0.74rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.07);
  font-weight: 700;
}

.coding-track-btn.active .coding-track-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #38bdf8;
}

/* Level Progression Navigation */
.coding-lab-levels {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.level-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: #f8fafc;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.level-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--primary-dark);
  background: #f0f9ff;
}

.level-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(30, 58, 138, 0.25);
}

.level-btn.completed {
  border-color: var(--success);
  color: #065f46;
  background: #ecfdf5;
}

.level-btn.completed.active {
  background: #059669;
  border-color: #047857;
  color: #ffffff;
}

.level-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f1f5f9;
}

/* Split-Screen Grid */
.coding-lab-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.5rem;
  min-height: 650px;
}

@media (max-width: 1024px) {
  .coding-lab-grid {
    grid-template-columns: 1fr;
  }
}

/* Left Column: Mission Briefing */
.coding-briefing-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.briefing-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.briefing-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
}

.whistleblower-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.briefing-header h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin: 0;
}

.storyline-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #334155;
  background: #f8fafc;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
}

.objective-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

.objective-box h4 {
  color: #166534;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.objective-box p {
  color: #15803d;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.objective-box code {
  background: rgba(255, 255, 255, 0.8);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid #86efac;
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 0.85rem;
  color: #14532d;
  font-weight: 600;
}

.instructions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.instructions-list h4 {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.instructions-list ol {
  margin-left: 1.25rem;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Collapsible Schema & Hints */
.accordion-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
}

.accordion-header {
  padding: 0.75rem 1rem;
  background: #f8fafc;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.accordion-header:hover {
  background: #f1f5f9;
}

.accordion-body {
  padding: 1rem;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.schema-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.schema-table th, .schema-table td {
  padding: 0.4rem 0.6rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.schema-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.schema-table code {
  font-family: 'Fira Code', Consolas, monospace;
  color: #0369a1;
  font-weight: 600;
}

/* Right Column: IDE & Terminal */
.coding-ide-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ide-card {
  background: #1e1e2e;
  border: 1px solid #313244;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ide-toolbar {
  background: #181825;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #313244;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ide-file-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #cdd6f4;
  font-size: 0.85rem;
  font-family: 'Fira Code', Consolas, monospace;
  font-weight: 600;
}

.ide-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ide {
  padding: 0.45rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-ide-run {
  background: #10b981;
  color: #ffffff;
}

.btn-ide-run:hover:not(:disabled) {
  background: #059669;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.btn-ide-run:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ide-secondary {
  background: #313244;
  color: #cdd6f4;
}

.btn-ide-secondary:hover {
  background: #45475a;
  color: #ffffff;
}

.ide-shortcut-hint {
  font-size: 0.75rem;
  color: #6c7086;
  font-family: monospace;
}

/* CodeMirror customization & Editor Area */
.codemirror-wrapper {
  position: relative;
  min-height: 220px;
  cursor: text;
  background: #1e1e2e;
}

.codemirror-wrapper .CodeMirror {
  height: 260px;
  min-height: 220px;
  font-family: 'Fira Code', 'Cascadia Code', Consolas, Monaco, monospace;
  font-size: 0.92rem;
  line-height: 1.5;
  background: #1e1e2e;
  cursor: text;
}

.codemirror-wrapper .CodeMirror-scroll {
  min-height: 220px;
}

.codemirror-wrapper .CodeMirror-cursor {
  border-left: 2px solid #50fa7b !important;
}

.codemirror-wrapper textarea.code-editor {
  width: 100%;
  height: 260px;
  min-height: 220px;
  font-family: 'Fira Code', Consolas, Monaco, monospace;
  font-size: 0.92rem;
  background: #1e1e2e;
  color: #f8fafc;
  padding: 12px;
  border: none;
  outline: none;
  resize: vertical;
  line-height: 1.5;
  box-sizing: border-box;
  cursor: text;
}

/* Terminal Console */
.terminal-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  background: #020617;
  padding: 0.65rem 1.15rem;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  color: #94a3b8;
  font-size: 0.78rem;
  font-family: 'Fira Code', Consolas, monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.terminal-screen {
  padding: 1.15rem;
  min-height: 220px;
  max-height: 340px;
  overflow-y: auto;
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #e2e8f0;
  background: #0b1120;
}

.terminal-prompt {
  color: #38bdf8;
  font-weight: 700;
  margin-right: 0.4rem;
}

.terminal-placeholder {
  color: #64748b;
  font-style: italic;
}

.terminal-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fca5a5;
  margin-top: 0.75rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-success-banner {
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid #10b981;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: #a7f3d0;
  margin-top: 0.75rem;
}

.terminal-success-banner h4 {
  color: #34d399;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-success-banner p {
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
  color: #e2e8f0;
}

.terminal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.terminal-table th, .terminal-table td {
  padding: 0.35rem 0.5rem;
  border: 1px solid #334155;
  text-align: right;
}

.terminal-table th {
  background: #1e293b;
  color: #38bdf8;
  font-weight: 700;
}

.terminal-table td:first-child, .terminal-table th:first-child {
  text-align: left;
}

/* Pyodide Loading Overlay */
.pyodide-overlay {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.pyodide-overlay h3 {
  color: var(--primary-dark);
  font-size: 1.3rem;
  margin: 0;
}

.pyodide-overlay p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 480px;
  line-height: 1.5;
  margin: 0;
}

.loading-bar-track {
  width: 280px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.loading-bar-thumb {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 9999px;
  animation: loadingAnim 1.4s ease-in-out infinite;
}

@keyframes loadingAnim {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(200%); }
}

.codemirror-wrapper .CodeMirror-selected {
  background: rgba(189, 147, 249, 0.35) !important;
}

.codemirror-wrapper .CodeMirror-focused .CodeMirror-selected {
  background: rgba(189, 147, 249, 0.45) !important;
}

.briefing-hint-box {
  background: #fffbeb;
  border: 1.5px dashed #f59e0b;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  color: #92400e;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-top: 0.75rem;
}

.briefing-solution-box {
  background: #f0fdf4;
  border: 1.5px solid #22c55e;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  color: #166534;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-top: 0.75rem;
}


/* ==========================================================================
   GAMIFICATION, XP CURVE, SPEEDRUN & EVIDENCE LOCKER STYLES
   ========================================================================== */

/* Header Gamification & Dynamic Career XP Track */
.header-gamification-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 380px;
}

.header-xp-track-container {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  backdrop-filter: blur(4px);
}

.xp-labels-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  margin-bottom: 0.25rem;
}

.xp-tier-label {
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.01em;
}

.xp-progress-text {
  font-family: 'Fira Code', Consolas, Monaco, monospace;
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
}

.xp-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.xp-bar-fill {
  height: 6px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #6366f1 0%, #38bdf8 50%, #10b981 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating +XP Pill Animation */
.floating-xp-pill {
  position: absolute;
  pointer-events: none;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fbbf24;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(245, 158, 11, 0.6);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  z-index: 99999;
  white-space: nowrap;
  animation: floatUpFadeOut 1.4s ease-out forwards;
}

@keyframes floatUpFadeOut {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.85);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1.1);
  }
  75% {
    opacity: 1;
    transform: translateY(-24px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-42px) scale(0.9);
  }
}

/* Audit Speedrun Controls & Button */
.btn-speedrun-start {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #dc2626 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-speedrun-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.5);
  filter: brightness(1.1);
}

.speedrun-highscore-chip {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Speedrun Arena View */
.speedrun-arena {
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: #f8fafc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: fadeIn 0.3s ease;
}

.speedrun-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.speedrun-timer-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.speedrun-digital-clock {
  font-family: 'Fira Code', Consolas, Monaco, monospace;
  font-size: 2.2rem;
  font-weight: 800;
  color: #38bdf8;
  background: #1e293b;
  border: 1.5px solid #475569;
  border-radius: var(--radius-md);
  padding: 0.35rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 150px;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  position: relative;
}

.speedrun-digital-clock.danger {
  color: #f87171;
  border-color: #ef4444;
  animation: clockPulse 0.5s infinite alternate;
}

.speedrun-digital-clock.warning {
  color: #fbbf24;
  border-color: #f59e0b;
}

@keyframes clockPulse {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.speedrun-time-delta {
  position: absolute;
  top: -14px;
  right: -8px;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  animation: floatUpFadeOut 0.9s ease forwards;
}

.speedrun-time-delta.bonus {
  background: #22c55e;
  color: #ffffff;
}

.speedrun-time-delta.penalty {
  background: #ef4444;
  color: #ffffff;
}

.speedrun-stats-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.speedrun-counter-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 0.4rem 0.85rem;
  text-align: center;
}

.speedrun-counter-box .label {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  display: block;
}

.speedrun-counter-box .value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f59e0b;
}

.speedrun-card {
  background: #1e293b;
  border: 2px solid #475569;
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.2s ease;
}

.speedrun-card.hit-success {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.speedrun-card.hit-penalty {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.speedrun-statement-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.5;
  margin: 1rem 0 1.5rem 0;
}

.speedrun-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.btn-speedrun-opt {
  font-size: 1.15rem;
  font-weight: 800;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.btn-speedrun-opt.true-opt {
  background: #15803d;
  color: #ffffff;
}

.btn-speedrun-opt.true-opt:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

.btn-speedrun-opt.false-opt {
  background: #b91c1c;
  color: #ffffff;
}

.btn-speedrun-opt.false-opt:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.speedrun-shortcut-tip {
  font-size: 0.74rem;
  opacity: 0.8;
  font-weight: 400;
}

/* Speedrun Summary Modal */
.speedrun-summary-content {
  max-width: 520px;
  text-align: center;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.speedrun-icon-badge {
  font-size: 3.2rem;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speedrun-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.speedrun-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.speedrun-stat-label {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
}

.speedrun-stat-number {
  font-size: 1.4rem;
  font-weight: 800;
}

.text-accent { color: var(--accent); }
.text-success { color: #16a34a; }
.text-amber { color: #d97706; }
.text-gold { color: #ca8a04; }

.speedrun-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-speedrun-replay {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-speedrun-replay:hover {
  filter: brightness(1.08);
}

.speedrun-badge-announcement {
  background: #ecfdf5;
  border: 1.5px solid #34d399;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: #065f46;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Evidence Locker & Master Badges Redesign */
.evidence-locker-container {
  max-width: 1140px;
  margin: 0 auto;
}

.evidence-header-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid #334155;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: #ffffff;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
}

.evidence-header-info h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 0.35rem;
}

.evidence-header-info p {
  color: #94a3b8;
  font-size: 0.88rem;
  max-width: 620px;
  line-height: 1.5;
}

.badge-gallery-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 1.75rem 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.master-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.case-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Enhanced Badge Card States */
.badge-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.badge-card.unlocked {
  border-color: #38bdf8;
  background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.badge-card.unlocked.master {
  border-color: #f59e0b;
  background: linear-gradient(145deg, #ffffff 0%, #fffbeb 100%);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.28);
}

.badge-card.locked {
  background: #f8fafc;
  border-color: #cbd5e1;
  opacity: 0.65;
  filter: grayscale(0.85);
}

.badge-card.locked:hover {
  opacity: 0.95;
  filter: grayscale(0.4);
}

.badge-icon-box {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.badge-card.unlocked .badge-icon-box {
  background: #e0f2fe;
  border-color: #38bdf8;
}

.badge-card.unlocked.master .badge-icon-box {
  background: #fef3c7;
  border-color: #f59e0b;
}

.badge-card.locked .badge-icon-box::after {
  content: "🔒";
  position: absolute;
  bottom: -6px;
  right: -6px;
  font-size: 0.95rem;
  background: #334155;
  color: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
}

.badge-details {
  flex: 1;
}

.badge-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.badge-details h4 {
  font-size: 0.96rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.badge-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.badge-status-pill.unlocked {
  background: #dcfce7;
  color: #166534;
}

.badge-status-pill.locked {
  background: #e2e8f0;
  color: #475569;
}

.badge-desc {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.badge-timestamp {
  font-size: 0.72rem;
  color: #0284c7;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-condition-box {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  font-size: 0.74rem;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}


/* Inline Matplotlib / Seaborn Plot Container in Terminal Output */
.terminal-plot-wrapper {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1.5px solid #334155;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  display: inline-block;
  max-width: 100%;
}

.terminal-plot-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}


/* ============================================================================
   PROEFTENTAMEN SIMULATIE MODULE (VU AMSTERDAM) & EVIDENCE TABLE STYLING
   ============================================================================ */

/* Interactive Evidence Search & Sort */
.evidence-search {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--bg-card, #ffffff);
  color: var(--text-primary, #0f172a);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.evidence-search:focus {
  border-color: var(--accent, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.evidence-table th {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.evidence-table th:hover {
  background-color: rgba(99, 102, 241, 0.08);
  color: var(--accent, #6366f1);
}

.evidence-table th.sorted-asc {
  background-color: rgba(99, 102, 241, 0.12);
  color: var(--accent, #6366f1);
  font-weight: 700;
}

.evidence-table th.sorted-desc {
  background-color: rgba(99, 102, 241, 0.12);
  color: var(--accent, #6366f1);
  font-weight: 700;
}

/* Exam Module Container & Start Screen */
.exam-start-screen {
  max-width: 680px;
  margin: 2rem auto;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.exam-start-screen h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin-bottom: 0.5rem;
}

.exam-start-screen p {
  color: var(--text-muted, #64748b);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.exam-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 640px) {
  .exam-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.exam-info-card {
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 10px;
  padding: 1rem 0.5rem;
  text-align: center;
}

.exam-info-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent, #6366f1);
  font-family: 'Fira Code', monospace;
  margin-bottom: 0.2rem;
}

.exam-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-start-exam {
  display: inline-block;
  padding: 0.95rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-start-exam:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.45);
}

/* Exam Active Layout */
.exam-timer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  flex-wrap: wrap;
  gap: 1rem;
}

.exam-timer {
  font-family: 'Fira Code', monospace;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  letter-spacing: 0.05em;
}

.exam-timer.warning {
  color: #ef4444;
  animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.exam-progress-text {
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
}

.btn-exam-submit {
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-exam-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Split-screen Exam Layout */
.exam-active-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 860px) {
  .exam-active-layout {
    grid-template-columns: 1fr;
  }
}

.exam-nav-sidebar {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.exam-nav-sidebar h4 {
  margin-top: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.exam-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.exam-nav-btn {
  height: 38px;
  border-radius: 6px;
  border: 1px solid var(--border-light, #e2e8f0);
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #0f172a);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Fira Code', monospace;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.exam-nav-btn:hover {
  border-color: var(--accent, #6366f1);
  transform: scale(1.05);
}

.exam-nav-btn.current {
  background: var(--accent, #6366f1) !important;
  color: #ffffff !important;
  border-color: var(--accent, #6366f1) !important;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}

.exam-nav-btn.answered {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.exam-nav-btn.marked {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

/* Exam Question Card */
.exam-question-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.exam-question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.exam-question-tag {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent, #6366f1);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.exam-mark-btn {
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s ease;
}

.exam-mark-btn:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.exam-mark-btn.active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 700;
}

.exam-question-text {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-primary, #0f172a);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.exam-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.exam-option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  background: var(--bg-secondary, #f8fafc);
  border: 2px solid var(--border-light, #e2e8f0);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-primary, #0f172a);
  transition: all 0.15s ease;
}

.exam-option-btn:hover {
  border-color: var(--accent, #6366f1);
  background: rgba(99, 102, 241, 0.04);
}

.exam-option-btn.selected {
  border-color: var(--accent, #6366f1);
  background: rgba(99, 102, 241, 0.08);
  font-weight: 600;
}

.exam-option-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.exam-option-btn.selected .exam-option-indicator {
  background: var(--accent, #6366f1);
  border-color: var(--accent, #6366f1);
  color: #ffffff;
}

.exam-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light, #e2e8f0);
}

.btn-exam-nav {
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-light, #e2e8f0);
  color: var(--text-primary, #0f172a);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-exam-nav:hover {
  background: #e2e8f0;
}

/* Exam Results Screen */
.exam-results-container {
  max-width: 820px;
  margin: 1.5rem auto;
  padding: 1.5rem 0;
}

.exam-results-header {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.exam-grade-display {
  font-size: 4rem;
  font-weight: 900;
  font-family: 'Fira Code', monospace;
  line-height: 1;
  margin: 0.75rem 0;
}

.exam-grade-display.pass {
  color: #10b981;
}

.exam-grade-display.fail {
  color: #ef4444;
}

.exam-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .exam-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.exam-result-stat {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 10px;
  padding: 1rem 0.5rem;
  text-align: center;
}

.exam-result-stat .stat-number {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent, #6366f1);
  font-family: 'Fira Code', monospace;
  margin-bottom: 0.2rem;
}

.exam-result-stat .stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
}

.exam-part-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light, #e2e8f0);
  font-size: 0.88rem;
}

.exam-part-row:last-child {
  border-bottom: none;
}

.exam-review-section {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.exam-review-section h3 {
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin-bottom: 1rem;
}

.exam-review-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exam-review-item {
  border-radius: 8px;
  padding: 1.1rem;
  border: 1px solid var(--border-light, #e2e8f0);
}

.exam-review-item.incorrect {
  background: #fff5f5;
  border-color: #fecaca;
  border-left: 4px solid #ef4444;
}

.btn-exam-restart {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  transition: transform 0.15s ease;
}

.btn-exam-restart:hover {
  transform: translateY(-2px);
}



/* ======================================================================
   AUDIT INVESTIGATION GAME MODE & EVIDENCE BOARD STYLES
   ====================================================================== */

.investigation-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0.5rem 0 2rem 0;
}

/* Header & Budget Tracker Bar */
.inv-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  padding: 1.25rem 1.75rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.inv-header-titles {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.inv-header-titles h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inv-badge-role {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inv-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Budget & Uren Tracker */
.inv-budget-tracker {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-hover, #f8fafc);
  border: 1px solid var(--border-light, #e2e8f0);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
}

.inv-budget-item {
  display: flex;
  flex-direction: column;
}

.inv-budget-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #64748b);
  font-weight: 700;
}

.inv-budget-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.inv-budget-bar {
  width: 110px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 4px;
}

.inv-budget-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease, background 0.3s ease;
}

.inv-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-inv-secondary {
  padding: 0.55rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 700;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #cbd5e1);
  color: var(--text-primary, #334155);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-inv-secondary:hover {
  background: var(--bg-hover, #f1f5f9);
  border-color: #94a3b8;
}

.btn-inv-reset {
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted, #94a3b8);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-inv-reset:hover {
  color: #ef4444;
  background: #fef2f2;
  border-color: #fecaca;
}

/* 3-Column Split Grid */
.inv-main-grid {
  display: grid;
  grid-template-columns: 310px 1fr 340px;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1200px) {
  .inv-main-grid {
    grid-template-columns: 280px 1fr;
  }
  .inv-col-right {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .inv-main-grid {
    grid-template-columns: 1fr;
  }
  .inv-col-right {
    grid-column: span 1;
  }
}

/* Cards & Columns */
.inv-col-left,
.inv-col-center,
.inv-col-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.inv-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.inv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-light, #f1f5f9);
}

.inv-card-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.inv-board-badge {
  font-size: 0.74rem;
  font-weight: 700;
  background: #eff6ff;
  color: #2563eb;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
}

.inv-briefing-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-primary, #334155);
}

.inv-rules-list {
  margin: 0.5rem 0 0 0;
  padding-left: 1.2rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted, #475569);
}

/* Clickable Evidence Documents */
.inv-doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.inv-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-light, #e2e8f0);
  background: var(--bg-hover, #f8fafc);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.inv-doc-item:hover {
  border-color: #6366f1;
  background: #f5f3ff;
  transform: translateX(2px);
}

.inv-doc-code {
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.inv-doc-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary, #1e293b);
}

.inv-doc-preview {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.inv-doc-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.inv-doc-status.inspected {
  background: #dcfce7;
  color: #15803d;
}

.inv-doc-status.new {
  background: #fef3c7;
  color: #b45309;
}

/* Active Investigation Stage Card */
.inv-stage-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.inv-stage-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.inv-stage-pill {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: #e0e7ff;
  color: #3730a3;
}

.inv-stage-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
}

.inv-stage-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary, #334155);
}

/* Branching Choices Grid */
.inv-choices-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.inv-choice-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  border: 1.5px solid var(--border-light, #e2e8f0);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.inv-choice-card:hover {
  border-color: #6366f1;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

.inv-choice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.inv-choice-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.inv-choice-cost {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #fee2e2;
  color: #b91c1c;
  white-space: nowrap;
}

.inv-choice-summary {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted, #475569);
}

/* Outcome / Feedback Box */
.inv-outcome-box {
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.inv-outcome-box.optimal {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-left: 5px solid #22c55e;
}

.inv-outcome-box.suboptimal {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-left: 5px solid #f59e0b;
}

.inv-outcome-box.flawed {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-left: 5px solid #ef4444;
}

.btn-inv-primary {
  padding: 0.75rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
  transition: all 0.15s ease;
}

.btn-inv-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Evidence Board & Categorization */
.inv-evidence-board-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.inv-evidence-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 750px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.inv-evidence-card {
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 8px;
  padding: 0.85rem;
  background: #ffffff;
  transition: all 0.15s ease;
}

.inv-evidence-card.locked {
  background: #f8fafc;
  opacity: 0.75;
  border-style: dashed;
}

.inv-evidence-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.inv-evidence-source {
  font-size: 0.68rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.inv-evidence-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

.inv-evidence-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #475569;
  margin-top: 0.25rem;
}

.inv-classify-box {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.inv-classify-select {
  width: 100%;
  padding: 0.4rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
}

.inv-classify-feedback {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.35;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}

.inv-classify-feedback.correct {
  background: #dcfce7;
  color: #166534;
  border-left: 3px solid #22c55e;
}

.inv-classify-feedback.incorrect {
  background: #fef2f2;
  color: #991b1b;
  border-left: 3px solid #ef4444;
}

/* Evaluation & Results Card */
.inv-results-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.inv-eval-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.inv-eval-lbl {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
}

.inv-eval-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0.25rem;
}

.inv-score-box {
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.inv-score-box.passed {
  background: #f0fdf4;
  border: 2px solid #86efac;
}

.inv-score-box.failed {
  background: #fef2f2;
  border: 2px solid #fecaca;
}


.btn-inv-choice {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.inv-choice-card:hover .btn-inv-choice {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4338ca;
}

.btn-inv-choice:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #e2e8f0;
  color: #94a3b8;
}

.tx-flag-danger,
.inv-tx-suspicious {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  font-weight: 700;
}

.tx-flag-normal {
  background: #f0fdf4 !important;
  color: #15803d !important;
}

/* Badges & Tags for Dynamic Transaction Discovery */
.inv-tag-anomaly {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.inv-tag-split {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  animation: pulse-danger 2s infinite ease-in-out;
}

.inv-tag-neutral {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: #f1f5f9;
  color: #64748b;
}

/* Dynamic Choice Letter Badges [A], [B], [C] */
.inv-choice-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #e0e7ff;
  color: #4338ca;
  font-weight: 800;
  font-size: 0.82rem;
  margin-right: 0.45rem;
  vertical-align: middle;
}

/* Hint Cards & Consultation Buttons */
.inv-hint-card {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-inv-hint {
  align-self: flex-start;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: #f59e0b;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-inv-hint:hover {
  background: #d97706;
}

.btn-inv-hint:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ======================================================================
   DATA DETECTIVE ARCADE 2.0 STYLES
   ====================================================================== */

.arcade-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0.5rem 0 2.5rem 0;
}

/* Subnavigatie & Statusbalk */
.arcade-subnav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  padding: 0.85rem 1.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.arcade-subnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.arcade-nav-btn {
  padding: 0.6rem 1.15rem;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-primary, #475569);
  cursor: pointer;
  transition: all 0.15s ease;
}

.arcade-nav-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.arcade-nav-btn.active {
  background: #e0e7ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.arcade-header-stats {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.arcade-stat-badge {
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.arcade-stat-badge.xp-badge {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

/* Arcade Hub Hero */
.arcade-hub-hero {
  background: linear-gradient(135deg, #0b1329 0%, #1e1b4b 100%);
  border-radius: 16px;
  padding: 2.25rem 2.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.arcade-hero-text h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.arcade-hero-text p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 900px;
}

.arcade-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.arcade-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 3 Minigames Grid */
.arcade-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.arcade-game-card {
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.arcade-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.12);
  border-color: #818cf8;
}

.game-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.game-tier-tag {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.game-tier-tag.junior-senior {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.game-tier-tag.manager {
  background: #faf5ff;
  color: #7e22ce;
  border-color: #e9d5ff;
}

.arcade-game-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
}

.arcade-game-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #475569;
}

.game-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}

.btn-arcade-play {
  padding: 0.75rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  transition: all 0.15s ease;
  text-align: center;
}

.btn-arcade-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

/* Vaardighedenmatrix Grid */
.arcade-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.arcade-skill-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.95rem;
  transition: all 0.15s ease;
}

.arcade-skill-item.mastered {
  background: #f0fdf4;
  border-color: #86efac;
}

.skill-code {
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #334155;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.arcade-skill-item.mastered .skill-code {
  background: #dcfce7;
  color: #166534;
}

.skill-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

.arcade-skill-item.mastered .skill-status {
  color: #15803d;
  font-weight: 800;
}

.skill-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.35rem 0 0.15rem 0;
}

.skill-desc {
  font-size: 0.76rem;
  line-height: 1.4;
  color: #64748b;
}

/* Module Header & Level Tabs */
.arcade-module-header {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.arcade-module-header h2 {
  margin: 0 0 0.35rem 0;
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
}

.arcade-level-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-level-tab {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-level-tab:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-level-tab.active {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4338ca;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

/* Evaluatie Kaart */
.arcade-eval-card {
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.arcade-eval-card.passed {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-left: 5px solid #22c55e;
}

.arcade-eval-card.failed {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-left: 5px solid #ef4444;
}

/* Tabel Controls & Vlaggen */
.arcade-table-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.row-flagged {
  background: #fffbeb !important;
  border-left: 4px solid #f59e0b;
}

.btn-flag-toggle {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-flag-toggle:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-flag-toggle.flagged {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.flag-option-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #1e293b;
  cursor: pointer;
  background: #ffffff;
  transition: background 0.15s ease;
}

.flag-option-label:hover {
  background: #f8fafc;
  border-color: #6366f1;
}

/* Minigame B Split View */
.arcade-chart-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .arcade-chart-split {
    grid-template-columns: 1fr;
  }
}

.arcade-chart-display-card,
.arcade-chart-questions-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.arcade-svg-container {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem;
}

.arcade-svg-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.btn-toggle-chart {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-toggle-chart:hover {
  background: #c7d2fe;
}

.arcade-question-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.arcade-question-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
}

.arcade-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.arcade-option-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.arcade-option-item:hover {
  background: #f8fafc;
  border-color: #818cf8;
}

.arcade-option-item.opt-correct {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
}

.arcade-option-item.opt-wrong {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}

/* Minigame C: Procedure Selection Grid & Budget Bar */
.proc-budget-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.proc-budget-bar.exceeded {
  background: #fef2f2;
  border-color: #fecaca;
}

.proc-budget-stat {
  display: flex;
  flex-direction: column;
}

.proc-budget-stat .lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
}

.proc-budget-stat .val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.proc-budget-stat .val.danger {
  color: #dc2626;
}

.proc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.proc-choice-card {
  background: var(--bg-card, #ffffff);
  border: 2px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all 0.18s ease;
}

.proc-choice-card:hover {
  transform: translateY(-2px);
  border-color: #6366f1;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.1);
}

.proc-choice-card.selected {
  border-color: #4f46e5;
  background: #faf5ff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15);
}

.proc-cost-pill {
  font-size: 0.74rem;
  font-weight: 800;
  background: #fee2e2;
  color: #b91c1c;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* Footer Disclaimer */
.arcade-footer-disclaimer {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  padding: 1.25rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 1.5rem;
}


/* ==========================================================================
   DAAC CaseLab — Fase 3: Career Mode & Audit Committee Boss Battles
   ========================================================================== */

.career-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 0 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Hub Hero */
.career-hub-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0b1329 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
}

.career-hero-info {
  max-width: 650px;
}

.career-badge-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #c7d2fe;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.career-hub-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.career-hub-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

.career-stats-strip {
  display: flex;
  gap: 1rem;
}

.career-stat-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  text-align: center;
  min-width: 100px;
  backdrop-filter: blur(8px);
}

.career-stat-box .stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.2;
}

.career-stat-box .stat-lbl {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.25rem;
}

.career-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark, #0f172a);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Career Ladder Grid */
.career-ladder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.career-tier-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  transition: all 0.2s ease;
  position: relative;
}

.career-tier-card.current {
  border: 2px solid #6366f1;
  background: #f5f3ff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.career-tier-card.completed {
  border-color: #10b981;
  background: #f0fdf4;
}

.career-tier-card.locked {
  opacity: 0.65;
  background: #f8fafc;
}

.career-tier-card .tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.career-tier-card .tier-rank {
  color: #475569;
}

.career-tier-card .tier-req {
  color: #6366f1;
}

.career-tier-card .tier-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.career-tier-card .tier-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  display: inline-block;
  margin: 0 auto;
}

.career-tier-card.current .tier-status-pill {
  background: #6366f1;
  color: #ffffff;
}

.career-tier-card.completed .tier-status-pill {
  background: #d1fae5;
  color: #065f46;
}

.career-tier-card.locked .tier-status-pill {
  background: #e2e8f0;
  color: #64748b;
}

/* Skill Mastery Index */
.mastery-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.mastery-competency-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.mastery-comp-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mastery-comp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.mastery-comp-header .comp-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.mastery-comp-header .comp-score {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.mastery-comp-row .comp-desc {
  font-size: 0.8rem;
  color: #64748b;
}

.mastery-bar-track {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.mastery-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.mastery-bar-fill.mastery-gold { background: linear-gradient(90deg, #f59e0b, #d97706); }
.mastery-bar-fill.mastery-green { background: linear-gradient(90deg, #10b981, #059669); }
.mastery-bar-fill.mastery-blue { background: linear-gradient(90deg, #38bdf8, #2563eb); }
.mastery-bar-fill.mastery-amber { background: linear-gradient(90deg, #fbbf24, #f59e0b); }

/* Boss Battles Cards Grid */
.boss-battles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.boss-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.boss-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

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

.boss-card .boss-client {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.boss-card .boss-level-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
}

.boss-level-pill.junior { background: #e0f2fe; color: #0284c7; }
.boss-level-pill.senior { background: #ede9fe; color: #7c3aed; }
.boss-level-pill.manager { background: #fef3c7; color: #b45309; }

.boss-card .boss-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.boss-card .boss-context {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  background: #f8fafc;
  padding: 0.85rem;
  border-radius: 8px;
  border-left: 3px solid #6366f1;
}

.boss-card .boss-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.boss-card .boss-metric-pill {
  font-size: 0.74rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
}

.boss-card .boss-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  gap: 0.75rem;
}

.boss-card .boss-reward-pill {
  font-size: 0.78rem;
  font-weight: 800;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

.boss-card .boss-status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
}

.btn-boss-start {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
  transition: all 0.18s ease;
}

.btn-boss-start:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Arena Header & Steps */
.boss-arena-container {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.arena-header-bar {
  background: #0f172a;
  border-radius: 14px;
  padding: 1.25rem 1.75rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.arena-client-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.arena-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.2rem 0 0 0;
}

.arena-steps-tracker {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.arena-step-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #334155;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.arena-step-indicator.active {
  background: #6366f1;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.arena-step-indicator.done {
  background: #10b981;
  color: #ffffff;
}

.btn-boss-exit {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-boss-exit:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Stage Card & Content */
.arena-stage-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.stage-header-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.stage-lead-p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.arena-evidence-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.doc-icon {
  font-size: 1.1rem;
  margin-right: 0.35rem;
}

.doc-badge {
  font-size: 0.75rem;
  font-weight: 800;
  background: #fee2e2;
  color: #991b1b;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.arena-actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.btn-arena-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.65rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: all 0.18s ease;
}

.btn-arena-primary:hover {
  filter: brightness(1.1);
}

.btn-arena-secondary {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-arena-secondary:hover {
  background: #e2e8f0;
}

/* Arena Table */
.arena-table-container {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.arena-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.arena-data-table th {
  background: #0f172a;
  color: #f8fafc;
  padding: 0.75rem 0.85rem;
  font-weight: 700;
  border-bottom: 2px solid #334155;
}

.arena-data-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.arena-data-table tr:hover {
  background: #f8fafc;
}

/* Partner Hearing Arena */
.partner-hearing-arena {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.partner-speech-bubble {
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.partner-speech-bubble .partner-avatar-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: #4f46e5;
  background: #ede9fe;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.partner-speaker-role {
  font-size: 0.75rem;
  color: #64748b;
  margin-left: 0.4rem;
  font-weight: 600;
}

.partner-speech-text {
  font-size: 1.02rem;
  color: #1e293b;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

.boss-dialog-stage-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  background: #e2e8f0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: auto;
  float: right;
}

/* Dialog Option Cards */
.dialog-options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dialog-option-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.dialog-option-card:hover {
  border-color: #6366f1;
  background: #faf5ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.08);
}

.dialog-option-card.selected {
  border-color: #4f46e5;
  background: #f5f3ff;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.16);
}

.opt-letter {
  font-size: 0.95rem;
  font-weight: 800;
  background: #e0e7ff;
  color: #3730a3;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dialog-option-card.selected .opt-letter {
  background: #4f46e5;
  color: #ffffff;
}

.opt-content {
  flex: 1;
}

.opt-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
}

.opt-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* Scorecard */
.scorecard-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-radius: 14px;
  padding: 2rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 2rem;
}

.scorecard-header-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.scorecard-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.scorecard-subtitle {
  font-size: 1rem;
  color: #cbd5e1;
  margin-top: 0.5rem;
}

.boss-dimensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.boss-dim-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.boss-dim-card .dim-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.boss-dim-card .dim-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
}

.boss-dim-card .dim-score {
  font-size: 1.15rem;
  font-weight: 800;
  color: #4f46e5;
}

.boss-dim-card .dim-feedback {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}

.scorecard-xp-banner {
  background: #ecfdf5;
  border: 1.5px solid #34d399;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: #065f46;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.scorecard-actions-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Arena Rules Callout */
.arena-rules-callout {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  color: #92400e;
  font-size: 0.86rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.arena-rules-callout .callout-icon {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .career-hub-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .career-stats-strip {
    width: 100%;
    justify-content: space-between;
  }
  .boss-battles-grid {
    grid-template-columns: 1fr;
  }
}


/* Career Mode 4.0 Enhancements: Model Inspection Tabs & Unassessed Mastery */
.btn-tab-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-tab-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-tab-pill.active {
  background: #4f46e5;
  border-color: #4338ca;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.comp-score.unassessed {
  font-style: italic;
  font-size: 0.8rem;
  color: #94a3b8 !important;
}

.scorecard-dual-metric {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.metric-highlight-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.metric-highlight-card .val {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
}

.metric-highlight-card .lbl {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 0.25rem;
}


/* ==========================================================================
   DAAC CaseLab - PWA & Mobile First Responsive Suite (v4.1.0)
   ========================================================================== */

/* Offline & Network Banners */
.offline-banner {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.4);
}
.offline-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 1440px;
  margin: 0 auto;
}
.offline-icon {
  animation: pulse-offline 1.5s infinite ease-in-out;
}
@keyframes pulse-offline {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.storage-warning-banner {
  background: #fef3c7;
  border-bottom: 1px solid #f59e0b;
  color: #92400e;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 999;
}
.storage-warning-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 1440px;
  margin: 0 auto;
}
.btn-banner-close {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
  cursor: pointer;
  padding: 0 4px;
}

/* PWA Install Button */
.btn-install-app {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: 1px solid #34d399 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  transition: all 0.2s ease;
}
.btn-install-app:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.pulse-install {
  animation: pulse-install-glow 2s infinite ease-in-out;
}
@keyframes pulse-install-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* PWA Guide Modal */
.pwa-guide-modal-content {
  max-width: 540px !important;
  border-radius: 16px;
  padding: 1.5rem !important;
}
.pwa-guide-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem 0;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 0.5rem;
}
.pwa-guide-tab {
  flex: 1;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}
.pwa-guide-tab.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}
.pwa-step-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}
.pwa-step-num {
  background: #2563eb;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.pwa-step-text strong {
  display: block;
  font-size: 0.92rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.pwa-step-text p {
  margin: 0;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
}
.pwa-key-badge {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: inherit;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.82rem;
  display: inline-block;
}

/* Progress Transfer Modal */
.progress-transfer-modal-content {
  max-width: 520px !important;
  border-radius: 16px;
  padding: 1.5rem !important;
}
.transfer-section-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
}

/* Responsive Table Wrapper */
.table-responsive,
.evidence-table-container,
#evidence-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.75rem 0;
  border-radius: 8px;
}

/* ==========================================================================
   Mobile-Specific Media Queries (Phone & Tablet Viewports)
   ========================================================================== */

@media (max-width: 768px) {
  /* Safe-area insets for modern iPhones with notch / dynamic island */
  body {
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }

  /* Header adjustments */
  .app-header {
    padding: 0.6rem 0.75rem;
    position: relative;
    top: 0;
  }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .brand-wrapper {
    width: 100%;
    justify-content: flex-start;
  }
  .brand-titles h1 {
    font-size: 1.1rem;
  }
  .brand-titles .subtitle {
    font-size: 0.72rem;
  }

  /* Compact 2x2 Header Stat Badges */
  .header-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    width: 100%;
  }
  .stat-item {
    padding: 6px 8px;
    min-width: unset;
    border-radius: 6px;
  }
  .stat-label {
    font-size: 0.62rem;
  }
  .stat-value {
    font-size: 0.88rem;
  }

  /* Header action buttons */
  .header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 0.4rem;
    width: 100%;
  }
  .header-actions button {
    flex: 1 1 calc(50% - 0.4rem);
    min-height: 40px;
    font-size: 0.78rem;
    padding: 6px 8px;
    justify-content: center;
  }
  #btn-sound-toggle {
    flex: 0 0 40px;
  }

  /* App Navigation: Smooth horizontal swipe with touch indicators */
  .app-nav {
    position: sticky;
    top: 0;
    z-index: 45;
    padding: 0.4rem 0.5rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
  }
  .nav-container {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px;
    gap: 6px;
    border-radius: 8px;
    background: #f1f5f9;
  }
  .nav-container::-webkit-scrollbar {
    display: none;
  }
  .nav-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 8px 14px;
    min-height: 44px; /* Apple minimum touch target */
    border-radius: 6px;
  }

  /* Main container */
  .main-container {
    padding: 0.75rem 0.5rem;
  }

  /* Touch Targets for interactive choices */
  .option-item,
  .battle-opt-btn,
  .inv-choice-btn {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.92rem;
    touch-action: manipulation;
  }

  .tf-actions {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    width: 100%;
  }
  .tf-btn,
  .btn-true,
  .btn-false {
    flex: 1;
    min-height: 48px;
    font-size: 1rem;
    touch-action: manipulation;
  }

  /* Case filter tabs */
  .part-filter-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .part-filter-container::-webkit-scrollbar {
    display: none;
  }
  .part-filter-btn {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 12px;
    white-space: nowrap;
  }

  /* Arena layouts */
  .arena-body {
    grid-template-columns: 1fr !important;
  }

  /* Coding Lab on Mobile */
  .coding-lab-grid {
    grid-template-columns: 1fr !important;
  }
  .coding-lab-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .coding-lab-status-area {
    width: 100%;
  }
  .pyodide-status-badge {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.78rem;
    padding: 6px 10px;
  }
  /* Crucial: CodeMirror font-size 16px to prevent iOS Safari auto-zoom */
  .CodeMirror,
  .CodeMirror pre,
  .CodeMirror-line,
  #python-fallback-textarea {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
  .CodeMirror {
    height: 300px !important;
  }
  .editor-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .btn-ide-run {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    justify-content: center;
  }

  /* Exam Mode on Mobile */
  .exam-timer-bar {
    position: sticky;
    top: 52px;
    z-index: 30;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .exam-active-layout {
    grid-template-columns: 1fr !important;
  }
  .exam-question-card {
    padding: 1rem;
  }
  .exam-nav-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  .exam-nav-actions button {
    width: 100%;
    min-height: 44px;
  }

  /* Career & Boss Battles on Mobile */
  .career-stats-strip {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .boss-arena-grid {
    grid-template-columns: 1fr !important;
  }
  .boss-col-left, .boss-col-right {
    width: 100%;
  }

  /* Arcade on Mobile */
  .arcade-grid-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .arcade-card-grid {
    grid-template-columns: 1fr !important;
  }
}
