/* ============================================================
   Neuralex Rechtspraak — macOS Dark Theme
   Gebaseerd op Apple Human Interface Guidelines Dark Mode
   ============================================================ */

/* ── System font import (geen CDN, lokaal) ──────────────────── */
@supports (font: -apple-system-body) {
  :root { --sys-font: -apple-system, 'SF Pro Display', 'SF Pro Text', BlinkMacSystemFont, 'Helvetica Neue', sans-serif; }
}

:root {
  /* ── macOS Dark kleurpalet ─────────────────────────────── */
  --bg:               #000000;
  --bg-elevated:      #1c1c1e;
  --bg-elevated-2:    #2c2c2e;
  --bg-elevated-3:    #3a3a3c;
  --bg-grouped:       #1c1c1e;

  /* Labels */
  --label:            #ffffff;
  --label-2:          rgba(235,235,245,0.60);
  --label-3:          rgba(235,235,245,0.30);
  --label-4:          rgba(235,235,245,0.18);

  /* Separators */
  --separator:        rgba(84,84,88,0.65);
  --separator-opaque: #38383a;

  /* System colors (Dark) */
  --blue:             #0a84ff;
  --blue-hover:       #409cff;
  --blue-dim:         rgba(10,132,255,.15);
  --green:            #30d158;
  --green-dim:        rgba(48,209,88,.15);
  --orange:           #ff9f0a;
  --orange-dim:       rgba(255,159,10,.15);
  --red:              #ff453a;
  --red-dim:          rgba(255,69,58,.15);
  --yellow:           #ffd60a;
  --purple:           #bf5af2;
  --purple-dim:       rgba(191,90,242,.15);
  --teal:             #5ac8fa;
  --indigo:           #5e5ce6;

  /* Fill colors */
  --fill:             rgba(120,120,128,.36);
  --fill-2:           rgba(120,120,128,.32);
  --fill-3:           rgba(118,118,128,.24);
  --fill-4:           rgba(116,116,128,.18);

  /* ── Geïnheriteerde variabelen voor componenten ─────────── */
  --accent:           var(--blue);
  --accent-hover:     var(--blue-hover);
  --accent-dim:       var(--blue-dim);
  --success:          var(--green);
  --success-dim:      var(--green-dim);
  --warning:          var(--orange);
  --warning-dim:      var(--orange-dim);
  --error:            var(--red);
  --error-dim:        var(--red-dim);

  /* ── Layout ─────────────────────────────────────────────── */
  --radius-xs:        6px;
  --radius-sm:        8px;
  --radius:           12px;
  --radius-lg:        16px;
  --radius-xl:        20px;
  --radius-pill:      999px;

  --shadow-sm:        0 1px 3px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4);
  --shadow:           0 4px 16px rgba(0,0,0,.6), 0 1px 4px rgba(0,0,0,.4);
  --shadow-lg:        0 12px 40px rgba(0,0,0,.7), 0 4px 16px rgba(0,0,0,.4);
  --shadow-blue:      0 8px 32px rgba(10,132,255,.25);

  --transition:       0.18s cubic-bezier(.4,0,.2,1);
  --spring:           0.3s cubic-bezier(.34,1.56,.64,1);

  --header-h:         52px;
  --nav-h:            44px;
  --blur:             saturate(180%) blur(20px);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Body met lichtblobs achtergrond voor echte glass look ─── */
/*    backdrop-filter heeft kleur nodig om iets te blurren     */
body {
  font-family: -apple-system, 'SF Pro Text', BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', sans-serif;
  background-color: #05060f;
  background-image:
    /* Blob 1 — blauw accent linksonder */
    radial-gradient(ellipse 700px 500px at 8% 85%,  rgba(10,132,255,.22)  0%, transparent 70%),
    /* Blob 2 — indigo/paars rechtsboven */
    radial-gradient(ellipse 600px 450px at 92% 12%, rgba(94,92,230,.18)   0%, transparent 65%),
    /* Blob 3 — teal midden */
    radial-gradient(ellipse 500px 350px at 55% 50%, rgba(90,200,250,.08)  0%, transparent 60%),
    /* Blob 4 — oranje accent rechtsonder */
    radial-gradient(ellipse 400px 300px at 85% 90%, rgba(255,159,10,.10)  0%, transparent 55%),
    /* Blob 5 — groen accent linksboven */
    radial-gradient(ellipse 350px 280px at 15% 8%,  rgba(48,209,88,.07)   0%, transparent 50%),
    /* Donkere basislaag */
    linear-gradient(160deg, #07091a 0%, #050610 50%, #060810 100%);
  color: var(--label);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* Subtiele animatie op de lichtblobs */
@keyframes blob-drift {
  0%,100% { background-position: 8% 85%, 92% 12%, 55% 50%, 85% 90%, 15% 8%, center; }
  33%      { background-position: 12% 80%, 88% 18%, 52% 48%, 82% 88%, 18% 12%, center; }
  66%      { background-position: 5% 88%, 95% 8%,  58% 52%, 88% 92%, 12% 5%,  center; }
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--fill); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--fill-2); }

/* ── Typography — SF Pro system ─────────────────────────────── */
h1 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.7rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.015em; }
h4 { font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
p  { margin-bottom: .75rem; color: var(--label-2); line-height: 1.6; }
p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════
   GLASSMORPHISM — echte frosted glass met backdrop-filter
   Werkt doordat de body gekleurde lichtblobs heeft als canvas
   ═══════════════════════════════════════════════════════════ */

/* Gedeelde glass mixin als custom property */
:root {
  --glass-bg:      rgba(18,18,24,.55);
  --glass-border:  rgba(255,255,255,.10);
  --glass-border-h:rgba(255,255,255,.18);
  --glass-blur:    saturate(200%) blur(24px);
  --glass-inset:   inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.2);
}

