/* ==========================================================================
   FlevoVA Operations – huisstijl "Polder & Cheatline"
   Polder Navy · IJssel Blauw · Lagune · Flevo Oranje (alleen in de cheatline)
   Licht en rustig; geen vaste hoogtes rond tekst (Windows 125/150% scaling).
   ========================================================================== */
:root {
  --navy: #0E2A47;
  --navy-2: #163B63;
  --navy-3: #24507E;
  --blue: #1F6FB2;
  --blue-ink: #175A93;
  --blue-soft: #E7F0F9;
  --lagoon: #14A3A1;
  --lagoon-ink: #0D7C7A;
  --lagoon-soft: #E1F4F3;
  --orange: #F28A2E;
  --orange-soft: #FDEEDF;

  --bg: #F3F6FA;
  --bg-2: #EAF0F6;
  --card: #FFFFFF;
  --ink: #0E2A47;
  --ink-2: #33506F;
  --muted: #61768E;
  --faint: #93A4B7;
  --line: #E1E8F0;
  --line-2: #CFDAE6;

  --gold: #D8A62B;
  --gold-soft: #FBF1D6;
  --green: #22875A;
  --green-soft: #E3F4EB;
  --violet: #5B49B8;
  --violet-soft: #ECE9FA;
  --amber: #B8730E;
  --amber-soft: #FDF1DD;
  --danger: #C8423A;
  --danger-soft: #FCECEB;
  --coral: #F05A4A;

  /* compat met bestaande class-namen */
  --accent: var(--blue);
  --accent-ink: var(--blue-ink);
  --accent-soft: var(--blue-soft);
  --accent-soft-2: #CFE1F2;

  --r-lg: 18px;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 42, 71, .06);
  --shadow-lift: 0 10px 30px rgba(14, 42, 71, .10);
  --shadow-lg: 0 18px 50px rgba(14, 42, 71, .18);
  --sidebar: 256px;
  --sidebar-compact: 76px;
  --content-max: 1400px;
  --font: "Barlow", system-ui, "Segoe UI", sans-serif;
  --display: "Barlow Semi Condensed", "Barlow", system-ui, 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: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--navy); font-family: var(--display); font-weight: 700; letter-spacing: .005em; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.22rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 .8em; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(31, 111, 178, .45); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--display); font-weight: 600; letter-spacing: .03em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .88rem; }
.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; }

