/* ==========================================================
   DATA SCIENCE ASSESSMENT - STYLESHEET (ENGLISH / LTR)
   Aesthetics: Deep Cyber / Glassmorphism / Neon Accents
   Typography: Outfit, Inter, JetBrains Mono
   ========================================================== */

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

:root {
  --bg-dark: #080c14;
  --bg-card: rgba(16, 24, 40, 0.75);
  --bg-card-hover: rgba(26, 38, 64, 0.85);
  --bg-card-solid: #0f172a;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: #3b82f6;
  --border-glow: rgba(59, 130, 246, 0.35);

  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --secondary: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --code-bg: #030712;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 35px -5px rgba(0, 0, 0, 0.5), 0 0 25px rgba(59, 130, 246, 0.15);
  --glass-blur: blur(16px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  direction: ltr;
}

/* Cyber Background Ambient Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: -200px;
  left: -150px;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.12;
}

/* App Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 20px var(--primary-glow);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 30%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-light);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Views Management */
.view-screen {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.view-screen.active {
  display: block;
}

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

/* ==========================================================
   1. WELCOME SCREEN
   ========================================================= */
.welcome-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.hero-banner {
  text-align: center;
  margin-bottom: 36px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-full);
  color: var(--primary-light);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

/* Feature Grid */
.exam-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.meta-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition-fast);
}

.meta-box:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.meta-icon {
  font-size: 1.8rem;
  background: rgba(59, 130, 246, 0.1);
  padding: 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.meta-info h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.meta-info p {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Category Badges Grid */
.categories-preview {
  margin-bottom: 36px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.categories-preview h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-pill {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Registration Form */
.user-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #030712;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.start-action {
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  border: none;
  padding: 16px 36px;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.5);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.7);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ==========================================================
   2. ASSESSMENT INTERFACE (HUD & EXAM)
   ========================================================== */
.assessment-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

/* Main Question Section */
.exam-main {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.q-category-badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 0.85rem;
  font-weight: 700;
}

.flag-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.flag-btn:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.flag-btn.flagged {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.q-text {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 20px;
}

/* Code Snippet Box */
.code-block {
  direction: ltr;
  text-align: left;
  background: var(--code-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #38bdf8;
  margin-bottom: 24px;
  overflow-x: auto;
  position: relative;
}

.code-block pre {
  margin: 0;
  font-family: inherit;
}

/* Options Grid */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.option-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.option-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateX(4px);
}

.option-card.selected {
  background: rgba(59, 130, 246, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.option-letter {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.option-card.selected .option-letter {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.option-content {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  flex-grow: 1;
}

/* Navigation Actions */
.exam-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

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

.btn-submit-exam {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transition: var(--transition-fast);
}

.btn-submit-exam:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Exam Sidebar / HUD */
.exam-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 24px;
}

.hud-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

/* 10-Min Timer HUD */
.timer-container {
  text-align: center;
}

.timer-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.timer-digits {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
  transition: color 0.3s ease;
}

.timer-digits.warning {
  color: var(--accent-amber);
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.timer-digits.danger {
  color: var(--accent-rose);
  text-shadow: 0 0 20px rgba(244, 63, 94, 0.7);
  animation: timer-pulse 1s infinite alternate;
}

@keyframes timer-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.timer-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-top: 12px;
  overflow: hidden;
}

.timer-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: var(--radius-full);
  transition: width 1s linear;
}

/* Progress HUD */
.progress-hud {
  margin-top: 14px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Question Navigation Matrix */
.matrix-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.grid-btn {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.grid-btn.current {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  color: #fff;
}

.grid-btn.answered {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-emerald);
  color: #6ee7b7;
}

.grid-btn.flagged::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-amber);
  box-shadow: 0 0 6px var(--accent-amber);
}

/* Matrix Legend */
.matrix-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.legend-dot.ans { background: var(--accent-emerald); }
.legend-dot.flag { background: var(--accent-amber); }
.legend-dot.curr { background: var(--primary); }

/* ==========================================================
   3. RESULTS DASHBOARD
   ========================================================== */
.results-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.result-hero {
  text-align: center;
  margin-bottom: 40px;
}

.score-radial-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 20px;
}

.radial-svg {
  transform: rotate(-90deg);
  width: 170px;
  height: 170px;
}

.radial-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.radial-meter {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.score-total-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
}

.result-status-badge {
  display: inline-block;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.badge-excellent {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: #6ee7b7;
}

.badge-good {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid var(--primary);
  color: #93c5fd;
}

.badge-needs-work {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-amber);
  color: #fcd34d;
}

.result-meta-info {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Breakdown Grid */
.breakdown-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.cat-stat-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.cat-stat-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cat-stat-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.cat-stat-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease-out;
}

/* Personalized Recommendations */
.recommendations-box {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 40px;
}

.rec-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rec-list {
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.rec-list li {
  margin-bottom: 8px;
}

/* Results Actions */
.results-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Review Accordions */
.review-section {
  border-top: 1px solid var(--border-color);
  padding-top: 36px;
}

.review-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition-fast);
}

.review-item.correct {
  border-left: 4px solid var(--accent-emerald);
}

.review-item.incorrect {
  border-left: 4px solid var(--accent-rose);
}

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

.review-q-num {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.review-status-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.review-status-tag.correct {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.review-status-tag.incorrect {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
}

.review-question-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.review-explanation {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-left: 2px solid var(--primary);
  margin-top: 14px;
}

.review-explanation strong {
  color: var(--primary-light);
}

/* ==========================================================
   CONFIRMATION MODAL
   ========================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-box {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.modal-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.modal-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ==========================================================
   PRINT / PDF EXPORT STYLES
   ========================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .ambient-glow,
  .app-header,
  .results-actions,
  .btn-primary,
  .btn-secondary,
  .modal-overlay {
    display: none !important;
  }

  .results-card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .score-number,
  .section-title,
  .hero-title,
  .rec-title {
    color: #000000 !important;
  }

  .cat-stat-card,
  .review-item,
  .recommendations-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    break-inside: avoid;
  }

  .review-explanation {
    background: #f1f5f9 !important;
    color: #334155 !important;
  }
}

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */
@media (max-width: 900px) {
  .assessment-layout {
    grid-template-columns: 1fr;
  }

  .exam-sidebar {
    order: -1;
    position: static;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .welcome-card,
  .exam-main,
  .results-card {
    padding: 24px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