.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm), var(--glass-inset);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
}
.card:hover {
  border-color: var(--glass-border-h);
  box-shadow: var(--shadow), var(--glass-inset);
  background: rgba(22,22,30,.6);
}
.card.clickable { cursor: pointer; }
.card.clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(10,132,255,.35);
  box-shadow: var(--shadow), 0 0 0 1px rgba(10,132,255,.15), var(--glass-inset);
}

/* ── Buttons — macOS style ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  font-size: .87rem;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,.07); }
.btn:active::after { background: rgba(0,0,0,.12); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn:disabled::after { display: none; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 4px rgba(10,132,255,.35), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover:not(:disabled) { background: var(--blue-hover); box-shadow: 0 4px 16px rgba(10,132,255,.45); }

.btn-secondary {
  background: var(--fill-3);
  color: var(--label);
  border: 1px solid rgba(255,255,255,.08);
}
.btn-secondary:hover:not(:disabled) { background: var(--fill-2); border-color: rgba(255,255,255,.14); }

.btn-danger { background: var(--red); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.btn-danger:hover:not(:disabled) { filter: brightness(1.1); }

.btn-ghost { background: transparent; color: var(--label-2); }
.btn-ghost:hover:not(:disabled) { color: var(--blue); background: var(--blue-dim); }

.btn-lg { padding: .7rem 1.4rem; font-size: .95rem; border-radius: var(--radius); }
.btn-sm { padding: .3rem .7rem; font-size: .8rem; border-radius: var(--radius-xs); }
.btn-full { width: 100%; justify-content: center; }

/* ── Forms ──────────────────────────────────────────────────── */
.input, .select, .textarea {
  background: var(--fill-4);
  color: var(--label);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  font-size: .9rem;
  width: 100%;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.input::placeholder, .textarea::placeholder { color: var(--label-3); }
.input:focus, .select:focus, .textarea:focus {
  background: rgba(44,44,46,.6);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10,132,255,.2);
}
.textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23636366'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .65rem center;
  background-size: 1.1rem;
  padding-right: 2rem;
}
label { display: block; margin-bottom: .4rem; font-size: .82rem; color: var(--label-3); font-weight: 500; letter-spacing: .01em; text-transform: uppercase; }

.input-group { display: flex; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; flex-shrink: 0; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .18rem .55rem;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
}
.badge-ecli { background: rgba(10,132,255,.15); color: var(--blue); border: 1px solid rgba(10,132,255,.25); cursor: pointer; transition: background var(--transition), border-color var(--transition); }
.badge-ecli:hover { background: rgba(10,132,255,.25); border-color: rgba(10,132,255,.45); }
.badge-instantie { background: rgba(191,90,242,.15); color: var(--purple); border: 1px solid rgba(191,90,242,.25); }
.badge-rechtsgebied { background: rgba(90,200,250,.12); color: var(--teal); border: 1px solid rgba(90,200,250,.22); }
.badge-success { background: var(--green-dim); color: var(--green); }
.badge-warning { background: var(--orange-dim); color: var(--orange); }
.badge-error { background: var(--red-dim); color: var(--red); }

/* ── Spinner ─────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(10,132,255,.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .75s linear infinite;
  display: inline-block; flex-shrink: 0;
}
.spinner-center { display: flex; justify-content: center; padding: 2rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ───────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 90px; right: 1.5rem;
  display: flex; flex-direction: column; gap: .45rem;
  z-index: 2000; pointer-events: none;
}
.toast {
  background: rgba(44,44,46,.92);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  font-size: .85rem;
  box-shadow: var(--shadow-lg);
  animation: slide-in .22s cubic-bezier(.34,1.56,.64,1);
  pointer-events: auto;
  max-width: 300px;
  color: var(--label);
}
.toast.error { border-left-color: var(--red); }
.toast.success { border-left-color: var(--green); }
.toast.warning { border-left-color: var(--orange); }
@keyframes slide-in { from { transform: translateX(110%) scale(.92); opacity: 0; } to { transform: translateX(0) scale(1); opacity: 1; } }
@keyframes slide-out { to { transform: translateX(110%) scale(.92); opacity: 0; } }
.toast.out { animation: slide-out .2s ease forwards; }

/* ── Header — frosted glass ─────────────────────────────────── */
#site-header {
  background: rgba(28,28,30,.72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: sticky; top: 0; z-index: 100;
}
.header-top {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; gap: 1rem;
}
.header-brand { display: flex; align-items: center; gap: .65rem; color: var(--label); }
.header-brand:hover { text-decoration: none; }
.header-brand .logo { height: 34px; width: 34px; }
.header-brand h1 { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.header-brand span { color: var(--blue); }

.ssl-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(48,209,88,.2);
  padding: .22rem .6rem;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 500;
}

/* ── Navigation — macOS tab bar ─────────────────────────────── */
.site-nav {
  height: var(--nav-h);
  display: flex; align-items: stretch;
  padding: 0 1rem;
  border-top: 1px solid rgba(255,255,255,.05);
  gap: .1rem;
  overflow-x: auto; scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.nav-tab {
  display: flex; align-items: center; gap: .35rem;
  padding: 0 .9rem;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--label-2);
  font-size: .85rem; font-weight: 500; letter-spacing: -.01em;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.nav-tab:hover { color: var(--label); background: rgba(255,255,255,.05); }
.nav-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-icon { font-size: .95rem; }

/* ── Tab content ────────────────────────────────────────────── */
main { flex: 1; padding: 2rem 1.5rem; max-width: 1200px; margin: 0 auto; width: 100%; }
.tab-pane { display: none; animation: fade-up .22s cubic-bezier(.4,0,.2,1); }
.tab-pane.active { display: block; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── HOME — Hero section ────────────────────────────────────── */
.hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 2.5rem;
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
}

/* Achtergrond afbeelding — courthouse SVG + gradient overlay */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.3) 40%,
    rgba(0,0,0,.82) 75%,
    rgba(0,0,0,.96) 100%
  );
}

