/* ==========================================================================
   FlevoVA Operations – hoofdstijl
   Licht, rustig, teal-accent. Geen vaste hoogtes rond tekst (Windows 125/150% scaling).
   ========================================================================== */
:root {
  --bg: #f4f7f6;
  --bg-2: #eef3f2;
  --card: #ffffff;
  --ink: #12343b;
  --ink-2: #2b4c53;
  --muted: #607a80;
  --faint: #8ea3a7;
  --line: #e1e9e8;
  --line-2: #d3dfdd;
  --accent: #0f9d9a;
  --accent-ink: #0a7774;
  --accent-soft: #e2f4f3;
  --accent-soft-2: #c9ebe9;
  --coral: #f05a4a;
  --amber: #e8a33a;
  --green: #2c9d63;
  --blue: #3b6fd8;
  --violet: #8a4fd1;
  --danger: #d6453a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(18, 52, 59, .05), 0 6px 18px rgba(18, 52, 59, .05);
  --shadow-lg: 0 10px 40px rgba(18, 52, 59, .12);
  --sidebar: 252px;
  --sidebar-compact: 74px;
  --content-max: 1380px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --map-h: 440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.12rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .8em; }
img, svg { max-width: 100%; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon-lg { width: 22px; height: 22px; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex: none; background: var(--card); border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  scrollbar-width: thin;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 20px 20px 16px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: #fff;
  display: grid; place-items: center; flex: none;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 1rem; }
.brand-text span { font-size: .74rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.nav { padding: 4px 12px 16px; flex: 1; }
.nav-group { margin-top: 14px; }
.nav-label { font-size: .7rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 6px 10px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--ink-2);
  font-weight: 500; font-size: .93rem; margin: 1px 0;
}
.nav a:hover { background: var(--bg-2); text-decoration: none; }
.nav a.is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nav a .icon { color: var(--muted); }
.nav a.is-active .icon { color: var(--accent); }
.nav-foot { padding: 14px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex: none;
}
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.nav-foot .who { min-width: 0; flex: 1; line-height: 1.25; }
.nav-foot .who strong { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-foot .who span { font-size: .76rem; color: var(--muted); }

body.nav-compact .sidebar { width: var(--sidebar-compact); }
body.nav-compact .brand-text, body.nav-compact .nav-label, body.nav-compact .nav a span,
body.nav-compact .nav-foot .who, body.nav-compact .nav-foot form { display: none; }
body.nav-compact .nav a { justify-content: center; padding: 10px; }
body.nav-compact .brand { justify-content: center; padding: 18px 0; }
body.nav-compact .nav-foot { justify-content: center; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: rgba(244, 247, 246, .88);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 900; border-bottom: 1px solid transparent;
}
.topbar .title { flex: 1; min-width: 0; }
.topbar .title h1 { font-size: 1.3rem; }
.topbar .title .crumb { font-size: .8rem; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.utc-clock { font-family: var(--mono); font-size: .82rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.menu-toggle { display: none; }
.content { padding: 8px 28px 40px; width: 100%; max-width: var(--content-max); }
body.wide .content { max-width: none; }
body.big-maps { --map-h: 640px; }

/* ---------- Cards & grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.mt { margin-top: 20px; }
.mt-sm { margin-top: 10px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head h2 { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; }
.card-head h2 .icon { color: var(--accent); }
.card-body { padding: 18px 20px; }
.card-body.flush { padding: 0; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

.stat { padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.stat-value { font-size: 1.65rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.stat-label { font-size: .84rem; color: var(--muted); margin-top: 3px; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; min-height: 38px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  font: 600 .9rem/1.2 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--bg-2); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.btn-soft:hover { background: var(--accent-soft-2); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: #fdeeed; border-color: #f2c5c1; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 6px 11px; min-height: 32px; font-size: .84rem; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.inline-form { display: inline; margin: 0; }

label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--ink-2); }
.field { margin-bottom: 16px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date],
input[type=datetime-local], input[type=url], select, textarea {
  width: 100%; padding: 9px 12px; min-height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
  color: var(--ink); font: 400 .94rem/1.4 var(--font);
}
input[type=color] { width: 60px; height: 40px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }

.search-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-input { position: relative; flex: 1; min-width: 240px; }
.search-input .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search-input input { padding-left: 38px; }
.search-bar select { width: auto; min-width: 140px; }

.segmented { display: inline-flex; background: var(--bg-2); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented a, .segmented button {
  padding: 6px 13px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .86rem; border: 0; background: none; cursor: pointer;
}
.segmented a:hover { text-decoration: none; background: rgba(255,255,255,.6); }
.segmented .on { background: #fff; color: var(--accent-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 11px; margin-bottom: 18px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: #e8f6ef; border-color: #bfe6d1; color: #17603d; }
.alert-error { background: #fdeeed; border-color: #f3c7c3; color: #8f2a22; }
.alert-info { background: var(--accent-soft); border-color: var(--accent-soft-2); color: var(--accent-ink); }

/* ---------- Tables: altijd volle breedte, stretch-kolommen ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; table-layout: auto; }
.table th {
  text-align: left; font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fbfcfc; white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcfc; }
.table .col-stretch { width: 40%; }
.table .col-stretch-sm { width: 22%; }
.table .col-fit { width: 1%; white-space: nowrap; }
.table .route { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.table .route .arrow { color: var(--faint); }
.table .sub { display: block; font-size: .8rem; color: var(--muted); }
.table tr.is-me td { background: var(--accent-soft); }
body.compact-tables .table td { padding: 7px 14px; }
body.compact-tables .table th { padding: 8px 14px; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.empty .icon { width: 30px; height: 30px; color: var(--faint); display: block; margin: 0 auto 8px; }

/* ---------- Badges / status ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 650; letter-spacing: .03em; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge-muted { background: var(--bg-2); color: var(--muted); }
.badge-warn { background: #fdf3e2; color: #9b6511; }
.badge-ok { background: #e6f5ec; color: #1f7a4a; }
.badge-danger { background: #fdeeed; color: #a3342b; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .74rem; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-boarding { background: #eef1f6; color: #4f5f80; }
.st-departed { background: #fdf3e2; color: #a2690f; }
.st-in-flight { background: var(--accent-soft); color: var(--accent-ink); }
.st-landing { background: #ece6fb; color: #6a3fb5; }
.st-arrived { background: #e6f5ec; color: #1f7a4a; }
.st-aborted { background: #fdeeed; color: #a3342b; }
.code { font-family: var(--mono); font-weight: 600; letter-spacing: .02em; }
.icao { font-family: var(--mono); font-weight: 650; background: var(--bg-2); padding: 2px 7px; border-radius: 6px; font-size: .86rem; }

/* ---------- Progress ---------- */
.progress { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 34px; height: 34px; padding: 0 9px; border-radius: 9px; display: inline-grid; place-items: center; font-weight: 600; font-size: .86rem; color: var(--ink-2); }
.pagination a:hover { background: var(--bg-2); text-decoration: none; }
.pagination .on { background: var(--accent); color: #fff; }
.pagination .gap { color: var(--faint); }

/* ---------- Maps ---------- */
.map { height: var(--map-h); width: 100%; border-radius: 0 0 var(--radius) var(--radius); background: #e7eeed; z-index: 1; }
.map.rounded { border-radius: var(--radius); }
.map-tall { height: calc(100vh - 150px); min-height: 520px; }
.leaflet-container { font: inherit; }
.fva-plane { background: none !important; border: 0 !important; }
.fva-plane svg { display: block; overflow: visible; filter: drop-shadow(0 1.5px 2px rgba(0, 0, 0, .35)); transition: transform .6s linear; }
.fva-plane.is-selected svg { filter: drop-shadow(0 0 6px rgba(240, 90, 74, .65)) drop-shadow(0 1.5px 2px rgba(0, 0, 0, .35)); }
.fva-plane-label {
  background: rgba(255,255,255,.94); border: 1px solid var(--line-2); color: var(--ink); font: 650 11px/1.2 var(--mono);
  padding: 2px 6px; border-radius: 6px; box-shadow: var(--shadow); white-space: nowrap;
}
.fva-plane-label::before { display: none; }
.fva-airport { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.fva-airport.hub { border-color: var(--ink); }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 12px 14px; font-size: .88rem; line-height: 1.45; }
.map-ctl { background: #fff; border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line-2); display: flex; overflow: hidden; }
.map-ctl button { border: 0; background: none; padding: 7px 11px; font: 600 .8rem var(--font); color: var(--ink-2); cursor: pointer; display: flex; gap: 6px; align-items: center; }
.map-ctl button + button { border-left: 1px solid var(--line); }
.map-ctl button:hover { background: var(--bg-2); }
.map-ctl button.on { color: var(--accent-ink); background: var(--accent-soft); }

.live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
.live-layout .map { height: calc(100vh - 170px); min-height: 560px; }
.flight-list { max-height: calc(100vh - 250px); overflow-y: auto; }
.flight-item { display: block; padding: 13px 18px; border-bottom: 1px solid var(--line); cursor: pointer; color: inherit; }
.flight-item:hover { background: #fafcfc; text-decoration: none; }
.flight-item.on { background: var(--accent-soft); }
.flight-item .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.flight-item .meta { font-size: .8rem; color: var(--muted); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.flight-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .9rem; }
.flight-detail dt { color: var(--muted); }
.flight-detail dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Dashboard ---------- */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f0f8f7 100%); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow);
}
.hero h2 { font-size: 1.45rem; }
.hero p { margin: 4px 0 0; color: var(--muted); }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-modules { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; grid-auto-flow: row dense; }
.dash-module { grid-column: span 12; position: relative; }
.dash-module[data-size="half"] { grid-column: span 6; }
.dash-module[data-size="third"] { grid-column: span 4; }
.dash-module[data-size="two-thirds"] { grid-column: span 8; }
.dash-edit-bar { display: none; position: absolute; top: 10px; right: 10px; z-index: 5; gap: 4px; }
body.dash-editing .dash-edit-bar { display: flex; }
body.dash-editing .dash-module { outline: 2px dashed var(--accent-soft-2); outline-offset: 4px; border-radius: var(--radius); cursor: grab; }
body.dash-editing .dash-module.is-hidden { opacity: .45; display: block !important; }
.dash-module.is-hidden { display: none; }
.dash-module.dragging { opacity: .5; }
.dispatch-card { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.dispatch-card .apt .code { font-size: 1.9rem; display: block; line-height: 1.1; }
.dispatch-card .apt .name { color: var(--muted); font-size: .86rem; }
.dispatch-card .mid { text-align: center; color: var(--muted); font-size: .82rem; }
.dispatch-card .mid .line { width: 120px; max-width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); margin: 6px auto; position: relative; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }
.kv div span { display: block; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kv div strong { font-size: 1rem; }
.metar { font-family: var(--mono); font-size: .82rem; background: var(--bg-2); border-radius: 9px; padding: 10px 12px; word-break: break-word; line-height: 1.5; }
.cat { font-weight: 700; font-size: .72rem; padding: 2px 8px; border-radius: 6px; }
.cat-VFR { background: #e6f5ec; color: #1f7a4a; } .cat-MVFR { background: #e5edfb; color: #2f5bb5; }
.cat-IFR { background: #fdeeed; color: #b13328; } .cat-LIFR { background: #f3e8fb; color: #7a33ae; }

/* ---------- Tours / awards / passport ---------- */
.tour-card { border-top: 4px solid var(--tour, var(--accent)); }
.leg-list { list-style: none; margin: 0; padding: 0; }
.leg-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.leg-list li:last-child { border-bottom: 0; }
.leg-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: .74rem; font-weight: 700; color: var(--muted); flex: none; }
.leg-list li.done .leg-dot { background: var(--tour, var(--accent)); border-color: var(--tour, var(--accent)); color: #fff; }
.leg-list li.next .leg-dot { border-color: var(--tour, var(--accent)); color: var(--tour, var(--accent)); }
.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.award { text-align: center; padding: 22px 16px; }
.award .medal { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; color: #fff; background: var(--award, var(--accent)); box-shadow: inset 0 -4px 0 rgba(0,0,0,.12), 0 4px 14px rgba(0,0,0,.08); }
.award .medal .icon { width: 30px; height: 30px; }
.award.locked .medal { background: var(--bg-2); color: var(--faint); box-shadow: none; }
.award.locked h3 { color: var(--muted); }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.stamp { border: 2px dashed var(--line-2); border-radius: 14px; padding: 14px; text-align: center; transform: rotate(var(--rot, 0deg)); background: #fff; }
.stamp.visited { border-style: solid; border-color: var(--stamp, var(--accent)); color: var(--stamp, var(--accent)); }
.stamp .code { font-size: 1.4rem; display: block; }
.stamp .name { font-size: .78rem; color: var(--muted); display: block; margin-top: 2px; }
.stamp .date { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; display: block; }

/* Leaderboards */
.podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 14px; align-items: end; margin-bottom: 8px; }
.podium .p { text-align: center; background: var(--bg-2); border-radius: 12px 12px 0 0; padding: 14px 8px; }
.podium .p1 { background: var(--accent-soft); padding-top: 22px; }
.podium .place { font-weight: 800; font-size: 1.4rem; color: var(--accent-ink); }
.podium .nm { font-weight: 650; font-size: .9rem; overflow-wrap: anywhere; }
.podium .val { font-size: .8rem; color: var(--muted); }

/* Profiel */
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.rank-bar { margin-top: 10px; max-width: 420px; }

/* Nieuws */
.news-item { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-body { white-space: pre-line; }

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side {
  background: radial-gradient(1200px 600px at 10% 10%, #e6f6f4 0%, transparent 60%), linear-gradient(160deg, #f6faf9, #e3f1ef);
  padding: 48px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line);
}
.auth-side h1 { font-size: 2.2rem; margin: 18px 0 10px; }
.auth-side p { color: var(--ink-2); max-width: 460px; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-form .card { width: 100%; max-width: 420px; }

/* Public home */
.public-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.public-top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.home-hero { padding: 40px 28px 10px; max-width: 1380px; margin: 0 auto; }
.home-hero h1 { font-size: 2.3rem; max-width: 760px; }
.home-hero p { font-size: 1.05rem; color: var(--ink-2); max-width: 680px; margin-top: 10px; }
.home-body { padding: 20px 28px 50px; max-width: 1380px; margin: 0 auto; }

/* Errors */
.error-page { max-width: 560px; margin: 12vh auto; text-align: center; padding: 0 20px; }
.error-page .big { font-size: 4rem; font-weight: 800; color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: 1fr; }
  .live-layout { grid-template-columns: 1fr; }
  .live-layout .map { height: 60vh; min-height: 380px; }
  .dash-module[data-size="third"] { grid-column: span 6; }
  .dash-module[data-size="two-thirds"] { grid-column: span 12; }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 1200; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); width: var(--sidebar) !important; }
  body.nav-open .sidebar { transform: none; }
  body.nav-compact .brand-text, body.nav-compact .nav-label, body.nav-compact .nav a span, body.nav-compact .nav-foot .who { display: revert; }
  .menu-toggle { display: inline-flex; }
  [data-toggle-nav-compact] { display: none; }
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .topbar-actions { order: 3; width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
  .grid-4 .stat { padding: 14px; }
  .grid-4 .stat-icon { display: none; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .dash-module[data-size] { grid-column: span 12; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .dispatch-card { grid-template-columns: 1fr; text-align: center; }
  .utc-clock { display: none; }
  .home-hero h1 { font-size: 1.7rem; }
}
