:root {
  --bg: #f4f1ec;
  --bg-card: #ffffff;
  --bg-dark: #1a2332;
  --accent: #e85d04;
  --accent-light: #f48c06;
  --accent-soft: #fff0e8;
  --accent-border: #f5c4a0;
  --accent-2: #2d6a4f;
  --accent-2-soft: #e8f5ef;
  --text: #1a2332;
  --text-muted: #5c6578;
  --border: #e2ddd4;
  --success: #2d6a4f;
  --success-bg: #d8f3dc;
  --error: #c1121f;
  --error-bg: #fde8ea;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(26, 35, 50, 0.08);
  --font: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(232, 93, 4, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(45, 106, 79, 0.06) 0%, transparent 50%);
}

.header {
  background: var(--bg-dark);
  color: #fff;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo strong { display: block; font-size: 1.05rem; }
.logo span { font-size: 0.8rem; opacity: 0.7; }

.lang-toggle {
  display: flex;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.lang-btn {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  padding: 0.45rem 0.85rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.lang-btn:hover:not(.active) { color: #fff; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.plan-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}

.plan-badge.plan-free { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.55); }
.plan-badge.plan-trial { background: var(--accent); color: #fff; }
.plan-badge.plan-premium { background: linear-gradient(135deg, #f48c06, #e85d04); color: #fff; }

.btn-upgrade {
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-upgrade:hover { background: #d04d00; }
.btn-upgrade.hidden { display: none; }

.btn-unsubscribe {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.2s, color 0.2s;
}

.btn-unsubscribe:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.header-actions .btn-unsubscribe.hidden { display: none; }

.pricing-modal .btn-unsubscribe {
  background: #fff;
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  font-family: var(--font);
}

.pricing-modal .btn-unsubscribe:hover {
  background: #fafafa;
  color: var(--error);
  border-color: var(--error);
}

.pricing-modal .btn-unsubscribe.hidden { display: none; }

.free-banner {
  background: linear-gradient(135deg, #fff8f0, #fde8d8);
  border: 1px dashed #e85d04;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
}

.free-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.free-banner-icon { font-size: 1.5rem; flex-shrink: 0; }
.free-banner strong { display: block; font-size: 0.95rem; color: #b45309; }
.free-banner p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.15rem; }
.free-banner .btn-sm { margin-left: auto; padding: 0.5rem 1rem; font-size: 0.82rem; }

.topic-card.topic-locked {
  opacity: 0.55;
  filter: grayscale(0.4);
  cursor: not-allowed;
  position: relative;
}

.topic-card.topic-free-limited {
  border-style: dashed;
  opacity: 0.92;
}

.topic-lock-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 1.1rem;
}

.topic-count-muted {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.topic-print-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tab.tab-locked { opacity: 0.65; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 35, 50, 0.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.hidden { display: none; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border: none;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover { color: var(--text); }

.pricing-modal h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.modal-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-free { background: #fafafa; }
.pricing-trial { border-color: var(--accent); border-width: 2px; background: #fffaf5; }
.pricing-premium { border-color: var(--accent); background: #fffaf5; }

.pricing-tag {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.pricing-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }

.pricing-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.pricing-price small { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 1rem;
}

.pricing-features li {
  font-size: 0.85rem;
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
  color: var(--text-muted);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.pricing-features-bad li::before { content: '✗'; color: var(--error); }

.pricing-current {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem;
  background: var(--bg);
  border-radius: 8px;
}

.pricing-note, .pricing-demo {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.btn-block { width: 100%; }
.btn-premium { background: linear-gradient(135deg, #f48c06, #e85d04); color: #fff; border: none; padding: 0.7rem 1.4rem; border-radius: 10px; font-family: var(--font); font-weight: 700; cursor: pointer; }
.btn-premium:hover { filter: brightness(1.05); }

.paywall-card {
  background: linear-gradient(135deg, #fffaf5, var(--accent-soft));
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.paywall-inner .paywall-icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.paywall-inner h3 { font-size: 1.2rem; color: var(--accent); margin-bottom: 0.5rem; }
.paywall-inner p { color: var(--text-muted); margin-bottom: 1.25rem; }
.paywall-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.cito-exercises-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--accent-border);
}

.cito-exercises-heading {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.cito-exercises-section.cito-exercises-locked .cito-exercises-heading {
  color: var(--text-muted);
}

.cito-exercises-section.cito-exercises-locked .print-toolbar,
.cito-exercises-section.cito-exercises-locked .topic-grid {
  display: none !important;
}

.print-toolbar.hidden { display: none; }

.topic-grid.hidden { display: none; }

.cito-exercises-banner {
  background: linear-gradient(135deg, #fffaf5, #ffe8d6);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.cito-exercises-banner.hidden { display: none; }

.cito-exercises-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.cito-exercises-banner-icon { font-size: 1.35rem; }

.cito-exercises-banner-inner strong {
  display: block;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.cito-exercises-banner-inner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cito-exercises-banner-inner .btn-sm {
  margin-left: auto;
  white-space: nowrap;
}

.cito-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(244, 241, 236, 0.92);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-radius: var(--radius);
}

#panel-cito { position: relative; }

.cito-lock-inner {
  text-align: center;
  max-width: 420px;
}

.cito-lock-inner h3 { font-size: 1.25rem; color: var(--accent); margin: 0.75rem 0 0.5rem; }
.cito-lock-inner p { color: var(--text-muted); margin-bottom: 1.25rem; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--bg-dark);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat span:last-child {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  padding: 0.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.tab:hover { color: var(--text); background: var(--bg); }
.tab.active { background: var(--accent); color: #fff; }
.tab-icon { font-size: 1.1rem; }

.panel { display: none; animation: fadeIn 0.3s ease; }
.panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header { margin-bottom: 1.5rem; }
.panel-header h2 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.panel-header p { color: var(--text-muted); }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.topic-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 93, 4, 0.12);
}

.topic-card.math { border-top: 3px solid var(--accent); }
.topic-card.taal { border-top: 3px solid var(--accent-2); }

.topic-card .topic-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.topic-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.topic-card p { font-size: 0.82rem; color: var(--text-muted); }
.topic-card .topic-count {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}

.topic-card.taal .topic-count {
  color: var(--accent-2);
  background: var(--accent-2-soft);
}

.hidden { display: none !important; }

.back-btn {
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 1rem;
  padding: 0;
}

.back-btn:hover { color: var(--accent); }

.exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.exercise-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

#panel-taal .exercise-badge {
  color: var(--accent-2);
  background: var(--accent-2-soft);
}

.exercise-card h3 {
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  white-space: pre-line;
}

.answer-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.answer-input {
  width: 100%;
  max-width: 320px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.answer-input:focus {
  outline: none;
  border-color: var(--accent);
}

.choice-btn {
  text-align: left;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s;
}

.choice-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.choice-btn.selected { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.choice-btn.correct { border-color: var(--success); background: var(--success-bg); }
.choice-btn.wrong { border-color: var(--error); background: var(--error-bg); }

.feedback {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.feedback.correct { background: var(--success-bg); color: var(--success); }
.feedback.wrong { background: var(--error-bg); color: var(--error); }

.exercise-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #d04d00; }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); }

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #f48c06);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

#panel-taal .progress-fill {
  background: linear-gradient(90deg, var(--accent-2), #40916c);
}

.progress-label {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.info-wide { grid-column: 1 / -1; }

.info-about-card {
  border-left: 4px solid var(--accent);
  padding: 1.65rem 1.75rem;
}

.info-about-badge {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.info-about-lead {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 1.15rem;
}

.info-about-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.info-about-body p:last-child {
  margin-bottom: 0;
}

.info-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.info-card:nth-child(2) h2 { color: var(--accent-2); }

.info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.info-card li {
  font-size: 0.92rem;
  padding-left: 1.2rem;
  position: relative;
  color: var(--text-muted);
}

.info-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.info-card:nth-child(2) li::before { color: var(--accent-2); }

.info-card p { color: var(--text-muted); font-size: 0.95rem; }

.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

.boot-error {
  background: #fde8ea;
  border: 1px solid #c1121f;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: #7a1020;
}

.boot-error strong { display: block; margin-bottom: 0.35rem; }
.boot-error p { font-size: 0.9rem; margin-top: 0.35rem; }
.boot-error code { background: rgba(0,0,0,0.06); padding: 0.1rem 0.35rem; border-radius: 4px; }

@media (max-width: 600px) {
  .tabs { flex-direction: column; }
  .info-grid { grid-template-columns: 1fr; }
  .cito-info-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
  .exercise-card { padding: 1.25rem; }
  .tab { font-size: 0.82rem; padding: 0.65rem 0.5rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .free-banner-inner { flex-direction: column; align-items: flex-start; }
  .free-banner .btn-sm { margin-left: 0; width: 100%; }
  .weight-summary { grid-template-columns: 1fr; }
  .weight-row { grid-template-columns: 5.5rem 1fr 2.25rem; }
}

/* Cito en doorstroomtoets */
.cito-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cito-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.cito-info-wide { grid-column: 1 / -1; }

.cito-info-card h3 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.cito-info-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cito-info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cito-info-card li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.cito-info-card li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.6rem;
  top: 0.35rem;
}

.topic-card.cito { border-top: 3px solid var(--accent); }

.topic-card.cito .topic-count {
  color: var(--accent);
  background: var(--accent-soft);
}

.topic-card.cito .topic-print-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

#panel-cito .exercise-badge {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Doorstroomtoets info */
.doorstroom-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.doorstroom-block h3 {
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.doorstroom-subhead {
  font-size: 0.95rem;
  color: var(--accent);
  margin: 1.25rem 0 0.5rem;
}

.doorstroom-block-intro-sm {
  margin-bottom: 0.65rem;
  font-size: 0.84rem;
}

.doorstroom-block .weight-summary {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.doorstroom-block .summary-card h4 {
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.doorstroom-block .niveau-ladder {
  margin-top: 0.5rem;
}

.doorstroom-block .advies-list,
.doorstroom-block .info-bullets {
  margin-top: 0.35rem;
}

.doorstroom-block-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.doorstroom-block-header h3 {
  font-size: 1.05rem;
  color: var(--accent);
}

.doorstroom-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.doorstroom-link:hover { text-decoration: underline; }

.doorstroom-block-intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.doorstroom-back {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.hero-compact { margin-bottom: 1.5rem; }
.hero-compact h1 { font-size: 1.65rem; }

.doorstroom-page .doorstroom-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.doorstroom-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--accent);
}

.section-lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.weight-chart { display: flex; flex-direction: column; gap: 0.65rem; }

.weight-chart-compact { margin-bottom: 1rem; }

.weight-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.65rem;
}

.weight-label { font-size: 0.85rem; font-weight: 600; }

.weight-bar-wrap {
  height: 1.1rem;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.weight-bar {
  height: 100%;
  border-radius: 999px;
  min-width: 4px;
}

.weight-rekenen { background: linear-gradient(90deg, #e85d04, #f48c06); }
.weight-lezen { background: linear-gradient(90deg, #2d6a4f, #40916c); }
.weight-taalverz { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }

.weight-pct {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--mono);
  text-align: right;
}

.weight-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

.summary-card {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
}

.summary-card h3 { font-size: 0.92rem; margin-bottom: 0.35rem; }
.summary-card p { color: var(--text-muted); line-height: 1.45; }

.summary-math { background: #fff0e8; border: 1px solid #f5c4a0; }
.summary-math h3 { color: #e85d04; }
.summary-taal { background: var(--accent-soft); border: 1px solid var(--accent-border); }
.summary-taal h3 { color: var(--accent); }

.niveau-ladder {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.niveau-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.niveau-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.niveau-step strong { display: block; font-size: 0.92rem; margin-bottom: 0.15rem; }
.niveau-step p { font-size: 0.84rem; color: var(--text-muted); }

.advies-list, .info-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.advies-list li strong { color: var(--accent); }

.doorstroom-subhead-sm {
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.advies-list li, .info-bullets li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.15rem;
  position: relative;
}

.advies-list li::before, .info-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.niveau-tags {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.niveau-tag-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.niveau-tag-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  width: 100%;
  margin-bottom: 0.15rem;
}

.niveau-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.niveau-tag-advies {
  background: #fff0e8;
  color: #c2410c;
  border-color: #f5c4a0;
}

.doorstroom-cta {
  text-align: center;
  background: linear-gradient(135deg, #fffaf5, var(--accent-soft));
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 2rem;
}

.doorstroom-cta h2 { font-size: 1.15rem; color: var(--accent); margin-bottom: 0.5rem; }
.doorstroom-cta p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.9rem; }

#panel-cito .progress-fill,
.cito-progress .progress-fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

/* Print toolbar */
.print-toolbar {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.print-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.print-option input { width: 1rem; height: 1rem; accent-color: var(--accent); }

.print-hint {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.topic-card {
  position: relative;
}

.topic-card-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.topic-print-btn {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.topic-print-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.topic-card.taal .topic-print-btn:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: var(--accent-2-soft);
}

.exercise-toolbar {
  margin-bottom: 0.75rem;
}

.btn-print {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn-print:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Print sheet (screen: hidden) */
.print-root {
  display: none;
}

.print-doc {
  font-family: 'DM Sans', Georgia, serif;
  color: #000;
  max-width: 100%;
  padding: 0;
}

.print-header {
  border-bottom: 2px solid #000;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.print-header h1 {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}

.print-header h2 {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.75rem;
}

.print-meta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.print-meta span {
  flex: 1;
  border-bottom: 1px solid #999;
  padding-bottom: 0.2rem;
}

.print-questions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.print-q {
  margin-bottom: 1.35rem;
  page-break-inside: avoid;
}

.print-q-num {
  font-weight: 700;
  margin-right: 0.35rem;
}

.print-q-text {
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-line;
  margin-bottom: 0.5rem;
}

.print-choices {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
}

.print-choices li {
  font-size: 0.92rem;
  padding: 0.2rem 0 0.2rem 0.25rem;
}

.print-choice-letter {
  font-weight: 700;
  display: inline-block;
  width: 1.4rem;
}

.print-answer-line {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  border-bottom: 1px solid #ccc;
  min-height: 1.6rem;
  padding-bottom: 0.15rem;
}

.print-answer-key {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px dashed #999;
}

.print-answer-key h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.print-answers-list {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
}

.print-answers-list li {
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  break-inside: avoid;
}

.print-footer-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #666;
  text-align: center;
}

@media print {
  @page {
    margin: 1.5cm;
    size: A4;
  }

  body.print-active > *:not(.print-root) {
    display: none !important;
  }

  body.print-active .print-root {
    display: block !important;
  }

  .print-answer-key {
    page-break-before: always;
  }

  .print-q {
    page-break-inside: avoid;
  }
}

.hero-actions {
  text-align: center;
  margin-top: 1.25rem;
}

.hero-progress-text {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.lezen-question {
  white-space: pre-wrap;
  line-height: 1.55;
  font-weight: 500;
  font-size: 1rem;
}

.topic-progress {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0.35rem 0;
}

.oefentoets-modal { max-width: 640px; width: 100%; }

.oefentoets-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.oefentoets-timer {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.oefentoets-qnum {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.oefentoets-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
  justify-content: flex-end;
}

.oefentoets-score {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1rem 0 0.75rem;
  color: var(--accent);
}

.oefentoets-advies {
  text-align: left;
  margin-bottom: 1.25rem;
}

.oefentoets-advies-lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.oefentoets-section-scores {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.oefentoets-section-scores li {
  font-size: 0.9rem;
  font-weight: 600;
}

.oefentoets-weighted {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.oefentoets-advies-card {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}

.oefentoets-advies-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.oefentoets-advies-cat {
  display: block;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.oefentoets-advies-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.oefentoets-advies-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.lezen-card { border-left: 4px solid var(--accent); }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a2e;
  color: #fff;
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}

.cookie-banner.hidden { display: none; }

.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-banner-inner p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}

.cookie-banner-inner strong {
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .hero-stats { gap: 0.85rem; }
  .stat-num { font-size: 1.5rem; }
}