.hero-content {
  position: relative; z-index: 1;
  padding: 2.5rem 2.5rem 2.5rem;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(10,132,255,.2); color: var(--blue);
  border: 1px solid rgba(10,132,255,.3);
  border-radius: var(--radius-pill);
  padding: .25rem .75rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
  margin-bottom: .9rem;
}
.hero-content h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700; letter-spacing: -.03em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
  margin-bottom: .6rem;
  max-width: 640px;
}
.hero-content > p {
  color: rgba(255,255,255,.7);
  font-size: 1rem; margin-bottom: 1.5rem;
  max-width: 520px;
}
.hero-search { max-width: 560px; }
.hero-search .input {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,.2);
  color: #fff;
  font-size: .95rem;
}
.hero-search .input::placeholder { color: rgba(255,255,255,.4); }
.hero-search .input:focus { background: rgba(255,255,255,.14); border-color: var(--blue); }

/* ── Stats grid ─────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  /* Echte frosted glass */
  background: rgba(15,15,22,.50);
  backdrop-filter: saturate(200%) blur(28px);
  -webkit-backdrop-filter: saturate(200%) blur(28px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  position: relative; overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.25),
    0 4px 24px rgba(0,0,0,.35);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
}
/* Kleuraccent bovenrand per kaart */
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--blue) 0%, rgba(10,132,255,0) 100%);
  opacity: .7;
}
/* Subtiele glans — diagonale light streak */
.stat-card::after {
  content: '';
  position: absolute; top: 0; left: -60%; width: 50%; height: 100%;
  background: linear-gradient(105deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  transition: left .45s ease;
}
.stat-card:hover {
  background: rgba(20,20,30,.55);
  border-color: rgba(10,132,255,.28);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    inset 0 -1px 0 rgba(0,0,0,.2),
    0 8px 32px rgba(0,0,0,.5),
    0 0 0 1px rgba(10,132,255,.12);
}
.stat-card:hover::after { left: 110%; }
.stat-icon { font-size: 1.7rem; margin-bottom: .65rem; filter: drop-shadow(0 2px 6px rgba(10,132,255,.3)); }
.stat-value { font-size: 1.85rem; font-weight: 700; color: var(--blue); letter-spacing: -.03em; line-height: 1; margin-bottom: .35rem; font-variant-numeric: tabular-nums; text-shadow: 0 0 20px rgba(10,132,255,.4); }
.stat-label { font-size: .78rem; color: var(--label-2); font-weight: 500; letter-spacing: .01em; text-transform: uppercase; }

/* ── Section heading ─────────────────────────────────────────── */
.section-title { font-size: .78rem; font-weight: 600; color: var(--label-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }

/* ── Rechtsgebied tiles — prominente glass tegels ───────────── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: .75rem;
  margin-bottom: 2.5rem;
}
.area-tile {
  /* Volledig glassmorphism */
  background: rgba(20,20,32,.48);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: 1.1rem .75rem;
  text-align: center; cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.3),
    0 2px 12px rgba(0,0,0,.3);
  transition: all var(--spring);
}
/* Glans-lijn boven op de tegel */
.area-tile::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  border-radius: 1px;
}
/* Gekleurde gloed bij hover (per emoji-type via nth-child) */
.area-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 110%, rgba(10,132,255,.18) 0%, transparent 65%);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}
.area-tile:hover {
  background: rgba(10,132,255,.12);
  border-color: rgba(10,132,255,.35);
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    0 12px 32px rgba(0,0,0,.5),
    0 0 0 1px rgba(10,132,255,.2),
    0 4px 16px rgba(10,132,255,.15);
}
.area-tile:hover::after { opacity: 1; }
.area-tile:active { transform: translateY(-1px) scale(1.01); }
.area-emoji {
  font-size: 1.65rem; margin-bottom: .45rem;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
  transition: transform var(--spring);
}
.area-tile:hover .area-emoji { transform: scale(1.15) translateY(-2px); }
.area-name { font-size: .76rem; font-weight: 600; color: var(--label-2); letter-spacing: -.005em; }

/* ── Recent list ─────────────────────────────────────────────── */
.recent-list { display: flex; flex-direction: column; gap: .4rem; }
.recent-item {
  background: rgba(14,14,22,.50);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  display: flex; gap: .75rem; align-items: flex-start; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 6px rgba(0,0,0,.2);
  transition: all var(--transition);
}
.recent-item:hover {
  border-color: rgba(10,132,255,.28);
  background: rgba(10,132,255,.07);
  transform: translateX(3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 16px rgba(0,0,0,.3);
}
.recent-title { font-size: .9rem; font-weight: 500; color: var(--label); letter-spacing: -.01em; }
.recent-meta { font-size: .75rem; color: var(--label-3); margin-top: .15rem; }

/* ── SEARCH ─────────────────────────────────────────────────── */
.search-layout { max-width: 860px; }

.filters-toggle {
  background: none; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-xs);
  color: var(--label-3); font-size: .82rem; padding: .35rem .75rem;
  cursor: pointer; transition: all var(--transition); margin-bottom: .75rem;
  display: inline-flex; align-items: center; gap: .35rem;
}
.filters-toggle:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }

.filters-panel {
  background: rgba(12,12,20,.55);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 4px 20px rgba(0,0,0,.3);
}
.filters-panel.collapsed { display: none; }

.results-meta { font-size: .8rem; color: var(--label-3); margin-bottom: .75rem; letter-spacing: .01em; }

