/* TaricFinder — Main CSS */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --blue:        #1a56db;
  --blue-dark:   #1447b8;
  --blue-light:  #ebf0ff;
  --blue-mid:    #3f6fd4;
  --text:        #111827;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --bg:          #f9fafb;
  --white:       #ffffff;
  --success:     #059669;
  --warning:     #d97706;
  --error:       #dc2626;
  --radius:      10px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

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

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav__logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--blue);
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo svg { width: 28px; height: 28px; }
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__link {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all .15s;
}
.nav__link:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.nav__link--active { color: var(--blue); background: var(--blue-light); }
.btn-nav {
  background: var(--blue);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s;
}
.btn-nav:hover { background: var(--blue-dark); text-decoration: none; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1447b8 0%, #1a56db 50%, #2563eb 100%);
  padding: 72px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -.5px;
}
.hero h1 span { opacity: .85; font-weight: 400; }
.hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ── Search Box ──────────────────────────────────────────── */
.search-wrap {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}
.search-box {
  display: flex;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.search-box:focus-within { border-color: rgba(255,255,255,.5); }
.search-input {
  flex: 1;
  padding: 17px 20px;
  font-size: 16px;
  font-family: inherit;
  border: none;
  outline: none;
  color: var(--text);
  background: transparent;
}
.search-input::placeholder { color: #9ca3af; }
.search-btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.search-btn:hover { background: var(--blue-dark); }
.search-btn:disabled { opacity: .6; cursor: not-allowed; }
.search-hint {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  margin-top: 12px;
}

/* ── Features strip ──────────────────────────────────────── */
.features-strip {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 0 0;
  color: rgba(255,255,255,.8);
  font-size: 13px;
}
.features-strip span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Search results ──────────────────────────────────────── */
.results-section {
  padding: 48px 0;
  min-height: 200px;
}
.results-loading {
  text-align: center;
  padding: 48px 0;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-title { font-size: 20px; font-weight: 600; }
.results-meta { color: var(--text-muted); font-size: 14px; }

/* AI suggestion chips */
.suggesties-wrap { margin-bottom: 28px; }
.suggesties-label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid rgba(26,86,219,.15);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.chip:hover { background: var(--blue); color: var(--white); }

/* Code cards */
.codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.code-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: all .15s;
  position: relative;
}
.code-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.code-card__code {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}
.code-card__omschrijving {
  font-size: 14px;
  color: var(--text);
  margin-top: 6px;
  line-height: 1.45;
}
.code-card__en {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}
.code-card__match {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--blue-light);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* ── Suggest Panel (AI-suggesties twee-staps) ────────────── */
.suggest-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.suggest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}
.suggest-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.suggest-uitleg {
  padding: 16px 24px;
  background: #f0f9ff;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
  color: #1e40af;
}
.suggest-section {
  padding: 16px 24px;
}
.suggest-section + .suggest-section {
  border-top: 1px solid var(--border);
}
.suggest-section-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.suggest-section-label.muted {
  color: var(--text-muted);
}
.suggest-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.suggest-term {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: all .15s;
}
.suggest-term.hit {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
  cursor: pointer;
}
.suggest-term.hit:hover {
  background: #dcfce7;
  border-color: #4ade80;
  box-shadow: 0 2px 8px rgba(22,101,52,.12);
}
.suggest-term.hit.active {
  background: #166534;
  color: #fff;
  border-color: #166534;
}
.suggest-term.hit.active .suggest-check { color: #fff; }
.suggest-term.miss {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  color: #9ca3af;
}
.suggest-check {
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.suggest-check.hit { color: #16a34a; }
.suggest-check.miss { color: #d1d5db; }

.codes-header {
  padding: 16px 8px 8px;
}
.codes-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Results area ─────────────────────────────────────────── */
.results-main { min-width: 0; }
.codes-placeholder {
  text-align: center;
  padding: 48px 24px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  color: var(--text-muted);
}

/* ── Sidebar terms ───────────────────────────────────────── */
.sidebar-terms {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.sidebar-terms__title {
  font-size: 14px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 2px;
}
.sidebar-terms__subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.sidebar-term {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #166534;
  margin-bottom: 6px;
  transition: all .15s;
  text-align: left;
}
.sidebar-term:last-child { margin-bottom: 0; }
.sidebar-term:hover {
  border-color: #4ade80;
  background: #dcfce7;
}
.sidebar-term.active {
  background: #166534;
  color: #fff;
  border-color: #166534;
}
.sidebar-term.active .suggest-check { color: #fff; }
.sidebar-term__text { flex: 1; }
.sidebar-term__count {
  font-size: 11px;
  background: rgba(0,0,0,.1);
  padding: 1px 6px;
  border-radius: 4px;
  min-width: 16px;
  text-align: center;
}
.sidebar-term.active .sidebar-term__count {
  background: rgba(255,255,255,.2);
}

/* ── Verified badge in code card ─────────────────────────── */
.code-card__verified {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f0fdf4;
  color: #166534;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #bbf7d0;
}

/* Beste match card */
.code-card--best {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), var(--shadow-md);
}
.code-card__best-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
.best-label__icon {
  font-size: 14px;
  line-height: 1;
}

/* ── Terms drawer (vast paneel rechts) ─────────────────────── */
.terms-drawer {
  display: none;
  position: fixed; right: 0; top: 60px; bottom: 0;
  width: 240px;
  background: var(--white);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 20px rgba(0,0,0,.06);
  z-index: 100;
  flex-direction: column;
  animation: drawerSlideIn .2s ease;
}
.terms-drawer.open { display: flex; }
@keyframes drawerSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.terms-drawer__header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: 18px 16px 14px; border-bottom: 1px solid var(--border);
}
.terms-drawer__title { font-weight: 700; font-size: 15px; color: var(--blue); line-height: 1.3; }
.terms-drawer__close {
  background: none; border: none; font-size: 20px; cursor: pointer;
  color: var(--text-muted); padding: 0 2px; line-height: 1;
}
.terms-drawer__close:hover { color: var(--text); }
.terms-drawer__body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.terms-drawer__body .sidebar-term { margin-bottom: 6px; }

/* Body krijgt ruimte voor de drawer */
body.has-terms-drawer { padding-right: 240px; }

/* ── Results area past zich aan ──────────────────────────── */
.results-with-drawer { min-height: 200px; }

@media (max-width: 768px) {
  .terms-drawer { width: 200px; top: 56px; }
  body.has-terms-drawer { padding-right: 200px; }
}
@media (max-width: 480px) {
  .terms-drawer { width: 100%; top: auto; bottom: 0; height: auto; max-height: 40vh; border-left: none; border-top: 1px solid var(--border); }
  body.has-terms-drawer { padding-right: 0; padding-bottom: 40vh; }
}

.code-card__meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.code-card__check {
  display: inline-block;
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
  margin-top: 10px;
  padding: 4px 10px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  transition: all .15s;
}
.code-card__check:hover {
  background: var(--blue);
  color: #fff;
}

/* ── Code Row (list layout voor zoekresultaten) ──────────── */
.codes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.code-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  transition: border-color .15s, box-shadow .15s;
}
.code-row:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(26,86,219,.08);
}
.code-row__code {
  font-family: 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  min-width: 120px;
  padding-top: 2px;
  cursor: pointer;
}
.code-row__body {
  flex: 1;
  min-width: 0;
}
.code-row__omschrijving {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}
.code-row__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.code-row__meta {
  font-size: 12px;
  color: var(--text-muted);
}
.code-row__check {
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  padding: 3px 10px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  transition: all .15s;
}
.code-row__check:hover {
  background: var(--blue);
  color: #fff;
}

@media (max-width: 640px) {
  .code-row { flex-direction: column; gap: 4px; }
  .code-row__code { min-width: auto; }
}

/* ── Auth Wall ───────────────────────────────────────────── */
.auth-wall {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.auth-wall h2 { font-size: 22px; margin-bottom: 8px; }
.auth-wall p { color: var(--text-muted); margin-bottom: 28px; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; text-align: left; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s;
  background: var(--white);
  color: var(--text);
}
.form-input:focus { border-color: var(--blue); }
.form-input::placeholder { color: #9ca3af; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all .15s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn--outline:hover { background: var(--blue-light); }
.btn--full { width: 100%; }
.btn--sm { padding: 7px 16px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Credit Wall ─────────────────────────────────────────── */
.credit-wall {
  background: linear-gradient(135deg, #ebf0ff, #f0f4ff);
  border: 1px solid rgba(26,86,219,.15);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 600px;
  margin: 32px auto;
}
.credit-wall h2 { font-size: 22px; margin-bottom: 8px; }
.credit-wall p { color: var(--text-muted); margin-bottom: 32px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.pricing-card:hover, .pricing-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.pricing-card.popular {
  border-color: var(--blue);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.pricing-card__credits { font-size: 22px; font-weight: 700; color: var(--blue); }
.pricing-card__prijs { font-size: 16px; font-weight: 600; margin-top: 4px; }
.pricing-card__label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pricing-abo {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  text-align: left;
  cursor: pointer;
  transition: all .15s;
}
.pricing-abo:hover, .pricing-abo.selected { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }

/* ── Account / Dashboard ─────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 40px 0;
}
@media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } }

.sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
}
.sidebar__name { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.sidebar__email { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; word-break: break-all; }
.credit-badge {
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  margin-bottom: 20px;
}
.credit-badge__num { font-size: 32px; font-weight: 700; line-height: 1; }
.credit-badge__label { font-size: 12px; margin-top: 2px; }
.sidebar__nav { list-style: none; }
.sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--text-muted);
  transition: all .15s;
  margin-bottom: 2px;
}
.sidebar__nav a:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.sidebar__nav a.active { background: var(--blue-light); color: var(--blue); font-weight: 500; }

/* ── History table ───────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 18px; margin-bottom: 20px; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert--info    { background: var(--blue-light); color: #1e40af; border: 1px solid rgba(26,86,219,.2); }

/* ── SEO chapter pages ───────────────────────────────────── */
.chapter-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
}
.chapter-hero h1 { font-size: clamp(22px, 4vw, 36px); margin-bottom: 8px; }
.chapter-hero p { color: var(--text-muted); font-size: 16px; }
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col p, .footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}
.footer-col a:hover { color: var(--blue); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.hidden { display: none; }
.section { padding: 64px 0; }
.section-title { font-size: clamp(20px, 3vw, 28px); font-weight: 700; margin-bottom: 8px; }
.section-sub { color: var(--text-muted); font-size: 16px; margin-bottom: 40px; }

/* ── Hamburger (hidden on desktop) ────────────────────────── */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 200;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .search-btn span { display: none; }
  .hero { padding: 48px 0 56px; }
  .auth-wall, .credit-wall { padding: 32px 20px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .codes-grid { grid-template-columns: 1fr; }

  .nav__hamburger { display: flex; }

  .nav__links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px 20px;
    gap: 4px;
    z-index: 150;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .nav__links.open { display: flex; }

  .nav__links .nav__link {
    display: flex !important;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 8px;
  }
  .nav__links .nav__link:hover { background: var(--bg); }

  .nav__links .btn-nav {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
  }
}

/* ── CMS Content ────────────────────────────────────────── */
.cms-content .card { background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 24px 28px; margin-bottom: 24px; }
.cms-content .btn { margin-right: 12px; margin-bottom: 8px; }
.cms-content h1 { font-size: 28px; margin-bottom: 8px; }
.cms-content h2 { font-size: 22px; margin-top: 28px; margin-bottom: 12px; }
.cms-content h3 { font-size: 18px; margin-top: 24px; margin-bottom: 8px; }
.cms-content p { margin-bottom: 14px; line-height: 1.7; }
.cms-content img { max-width: 100%; height: auto; border-radius: 8px; }
.cms-content a:not(.btn) { color: var(--blue); }
.cms-content blockquote { border-left: 3px solid var(--blue); padding-left: 16px; margin: 16px 0; color: var(--text-muted); }
