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

:root {
  --primary: #2563EB;
  --bg: #F0F2F7;
  --card: #FFFFFF;
  --text: #0F172A;
  --text-secondary: #64748B;
  --green: #16A34A;
  --red: #DC2626;
  --green-bg: #F0FDF4;
  --red-bg: #FEF2F2;
  --border: #E2E8F0;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  min-height: 100vh;
}

/* ─── Navbar ──────────────────────────────────────────── */
.navbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.navbar-nav {
  display: flex;
  gap: 28px;
}

.navbar-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.navbar-nav a:hover { color: var(--text); }

.navbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ─── Layout ──────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header {
  padding: 40px 0 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.page-header-left {}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.autosave-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  margin-top: 6px;
}

.autosave-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  padding-bottom: 100px;
}

/* ─── Cards ───────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card + .card { margin-top: 16px; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.card-section { margin-bottom: 28px; }
.card-section:last-child { margin-bottom: 0; }

/* ─── Form ────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-input::placeholder { color: var(--text-secondary); }

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Number stepper */
.number-input-wrap {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: white;
  transition: border-color 0.15s;
}

.number-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.number-input-wrap input {
  border: none;
  padding: 11px 8px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  text-align: center;
  width: 64px;
  outline: none;
}

.step-btn {
  background: var(--bg);
  border: none;
  padding: 0 14px;
  height: 44px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
  line-height: 1;
  user-select: none;
}

.step-btn:hover { background: #dde1ea; color: var(--text); }

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

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

.slider-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  background: #EFF6FF;
  padding: 3px 10px;
  border-radius: 999px;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}

.slider-subtext {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Toggle group */
.toggle-group { display: flex; gap: 8px; flex-wrap: wrap; }

.toggle-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}

.toggle-btn:hover { border-color: var(--primary); color: var(--primary); }

.toggle-btn.active {
  border-color: var(--primary);
  background: #EFF6FF;
  color: var(--primary);
}

/* Switch */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

.switch-info { flex: 1; }

.switch-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.switch-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 16px;
}

.switch input { opacity: 0; width: 0; height: 0; position: absolute; }