.result-card {
  background: rgba(14,14,22,.52);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  margin-bottom: .6rem; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 10px rgba(0,0,0,.25);
  transition: all var(--transition);
  animation: fade-up .18s ease;
}
.result-card:hover {
  border-color: rgba(10,132,255,.3);
  background: rgba(10,132,255,.08);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 8px 28px rgba(0,0,0,.4), 0 0 0 1px rgba(10,132,255,.12);
}
.result-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.result-title { font-size: .95rem; font-weight: 600; color: var(--label); margin-bottom: .3rem; letter-spacing: -.01em; }
.result-meta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: .35rem; }
.result-meta span { font-size: .78rem; color: var(--label-3); }
.result-snippet { font-size: .83rem; color: var(--label-2); line-height: 1.55; }
.result-snippet mark { background: rgba(10,132,255,.25); color: var(--blue); border-radius: 3px; padding: 0 2px; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: 1.5rem; flex-wrap: wrap; }
.page-btn {
  padding: .35rem .7rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xs);
  background: var(--bg-elevated);
  color: var(--label-2); font-size: .82rem;
  cursor: pointer; transition: all var(--transition);
}
.page-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }
.page-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(10,132,255,.4); }
.page-btn:disabled { opacity: .3; cursor: not-allowed; }
.page-ellipsis { color: var(--label-3); padding: .35rem .2rem; font-size: .82rem; }

/* ── ADVIES ─────────────────────────────────────────────────── */
.advies-layout { max-width: 800px; }

.rate-indicator { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--label-3); margin-bottom: .75rem; }
.rate-bar { flex: 1; height: 3px; background: rgba(255,255,255,.1); border-radius: var(--radius-pill); max-width: 100px; }
.rate-fill { height: 100%; background: var(--blue); border-radius: var(--radius-pill); transition: width .4s ease; }

.suggestion-pills { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pill {
  background: rgba(10,132,255,.12); color: var(--blue);
  border: 1px solid rgba(10,132,255,.22);
  border-radius: var(--radius-pill); padding: .22rem .7rem;
  font-size: .78rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition);
}
.pill:hover { background: rgba(10,132,255,.22); border-color: rgba(10,132,255,.45); transform: translateY(-1px); }

.privacy-note { font-size: .75rem; color: var(--label-3); text-align: center; margin-top: .5rem; }

.advies-response-box {
  background: rgba(14,14,24,.55);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 32px rgba(0,0,0,.4);
}
.advies-response-box h3 { color: var(--blue); margin-bottom: 1rem; }
.advies-text { font-size: .9rem; line-height: 1.8; color: var(--label); white-space: pre-wrap; }
.advies-text h1, .advies-text h2, .advies-text h3 { color: var(--label); margin: 1rem 0 .4rem; }
.advies-text strong { color: var(--label); }
.advies-text ul, .advies-text ol { margin: .5rem 0 .5rem 1.5rem; color: var(--label-2); }
.advies-text p { color: var(--label-2); }
.advies-actions { display: flex; gap: .6rem; margin-top: 1.25rem; flex-wrap: wrap; }

.context-eclis { margin-top: 1rem; }
.context-eclis p { font-size: .78rem; color: var(--label-3); margin-bottom: .35rem; }
.ecli-list { display: flex; gap: .35rem; flex-wrap: wrap; }

.history-section { margin-top: 2rem; border-top: 1px solid var(--separator); padding-top: 1.5rem; }
.history-section summary { cursor: pointer; color: var(--label-2); font-size: .88rem; user-select: none; }
.history-item {
  background: var(--bg-elevated); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-sm);
  padding: .55rem .85rem; margin-top: .35rem; font-size: .83rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.history-vraag { color: var(--label); }
.history-date { color: var(--label-3); font-size: .75rem; white-space: nowrap; }

/* ── DOCUMENTEN ─────────────────────────────────────────────── */
.docs-layout { max-width: 800px; display: grid; grid-template-columns: 1fr; gap: 2rem; }

.upload-zone {
  border: 2px dashed rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem; text-align: center; cursor: pointer;
  transition: all var(--transition);
  background: radial-gradient(ellipse at 50% 100%, rgba(10,132,255,.06) 0%, transparent 70%);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--blue);
  background: radial-gradient(ellipse at 50% 100%, rgba(10,132,255,.12) 0%, transparent 70%);
  box-shadow: 0 0 0 4px rgba(10,132,255,.1);
}
.upload-icon { font-size: 3rem; margin-bottom: .75rem; }
.upload-zone h3 { font-size: .97rem; margin-bottom: .3rem; color: var(--label); }
.upload-zone p { font-size: .82rem; color: var(--label-3); margin: 0; }
.upload-note { display: inline-flex; align-items: center; gap: .35rem; background: var(--orange-dim); color: var(--orange); border-radius: var(--radius-pill); padding: .2rem .65rem; font-size: .75rem; font-weight: 500; margin-top: .75rem; }

.doc-list { display: flex; flex-direction: column; gap: .4rem; }
.doc-item {
  background: var(--bg-elevated); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius);
  padding: .7rem 1rem; display: flex; align-items: center; gap: .75rem;
  transition: border-color var(--transition);
}
.doc-item:hover { border-color: rgba(255,255,255,.12); }
.doc-icon { font-size: 1.4rem; flex-shrink: 0; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: .88rem; font-weight: 500; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: .75rem; color: var(--label-3); margin-top: .15rem; }

.account-card {
  background: rgba(14,14,24,.52);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 20px rgba(0,0,0,.35);
}
.account-status {
  display: flex; align-items: center; gap: .5rem;
  background: var(--fill-4); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-sm);
  padding: .55rem .85rem; margin-bottom: 1rem; font-size: .85rem; color: var(--label-2);
}
.rate-details { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--separator); }
.rate-row { display: flex; justify-content: space-between; font-size: .83rem; margin-bottom: .35rem; }
.rate-row span:first-child { color: var(--label-3); }
.rate-row span:last-child { font-weight: 600; color: var(--label); font-variant-numeric: tabular-nums; }

/* ── DETAIL ─────────────────────────────────────────────────── */
.detail-layout { max-width: 1060px; }
.detail-header { margin-bottom: 1.5rem; }
.detail-ecli-large { font-size: 1.25rem; font-weight: 700; color: var(--blue); margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.detail-header h2 { color: var(--label); margin-bottom: .75rem; }
.detail-meta-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }

.detail-body-grid { display: grid; grid-template-columns: 1fr 260px; gap: 1.5rem; }
@media (max-width: 768px) { .detail-body-grid { grid-template-columns: 1fr; } }

