/* Lettertypes staan op je eigen server (geen Google Fonts → geen GDPR-gedoe) */
@font-face { font-family: "Archivo"; src: url(fonts/archivo.woff) format("woff"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrainsmono.woff) format("woff"); font-weight: 100 800; font-display: swap; }

/* =========================================================================
   Geo_Db — stijlblad
   Kleuren komen uit het logo: oceaanblauw van de globe en goud van de ring,
   op een koel "stafkaart"-papier met hoogtelijnen.
   ========================================================================= */

:root {
  --bg: #e8eef2;
  --bg-2: #dfe7ed;
  --surface: #ffffff;
  --surface-2: #f4f7f9;
  --ink: #12324a;
  --ink-2: #4c6578;
  --ink-3: #7f95a6;
  --line: #d2dde5;
  --blue: #1c74b8;
  --blue-ink: #155a90;
  --gold: #f2aa1c;
  --gold-ink: #7a4f00;
  --gold-soft: #fdf1d6;
  --green: #2b7a4b;
  --green-soft: #e2f2e8;
  --red: #bf3a2a;
  --red-soft: #fbe6e2;
  --gps: #0f2738;           /* scherm van een gps-toestel */
  --gps-ink: #c9f2d6;
  --topo: rgba(18, 50, 74, .07);
  --shadow: 0 1px 2px rgba(18,50,74,.06), 0 8px 24px -12px rgba(18,50,74,.25);
  --r-sm: 8px;
  --r: 14px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1c29; --bg-2: #102434; --surface: #13293a; --surface-2: #183248;
    --ink: #e4edf3; --ink-2: #9db2c2; --ink-3: #6f899c; --line: #23425a;
    --blue: #4aa3e6; --blue-ink: #7dbdf0; --gold: #f4b41a; --gold-ink: #f7c75a; --gold-soft: #3a2f12;
    --green: #5cc287; --green-soft: #143627; --red: #ff7d6b; --red-soft: #3c1d19;
    --gps: #081621; --topo: rgba(160, 200, 230, .06);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1c29; --bg-2: #102434; --surface: #13293a; --surface-2: #183248;
  --ink: #e4edf3; --ink-2: #9db2c2; --ink-3: #6f899c; --line: #23425a;
  --blue: #4aa3e6; --blue-ink: #7dbdf0; --gold: #f4b41a; --gold-ink: #f7c75a; --gold-soft: #3a2f12;
  --green: #5cc287; --green-soft: #143627; --red: #ff7d6b; --red-soft: #3c1d19;
  --gps: #081621; --topo: rgba(160, 200, 230, .06);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ basis */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font); font-variation-settings: "wdth" 100;
  position: relative;
}
body::before {               /* hoogtelijnen */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--topo);
  -webkit-mask: url(topo.svg) center / 1400px auto repeat;
          mask: url(topo.svg) center / 1400px auto repeat;
}
img { max-width: 100%; }
a { color: var(--blue-ink); }
a:hover { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-variation-settings: "wdth" 112; font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 2.6vw + .8rem, 2.3rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--ink-2); }
.mono { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 99; }
.skip:focus { left: 8px; }
.i { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------------ knoppen */
.btn {
  --b: var(--ink); --c: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .65em 1.3em; border: 0; border-radius: 10px;
  background: var(--b); color: var(--c); font: 650 1rem/1.1 var(--font); font-variation-settings: "wdth" 106;
  text-decoration: none; cursor: pointer; transition: transform .12s, filter .12s, box-shadow .12s;
}
.btn:hover { color: var(--c); filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-gold { --b: var(--gold); --c: #2a1d00; }
.btn-blue { --b: var(--blue); --c: #fff; }
.btn-ghost { --b: transparent; --c: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn-danger { --b: var(--red); --c: #fff; }
.btn-sm { min-height: 36px; padding: .4em .9em; font-size: .92rem; }
.btn-block { width: 100%; }
.link-quiet { color: var(--ink); text-decoration: none; font-weight: 600; }
.link-quiet:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ formulieren */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 650; font-size: .93rem; margin-bottom: 6px; }
.field .hint { font-size: .85rem; color: var(--ink-2); margin-top: 6px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: .6em .85em;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
  font: 400 1rem var(--font);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 40px; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--ink); background: var(--surface-2); }
.code-input { text-align: center; font: 700 1.7rem var(--mono); letter-spacing: .4em; padding-left: .4em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin-bottom: 16px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.pw-meter { height: 5px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }

/* ------------------------------------------------------------------ meldingen */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; border-left: 4px solid; font-size: .95rem; }
.alert-error { background: var(--red-soft); border-color: var(--red); }
.alert-success { background: var(--green-soft); border-color: var(--green); }
.alert-info { background: var(--surface-2); border-color: var(--blue); }
.alert-warn { background: var(--gold-soft); border-color: var(--gold); }

/* ------------------------------------------------------------------ kaarten */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }

/* ------------------------------------------------------------------ auth-pagina's */
.main-auth { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 48px; }
.auth-wrap { width: 100%; max-width: 440px; }
.auth-wrap.wide, .wide .auth-wrap { max-width: 620px; }
.auth-logo { display: block; text-align: center; margin-bottom: 20px; }
.auth-logo img { width: 300px; height: auto; }
.auth-card { padding: 30px 28px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: .35em; }
.auth-card .lead { color: var(--ink-2); margin-bottom: 22px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--ink-2); font-size: .95rem; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -6px 0 18px; font-size: .92rem; flex-wrap: wrap; }

.choice { display: block; position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 16px 16px 54px; margin-bottom: 12px; cursor: pointer; transition: border-color .12s, background .12s; }
.choice:hover { border-color: var(--ink-3); }
.choice > input { position: absolute; opacity: 0; }
.choice > .i { position: absolute; left: 18px; top: 18px; color: var(--blue); }
.choice > b { display: block; }
.choice > span { color: var(--ink-2); font-size: .92rem; }
.choice:has(> input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--surface)); }
.choice:has(> input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.reveal { display: none; margin-top: 14px; }
.choice:has(> input:checked) .reveal { display: block; }

.qr-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 12px 0 4px; }
.qr { border-radius: 10px; border: 1px solid var(--line); background: #fff; flex: none; }
.secret { font: 700 1.02rem var(--mono); letter-spacing: .12em; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; word-break: break-all; user-select: all; }
.steps-mini { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); font-size: .93rem; }