/* ---------- Cheatline: het merkteken ---------- */
.cheatline { display: flex; flex-direction: column; height: 6px; width: 100%; }
.cheatline span:first-child { flex: 4; background: var(--orange); }
.cheatline span:last-child { flex: 2.5; background: var(--lagoon); }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex: none; background: var(--navy); color: #C9D6E5;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: var(--navy-3) transparent;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 18px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; flex: none; line-height: 0; }
.brand-mark svg { display: block; width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-text strong { font: 700 1.2rem/1 var(--display); color: var(--navy); letter-spacing: .02em; }
.brand-text span { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.sidebar .brand-text strong, .public-top .brand-text strong, .auth-side .brand-text strong { color: #fff; }
.sidebar .brand-text span, .public-top .brand-text span, .auth-side .brand-text span { color: #8FA6C0; }
.sidebar .cheatline { height: 5px; flex: none; }
.sidebar .brand-logo rect:first-of-type { fill: #1B4572; }
.sidebar .brand { flex: none; }
.nav { padding: 8px 12px 16px; flex: 1; }
.nav-group { margin-top: 16px; }
.nav-label { font: 600 .82rem var(--display); color: #7C93AE; padding: 4px 12px 6px; letter-spacing: .04em; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; color: #C9D6E5;
  font-weight: 500; font-size: .96rem; margin: 1px 0; position: relative;
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav a.is-active { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; }
.nav a.is-active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--orange); }
.nav a .icon { color: #7C93AE; }
.nav a.is-active .icon, .nav a:hover .icon { color: #7FD3D1; }
.nav-foot { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; gap: 10px; }
.nav-foot .btn-ghost { color: #8FA6C0; }
.nav-foot .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); color: var(--navy);
  display: grid; place-items: center; font: 700 .9rem var(--display); flex: none;
}
.sidebar .avatar { background: var(--navy-3); color: #fff; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.5rem; }
.nav-foot .who { min-width: 0; flex: 1; line-height: 1.25; }
.nav-foot .who strong { display: block; font-size: .92rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-foot .who span { font-size: .8rem; color: #8FA6C0; }

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: 16px 32px 14px; background: rgba(243, 246, 250, .92);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 900;
}
.topbar .title { flex: 1; min-width: 0; }
.topbar .title h1 { font-size: 1.65rem; }
.topbar .title .crumb { font-size: .86rem; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.utc-clock { font: 600 .9rem var(--display); color: var(--navy); background: var(--card); border: 1px solid var(--line); padding: 6px 11px; border-radius: 8px; white-space: nowrap; letter-spacing: .04em; }
.menu-toggle { display: none; }
.content { padding: 8px 32px 48px; width: 100%; max-width: var(--content-max); }
body.wide .content { max-width: none; }
body.big-maps { --map-h: 640px; }

/* ---------- Grid & cards ---------- */
.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(--r); 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: 10px; }
.card-head h2 .icon { color: var(--lagoon); }
.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: .9rem; }

/* Statistieken: getal groot, label eronder, icoon als klein lagune-accent */
.stat { padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; position: relative; overflow: hidden; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-2); color: var(--navy-3); display: grid; place-items: center; flex: none; }
.stat-value { font: 700 2rem/1 var(--display); color: var(--navy); letter-spacing: .01em; }
.stat-label { font-size: .9rem; color: var(--muted); margin-top: 5px; }

/* ---------- Buttons & formulieren ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; min-height: 40px;
  border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--navy);
  font: 600 .95rem/1.2 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--bg-2); text-decoration: none; color: var(--navy); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.btn-soft { background: var(--blue-soft); border-color: transparent; color: var(--blue-ink); }
.btn-soft:hover { background: #D6E6F5; color: var(--blue-ink); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: #F0C6C2; color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 6px 11px; min-height: 34px; font-size: .88rem; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 1.05rem; 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: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.field { margin-bottom: 16px; }
.field .hint { font-size: .84rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
input:not([type]), 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: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
  color: var(--ink); font: 400 1rem/1.4 var(--font);
}
input[type=color] { width: 60px; height: 42px; 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(--blue); box-shadow: 0 0 0 3px rgba(31, 111, 178, .15); }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.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: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search-input input { padding-left: 40px; }
.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 14px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .9rem; border: 0; background: none; cursor: pointer; }
.segmented a:hover { text-decoration: none; background: rgba(255, 255, 255, .7); }
.segmented .on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(14, 42, 71, .12); }

/* ---------- Meldingen ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--green-soft); border-color: #BFE3CF; color: #17603D; }
.alert-error { background: var(--danger-soft); border-color: #F0C6C2; color: #8F2A22; }
.alert-info { background: var(--blue-soft); border-color: #CFE1F2; color: var(--blue-ink); }
.alert[hidden] { display: none; }

/* ---------- Tabellen: altijd volle breedte, stretch-kolommen ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font: 600 .86rem var(--display); color: var(--muted); letter-spacing: .03em;
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: #F8FAFC; 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: #F8FBFE; }
.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: .85rem; color: var(--muted); }
.table tr.is-me td { background: var(--blue-soft); }
body.compact-tables .table td { padding: 7px 14px; }
body.compact-tables .table th { padding: 8px 14px; }
.empty { padding: 36px 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 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge-accent { background: var(--blue-soft); color: var(--blue-ink); }
.badge-muted { background: var(--bg-2); color: var(--muted); }
.badge-warn { background: var(--amber-soft); color: var(--amber); }
.badge-ok { background: var(--green-soft); color: var(--green); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-gold { background: var(--gold-soft); color: #8A6510; }
.status { display: inline-flex; align-items: center; gap: 7px; font: 700 .82rem var(--display); letter-spacing: .06em; padding: 4px 11px; border-radius: 6px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-boarding { background: #EDF1F6; color: #4A5D78; }
.st-departed { background: var(--amber-soft); color: var(--amber); }
.st-in-flight { background: var(--lagoon-soft); color: var(--lagoon-ink); }
.st-landing { background: var(--violet-soft); color: var(--violet); }
.st-arrived { background: var(--green-soft); color: var(--green); }
.st-aborted { background: var(--danger-soft); color: var(--danger); }
.code { font-family: var(--display); font-weight: 700; letter-spacing: .04em; color: var(--navy); }
a.code:hover { color: var(--blue); }
.icao { font: 700 .92rem var(--display); letter-spacing: .06em; background: var(--bg-2); color: var(--navy); padding: 2px 8px; border-radius: 6px; }

/* ---------- Voortgang ---------- */
.progress { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--lagoon)); border-radius: 99px; }

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

/* ---------- Kaarten ---------- */
.map { height: var(--map-h); width: 100%; border-radius: 0 0 var(--r) var(--r); background: #E4ECF4; z-index: 1; }
.map.rounded { border-radius: var(--r); }
.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, .95); border: 1px solid var(--line-2); color: var(--navy); font: 700 12px/1.2 var(--display); letter-spacing: .04em; 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(--blue); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.fva-airport.hub { border-color: var(--navy); }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow-lg); }
.map-ctl { background: #fff; border-radius: 10px; box-shadow: var(--shadow-lift); border: 1px solid var(--line-2); display: flex; overflow: hidden; }
.map-ctl button { border: 0; background: none; padding: 7px 12px; font: 600 .86rem var(--font); color: var(--navy); 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: #fff; background: var(--navy); }

.live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; 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; border-left: 3px solid transparent; }
.flight-item:hover { background: #F8FBFE; text-decoration: none; color: inherit; }
.flight-item.on { background: var(--blue-soft); border-left-color: var(--orange); }
.flight-item .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.flight-item .meta { font-size: .86rem; color: var(--muted); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.flight-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0; font-size: .95rem; }
.flight-detail dt { color: var(--muted); }
.flight-detail dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Hero (dashboard / home): lucht + polderhorizon + toestel ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff;
  background:
    linear-gradient(180deg, rgba(14, 42, 71, 0) 62%, rgba(14, 42, 71, .35) 100%),
    linear-gradient(160deg, #123A63 0%, #1F6FB2 55%, #5FA9D9 100%);
  padding: 28px 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 46%); gap: 12px; align-items: center;
  min-height: 220px;
}
.hero::after { /* polderlijnen aan de horizon */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 120px, rgba(255,255,255,0) 120px 240px),
              linear-gradient(180deg, rgba(20, 163, 161, .0), rgba(20, 163, 161, .35));
  border-top: 1px solid rgba(255, 255, 255, .18); pointer-events: none;
}
.hero h2 { font-size: 2.1rem; color: #fff; font-weight: 700; }
.hero p { margin: 6px 0 0; color: #CFE0F1; }
.hero .hero-art { position: relative; z-index: 1; align-self: end; margin-bottom: -8px; }
.hero .hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(4, 18, 34, .35)); }
.hero .hero-text { position: relative; z-index: 1; padding-bottom: 34px; }
.hero h1 { font-size: 2.6rem; color: #fff; max-width: 18ch; }
.hero .btn { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); color: #fff; }
.hero .btn:hover { background: rgba(255, 255, 255, .2); }
.hero .btn-primary { background: #fff; border-color: #fff; color: var(--navy); }
.hero .btn-primary:hover { background: #EAF2FA; color: var(--navy); }
.hero .rank-line { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.hero .rank-line .rank-name { font: 600 1.05rem var(--display); }
.hero .rank-line .progress { width: 180px; background: rgba(255, 255, 255, .2); }
.hero .rank-line .progress > span { background: var(--orange); }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.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 #B9D2EA; outline-offset: 4px; border-radius: var(--r); 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; }

/* ---------- Instapkaart (dispatch) ---------- */
.dispatch-card { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.dispatch-card .apt .code { font-size: 2.4rem; display: block; line-height: 1; letter-spacing: .02em; }
.dispatch-card .apt .name { color: var(--muted); font-size: .9rem; }
.dispatch-card .mid { text-align: center; color: var(--muted); font-size: .88rem; }
.dispatch-card .mid .line { width: 140px; max-width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px); margin: 8px auto; position: relative; }
.dispatch-card .mid .line::after { content: "✈"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); background: var(--card); color: var(--blue); padding: 0 6px; font-size: 1rem; }
.boarding-pass { position: relative; overflow: hidden; }
.boarding-pass > .cheatline { height: 6px; }
.boarding-pass .bp-body { display: grid; grid-template-columns: minmax(0, 1fr) 210px; }
.boarding-pass .bp-main { padding: 22px 24px; }
.boarding-pass .bp-stub { padding: 22px 20px; border-left: 2px dashed var(--line-2); background: #F8FAFC; position: relative; display: flex; flex-direction: column; gap: 12px; }
.boarding-pass .bp-stub::before, .boarding-pass .bp-stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.boarding-pass .bp-stub::before { top: -12px; }
.boarding-pass .bp-stub::after { bottom: -12px; }
.bp-label { font: 600 .8rem var(--display); color: var(--muted); letter-spacing: .04em; }
.bp-value { font: 700 1.15rem var(--display); color: var(--navy); }
.barcode { height: 46px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 4px, var(--navy) 4px 5px, transparent 5px 8px, var(--navy) 8px 11px, transparent 11px 12px); opacity: .85; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.kv div span { display: block; font: 600 .82rem var(--display); color: var(--muted); letter-spacing: .03em; }
.kv div strong { font-size: 1.05rem; }
/* Actueel weer bij een luchthaven */
.wx-now { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wx-ic { color: var(--accent, var(--blue-ink)); flex: none; }
.wx-main { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.wx-main strong { font-size: 1.5rem; line-height: 1.1; }
.wx-main span { color: var(--muted); font-size: .9rem; }
.wx-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--muted); }
.wx-facts b { color: var(--ink, inherit); font-weight: 600; }
.metar { font-family: var(--mono); font-size: .84rem; background: var(--bg-2); border-radius: 8px; padding: 10px 12px; word-break: break-word; line-height: 1.55; }
.cat { font: 700 .78rem var(--display); padding: 2px 8px; border-radius: 5px; }
.cat-VFR { background: var(--green-soft); color: var(--green); } .cat-MVFR { background: var(--blue-soft); color: var(--blue-ink); }
.cat-IFR { background: var(--danger-soft); color: var(--danger); } .cat-LIFR { background: var(--violet-soft); color: var(--violet); }

/* ---------- Tours ---------- */
.tour-card { border-top: 0; overflow: hidden; }
.tour-card::before { content: ""; display: block; height: 6px; background: var(--tour, var(--blue)); }
.leg-list { list-style: none; margin: 0; padding: 0; }
.leg-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.leg-list li:last-child { border-bottom: 0; }
.leg-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font: 700 .82rem var(--display); color: var(--muted); flex: none; background: #fff; }
.leg-list li.done .leg-dot { background: var(--tour, var(--blue)); border-color: var(--tour, var(--blue)); color: #fff; }
.leg-list li.next .leg-dot { border-color: var(--tour, var(--blue)); color: var(--tour, var(--blue)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tour, #1F6FB2) 18%, transparent); }

/* ---------- Awards: vitrine met medailles ---------- */
.award-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 24px 28px; }
.award-hero h2 { font-size: 1.7rem; }
.tier-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.tier-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.award-section { margin-top: 26px; }
.award-section > h3 { font-size: 1.2rem; margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; }
.award-section > h3 small { font: 500 .9rem var(--font); color: var(--muted); }
.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.award { text-align: center; padding: 18px 16px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.award .medal-wrap { height: 120px; display: grid; place-items: end center; margin-bottom: 6px; }
.award h3 { font-size: 1.08rem; }
.award p { font-size: .9rem; color: var(--muted); margin: 2px 0 8px; min-height: 2.6em; }
.award.locked h3 { color: var(--ink-2); }
.award .progress { width: 100%; margin-top: auto; }
.award .award-meta { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.award .tier-chip { font: 700 .74rem var(--display); letter-spacing: .06em; padding: 2px 8px; border-radius: 5px; }
.tier-chip.tier-bronze { background: #F6E6D9; color: #7A4522; }
.tier-chip.tier-silver { background: #EDF1F5; color: #4F5D6E; }
.tier-chip.tier-gold { background: var(--gold-soft); color: #7D5B0C; }
.tier-chip.tier-platinum { background: #E3EFF8; color: #3D6487; }
.award.just-earned { box-shadow: 0 0 0 2px var(--gold), var(--shadow-lift); }
.medal-svg { display: block; overflow: visible; }
.medal-svg.is-locked { filter: grayscale(.75); opacity: .62; }
.medal-strip { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; }
.medal-strip .medal-svg { filter: drop-shadow(0 2px 3px rgba(14, 42, 71, .15)); }

/* Flevo Miles */
.miles { display: inline-flex; align-items: center; gap: 6px; font: 700 1rem var(--display); color: #7A5810; }
.miles .miles-coin { flex: none; }
.miles-total { display: flex; align-items: center; gap: 14px; }
.miles-total .stat-value { color: #7A5810; }

/* Rang / epaulet */
.insignia { display: block; flex: none; filter: drop-shadow(0 2px 4px rgba(14, 42, 71, .2)); }
.rank-card { display: flex; gap: 18px; align-items: center; }

/* Paspoort */
.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: double; border-width: 4px; border-color: var(--stamp, var(--blue)); color: var(--stamp, var(--blue)); }
.stamp .code { font-size: 1.5rem; display: block; color: inherit; }
.stamp .name { font-size: .84rem; color: var(--muted); display: block; margin-top: 2px; }
.stamp .date { font: 700 .74rem var(--display); letter-spacing: .06em; margin-top: 6px; display: block; }

/* Leaderboards */
.podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 12px; align-items: end; margin-bottom: 8px; }
.podium .p { text-align: center; background: var(--bg-2); border-radius: 12px 12px 0 0; padding: 12px 8px 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.podium .p1 { background: var(--gold-soft); padding-top: 18px; }
.podium .p2 { background: #EDF1F5; }
.podium .p3 { background: #F6E6D9; }
.podium .place { font: 700 1.3rem var(--display); color: var(--navy); }
.podium .nm { font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.podium .val { font: 600 .9rem var(--display); color: var(--muted); }
.podium .medal-svg { margin-bottom: 2px; }

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

/* 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; }

/* ---------- Login / registratie ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth-side {
  position: relative; overflow: hidden; color: #fff; padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(165deg, #0E2A47 0%, #1A4F82 55%, #3E8CC8 100%);
}
.auth-side .brand-text strong { color: #fff; }
.auth-side h1 { font-size: 2.6rem; margin: 18px 0 10px; color: #fff; max-width: 15ch; }
.auth-side p { color: #D3E2F1; max-width: 46ch; font-size: 1.05rem; }
.auth-side .auth-art { margin: 10px -20px -10px 0; }
.auth-side .auth-art svg { width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgba(3, 14, 28, .4)); }
.auth-side a { color: #CFE3F5; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-form .card { width: 100%; max-width: 430px; overflow: hidden; }

/* ---------- Publieke pagina ---------- */
.public-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 32px; background: var(--navy); gap: 12px; flex-wrap: wrap; }
.public-top .brand { padding: 0; }
.public-top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.public-top .btn-ghost { color: #C9D6E5; }
.public-top .btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.public-top .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.home-hero { max-width: 1400px; margin: 0 auto; }
.home-hero h1 { font-size: 2.6rem; color: #fff; max-width: 18ch; }
.home-hero p { font-size: 1.1rem; color: #D3E2F1; max-width: 52ch; margin-top: 12px; }
.home-body { padding: 24px 32px 56px; max-width: 1400px; margin: 0 auto; }

/* Fouten */
.error-page { max-width: 560px; margin: 12vh auto; text-align: center; padding: 0 20px; }
.error-page .big { font: 700 4.5rem var(--display); color: var(--navy); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 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; }
  .hero { grid-template-columns: 1fr; }
  .hero .hero-art { max-width: 560px; }
}
@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; padding: 14px 16px; }
  .topbar-actions { order: 3; width: 100%; }
  .content { padding: 8px 16px 40px; }
  .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
  .grid-4 .stat { padding: 14px; }
  .grid-4 .stat-icon { display: none; }
  .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; }
  .boarding-pass .bp-body { grid-template-columns: 1fr; }
  .boarding-pass .bp-stub { border-left: 0; border-top: 2px dashed var(--line-2); }
  .utc-clock { display: none; }
  .hero { padding: 22px; }
  .hero h2, .hero h1 { font-size: 1.7rem; }
  .award-hero { grid-template-columns: 1fr; }
  .public-top, .home-body { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Hero met foto (dashboard) ----------
   Foto vult de hele header; navy verloop links voor leesbare tekst, toestel en zonsondergang rechts vrij. */
.hero.hero-photo {
  grid-template-columns: minmax(0, 560px) 1fr;
  min-height: 320px;
  padding: 32px 36px;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(10, 30, 52, .94) 0%, rgba(10, 30, 52, .82) 32%, rgba(10, 30, 52, .25) 58%, rgba(10, 30, 52, 0) 72%),
    linear-gradient(0deg, rgba(10, 30, 52, .55) 0%, rgba(10, 30, 52, 0) 38%),
    var(--hero-img);
  background-size: cover, cover, cover;
  background-position: center, center, 62% 38%;
  background-repeat: no-repeat;
  box-shadow: 0 14px 34px rgba(14, 42, 71, .18);
}
.hero.hero-photo::after { display: none; }                 /* geen polderlijnen over de foto */
.hero.hero-photo .hero-text { padding-bottom: 0; }
.hero.hero-photo .hero-text h2 { font-size: 2.3rem; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.hero.hero-photo .hero-text p { color: #DCE7F3; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.hero.hero-photo .cheatline { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 2; }
.hero.hero-photo .hero-credit { position: absolute; right: 18px; bottom: 14px; z-index: 2; font: 600 .8rem var(--display); color: rgba(255, 255, 255, .78); letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
@media (max-width: 1180px) {
  .hero.hero-photo {
    grid-template-columns: 1fr;
    background-image:
      linear-gradient(90deg, rgba(10, 30, 52, .95) 0%, rgba(10, 30, 52, .88) 40%, rgba(10, 30, 52, .35) 70%, rgba(10, 30, 52, .05) 88%),
      linear-gradient(0deg, rgba(10, 30, 52, .55) 0%, rgba(10, 30, 52, 0) 38%),
      var(--hero-img);
    background-position: center, center, 58% 40%;
  }
}
@media (max-width: 860px) {
  /* Mobiel: foto als heldere band bovenin, tekst daaronder op navy */
  .hero.hero-photo {
    background-image:
      linear-gradient(180deg, rgba(10, 30, 52, 0) 0, rgba(10, 30, 52, .15) 120px, rgba(10, 30, 52, .85) 205px, #0A1E34 245px),
      var(--hero-img-sm, var(--hero-img));
    background-size: 100% 100%, auto 250px;
    background-position: center, 66% 0;
    min-height: 0; padding: 205px 22px 26px;
  }
  .hero.hero-photo .hero-text h2 { font-size: 1.7rem; }
  .hero.hero-photo .hero-credit { display: none; }
}

/* Live kaart: plaatsnaam met ICAO eronder */
.route-ends { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.route-ends .end { min-width: 0; max-width: 45%; }
.route-ends .end.to { text-align: right; }
.route-ends .city { font: 700 1.12rem/1.2 var(--display); color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-ends .code { font: 600 .8rem var(--display); letter-spacing: .08em; color: var(--muted); margin-top: 2px; }
.route-ends > .muted { padding-bottom: 2px; }
.flight-item .route-line { font-weight: 650; color: var(--navy); }
.flight-item .route-line small { font: 600 .74rem var(--display); letter-spacing: .06em; color: var(--muted); margin-left: 2px; }

/* Briefing: automatische route */
.route-text { line-height: 1.7; }
.route-text .muted { font-weight: 700; }
.kv strong .badge { display: inline-block; width: auto; margin-left: 4px; vertical-align: 2px; font-size: .72rem; padding: 1px 7px; }

/* Taalkeuze */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 7px 10px; border-radius: 10px;
  font-weight: 600; font-size: 13px; letter-spacing: .04em; border: 1px solid var(--line); background: var(--card, #fff); color: var(--ink); min-height: 36px; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.lang-switch.lang-dark summary { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.lang-switch .lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(11,31,53,.18); padding: 6px; z-index: 1000; }
.lang-switch .lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.lang-switch .lang-menu a:hover { background: rgba(14,42,71,.06); }
.lang-switch .lang-menu a[aria-current] { font-weight: 700; }
.lang-corner { position: fixed; top: 14px; right: 14px; z-index: 50; }

/* Opgemaakte tekst (pagina's, nieuws) */
.prose { line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: 1.45rem; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 1.15rem; margin: 1.2em 0 .4em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin: .2em 0; }
.prose blockquote { margin: 0 0 1em; padding: 10px 16px; border-left: 4px solid var(--lagoon); background: var(--lagoon-soft); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.prose a { color: var(--blue); text-decoration: underline; }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 1.5em 0; }
.page-body { max-width: 820px; }

/* Editor */
.editor { border: 1px solid var(--line-2); border-radius: 12px; background: #fff; overflow: hidden; }
.ed-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 2; }
.ed-btn { min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ink); font: 600 15px var(--font, inherit); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ed-btn:hover { background: #fff; border-color: var(--line-2); }
.ed-btn.on { background: var(--blue-soft); color: var(--blue-ink); border-color: #BFD6EE; }
.ed-btn:focus-visible, .ed-block:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.ed-block { height: 34px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font: inherit; font-size: .9rem; padding: 0 6px; color: var(--ink); }
.ed-sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 4px; }
.ed-linkbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-bottom: 1px solid var(--line); background: #FBFCFE; }
.ed-linkbar input { flex: 1 1 220px; min-width: 0; }
.ed-area { min-height: 260px; max-height: 70vh; overflow: auto; padding: 16px 18px; outline: none; }
.ed-area:focus { box-shadow: inset 0 0 0 2px #BFD6EE; }
.editor .hint { padding: 0 12px 10px; }
.ed-source[hidden] { display: none; }
.page-menu-badge { font-size: .75rem; }
.grid-editor { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 860px) { .grid-editor { grid-template-columns: 1fr; } .grid-editor > .card { position: static !important; } }
.ed-linkbar[hidden] { display: none; }
.editor .ed-block { width: auto; min-width: 140px; flex: 0 0 auto; }
.editor .ed-linkbar input, .editor .ed-linkbar select { width: auto; flex: 1 1 200px; min-width: 0; }

/* ---------- Events ---------- */
.section-title { font: 650 1rem var(--display); color: var(--ink-2); margin: 0 0 12px; }
.section-title.mt { margin-top: 26px; }
.event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.event-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.event-card:hover { border-color: var(--lagoon); transform: translateY(-1px); }
.event-card.is-past { opacity: .78; }
.event-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.event-title { font: 650 1.05rem var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-main .route { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.event-state { display: grid; gap: 6px; justify-items: end; }
.event-date { flex: 0 0 auto; width: 58px; border-radius: 12px; overflow: hidden; text-align: center; background: var(--blue-soft); color: var(--navy); display: grid; line-height: 1.1; padding-bottom: 6px; }
.event-date .wd { background: var(--navy); color: #fff; font: 600 .7rem var(--display); text-transform: uppercase; letter-spacing: .06em; padding: 3px 0; }
.event-date .d { font: 700 1.5rem var(--display); padding-top: 4px; }
.event-date .m { font: 600 .75rem var(--display); text-transform: uppercase; color: var(--muted); }
.event-date.big { width: 74px; }
.event-date.big .d { font-size: 2rem; }
.rank-types { display: flex; gap: 4px; flex-wrap: wrap; }
.badge-lock { background: var(--amber-soft); color: var(--ink-2); }
@media (max-width: 520px) {
  .event-list { grid-template-columns: 1fr; }
  .event-card { flex-wrap: wrap; }
  .event-state { justify-items: start; width: 100%; grid-auto-flow: column; justify-content: start; }
}

/* ---------- Forum ---------- */
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto; border-radius: 999px; background: var(--orange); color: #fff; font: 700 .72rem/1 var(--font); }
.btn .nav-badge, .op-tabs .nav-badge, .hz-sub .nav-badge { margin-left: 4px; }
.nav-dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--bg); }
.forum-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.forum-tools .search-bar { flex: 1; min-width: 260px; }
.forum-tools-text { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fcat { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(180px, 230px); gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.fcat:last-child { border-bottom: 0; }
.fcat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.fcat-icon .icon { width: 22px; height: 22px; }
.fcat-name { font: 650 1.08rem var(--display); color: var(--ink); margin-right: 6px; }
.fcat-main p { margin: 3px 0 0; color: var(--muted); font-size: .92rem; }
.fcat-stats { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); text-align: right; white-space: nowrap; }
.fcat-stats strong { color: var(--ink); }
.fcat-last { min-width: 0; font-size: .9rem; border-left: 1px solid var(--line); padding-left: 14px; }
.fcat-last a { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcat .sub, .flatest .sub, .fresult .sub { display: block; font-size: .84rem; color: var(--muted); }
.fcat-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.fcat-chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.flatest { list-style: none; margin: 0; padding: 4px 0; }
.flatest li { padding: 10px 20px; border-bottom: 1px solid var(--line); position: relative; }
.flatest li:last-child { border-bottom: 0; }
.flatest li a { font-weight: 600; color: var(--ink); }
.flatest li.is-unread::before { content: ""; position: absolute; left: 8px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.ftopics .ftopic-state { text-align: center; color: var(--muted); }
.fdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
.fdot.is-read { background: var(--line-2); box-shadow: none; }
.ftopic-title { font-weight: 600; color: var(--ink); font-size: 1rem; }
.ftopic.is-unread .ftopic-title { font-weight: 750; }
.ftopic-num strong { display: block; font-family: var(--display); }
.ftopic-num .sub { font-size: .75rem; }
.ftopic-last { font-size: .9rem; min-width: 130px; }
.fpage { display: inline-block; min-width: 20px; padding: 0 5px; margin-left: 2px; border: 1px solid var(--line-2); border-radius: 5px; text-align: center; font-size: .78rem; color: var(--ink-2); }
.fmod { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 8px 14px; }
.fmod summary { cursor: pointer; font-weight: 600; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.fmod-body { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 10px; }
.fmod-body .row { gap: 6px; flex-wrap: nowrap; }
.fposts { display: flex; flex-direction: column; gap: 14px; }
.fpost { display: grid; grid-template-columns: 190px minmax(0, 1fr); scroll-margin-top: 120px; }
.fpost:target { box-shadow: 0 0 0 2px var(--blue), var(--shadow); }
.fpost-author { padding: 18px 16px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 55%, var(--card)); border-radius: var(--r) 0 0 var(--r); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.fpost-author .avatar { width: 52px; height: 52px; font-size: 1.1rem; }
.fpost-who { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.fpost-name { font-weight: 700; color: var(--ink); }
.fpost-rank { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.fpost-rank .insignia { width: 46px; height: auto; }
.fpost-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; width: 100%; font-size: .82rem; }
.fpost-facts dt { color: var(--muted); }
.fpost-facts dd { margin: 0; font-weight: 700; font-family: var(--display); }
.fpost-main { display: flex; flex-direction: column; min-width: 0; padding: 14px 20px 12px; }
.fpost-meta { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: .85rem; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fpost-num { margin-left: auto; color: var(--muted); font-weight: 600; }
.fpost-body { padding: 14px 0 6px; flex: 1; }
.fpost-body blockquote p:first-child strong { font-size: .88rem; }
.fpost-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); }
.fpost-spacer { flex: 1; }
.flike.is-on { color: var(--danger); }
.flike.is-on .icon { fill: currentColor; }
.flike b { font-weight: 700; }
.flike-static { display: inline-flex; gap: 5px; align-items: center; color: var(--muted); font-size: .88rem; padding: 0 8px; }
.freport .dd-panel { width: 300px; padding: 12px; }
.freport-form { display: grid; gap: 8px; }
.freport-form label { margin: 0; }
.freport > summary { list-style: none; }
.fpost.is-first .fpost-author { border-top-left-radius: var(--r); }
.fresult { display: block; padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--ink); }
.fresult:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.fresult-text { display: block; margin-top: 4px; color: var(--ink-2); font-size: .93rem; }
@media (max-width: 860px) {
  .fcat { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .fcat-stats { grid-column: 2; flex-direction: row; gap: 12px; text-align: left; }
  .fcat-last { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px dashed var(--line); padding-top: 8px; }
  .fpost { grid-template-columns: 1fr; }
  .fpost-author { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; padding: 12px 14px; }
  .fpost-author .avatar { width: 40px; height: 40px; }
  .fpost-facts { display: none; }
  .fpost-main { padding: 12px 14px; }
  .ftopics th:nth-child(4), .ftopics td:nth-child(4) { display: none; }
}

/* "Draait op VAHangar" onderaan elke pagina (alle thema's) */
.powered-by { margin: 40px 0 6px; padding-top: 16px; text-align: center; font-size: .8rem; line-height: 1.4; }
.powered-by > a, .powered-by > span { display: inline-flex; align-items: center; gap: 7px; color: inherit; opacity: .62; text-decoration: none; transition: opacity .15s; }
.powered-by > a:hover { opacity: 1; text-decoration: none; }
.powered-by svg { width: 14px; height: 14px; flex: none; }
.powered-by b { font-weight: 700; letter-spacing: .01em; }
.powered-inline { color: inherit; opacity: .8; text-decoration: none; }
.powered-inline:hover { opacity: 1; text-decoration: underline; }

/* ---------- Eigen headerbanner van de VA (dashboard en voorpagina) ----------
   banner:  de hele afbeelding in de eigen verhouding, welkomsttekst eronder (niets wordt bijgesneden)
   overlay: tekst over de foto; het vlak heeft de verhouding van de afbeelding, zodat hij (bijna) heel zichtbaar is */
.hero.hero-own { overflow: hidden; }
.hero.hero-own::after { display: none; }
.hero-own .hero-own-img { display: block; max-width: none; }
.hero-own > .cheatline { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 2; }
.hero-own .hero-text { position: relative; z-index: 1; }

:root .hero.hero-own.hero-own-banner { display: block; padding: 0; min-height: 0; }  /* ook als een thema de hero anders opvult */
.hero-own-banner .hero-own-img { width: 100%; height: auto; aspect-ratio: var(--hero-ratio); object-fit: cover; }
.hero-own-banner .hero-text { padding: 24px 32px 32px; }
.hero-own-banner .hero-text h1 { max-width: none; }

.hero.hero-own-overlay { aspect-ratio: var(--hero-ratio, 3 / 1); min-height: 280px; grid-template-columns: minmax(0, 560px) 1fr; background: var(--navy); }
.hero-own-overlay .hero-own-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-own-overlay::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 30, 52, .82) 0%, rgba(10, 30, 52, .55) 28%, rgba(10, 30, 52, 0) 52%); }
.hero-own-overlay .hero-text { padding-bottom: 0; }
.hero-own-overlay .hero-text h1, .hero-own-overlay .hero-text h2 { text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.hero-own-overlay .hero-text p { color: #E4ECF5; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
@media (max-width: 860px) {
  /* telefoon: altijd als banner, tekst eronder */
  :root .hero.hero-own.hero-own-overlay { display: block; padding: 0; min-height: 0; aspect-ratio: auto; }
  .hero-own-overlay .hero-own-img { position: static; width: 100%; height: auto; aspect-ratio: var(--hero-ratio); }
  .hero-own-overlay::before { display: none; }
  .hero-own-overlay .hero-text, .hero-own-banner .hero-text { padding: 20px 20px 26px; }
}

/* ---------- Landingswedstrijd ---------- */
.landing-badge { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .82rem; white-space: nowrap; background: var(--bg-2); color: var(--ink-2); }
.landing-badge b { font-family: var(--mono, ui-monospace, monospace); font-weight: 700; }
.lb-butter { background: var(--gold-soft); color: color-mix(in srgb, var(--gold) 70%, #000); }
.lb-soft { background: var(--green-soft); color: var(--green); }
.lb-firm { background: var(--blue-soft); color: var(--blue-ink); }
.lb-hard { background: var(--amber-soft); color: var(--amber); }
.lb-crash { background: var(--danger-soft); color: var(--danger); }
html[data-dark] .lb-butter { color: var(--gold); }
.landing-me { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.landing-me .lm-big { font: 700 1.5rem/1.1 var(--display, inherit); color: var(--ink); }
.landing-me .lm-big small { font-size: .75rem; color: var(--muted); font-weight: 500; }
.landing-dist { display: grid; gap: 7px; }
.ld-row { display: grid; grid-template-columns: 88px 1fr 34px; align-items: center; gap: 10px; font-size: .85rem; }
.ld-label { color: var(--ink-2); }
.ld-bar { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.ld-bar span { display: block; height: 100%; border-radius: 999px; }
.ld-bar .lb-butter { background: var(--gold); } .ld-bar .lb-soft { background: var(--green); } .ld-bar .lb-firm { background: var(--blue); }
.ld-bar .lb-hard { background: var(--amber); } .ld-bar .lb-crash { background: var(--danger); }
.ld-n { text-align: right; font-family: var(--mono, ui-monospace, monospace); color: var(--muted); }
.butter-winner { display: flex; align-items: center; gap: 12px; }
.butter-winner > span { font-size: 1.8rem; line-height: 1; }
.btn-link { background: none; border: 0; padding: 0; color: var(--blue-ink); cursor: pointer; font: inherit; text-decoration: underline; }

/* ---------- Doel van de maand ---------- */
.goal-bar { display: grid; gap: 8px; }
.goal-nums { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.goal-now { font: 800 2rem/1 var(--display, inherit); color: var(--ink); }
.goal-bar.is-compact .goal-now { font-size: 1.4rem; }
.goal-pct { margin-left: auto; font-weight: 700; color: var(--lagoon-ink); }
.goal-track { height: 14px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.goal-bar.is-compact .goal-track { height: 10px; }
.goal-track span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--lagoon), var(--orange)); transition: width .6s ease; }
.goal-bar.is-reached .goal-track span { background: var(--green); }
.goal-done { color: var(--green); }
.goal-award { display: flex; align-items: center; gap: 10px; max-width: 260px; }
.goal-mine strong { font: 700 1.5rem var(--display, inherit); color: var(--ink); }
.goal-top { list-style: none; counter-reset: gt; margin: 0; padding: 0; display: grid; gap: 6px; }
.goal-top li { counter-increment: gt; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--bg-2); }
.goal-top li::before { content: counter(gt); font-weight: 700; color: var(--muted); width: 1.2em; }
.goal-top li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-top li.is-me { outline: 2px solid color-mix(in srgb, var(--lagoon) 55%, transparent); }

/* ---------- Route van de dag ---------- */
.rod-card { border-radius: 14px; padding: 16px 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--navy) 92%, #000), color-mix(in srgb, var(--navy) 70%, var(--blue))); color: #fff; display: grid; gap: 12px; position: relative; overflow: hidden; }
.rod-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--orange) 0 62%, var(--lagoon) 62%); }
.rod-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rod-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.rod-tag .icon { width: 16px; height: 16px; }
.rod-bonus { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; background: rgba(255, 255, 255, .12); padding: 3px 10px 3px 4px; border-radius: 999px; }
.rod-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.rod-route .code { display: block; font: 800 1.7rem/1 var(--mono, ui-monospace, monospace); letter-spacing: .02em; color: #fff; background: none; padding: 0; }
.rod-route .name { display: block; font-size: .82rem; opacity: .75; margin-top: 3px; }
.rod-route .right { text-align: right; }
.rod-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: .85; }
.rod-mid .icon { width: 22px; height: 22px; transform: rotate(45deg); }
.rod-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.rod-card .muted { color: rgba(255, 255, 255, .72); }
.rod-card .btn-primary { background: #fff; border-color: #fff; color: var(--navy); }
.rod-card.is-compact .rod-route .code { font-size: 1.35rem; }

/* ---------- Pilotenprofiel ---------- */
.pf-hero { position: relative; overflow: hidden; border-radius: var(--r-lg, 16px); padding: 28px 30px 32px; color: #fff; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--blue) 55%, transparent) 0%, transparent 55%), linear-gradient(135deg, var(--navy), color-mix(in srgb, var(--navy) 70%, #000)); }
.pf-hero > .cheatline { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; }
.pf-id { display: flex; gap: 22px; align-items: center; min-width: 0; flex: 1 1 420px; }
.pf-avatar { flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font: 800 2rem var(--display, inherit); color: var(--navy);
  background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 75%, transparent), 0 10px 24px rgba(0, 0, 0, .25); }
.pf-main { min-width: 0; flex: 1; }
.pf-main h1 { color: #fff; font-size: 2rem; margin: 6px 0 6px; line-height: 1.1; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(255, 255, 255, .14); color: #fff; }
.pf-chip.pf-gold { background: color-mix(in srgb, var(--gold) 85%, transparent); color: #2b1d00; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.pf-meta b { color: #fff; font-weight: 600; }
.pf-rank { margin-top: 14px; max-width: 460px; color: rgba(255, 255, 255, .8); }
.pf-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .18); margin-top: 6px; overflow: hidden; }
.pf-track span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--orange), var(--gold)); }
.pf-side { display: flex; align-items: center; gap: 22px; flex: none; }
.pf-side-stats { display: grid; gap: 12px; }
.pf-side-stats div { display: flex; flex-direction: column; }
.pf-side-stats b { display: inline-flex; align-items: center; gap: 6px; font: 800 1.4rem var(--display, inherit); }
.pf-side-stats span { font-size: .8rem; color: rgba(255, 255, 255, .7); }
@media (max-width: 640px) { .pf-hero { padding: 22px 18px 26px; } .pf-avatar { width: 68px; height: 68px; font-size: 1.5rem; } .pf-main h1 { font-size: 1.5rem; } .pf-id { gap: 14px; align-items: flex-start; } }
.pf-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 180px; align-items: end; }
.pf-col { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 4px; min-width: 0; }
.pf-val { font-size: .7rem; color: var(--muted); font-family: var(--mono, ui-monospace, monospace); min-height: 1em; }
.pf-bar { flex: 1; width: 100%; display: flex; align-items: flex-end; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.pf-bar span { display: block; width: 100%; background: linear-gradient(180deg, var(--lagoon), color-mix(in srgb, var(--lagoon) 60%, var(--navy))); border-radius: 6px 6px 0 0; }
.pf-lab { font-size: .72rem; color: var(--muted); }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.stamp { --st: var(--blue); position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px 10px; text-decoration: none; color: var(--st);
  border: 2px dashed color-mix(in srgb, var(--st) 70%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--st) 6%, transparent); transform: rotate(-2deg); transition: transform .15s; }
.stamp:hover { transform: rotate(0) scale(1.04); text-decoration: none; }
.stamp:nth-child(2n) { transform: rotate(1.5deg); }
.stamp:nth-child(3n) { transform: rotate(-.5deg); border-radius: 50% / 34%; }
.stamp.st-1 { --st: var(--lagoon-ink, var(--lagoon)); } .stamp.st-2 { --st: var(--danger); } .stamp.st-3 { --st: var(--violet); } .stamp.st-4 { --st: var(--amber); }
.st-code { font: 800 1.15rem/1 var(--mono, ui-monospace, monospace); letter-spacing: .08em; }
.st-city { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-date { font-size: .68rem; opacity: .8; font-family: var(--mono, ui-monospace, monospace); }
.pf-banner { display: block; width: 100%; max-width: 600px; height: auto; border-radius: 6px; margin-bottom: 12px; }
.copyrow { display: flex; gap: 6px; }
.copyrow input { flex: 1; min-width: 0; font-family: var(--mono, ui-monospace, monospace); font-size: .78rem; }
.forum-sig { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.forum-sig img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.rod-card.is-compact .rod-route { gap: 6px; }
.rod-card.is-compact .rod-route .name { font-size: .74rem; }
.pf-side > svg { background: rgba(255, 255, 255, .92); border-radius: 14px; padding: 8px 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
@media (max-width: 640px) { .pf-chart { gap: 3px; height: 150px; } .pf-lab { font-size: .62rem; } .pf-val { font-size: .58rem; } }

/* ---------- Indeling-editor (Admin → Indeling) ---------- */
.lay-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lay-top .segmented a { display: inline-flex; align-items: center; gap: 6px; }
.lay-top .segmented .icon { width: 16px; height: 16px; }
.lay-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lay-status.is-dirty { color: var(--amber); font-weight: 600; }
.lay-grid { display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); gap: 18px; align-items: start; }
.lay-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg, 14px); padding: 16px; max-height: calc(100vh - 116px); overflow: auto; position: sticky; top: 100px; }
.lay-preview { position: sticky; top: 100px; min-width: 0; display: grid; gap: 8px; }
.lay-preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lay-devices button { border: 0; background: none; padding: 6px 12px; font: inherit; font-size: .85rem; color: var(--muted); cursor: pointer; border-radius: 8px; }
.lay-devices button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.lay-frame-wrap { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg); height: calc(100vh - 160px); min-height: 520px; transition: max-width .25s; margin: 0 auto; width: 100%; }
.lay-frame-wrap.is-mobile { max-width: 400px; }
.lay-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--bg); }
.lay-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; background: var(--bg-2); }
.lay-blocks, .lay-mgroups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.lay-card, .lay-mgroup { min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); }
.lay-card.is-open { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.lay-card.is-hidden .lay-row, .lay-mitem.is-hidden { opacity: .55; }
.lay-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px; }
.lay-handle { border: 0; background: none; padding: 6px 4px; cursor: grab; color: var(--faint); touch-action: none; border-radius: 6px; display: inline-flex; }
.lay-handle:hover, .lay-handle:focus-visible { color: var(--ink); background: var(--bg-2); }
.lay-handle .icon { width: 18px; height: 18px; fill: currentColor; }
.lay-ico { display: inline-flex; color: var(--blue-ink); }
.lay-ico .icon { width: 18px; height: 18px; }
.lay-name { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 6px 4px; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; }
.lay-name b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lay-meta { font-size: .76rem; color: var(--muted); }
.lay-ib { border: 0; background: none; padding: 6px; border-radius: 6px; cursor: pointer; color: var(--muted); display: inline-flex; }
.lay-ib:hover { background: var(--bg-2); color: var(--ink); }
.lay-ib .icon { width: 16px; height: 16px; }
.lay-down .icon { transform: rotate(180deg); }
.lay-del:hover { color: var(--danger); }
.lay-settings[hidden] { display: none; }
.lay-settings { padding: 4px 14px 14px 44px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.lay-settings .field { margin: 8px 0 0; }
.lay-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.lay-seg button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); padding: 5px 10px; border-radius: 8px; font: inherit; font-size: .82rem; cursor: pointer; }
.lay-seg button.on { border-color: var(--blue); color: var(--blue-ink); background: var(--blue-soft); font-weight: 600; }
.lay-wicon { display: inline-block; width: 22px; height: 12px; border-radius: 3px; background: linear-gradient(90deg, currentColor var(--w), color-mix(in srgb, currentColor 18%, transparent) var(--w)); opacity: .75; }
.lay-w-full { --w: 100%; } .lay-w-two-thirds { --w: 66%; } .lay-w-half { --w: 50%; } .lay-w-third { --w: 33%; }
.lay-imgbox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.lay-imgbox img { max-width: 160px; max-height: 90px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; }
.lay-btnlist { display: grid; gap: 6px; margin: 8px 0; }
.lay-btnrow { display: grid; grid-template-columns: 1fr 1.4fr auto auto; gap: 6px; align-items: center; }
.lay-btnrow input, .lay-btnrow select, .lay-mfields input { min-width: 0; }
.lay-remove { justify-self: start; margin-top: 10px; }
.lay-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; padding: 10px; border: 1.5px dashed var(--line-2); border-radius: 12px; }
.lay-add .icon, .lay-panel .btn .icon { width: 15px; height: 15px; }
.lay-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; }
.lay-h:first-child { margin-top: 0; }
.lay-mhead { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--bg-2); border-radius: 12px 12px 0 0; }
.lay-mhead input { flex: 1; min-width: 0; font-weight: 650; }
.lay-iconsel { width: 92px; font-size: .8rem; }
.lay-mitems { display: grid; gap: 4px; padding: 8px; min-height: 36px; }
.lay-mgroup > .btn { margin: 0 8px 8px; }
.lay-mitem { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.lay-mitem.is-custom { border-style: dashed; }
.lay-mfields { flex: 1; min-width: 0; display: grid; gap: 4px; }
.lay-mfields input { padding: 6px 8px; font-size: .88rem; }
.lay-href { color: var(--faint); padding-left: 2px; }
.lay-public { border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 6px; }
.is-dragging { opacity: .9; box-shadow: 0 10px 28px rgba(14, 42, 71, .22) !important; border-color: var(--blue) !important; position: relative; z-index: 5; }
body.lay-dragging, body.lay-dragging * { cursor: grabbing !important; user-select: none; }
body.lay-dragging .is-dragging { pointer-events: none; }
@media (max-width: 1100px) {
  .lay-grid { grid-template-columns: minmax(0, 1fr); }
  .lay-panel, .lay-preview { position: static; max-height: none; min-width: 0; }
  .lay-settings { padding-left: 14px; }
  .lay-btnrow { grid-template-columns: 1fr 1fr; }
  .lay-frame-wrap { height: 70vh; }
}
/* voorbeeld: aangeklikt blok oplichten */
.lay-focus { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: var(--r, 12px); transition: outline-color .3s; }
/* eigen blokken */
.lay-image { margin: 0; overflow: hidden; }
.lay-image img { display: block; width: 100%; height: auto; }
.lay-image figcaption { padding: 10px 16px; }
.lay-page .dash-module > .card, .lay-page .dash-module > .hero { height: 100%; }
/* Admin → Instellingen */
.set-page { max-width: 860px; }
.set-card { margin-bottom: 16px; scroll-margin-top: 100px; }
.set-card .card-head { gap: 10px; }
.set-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 12px 0; cursor: pointer; }
.set-row + .set-row, .set-fields + .set-row { border-top: 1px solid var(--line); }
.set-card .card-body > .set-row:first-child { padding-top: 0; }
.set-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.set-sub { border-top: 1px solid var(--line); margin-top: 4px; padding-left: 14px; border-left: 3px solid var(--line); }
.set-sub .alert { margin: 12px 0 0; }
.set-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; padding: 0 0 6px; }
.is-off { opacity: .5; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; margin-top: 2px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch:checked { background: var(--blue); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.switch:disabled { cursor: not-allowed; }
.set-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 35%); display: flex; justify-content: flex-end; }
@media (max-width: 640px) { .set-fields { grid-template-columns: minmax(0, 1fr); } .set-sub { padding-left: 10px; } }
/* realistische vloot */
.ac-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.ac-meters .progress { margin-top: 6px; }
.ac-cond.is-ok > span { background: var(--green); }
.ac-cond.is-warn > span { background: var(--amber); }
.ac-cond.is-bad > span { background: var(--danger); }
.ac-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ac-log li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 8px 0 8px 12px; border-left: 3px solid var(--line-2); }
.ac-log li + li { border-top: 1px solid var(--line); }
.ac-log-damage { border-left-color: var(--danger) !important; }
.ac-log-check, .ac-log-repair { border-left-color: var(--amber) !important; }
.ac-log-released { border-left-color: var(--green) !important; }
.ac-mini { display: inline-block; width: 46px; height: 6px; border-radius: 99px; background: var(--bg-2); vertical-align: middle; margin-right: 6px; overflow: hidden; }
.ac-mini > span { display: block; height: 100%; background: var(--green); }
.ac-mini.is-warn > span { background: var(--amber); } .ac-mini.is-bad > span { background: var(--danger); }
@media (max-width: 640px) { .ac-log li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.text-warn { color: var(--amber); font-weight: 600; }
/* Admin → Inzichten */
.ins-delta { font-size: .78rem; margin-top: 4px; font-weight: 600; }
.ins-delta.is-up { color: var(--green); } .ins-delta.is-down { color: var(--danger); } .ins-delta.is-flat { color: var(--muted); }
.ins-delta .muted { font-weight: 400; }
.ins-head-val { font-weight: 700; font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.ins-bars { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; height: 160px; padding-top: 18px; border-bottom: 1px solid var(--line-2);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 18px / 100% calc((100% - 18px) / 2); }
.ins-ymax { position: absolute; top: 0; left: 0; line-height: 1; }
.ins-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; outline: none; }
.ins-bar { display: block; width: min(70%, 22px); background: var(--blue); opacity: .55; border-radius: 4px 4px 0 0; transition: opacity .15s; }
.ins-col.is-now .ins-bar, .ins-col:hover .ins-bar, .ins-col:focus-visible .ins-bar { opacity: 1; }
.ins-x { position: absolute; bottom: -20px; font-size: .68rem; color: var(--muted); }
.ins-chart .card-body { padding-bottom: 12px; }
.ins-table { margin-top: 28px; }
.ins-table summary { cursor: pointer; color: var(--muted); }
.ins-col[data-tip], .ins-cell[data-tip] { position: relative; }
.ins-col[data-tip]:hover::after, .ins-col[data-tip]:focus-visible::after, .ins-cell[data-tip]:hover::after, .ins-cell[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 20;
  background: var(--ink); color: #fff; font-size: .74rem; font-weight: 500; padding: 5px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.ins-big { font-size: 2.4rem; font-weight: 750; line-height: 1; color: var(--ink); }
.ins-drop { border-top: 1px solid var(--line); padding: 10px 0; }
.ins-drop:first-of-type { border-top: 0; }
.ins-drop summary { cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ins-drop .table-wrap { margin-top: 8px; }
.ins-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ins-list li { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr) 34px; gap: 10px; align-items: center; }
.ins-list li > :last-child { text-align: right; }
.ins-hbar { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.ins-hbar > span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.ins-heat-wrap { overflow-x: auto; padding-top: 30px; margin-top: -30px; }
.ins-heat { display: grid; grid-template-columns: 28px repeat(24, minmax(14px, 1fr)); gap: 2px; min-width: 460px; }
.ins-hh { font-size: .66rem; color: var(--muted); }
.ins-hd { font-size: .74rem; color: var(--muted); align-self: center; }
.ins-cell { display: inline-block; aspect-ratio: 1; min-height: 14px; border-radius: 3px; background: var(--bg-2); }
.ins-cell.l1 { background: color-mix(in srgb, var(--blue) 18%, var(--bg-2)); }
.ins-cell.l2 { background: color-mix(in srgb, var(--blue) 36%, var(--bg-2)); }
.ins-cell.l3 { background: color-mix(in srgb, var(--blue) 56%, var(--bg-2)); }
.ins-cell.l4 { background: color-mix(in srgb, var(--blue) 78%, var(--bg-2)); }
.ins-cell.l5 { background: var(--blue); }
.ins-legend { display: flex; align-items: center; gap: 3px; margin-top: 10px; }
.ins-legend .ins-cell { width: 14px; }
@media (max-width: 1100px) { .ins-charts { grid-template-columns: minmax(0, 1fr); } }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; margin-top: 6px; }
.label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
/* crew bases */
.base-card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.base-card:hover { border-color: var(--blue); transform: translateY(-1px); }
.base-card.is-mine { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.base-icao { font-size: 1rem; }
.base-name { margin: 8px 0 12px; font-size: 1.1rem; }
.base-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.base-stats b { display: block; font-size: 1.2rem; color: var(--ink); }
.base-stats span { font-size: .75rem; color: var(--muted); }
.base-deps { list-style: none; margin: 0; padding: 0; }
.base-deps li { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); }
.base-deps li:first-child { border-top: 0; }
.small-value { font-size: 1rem !important; }
/* jumpseat */
.js-loc { display: flex; gap: 14px; align-items: center; }
.js-icao { font-size: 1.8rem; font-weight: 750; color: var(--ink); line-height: 1.1; }
.js-list { display: grid; gap: 6px; max-height: 460px; overflow: auto; }
.js-opt { display: grid; grid-template-columns: auto 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500; margin: 0; }
.js-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.js-opt.is-off { opacity: .5; cursor: not-allowed; }
.js-name { min-width: 0; }
.js-cost { white-space: nowrap; font-weight: 600; }
.text-ok { color: var(--green); }
.js-hist { list-style: none; margin: 0; padding: 0; }
.js-hist li { display: grid; grid-template-columns: minmax(0, 1fr) auto 60px; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line); align-items: center; }
.js-hist li:first-child { border-top: 0; }
.js-hist li > :last-child { text-align: right; }
.text-bad { color: var(--danger); font-weight: 600; } .sb-kv { margin-bottom: 4px; }
.net-tag { display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .04em; padding: 1px 5px; border-radius: 4px; background: var(--blue-soft); color: var(--blue-ink); vertical-align: middle; }
/* nieuwsbrief */
.nl-aud { border: 0; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.nl-sub { margin: -2px 0 4px 27px; max-width: 320px; }
.nl-preview iframe { width: 100%; height: 640px; border: 0; display: block; background: #f3f4f6; border-radius: 0 0 var(--r-lg, 14px) var(--r-lg, 14px); }
@media (max-width: 1100px) { .nl-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.hero-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .16); color: #fff !important; font-size: .82rem; font-weight: 600; text-decoration: none; border: 1px solid rgba(255, 255, 255, .25); }
.hero-chip .icon { width: 14px; height: 14px; }
.hero-chip:hover { background: rgba(255, 255, 255, .26); }
.hero-own-banner .hero-chip { background: var(--bg-2); color: var(--ink) !important; border-color: var(--line); }
.cmp-table th, .cmp-table td { padding: 9px 10px; font-size: .86rem; } .cmp-table td.right, .cmp-table th.right { white-space: nowrap; }
.js-name .sub { display: block; }
/* demo */
.demo-bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 16px; border-radius: 12px; background: #FFF4E0; border: 1px solid #F3D19A; color: #6B4A12; font-size: .9rem; }
.demo-bar.is-hit { background: #FDE7D6; border-color: #F0B88E; color: #7A3410; animation: demo-pulse .6s ease 2; }
@keyframes demo-pulse { 50% { transform: scale(1.01); } }
.demo-tag { background: #F2A33A; color: #2A1A00; font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.demo-text { flex: 1 1 260px; }
.demo-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.demo-links a { color: inherit; font-weight: 600; }
.demo-links .demo-cta { background: #12305A; color: #fff; padding: 6px 12px; border-radius: 8px; text-decoration: none; }
.demo-login { background: #FFF4E0; border: 1px solid #F3D19A; border-radius: 12px; padding: 14px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.demo-login p { margin: 0 0 4px; flex-basis: 100%; color: #6B4A12; }
/* dispatch-formulier: SimBrief en luchthaven herkennen */
.sb-box { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 12px; padding: 14px; margin-bottom: 18px; display: grid; gap: 10px; }
.sb-head { display: flex; flex-direction: column; gap: 2px; }
.sb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sb-row input { flex: 1 1 200px; min-width: 0; }
.apt-hint { min-height: 1.2em; color: var(--green); }
.apt-hint.is-bad, .text-bad { color: var(--danger); }
.text-ok { color: var(--green); }