.detail-content {
  background: rgba(14,14,22,.52);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 20px rgba(0,0,0,.3);
}
.detail-content pre {
  font-family: 'SF Mono', 'Fira Code', 'Menlo', monospace;
  font-size: .82rem; line-height: 1.85;
  white-space: pre-wrap; color: var(--label-2);
  max-width: 76ch;
}

.ai-summary-box {
  background: linear-gradient(135deg, rgba(10,132,255,.08) 0%, rgba(94,92,230,.07) 100%);
  border: 1px solid rgba(10,132,255,.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem; margin-bottom: 1rem;
}
.ai-summary-box h4 { color: var(--blue); margin-bottom: .5rem; }
.ai-summary-text { font-size: .87rem; color: var(--label-2); line-height: 1.75; white-space: pre-wrap; }

.detail-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.related-list { display: flex; flex-direction: column; gap: .4rem; }
.related-item {
  background: var(--fill-4); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-sm);
  padding: .6rem .8rem; cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.related-item:hover { border-color: rgba(10,132,255,.3); background: rgba(10,132,255,.07); }
.rel-ecli { font-size: .75rem; color: var(--blue); font-weight: 600; }
.rel-title { font-size: .8rem; color: var(--label-2); margin-top: .15rem; line-height: 1.3; }

/* ── Cookie banner ───────────────────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1500;
  background: rgba(28,28,30,.9);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .85rem 1.5rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
#cookie-banner p { font-size: .82rem; color: var(--label-2); flex: 1; margin: 0; }
#cookie-banner.hidden { display: none; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: rgba(28,28,30,.6);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
  font-size: .78rem; color: var(--label-3);
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--label-3); transition: color var(--transition); }
.footer-links a:hover { color: var(--blue); text-decoration: none; }

/* ── Empty / loading states ─────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--label-3); }
.empty-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.empty-state p { font-size: .88rem; color: var(--label-3); }
.loading-overlay {
  display: flex; align-items: center; justify-content: center; gap: .65rem;
  padding: 2rem; color: var(--label-3); font-size: .88rem;
}

/* ── Utility ─────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; width: 100%; padding: 0 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  main { padding: 1.25rem 1rem; }
  .hero { min-height: 300px; }
  .hero-content { padding: 1.75rem; }
  .hero-content h2 { font-size: 1.5rem; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .filters-panel { grid-template-columns: 1fr; }
  .advies-actions { flex-direction: column; }
  #cookie-banner { flex-direction: column; }
  .hero { min-height: 260px; }
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  #site-header, footer, #cookie-banner, #toast-container,
  .site-nav, .advies-actions, .pagination, .filters-toggle,
  .btn, .filters-panel, .hero-bg { display: none !important; }
  body { background: #fff; color: #000; font-family: Georgia, serif; }
  .tab-pane { display: block !important; animation: none !important; }
  .card, .result-card, .detail-content, .account-card { background: #fff; border: 1px solid #ccc; box-shadow: none; backdrop-filter: none; }
  main { padding: 0; max-width: none; }
  a { color: #1a56db; }
  .badge-ecli { background: #dbeafe; color: #1a56db; border: 1px solid #93c5fd; }
}

/* ============================================================
   Aliassen + Gebruikerssectie / Dossier-wizard (glass thema)
   ============================================================ */
:root { --text: var(--label); --text-dim: var(--label-2); }

.dossiers-root { max-width: 1000px; margin: 0 auto; padding: 1rem 0 3rem; }

/* Auth */
.auth-card {
  max-width: 420px; margin: 2rem auto; padding: 1.8rem;
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow), var(--glass-inset);
}
.auth-card h2 { color: var(--label); font-size: 1.4rem; margin-bottom: .3rem; }
.auth-sub { color: var(--label-2); font-size: .85rem; margin-bottom: 1rem; }
.auth-card label { display: block; color: var(--label-2); font-size: .8rem; margin: .8rem 0 .3rem; }
.auth-card .input { width: 100%; }
.auth-card .btn { width: 100%; justify-content: center; }
.auth-tabs { display: flex; gap: .4rem; margin-bottom: .6rem; }
.auth-tab {
  flex: 1; padding: .5rem; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--fill-4); color: var(--label-2); border: 1px solid transparent;
  font-size: .85rem; transition: var(--transition);
}
.auth-tab.active { background: var(--blue-dim); color: var(--blue); border-color: var(--blue); }

/* Dossierlijst */
.dossiers-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; }
.dossiers-header h2 { color: var(--label); font-size: 1.4rem; }
.dossier-list { display: flex; flex-direction: column; gap: .6rem; }
.dossier-item {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem; cursor: pointer; transition: var(--transition);
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm), var(--glass-inset);
}
.dossier-item:hover, .dossier-item:focus { border-color: var(--blue); transform: translateY(-1px); outline: none; }
.dossier-item-title { color: var(--label); font-weight: 600; font-size: .98rem; }
.dossier-item-meta { color: var(--label-2); font-size: .8rem; margin-top: .2rem; }
.dossier-progress span { font-size: .78rem; color: var(--label-2); white-space: nowrap; }

/* Wizard */
.wiz-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.wiz-title { color: var(--label); font-size: 1.2rem; flex: 1; text-align: center; }
.wiz-layout { display: grid; grid-template-columns: 230px 1fr; gap: 1.2rem; align-items: start; }
.wiz-nav { display: flex; flex-direction: column; gap: .35rem; position: sticky; top: calc(var(--header-h) + var(--nav-h) + 8px); }
.wiz-step {
  display: flex; align-items: center; gap: .6rem; text-align: left; cursor: pointer;
  padding: .6rem .7rem; border-radius: var(--radius-sm); font-size: .85rem;
  background: var(--fill-4); color: var(--label-2); border: 1px solid transparent;
  transition: var(--transition);
}
.wiz-step:hover { background: var(--fill-3); color: var(--label); }
.wiz-step.active { background: var(--blue-dim); color: var(--blue); border-color: var(--blue); }
.wiz-step.done .wiz-step-icon { color: var(--green); }
.wiz-step-icon { width: 20px; text-align: center; flex-shrink: 0; }