.switch-track {
  position: absolute;
  inset: 0;
  background: #CBD5E1;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.switch-track::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track::before { transform: translateX(20px); }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #1D4ED8; }
.btn-primary:disabled { background: #93C5FD; cursor: not-allowed; pointer-events: none; }

.btn-secondary {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover { border-color: #94A3B8; }

.btn-block { width: 100%; }

/* Sticky bottom bar */
.sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  z-index: 50;
}

/* ─── Overview card ───────────────────────────────────── */
.overview-card {
  position: sticky;
  top: 76px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}

.overview-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.overview-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  min-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.overview-table tr { border-bottom: 1px solid var(--border); }
.overview-table tr:last-child { border-bottom: none; }

.overview-table td { padding: 9px 0; font-size: 13px; }
.overview-table td:first-child { color: var(--text-secondary); font-weight: 500; width: 44%; }
.overview-table td:last-child { font-weight: 600; color: var(--text); }

.tip-block {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.tip-block-yellow { background: #FEFCE8; border: 1px solid #FDE68A; color: #92400E; }
.tip-block-blue   { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.tip-block-orange { background: #FFF7ED; border: 1px solid #FED7AA; color: #9A3412; }

/* ─── Prompt page ─────────────────────────────────────── */
.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.code-dots { display: flex; gap: 6px; }
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot-red    { background: #EF4444; }
.code-dot-yellow { background: #F59E0B; }
.code-dot-green  { background: #22C55E; }

.code-filename {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: monospace;
}

.code-box {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
  flex-shrink: 0;
}

.copy-btn:hover { background: #1D4ED8; }
.copy-btn.copied { background: var(--green); }

.textarea-large {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  color: var(--text);
  resize: vertical;
  min-height: 140px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.6;
}

.textarea-large:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.textarea-valid  { border-color: var(--green) !important; box-shadow: 0 0 0 3px rgba(22,163,74,0.1) !important; }
.textarea-error  { border-color: var(--red)   !important; box-shadow: 0 0 0 3px rgba(220,38,38,0.1)  !important; }

.validation-msg { font-size: 13px; margin-top: 7px; min-height: 18px; }
.validation-msg.valid { color: var(--green); }
.validation-msg.error { color: var(--red); }

/* Sidebar steps */
.sidebar-steps { display: flex; flex-direction: column; gap: 18px; }

.sidebar-step { display: flex; gap: 12px; align-items: flex-start; }

.step-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-icon.done   { background: var(--green-bg); color: var(--green); }
.step-icon.active { background: var(--primary);  color: white; }
.step-icon.pending { background: var(--border); color: var(--text-secondary); }

.step-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.step-text span   { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ─── Quiz navbar ─────────────────────────────────────── */
.quiz-navbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-orange { background: #FFF7ED; color: #C2410C; }
.pill-blue   { background: #EFF6FF; color: var(--primary); }
.pill-gray   { background: var(--bg); color: var(--text-secondary); }
.pill-green  { background: var(--green-bg); color: var(--green); }
.pill-red    { background: var(--red-bg); color: var(--red); }

.quiz-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.15s;
  margin-left: 10px;
}

.quiz-close-btn:hover { background: var(--bg); border-color: var(--text-secondary); }

.navbar-right { display: flex; align-items: center; gap: 8px; }

/* ─── Quiz content ────────────────────────────────────── */
.quiz-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 120px;
}

.question-meta {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 2px;
}

.question-number {
  font-size: 64px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.question-total {
  font-size: 28px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
}

.question-name {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.progress-bar-wrap {
  background: var(--border);
  border-radius: 999px;
  height: 6px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* Question card */
.question-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.question-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.question-decorative {
  position: absolute;
  right: 20px;
  top: 12px;
  font-size: 100px;
  color: #F1F5F9;
  font-family: Georgia, serif;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.question-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  max-width: 90%;
}

.question-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Answer sections */
.answer-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.answer-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.answer-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  resize: none;
  min-height: 110px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.6;
}

.answer-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.answer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.answer-tip { font-size: 12px; color: var(--text-secondary); }
.char-counter { font-size: 12px; color: var(--text-secondary); }

/* MC options */
.mc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mc-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
  background: white;
}

.mc-option:hover { border-color: var(--primary); }

.mc-option.selected {
  border-color: var(--primary);
  background: #EFF6FF;
}

.mc-letter {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all 0.15s;
}

.mc-option.selected .mc-letter {
  background: var(--primary);
  color: white;
}

.mc-option-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* Quiz bottom bar */
.quiz-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
}

.btn-stop {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* ─── Feedback screen ─────────────────────────────────── */
.feedback-banner {
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  position: relative;
}

.feedback-banner.correct { background: var(--green-bg); border: 1px solid #86EFAC; }
.feedback-banner.incorrect { background: var(--red-bg); border: 1px solid #FCA5A5; }

.feedback-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feedback-banner.correct   .feedback-icon { background: #BBF7D0; }
.feedback-banner.incorrect .feedback-icon { background: #FECACA; }

.feedback-title { font-size: 20px; font-weight: 700; }
.feedback-banner.correct   .feedback-title { color: #15803D; }
.feedback-banner.incorrect .feedback-title { color: #B91C1C; }

.feedback-subtitle { font-size: 14px; margin-top: 3px; }
.feedback-banner.correct   .feedback-subtitle { color: var(--green); }
.feedback-banner.incorrect .feedback-subtitle { color: var(--red); }

.feedback-points {
  position: absolute;
  right: 20px;
  top: 20px;
}

.answer-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.answer-box {
  border-radius: var(--radius-md);
  padding: 16px;
}

.answer-box.wrong { background: var(--red-bg);   border: 1px solid #FCA5A5; }
.answer-box.right { background: var(--green-bg); border: 1px solid #86EFAC; }

.answer-box-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.answer-box.wrong .answer-box-label { color: var(--red); }
.answer-box.right .answer-box-label { color: var(--green); }

.answer-box-text { font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.4; }

.correct-answer-card {
  background: var(--green-bg);
  border: 1px solid #86EFAC;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.correct-answer-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.correct-answer-text { font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.4; }

.uitleg-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.uitleg-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.uitleg-text { font-size: 15px; color: var(--text); line-height: 1.6; }

/* ─── End screen ──────────────────────────────────────── */
.end-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.end-header {
  margin-bottom: 32px;
}

.end-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.end-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.end-motivation {
  font-size: 15px;
  color: var(--text-secondary);
}

.end-two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.score-circle-wrap {
  display: flex;
  justify-content: center;
  margin: 28px 0 24px;
}

.score-circle { position: relative; width: 160px; height: 160px; }

.score-circle svg { transform: rotate(-90deg); }

.score-circle-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-pct { font-size: 38px; font-weight: 800; color: var(--primary); }
.score-lbl { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-value { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.stat-green { color: var(--green); }
.stat-red   { color: var(--red); }
.stat-blue  { color: var(--primary); }
.stat-gray  { color: var(--text-secondary); }

/* Review section */
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.review-header h3 { font-size: 16px; font-weight: 700; }

.review-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  background: var(--red-bg);
  padding: 4px 10px;
  border-radius: 999px;
}

.review-item {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.review-item-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.review-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 24px;
}

.review-vraag { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4; }

.review-answers { display: flex; gap: 10px; flex-wrap: wrap; }

.review-tag {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.review-tag.user-wrong { background: var(--red-bg); color: var(--red); }
.review-tag.correct-ans { background: var(--green-bg); color: #166534; }
.review-tag-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 3px; }

/* Action buttons */
.action-buttons { display: flex; flex-direction: column; gap: 10px; }

.record-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-top: 12px;
}

.record-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.record-star { font-size: 16px; }

.record-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

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

.record-label { color: var(--text-secondary); font-weight: 500; }
.record-val { font-weight: 600; }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .overview-card { display: none; }
  .navbar-nav { display: none; }
  .mc-options { grid-template-columns: 1fr; }
  .answer-compare { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .end-two-col { grid-template-columns: 1fr; }
  .question-number { font-size: 48px; }
  .quiz-content { padding: 20px 16px 120px; }
  .sticky-bottom { justify-content: stretch; }
  .sticky-bottom .btn { width: 100%; justify-content: center; }
  .page-header { flex-direction: column; gap: 12px; }
}