/* ------------------------------------------------------------------ publieke kop */
.pub-head, .app-head {
  display: flex; align-items: center; gap: 16px; padding: 12px clamp(16px, 3vw, 32px);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.25rem; font-variation-settings: "wdth" 120; letter-spacing: -.02em; }
.brand img { width: 46px; height: auto; }
.pub-nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.theme-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.theme-btn:hover { color: var(--ink); }

/* ------------------------------------------------------------------ landingspagina */
/* Banner bovenaan de startpagina (image/geo_db_logo.png).
   GROOTTE AANPASSEN: verander 1100px hieronder in een kleiner of groter getal. */
.banner { max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 0; text-align: center; }
.banner img { width: 100%; max-width: 1100px; height: auto; display: inline-block; }
.main-public { flex: 1; }
.hero { max-width: 1180px; margin: 0 auto; padding: clamp(24px, 5vh, 56px) clamp(16px, 4vw, 40px) 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw + .4rem, 4.1rem); font-variation-settings: "wdth" 118; font-weight: 800; letter-spacing: -.025em; line-height: 1.02; margin-bottom: .35em; max-width: 13ch; }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.gps {
  background: var(--gps); color: var(--gps-ink); border-radius: 22px; padding: 26px 26px 22px;
  box-shadow: 0 30px 60px -30px rgba(10,30,45,.6), inset 0 0 0 6px #1d3a50, inset 0 0 0 7px #2b4d66;
  font-family: var(--mono);
}
.gps-top { display: flex; justify-content: space-between; font-size: .78rem; color: #6fa58a; margin-bottom: 18px; }
.gps-name { font-family: var(--font); color: #fff; font-weight: 650; font-size: 1.05rem; margin-bottom: 4px; }
.gps-code { color: var(--gold); font-size: .9rem; margin-bottom: 18px; }
.gps-coord { font-size: clamp(1.25rem, 2.2vw + .4rem, 1.9rem); font-weight: 700; line-height: 1.35; letter-spacing: .02em; white-space: nowrap; }
.gps-coord .dg { display: inline-block; min-width: .62em; text-align: center; }
.gps-coord .dg.rolling { color: #4f7c66; }
.gps-foot { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #2b4d66; font-size: .78rem; color: #6fa58a; display: flex; justify-content: space-between; }

.facts { max-width: 1180px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.facts-2 { grid-template-columns: repeat(2, 1fr); }
.fact { padding: 18px 24px 18px 0; border-top: 2px solid var(--ink); }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact b { display: block; font-size: 1.9rem; font-variation-settings: "wdth" 120; font-weight: 800; letter-spacing: -.02em; }
.fact span { color: var(--ink-2); }

.section { max-width: 1180px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px); }
.section > h2 { font-size: clamp(1.5rem, 2vw + .6rem, 2rem); margin-bottom: 8px; }
.section > .lead { color: var(--ink-2); margin-bottom: 28px; max-width: 60ch; }
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: how; }
.how li { counter-increment: how; position: relative; padding-top: 52px; }
.how li::before { content: counter(how); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-variation-settings: "wdth" 120; }
.how li::after { content: ""; position: absolute; top: 19px; left: 48px; right: -18px; border-top: 2px dotted var(--ink-3); }
.how li:last-child::after { display: none; }
.how b { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.how p { color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------------------ prijzen */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.pack { position: relative; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: border-color .12s, transform .12s; }
label.pack:hover { border-color: var(--ink-3); }
.pack input { position: absolute; opacity: 0; }
.pack:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent); }
.pack:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.pack-credits { font-size: 2.3rem; font-weight: 800; font-variation-settings: "wdth" 120; letter-spacing: -.02em; line-height: 1; }
.pack-credits small { font-size: 1rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.pack-price { font-size: 1.25rem; font-weight: 700; margin-top: 8px; }
.pack-per { color: var(--ink-2); font-size: .9rem; }
.pack-tag { position: absolute; top: -11px; right: 16px; background: var(--gold); color: #2a1d00; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

/* ------------------------------------------------------------------ app-kop */
.app-nav { display: flex; gap: 2px; margin-left: 12px; }
.app-nav a { white-space: nowrap; display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .96rem; }
.app-nav a:hover { color: var(--ink); background: var(--surface-2); }
.app-nav a.is-active { color: var(--ink); background: var(--bg-2); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.credit-pill { display: inline-flex; align-items: baseline; gap: 5px; padding: 7px 14px; border-radius: 30px; background: var(--gold-soft); color: var(--gold-ink); text-decoration: none; font-weight: 600; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); white-space: nowrap; }
.credit-pill b { font-size: 1.05rem; font-variation-settings: "wdth" 115; }
.credit-pill.is-empty { background: var(--red-soft); color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.credit-pill.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }
.avatar { border-radius: 50%; object-fit: cover; display: block; border: 2px solid var(--gold); }
.avatar-letter { display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; z-index: 50; }
.user-pop-name { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-pop-name b, .user-pop-name small { display: block; }
.user-pop a, .user-pop button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.user-pop a:hover, .user-pop button:hover { background: var(--surface-2); }
.user-pop form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.user-pop button { color: var(--red); }

.main-app { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 24px clamp(12px, 2.5vw, 32px) 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); }

/* ------------------------------------------------------------------ zoeken & filters */
.filters { display: grid; grid-template-columns: minmax(220px, 2.2fr) repeat(4, minmax(130px, 1fr)) auto; gap: 10px; padding: 14px; margin-bottom: 14px; }
.search-box { position: relative; }
.search-box .i { position: absolute; left: 13px; top: 13px; color: var(--ink-3); }
.search-box input { padding-left: 42px; }
.filters .btn { min-height: 46px; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 2px 10px; color: var(--ink-2); font-size: .94rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; text-decoration: none; color: var(--ink); }
.chip:hover { border-color: var(--ink-3); }

/* ------------------------------------------------------------------ tabel */
.table-card { overflow: hidden; }
.table-scroll { overflow: auto; max-height: calc(100vh - 360px); min-height: 240px; }
table.caches { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.caches th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); text-align: left; font-weight: 650; font-size: .85rem; color: var(--ink-2); padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.caches th a { color: inherit; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.caches th a:hover { color: var(--ink); }
.caches th a.sorted { color: var(--ink); }
.caches td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.caches tbody tr:hover td { background: var(--surface-2); }
.caches tr.is-owned td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.mine-badge { display: inline-block; margin: 0 0 3px; padding: 1px 8px; border-radius: 20px; background: var(--gold); color: #2a1d00; font: 700 .72rem var(--font); letter-spacing: .01em; white-space: nowrap; }
.c-name .mine-badge { display: table; }
.caches tr.is-mine td { background: color-mix(in srgb, var(--gold) 9%, var(--surface)); }
.caches tr.is-mine td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.caches tbody tr.is-mine:hover td { background: color-mix(in srgb, var(--gold) 16%, var(--surface)); }
.c-code { font: 700 .9rem var(--mono); color: var(--blue-ink); white-space: nowrap; }
.c-name { font-weight: 600; min-width: 220px; }
.c-name small { display: block; font-weight: 400; color: var(--ink-2); }
.c-type { white-space: nowrap; }
.c-type .ico { vertical-align: middle; }
.type-name { color: var(--ink-2); font-size: .88rem; }
.c-land { white-space: nowrap; }
.flag { vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.size-ico { vertical-align: middle; }
.c-date { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.c-act { text-align: right; white-space: nowrap; }
.rating { display: inline-flex; align-items: center; gap: 6px; }
.rating-bar { width: 44px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.rating-bar span { display: block; height: 100%; background: var(--gold); }
.rating-num { font-size: .85rem; color: var(--ink-2); min-width: 1.6em; font-variant-numeric: tabular-nums; }
mark { background: color-mix(in srgb, var(--gold) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 9px; color: var(--ink-2); text-decoration: none; border: 1px solid transparent; background: none; cursor: pointer; vertical-align: middle; }
.icon-btn:hover { color: var(--ink); border-color: var(--line); background: var(--surface); }
.open-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 9px; border: 0; background: var(--ink); color: var(--surface); font: 650 .9rem var(--font); cursor: pointer; white-space: nowrap; }
.open-btn:hover { filter: brightness(1.15); }
.open-btn.owned { background: var(--green); color: #fff; }
.open-btn[disabled] { background: var(--line); color: var(--ink-3); cursor: not-allowed; }
.empty { padding: 56px 20px; text-align: center; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 6px; }

/* ------------------------------------------------------------------ paginering */
.pager { display: flex; justify-content: center; gap: 6px; padding: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 9px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--ink-3); }
.pager .cur { background: var(--ink); color: var(--surface); border-color: var(--ink); font-weight: 700; }
.pager .gap { border: 0; background: none; }

/* ------------------------------------------------------------------ dialoogvenster (cache-details) */
dialog.sheet { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 0; padding: 0; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
dialog.sheet::backdrop { background: rgba(8, 22, 33, .55); backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: rise .22s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.sheet-head h2 { margin: 0; font-size: 1.25rem; }
.sheet-head .c-code { display: block; margin-bottom: 4px; }
.sheet-close { margin-left: auto; }
.sheet-body { padding: 18px 22px 22px; }
.sheet .gps { border-radius: 16px; padding: 20px; }
.sheet .gps-coord { font-size: clamp(1.1rem, 3.6vw, 1.55rem); white-space: normal; }
.coord-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.coord-actions .btn { --b: #1d3a50; --c: #e4f6ea; min-height: 40px; font-size: .92rem; }
.note { margin-top: 16px; padding: 14px 16px; background: var(--surface-2); border-radius: 12px; max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.note-label { font-weight: 650; font-size: .88rem; color: var(--ink-2); margin: 16px 0 6px; }
.confirm-box { text-align: center; padding: 6px 0 4px; }
.confirm-box .big { font-size: 2.6rem; font-weight: 800; font-variation-settings: "wdth" 120; line-height: 1; margin: 6px 0; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.spent { margin-top: 14px; font-size: .9rem; color: var(--ink-2); text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: var(--surface); padding: 10px 18px; border-radius: 10px; font-weight: 600; transition: .2s; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ------------------------------------------------------------------ cache-detailpagina */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 18px; align-items: start; }
.detail-grid .panel { margin: 0; }
.facts-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.facts-list dt { color: var(--ink-2); font-size: .9rem; }
.facts-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.facts-list .ico, .facts-list .flag, .facts-list .size-ico { vertical-align: middle; }
.stars { letter-spacing: 2px; font-size: 1.05rem; white-space: nowrap; }
.stars i { font-style: normal; color: var(--line); }
.stars .s-full { color: var(--gold); }
.stars .s-half { background: linear-gradient(90deg, var(--gold) 50%, var(--line) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.map { height: 230px; border-radius: 12px; border: 1px solid var(--line); z-index: 0; }
.qr-row { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.qr-row p { margin: 0; font-size: .9rem; }
.hint summary { cursor: pointer; color: var(--blue-ink); font-weight: 600; }
.detail-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.detail-actions .spacer { flex: 1; }
.more-menu { position: relative; }
.more-menu summary { list-style: none; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-menu .user-pop { right: 0; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: 1fr 1fr; } .detail-map { grid-column: 1 / -1; } }
@media (max-width: 700px) { .detail-grid { grid-template-columns: 1fr; } .detail-actions .spacer { display: none; } }

/* ------------------------------------------------------------------ betalen */
.pay-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 0 0 14px; }
.step-title .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-size: .9rem; font-weight: 800; }
.methods { display: grid; gap: 10px; }
.method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); position: relative; }
.method input { position: absolute; opacity: 0; }
.method:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 6%, var(--surface)); }
.method:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.method .i { color: var(--blue); }
.method b { display: block; }
.method span { color: var(--ink-2); font-size: .9rem; }
.summary { position: sticky; top: 90px; padding: 22px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 16px; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 650; text-align: right; }
.summary .total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.15rem; }
#paypal-buttons { margin-top: 6px; min-height: 50px; }
.bank-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.bank-table th { text-align: left; color: var(--ink-2); font-weight: 500; padding: 9px 0; width: 42%; vertical-align: top; }
.bank-table td { padding: 9px 0; font-weight: 650; }
.bank-table tr + tr { border-top: 1px solid var(--line); }
.ogm { font: 700 1.15rem var(--mono); letter-spacing: .03em; }
.copy-inline { margin-left: 6px; }
.history { width: 100%; border-collapse: collapse; font-size: .93rem; }
.history th { text-align: left; color: var(--ink-2); font-weight: 600; font-size: .85rem; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.history td { padding: 10px; border-bottom: 1px solid var(--line); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: .8rem; font-weight: 650; background: var(--surface-2); color: var(--ink-2); }
.badge-paid { background: var(--green-soft); color: var(--green); }
.badge-pending { background: var(--gold-soft); color: var(--gold-ink); }
.badge-failed, .badge-cancelled { background: var(--red-soft); color: var(--red); }

/* ------------------------------------------------------------------ account */
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.side-nav { position: sticky; top: 90px; display: grid; gap: 2px; }
.side-nav a { padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.side-nav a:hover { background: var(--surface); color: var(--ink); }
.panel { padding: 24px; margin-bottom: 20px; scroll-margin-top: 90px; }
.panel h2 { margin-bottom: 4px; }
.panel > p.muted { margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.photo-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.photo-row .avatar { width: 84px; height: 84px; font-size: 2rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { padding: 16px 18px; }
.stat b { display: block; font-size: 1.7rem; font-variation-settings: "wdth" 118; font-weight: 800; line-height: 1.1; }
.stat span { color: var(--ink-2); font-size: .9rem; }

/* ------------------------------------------------------------------ admin */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.is-active { color: var(--ink); border-color: var(--gold); }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form input { min-height: 34px; width: 80px; padding: 4px 8px; }
.inline-form select { min-height: 34px; width: auto; padding: 4px 8px; }

/* ------------------------------------------------------------------ voet */
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px clamp(16px, 3vw, 32px); color: var(--ink-3); font-size: .85rem; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ responsief */
@media (max-width: 1100px) {
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .filters .search-box { grid-column: 1 / -1; }
  .app-nav span { display: none; }
  .app-nav a { padding: 9px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { padding-left: 0; border-left: 0; }
  .how { grid-template-columns: 1fr; }
  .how li::after { display: none; }
  .pay-grid, .account-grid { grid-template-columns: 1fr; }
  .summary, .side-nav { position: static; }
  .side-nav { display: flex; overflow-x: auto; }
  .grid-2 { grid-template-columns: 1fr; }

  /* menu onderaan zoals een app (backdrop-filter uit, anders blijft het menu in de kop hangen) */
  .app-head { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .app-nav { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 60; justify-content: space-around; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .app-nav a { flex-direction: column; gap: 2px; font-size: .72rem; padding: 6px 8px; }
  .app-nav span { display: block; }
  .main-app { padding-bottom: 96px; }
  .foot { padding-bottom: 90px; }
  .app-head .theme-btn { display: none; }

  /* tabel wordt een lijst met kaarten */
  .table-scroll { max-height: none; overflow: visible; }
  table.caches thead { display: none; }
  table.caches, .caches tbody, .caches tr, .caches td { display: block; }
  .caches tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .caches td { border: 0; padding: 0; }
  .caches tbody tr:hover td { background: none; }
  .caches tr.is-owned { box-shadow: inset 3px 0 0 var(--green); }
  .caches tr.is-mine { box-shadow: inset 4px 0 0 var(--gold); background: color-mix(in srgb, var(--gold) 9%, var(--surface)); }
  .caches tr.is-mine td, .caches tbody tr.is-mine:hover td { background: none; }
  .caches tr.is-mine td:first-child { box-shadow: none; }
  .caches tr.is-owned td:first-child { box-shadow: none; }
  .caches .c-code { grid-column: 1; grid-row: 1; }
  .caches .c-act { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .caches .c-name { grid-column: 1; min-width: 0; }
  .caches .c-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; color: var(--ink-2); }
  .caches .c-hide-m { display: none; }
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 861px) { .caches .c-meta { display: none; } }
@media (max-width: 520px) {
  .auth-card { padding: 24px 18px; }
  .credit-pill span { display: none; }
  .brand span { display: none; }
  .pub-nav .link-quiet { display: none; }
  .gps-coord { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ taalkeuze */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 19px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: var(--ink); }
.lang-flag { display: inline-block; width: 22px; height: 15px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.lang-flag svg { display: block; width: 100%; height: 100%; }
.lang-pop { width: 190px; }
.lang-pop a { display: flex; align-items: center; gap: 10px; }
.lang-pop a.is-cur { font-weight: 700; background: var(--surface-2); }
.auth-lang { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.auth-lang .lang-pop { right: 0; }

/* grote taalkeuze op de startpagina */
.lang-box { max-width: 1180px; margin: 18px auto 0; padding: 0 clamp(16px, 4vw, 40px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lang-box-label { font-weight: 650; color: var(--ink-2); font-size: .95rem; text-align: center; }
.lang-box-opts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.lang-opt { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 18px; border-radius: 11px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.02rem; border: 2px solid transparent; }
.lang-opt:hover { background: var(--surface-2); color: var(--ink); }
.lang-opt .lang-flag { width: 30px; height: 20px; }
.lang-opt.is-cur { border-color: var(--gold); background: var(--gold-soft); }
@media (max-width: 520px) {
  .lang-menu summary > span:not(.lang-flag) { display: none; }
  .lang-box-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; }
  .lang-opt { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: .85rem; min-height: 0; }
}

/* tellers "vandaag / gisteren / deze maand ingegeven" naast de legende */
.legend-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.entry-stats { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.entry-stats > span { padding: 3px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); white-space: nowrap; }
.entry-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
/* extra menulinks: op gsm horizontaal scrollen als het er veel zijn */
@media (max-width: 860px) { .app-nav { overflow-x: auto; } .app-nav a { flex: 1 0 64px; } }
.grid-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.grid-menu .wide { grid-column: span 2; }
@media (max-width: 700px) { .grid-menu { grid-template-columns: 1fr; } .grid-menu .wide { grid-column: auto; } }

/* ------------------------------------------------------------------ verticale banner op de startpagina (image/casavostra.png)
   GROOTTE AANPASSEN: --banner-w is de breedte naast de inhoud (grote schermen),
   220px is de breedte onderaan op gsm/smalle schermen. */
:root { --banner-w: 350px; }
.side-banner { text-align: center; padding: 8px 16px 40px; }
.side-banner img { width: 220px; max-width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); }
@media (min-width: 1100px) {
  .main-public:has(.side-banner) { padding-right: calc(var(--banner-w) + 40px); }
  .side-banner { position: fixed; right: 20px; top: 84px; padding: 0; z-index: 30; }
  .side-banner img { width: var(--banner-w); max-height: calc(100vh - 104px); object-fit: contain; }
}

/* ------------------------------------------------------------------ afgekeurde ingaves: opvallende rode knop + aanpaspagina */
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-alert { --b: #d32f1f; --c: #fff; min-height: 50px; padding: .7em 1.4em; font-size: 1.05rem; box-shadow: 0 0 0 0 rgba(211,47,31,.55); animation: alertpulse 2s ease-out 3; }
.btn-alert:hover { --b: #b71c1c; }
@keyframes alertpulse { 0% { box-shadow: 0 0 0 0 rgba(211,47,31,.55); } 70% { box-shadow: 0 0 0 14px rgba(211,47,31,0); } 100% { box-shadow: 0 0 0 0 rgba(211,47,31,0); } }
.fix-card { padding: 20px 22px; margin-bottom: 16px; border-left: 5px solid #d32f1f; }
.fix-head { display: flex; gap: 10px 16px; align-items: baseline; flex-wrap: wrap; margin-bottom: 12px; }
.fix-head h2 { margin: 0; font-size: 1.15rem; }
.fix-reason { background: var(--red-soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: .95rem; white-space: pre-wrap; }
.fix-reason b { display: block; font-size: .82rem; color: var(--red); margin-bottom: 2px; }
.fix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.fix-grid .full { grid-column: 1 / -1; }
.fix-grid textarea { min-height: 110px; resize: vertical; font: inherit; }
.fix-grid input { font-family: var(--mono); }
@media (max-width: 700px) { .fix-grid { grid-template-columns: 1fr; } }

/* knop app downloaden */
.btn-app { --b: #2b7a4b; --c: #fff; }
.btn-app:hover { --b: #23663e; }
.head-actions .btn { min-height: 46px; }
.contact-line { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.contact-line a.mail { font-weight: 700; font-size: 1.1rem; }
.ask-card { max-width: 760px; }
.ask-card textarea { min-height: 180px; }
.ask-alt { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line, rgba(127,127,127,.25)); }

/* waarschuwing: mail kwam terug (veld popup = 1) */
.mail-popup { text-align: center; max-width: 480px; }
.mail-popup .sheet-body { padding: 28px 26px 24px; }
.mail-popup-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-size: 30px; font-weight: 800; border: 2px solid var(--red); }
.mail-popup-kicker { margin: 0 0 4px; font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; color: var(--red); text-transform: uppercase; }
.mail-popup h2 { margin: 0 0 10px; font-size: 1.3rem; }
.mail-popup-addr { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; word-break: break-all; }
.mail-popup .muted { font-size: .92rem; margin: 14px 0 18px; }

/* handleidingen onder het inlogscherm */
.manual-box { margin: 22px auto 0; max-width: 440px; text-align: center; }
.manual-title { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 700; color: var(--ink); }
.manual-title svg { width: 20px; height: 20px; }
.manual-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.manual-links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; box-shadow: var(--shadow); }
.manual-links a:hover { border-color: var(--gold); }
.manual-links a:first-child { border-color: var(--gold); background: var(--gold-soft); }
.manual-links .lang-flag, .manual-links svg { width: 22px; height: auto; border-radius: 3px; }
.manual-index { margin-top: 26px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.manual-index > p { margin: 0; color: var(--ink-2); flex: 1 1 260px; }
.manual-index .manual-box { margin: 0; max-width: none; text-align: left; }
.manual-index .manual-links { justify-content: flex-start; }