.wiz-content {
  padding: 1.4rem; min-height: 320px;
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), var(--glass-inset);
}
.wiz-head h3 { color: var(--label); font-size: 1.1rem; margin-bottom: .2rem; }
.wiz-head p { color: var(--label-2); font-size: .85rem; margin-bottom: 1.1rem; }

/* Formulier */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
.form-grid .fg-full { grid-column: 1 / -1; }
.form-grid label { display: block; color: var(--label-2); font-size: .78rem; margin-bottom: .3rem; }
.form-grid .input, .form-grid .select, .form-grid .textarea { width: 100%; }

/* AI-document */
.ai-start { color: var(--label-2); font-size: .9rem; }
.ai-start p { margin-bottom: 1rem; }
.ai-doc {
  color: var(--label); line-height: 1.65; font-size: .92rem;
  background: var(--fill-4); border: 1px solid var(--separator);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; max-height: 60vh; overflow: auto;
}
.ai-doc h2, .ai-doc h3, .ai-doc h4 { color: var(--label); margin: .8rem 0 .4rem; }
.ai-doc p { margin: .5rem 0; }
.ai-doc li { margin: .25rem 0 .25rem 1.2rem; }
.ai-doc .badge-ecli { cursor: pointer; }

/* Kostenbox */
.kosten-box {
  background: var(--blue-dim); border: 1px solid var(--blue);
  border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.kosten-box h4 { color: var(--label); margin-bottom: .5rem; }
.kosten-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.kosten-table td { padding: .3rem .2rem; border-bottom: 1px solid var(--separator); color: var(--label); }
.kosten-table td:first-child { color: var(--label-2); }
.kosten-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.kosten-disc { color: var(--label-2); font-size: .74rem; margin-top: .6rem; }

@media (max-width: 720px) {
  .wiz-layout { grid-template-columns: 1fr; }
  .wiz-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .wiz-step-label { display: none; }
  .wiz-step { padding: .5rem .6rem; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Header rechts: SSL-badge + account-widget (login rechtsboven) */
.header-right { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.header-account { display: flex; align-items: center; gap: .5rem; }
.hdr-user { color: var(--label); font-size: .82rem; font-weight: 600; max-width: 180px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
  .header-right .ssl-badge { display: none; }
  .hdr-user { max-width: 110px; }
}

/* Adminpagina */
.admin-section {
  margin-bottom: 1.4rem; padding: 1.2rem;
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), var(--glass-inset);
}
.admin-section h3 { color: var(--label); margin-bottom: .8rem; font-size: 1.05rem; }
.admin-section label { display:block; color: var(--label-2); font-size:.78rem; margin:.5rem 0 .25rem; }
.prov-row { display:grid; grid-template-columns: 1.1fr 1.2fr .9fr 1.4fr auto minmax(120px,1fr); gap:.5rem; align-items:center; margin-bottom:.5rem; }
.prov-naam { color: var(--label); font-size:.85rem; font-weight:600; }
.prov-id { color: var(--label-3); font-weight:400; font-size:.72rem; }
.p-result { font-size:.76rem; color: var(--label-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.p-result.good { color: var(--green); }
.p-result.bad { color: var(--red); }
.admin-section .input, .admin-section .textarea { width:100%; }
.admin-section .textarea { font-family: ui-monospace, Menlo, monospace; font-size:.8rem; }
.chk { display:flex; align-items:center; gap:.4rem; color:var(--label-2); font-size:.82rem; }
@media (max-width: 720px){ .prov-row { grid-template-columns: 1fr; } }

/* Streaming-cursor (knippert tijdens live generatie) */
.stream-cursor { display:inline-block; color: var(--blue); animation: blink 1s steps(2,start) infinite; }
@keyframes blink { to { opacity: 0; } }

/* ============================================================
   Kennispagina's (statistieken, blog) — server-gerenderd, SEO
   ============================================================ */
.content-page { max-width: 900px; margin: 1.5rem auto 4rem; padding: 0 1rem; }
.content-page h1 { font-size: 2rem; margin-bottom: .6rem; color: var(--label); }
.content-page h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; color: var(--label); }
.content-page h3 { color: var(--label); }
.content-page .lead { font-size: 1.05rem; color: var(--label-2); line-height: 1.7; margin-bottom: 1.4rem; }
.content-page p { color: var(--label-2); line-height: 1.7; }
.content-page .muted { font-size: .82rem; color: var(--label-3); margin-top: 1.5rem; }

.data-table { width: 100%; border-collapse: collapse; margin: .8rem 0 1.5rem; font-size: .9rem; }
.data-table th { text-align: left; color: var(--label-2); font-weight: 600; padding: .5rem .4rem;
  border-bottom: 2px solid var(--separator); }
.data-table td { padding: .5rem .4rem; border-bottom: 1px solid var(--separator); color: var(--label); }
.data-table td:last-child, .data-table th:last-child { text-align: right; white-space: nowrap; }
.data-table .bar { display: inline-block; height: 8px; background: var(--blue); border-radius: 4px;
  vertical-align: middle; margin-right: 6px; min-width: 2px; }

.year-chart { display: flex; align-items: flex-end; gap: 3px; height: 200px; margin: 1rem 0 1.5rem;
  padding: 0 0 1.2rem; overflow-x: auto; }
.year-bar { flex: 1 0 14px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 100%; position: relative; }
.year-fill { width: 100%; background: linear-gradient(180deg, var(--blue), var(--indigo)); border-radius: 3px 3px 0 0; min-height: 2px; }
.year-label { position: absolute; bottom: -1.1rem; font-size: .6rem; color: var(--label-3); }

.cta-box { margin-top: 2.5rem; padding: 1.4rem; text-align: center;
  background: var(--blue-dim); border: 1px solid var(--blue); border-radius: var(--radius-lg); }
.cta-box h3 { margin-bottom: .3rem; }

/* Nav-tab als link (statistieken/blog) gelijktrekken met knoppen */
a.nav-tab { text-decoration: none; }

/* Blog */
.blog-list { display: grid; gap: 1rem; margin-top: 1rem; }
.blog-card { display: block; padding: 1.1rem 1.2rem; text-decoration: none;
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), var(--glass-inset); transition: var(--transition); }
.blog-card:hover { border-color: var(--blue); transform: translateY(-1px); text-decoration: none; }
.blog-card h2 { font-size: 1.2rem; margin: .2rem 0 .4rem; color: var(--label); }
.blog-card p { color: var(--label-2); font-size: .9rem; }
.blog-card-date { font-size: .76rem; color: var(--label-3); }
.blog-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.blog-tags .badge { background: var(--blue-dim); color: var(--blue); padding: .15rem .5rem;
  border-radius: var(--radius-pill); font-size: .72rem; }
.blog-article .blog-body { color: var(--label); line-height: 1.75; font-size: 1.02rem; }
.blog-article .blog-body h2 { font-size: 1.35rem; margin: 1.6rem 0 .5rem; }
.blog-article .blog-body h3 { font-size: 1.1rem; margin: 1.2rem 0 .4rem; }
.blog-article .blog-body p { color: var(--label-2); margin: .6rem 0; }
.blog-article .blog-body li { color: var(--label-2); margin: .3rem 0 .3rem 1.3rem; list-style: disc; }

/* Doorverwijzing naar partnerkantoren */
.referral-box { margin-top: 1.2rem; padding: 1.1rem 1.2rem; background: var(--green-dim);
  border: 1px solid var(--green); border-radius: var(--radius); }
.referral-box h4 { color: var(--label); margin-bottom: .3rem; }
.referral-box p { color: var(--label-2); font-size: .88rem; }
.kantoor-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .7rem .9rem; margin-top: .5rem; background: var(--fill-4);
  border: 1px solid var(--separator); border-radius: var(--radius-sm); }
.ref-done { display: inline-block; color: var(--green); font-size: .85rem; margin-top: .3rem; }

/* Homepage kennisteaser + blog-byline */
.kennis-teaser { margin: 1rem 0 2rem; }
.kennis-intro { color: var(--label-2); margin-bottom: 1rem; max-width: 720px; }
.kennis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: .8rem; }
.kennis-card { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem; text-decoration: none;
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow-sm), var(--glass-inset);
  transition: var(--transition); }
.kennis-card:hover { border-color: var(--blue); transform: translateY(-1px); text-decoration: none; }
.kennis-icon { font-size: 1.2rem; }
.kennis-titel { color: var(--label); font-weight: 600; font-size: .92rem; line-height: 1.3; }
.kennis-meta { color: var(--label-2); font-size: .78rem; line-height: 1.4; }
.kennis-links { margin-top: .9rem; font-size: .82rem; color: var(--label-2); }
.kennis-acties { margin-top: .9rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.blog-byline { font-size: .82rem; color: var(--label-2); margin-bottom: .4rem; }

/* FAQ-sectie (cornerstone-artikelen, AEO) */
.faq-section { margin-top: 2rem; }
.faq-section h2 { margin-bottom: .6rem; }
.faq-item { border: 1px solid var(--separator); border-radius: var(--radius-sm);
  padding: .7rem 1rem; margin-bottom: .5rem; background: var(--fill-4); }
.faq-item summary { cursor: pointer; color: var(--label); font-weight: 600; font-size: .95rem; }
.faq-item[open] summary { margin-bottom: .5rem; }
.faq-answer { color: var(--label-2); line-height: 1.6; font-size: .92rem; }

/* Gerelateerde artikelen (pillar-cluster) */
.related-articles { margin-top: 2rem; }
.related-articles h2 { margin-bottom: .6rem; }

/* Automatisering healthcheck */
.auto-health { margin-top: 1rem; padding: 1rem; background: var(--fill-4);
  border: 1px solid var(--separator); border-radius: var(--radius); }
.auto-health h4 { color: var(--label); margin-bottom: .5rem; }
.auto-health .rate-row { display: flex; justify-content: space-between; padding: .25rem 0;
  border-bottom: 1px solid var(--separator); font-size: .85rem; color: var(--label); }

/* Gerelateerde uitspraken op blogposts + uitspraakpagina */
.uitspraken-section { margin-top: 2rem; }
.uitspraken-section h2 { margin-bottom: .4rem; }
.uitspraken-lijst { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.uitspraak-link { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; text-decoration: none;
  background: var(--fill-4); border: 1px solid var(--separator); border-radius: var(--radius-sm); transition: var(--transition); }
.uitspraak-link:hover { border-color: var(--blue); text-decoration: none; }
.uitspraak-meta { color: var(--label-2); font-size: .85rem; }
.uitspraak-inhoud pre { white-space: pre-wrap; word-wrap: break-word; color: var(--label);
  background: var(--fill-4); border: 1px solid var(--separator); border-radius: var(--radius);
  padding: 1rem; font-size: .9rem; line-height: 1.6; max-height: 70vh; overflow: auto;
  font-family: ui-monospace, Menlo, monospace; }

/* Footer onafhankelijkheids-disclaimer */
.footer-disc { display:block; font-size:.72rem; color: var(--label-3); margin:.3rem 0; max-width:640px; }

/* ══════════════════════════════════════════════════════════════
   FASE 1+2 — Feature tiles, demo, procesdetector, chatbot, plans
   ══════════════════════════════════════════════════════════════ */

/* ── Feature tiles ─────────────────────────────────────────── */
.feature-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}
.feature-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.feature-tile:hover, .feature-tile:focus {
  border-color: var(--blue);
  background: var(--bg-elevated-2);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.feature-tile-icon  { font-size: 1.75rem; line-height: 1; }
.feature-tile-title { font-weight: 600; font-size: 1rem; color: var(--label); }
.feature-tile-desc  { font-size: .825rem; color: var(--label-2); line-height: 1.45; flex: 1; }
.feature-tile-cta   { font-size: .8rem; color: var(--blue); font-weight: 500; margin-top: .25rem; }
.feature-tile-cta-card { border-color: var(--blue); background: rgba(10,132,255,.07); }

/* ── Procesdetector ────────────────────────────────────────── */
.proces-detector {
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.fase-knoppen {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.fase-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  background: var(--bg-elevated-2);
  border: 1.5px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--label);
  min-width: 160px;
  text-align: left;
}
.fase-btn span:first-child { font-size: 1.25rem; }
.fase-btn span:nth-child(2) { font-weight: 600; font-size: .875rem; }
.fase-btn small { color: var(--label-2); font-size: .75rem; line-height: 1.3; }
.fase-btn:hover, .fase-btn.actief {
  border-color: var(--blue);
  background: rgba(10,132,255,.1);
}
.fase-advies {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(10,132,255,.07);
  border: 1px solid rgba(10,132,255,.25);
  border-radius: var(--radius-sm);
  color: var(--label);
  font-size: .875rem;
  line-height: 1.5;
  animation: fadeIn .25s ease;
}

/* ── Demo sectie ───────────────────────────────────────────── */
.demo-sectie {
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.demo-steps {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1rem;
}
.demo-step-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg-elevated-2);
  border: 1.5px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  cursor: pointer;
  color: var(--label);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
}
.demo-step-btn:hover { border-color: var(--blue); background: rgba(10,132,255,.1); }
.demo-step-btn.actief { border-color: var(--blue); background: rgba(10,132,255,.15); color: var(--blue); }
.demo-step-nr {
  background: var(--blue);
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.demo-output {
  background: var(--bg-elevated-2);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  overflow: hidden;
  animation: fadeIn .25s ease;
}
.demo-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 1rem;
  background: var(--bg-elevated-3);
  border-bottom: 1px solid var(--separator);
  font-size: .825rem;
  font-weight: 600;
  color: var(--label-2);
}
.demo-output-content {
  padding: 1rem;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--label);
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
}

/* ── Plan CTA strip ────────────────────────────────────────── */
.plan-cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  border-radius: var(--radius);
}
.plan-cta-free, .plan-cta-plus, .plan-cta-pro {
  font-size: .8rem;
  color: var(--label-2);
  flex: 1;
  min-width: 130px;
}
.plan-cta-plus strong { color: var(--blue); }
.plan-cta-pro strong  { color: var(--orange, #ff9f0a); }

/* ── Kennisbank compact ────────────────────────────────────── */
.kennis-grid-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.kennis-grid-compact .kennis-card { padding: .75rem; }

/* ── Abonnementenpagina ────────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.plan-card {
  background: var(--bg-elevated);
  border: 1.5px solid var(--separator);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  position: relative;
}
.plan-card.plan-featured { border-color: var(--blue); }
.plan-card.plan-current { border-color: var(--green, #30d158); }
.plan-badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--label-2);
  margin-bottom: -.2rem;
}
.plan-badge-plus { color: var(--blue); }
.plan-badge-pro  { color: var(--orange, #ff9f0a); }
.plan-price { font-size: 2rem; font-weight: 700; color: var(--label); line-height: 1.1; }
.plan-price span { font-size: .9rem; font-weight: 400; color: var(--label-2); }
.plan-name { font-size: 1.1rem; font-weight: 600; color: var(--label); margin-bottom: .25rem; }
.plan-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; font-size: .875rem; color: var(--label-2); flex: 1; }
.plan-features li { color: var(--label); }
.plan-features li:has(❌) { color: var(--label-3); }
.kantoor-cta {
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.kantoor-cta-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.kantoor-icon { font-size: 2rem; }
.abonnement-faq { display: flex; flex-direction: column; gap: .5rem; }
.abonnement-faq h3 { margin-bottom: .5rem; }
.abonnement-faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
}
.abonnement-faq summary { cursor: pointer; font-weight: 500; color: var(--label); }
.abonnement-faq p { margin: .5rem 0 0; color: var(--label-2); font-size: .875rem; }

/* ── Chatbot widget ────────────────────────────────────────── */
.chatbot-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}
.chatbot-toggle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(10,132,255,.4);
  transition: var(--transition);
  color: #fff;
}
.chatbot-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(10,132,255,.55); }
.chatbot-panel {
  width: 330px;
  max-height: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  animation: fadeIn .2s ease;
}
.chatbot-header {
  padding: .75rem 1rem;
  background: var(--bg-elevated-2);
  border-bottom: 1px solid var(--separator);
  display: flex; flex-direction: column; gap: .1rem;
  font-weight: 600; font-size: .9rem; color: var(--label);
}
.chatbot-subtitle { font-size: .75rem; color: var(--label-2); font-weight: 400; }
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.chatbot-msg {
  padding: .6rem .85rem;
  border-radius: 14px;
  font-size: .825rem;
  line-height: 1.45;
  max-width: 90%;
}
.chatbot-msg-bot {
  background: var(--bg-elevated-2);
  color: var(--label);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chatbot-msg-user {
  background: var(--blue);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .4rem .75rem;
  border-top: 1px solid var(--separator);
}
.chatbot-suggestion {
  background: var(--fill-4);
  border: 1px solid var(--separator);
  border-radius: 20px;
  padding: .3rem .7rem;
  font-size: .75rem;
  cursor: pointer;
  color: var(--label-2);
  transition: var(--transition);
}
.chatbot-suggestion:hover { border-color: var(--blue); color: var(--blue); }
.chatbot-input-row {
  display: flex;
  gap: .4rem;
  padding: .6rem;
  border-top: 1px solid var(--separator);
}
.chatbot-input-row .input { flex: 1; font-size: .825rem; }
