/* ═══════════════════════════════════════════════════════════════════
   PakjesMagie — stijlen
   Auteur: Erwin Biharie
   ═══════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/nunito-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/nunito-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/nunito-latin-900-normal.woff2') format('woff2'); }

:root {
  --nacht: #17102F;
  --violet: #281747;
  --paars: #3a2066;
  --goud: #F4C66A;
  --goud-donker: #c9952f;
  --ivoor: #FFF4DF;
  --rood: #C82348;
  --roze: #EB3571;
  --wit: #FFFFFF;
  --inkt: #1d1530;
  --grijs: #6b6280;
  --groen: #1f9d55;
  --oranje: #e0a21b;
  --rand: rgba(255, 244, 223, .16);
  --radius: 16px;
  --veilig-onder: env(safe-area-inset-bottom, 0px);
  --veilig-boven: env(safe-area-inset-top, 0px);
  --font: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--veilig-boven); }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--wit);
  background: var(--nacht);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% 0%, #3b1f6e 0%, rgba(59, 31, 110, 0) 70%),
    linear-gradient(180deg, #1a1238 0%, #241544 55%, #2e1850 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* Sterrenhemel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 8%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 22%, #fff7 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 46% 6%, #fffa 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 18%, #fff6 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 82% 9%, #ffe9b8cc 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 30%, #fff6 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 7% 36%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 37% 40%, #fff5 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 72% 44%, #fff7 50%, transparent 51%);
}
/* Stadssilhouet onderaan */
.skyline {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 44vh;
  max-height: 460px;
  z-index: 0;
  pointer-events: none;
  background: url('/assets/stad.webp') center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  opacity: .95;
}
.skyline::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23, 16, 47, 0) 30%, rgba(23, 16, 47, .35) 100%);
}
body.beheer-modus .skyline { display: none; }

#app { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--goud); }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--goud); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ═══ Scherm (deelnemer) ═══════════════════════════════════════════ */
.scherm {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(var(--veilig-boven) + 22px) 20px calc(var(--veilig-onder) + 32px);
  display: flex;
  flex-direction: column;
  position: relative;
}
.scherm.met-tabbar { padding-bottom: calc(var(--veilig-onder) + 112px); }
.scherm.midden { justify-content: center; }
.stapel { display: flex; flex-direction: column; gap: 14px; }
.stapel-lg { display: flex; flex-direction: column; gap: 22px; }
.gecentreerd { text-align: center; align-items: center; }

.titel { font-size: 30px; line-height: 1.12; font-weight: 900; margin: 0; letter-spacing: -.01em; text-align: center; text-wrap: balance; }
.titel-md { font-size: 24px; line-height: 1.15; font-weight: 900; margin: 0; }
.titel-rij { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sub { margin: 0; color: rgba(255, 244, 223, .88); font-size: 16px; line-height: 1.45; text-align: center; font-weight: 600; text-wrap: pretty; }
.klein { font-size: 14px; color: rgba(255, 244, 223, .75); font-weight: 600; line-height: 1.4; }
.goud-tekst { color: var(--goud); }

.lijn-icoon { width: 56px; height: 56px; color: var(--wit); margin: 0 auto; display: block; }
.lijn-icoon svg.i { width: 100%; height: 100%; stroke-width: 1.6; }
.goud-icoon { display: inline-block; object-fit: contain; flex: none; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ═══ Knoppen ══════════════════════════════════════════════════════ */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 22px;
  border-radius: 16px; border: 0; cursor: pointer;
  font: 800 19px/1 var(--font); color: var(--wit); text-decoration: none;
  transition: transform .12s ease, filter .12s ease, opacity .12s;
}
.knop:active { transform: scale(.98); }
.knop[disabled] { opacity: .6; cursor: default; }
.knop-rood {
  background: linear-gradient(180deg, #e33c60 0%, #c82348 52%, #a71a3b 100%);
  box-shadow: 0 10px 26px rgba(200, 35, 72, .45), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .15);
}
.knop-rood:hover { filter: brightness(1.06); }
.knop-rand {
  background: rgba(23, 16, 47, .35);
  border: 1.6px solid rgba(255, 244, 223, .78);
  min-height: 48px; font-size: 16px; font-weight: 700;
}
.knop-goud { background: rgba(23, 16, 47, .35); border: 1.6px solid var(--goud); color: var(--wit); min-height: 50px; font-size: 16px; font-weight: 800; }
.knop-paars {
  background: linear-gradient(180deg, #8d3fbf, #6a2aa3);
  border: 1.5px solid rgba(235, 160, 255, .7);
  min-height: 46px; font-size: 15px; font-weight: 800;
  box-shadow: 0 6px 18px rgba(106, 42, 163, .4);
}
.knop-licht { background: #f3eefc; color: var(--paars); min-height: 42px; font-size: 15px; border-radius: 12px; }
.knop-gevaar { background: #fff0f3; color: #b0173b; border: 1.5px solid #f2b8c6; min-height: 44px; font-size: 15px; border-radius: 12px; }
.knop-klein { min-height: 38px; font-size: 14px; padding: 0 14px; border-radius: 11px; width: auto; }
.knop-auto { width: auto; }
.tekstknop { background: none; border: 0; color: rgba(255, 244, 223, .85); font: 700 15px var(--font); padding: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.icoonknop {
  width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer;
  display: inline-grid; place-items: center; background: transparent; color: inherit;
}
.icoonknop:hover { background: rgba(0, 0, 0, .05); }
.terug {
  position: absolute; left: 12px; top: calc(var(--veilig-boven) + 16px);
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  color: var(--wit); background: transparent; border: 0; cursor: pointer;
}
.terug svg { width: 26px; height: 26px; }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: draai .8s linear infinite; }
@keyframes draai { to { transform: rotate(360deg); } }

/* ═══ Formulieren ══════════════════════════════════════════════════ */
.veld { display: flex; flex-direction: column; gap: 7px; }
.veld > label, .veld > .label { font-size: 15px; font-weight: 800; color: var(--ivoor); }
.veld .hint { font-size: 13px; color: rgba(255, 244, 223, .7); font-weight: 600; line-height: 1.35; }
.invoer, .keuze, textarea.invoer {
  width: 100%; min-height: 54px; padding: 0 16px;
  border-radius: 14px; border: 2px solid transparent;
  background: var(--wit); color: var(--inkt);
  font: 700 17px var(--font);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
textarea.invoer { padding: 14px 16px; min-height: 92px; resize: vertical; line-height: 1.4; }
.invoer:focus, .keuze:focus { outline: none; border-color: var(--goud); }
.invoer::placeholder { color: #9a92ad; font-weight: 600; }
.keuze-wrap { position: relative; }
.keuze-wrap .keuze { appearance: none; -webkit-appearance: none; padding-left: 52px; padding-right: 46px; font-size: 19px; }
.keuze-wrap .voor, .keuze-wrap .na { position: absolute; top: 50%; transform: translateY(-50%); color: var(--inkt); pointer-events: none; }
.keuze-wrap .voor { left: 16px; }
.keuze-wrap .na { right: 16px; }
.keuze-wrap svg { width: 24px; height: 24px; }
.code-invoer { text-align: center; font-size: 30px; letter-spacing: .32em; text-transform: uppercase; font-weight: 900; min-height: 66px; padding-left: .32em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-keuze { position: relative; }
.chip-keuze input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-keuze span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.6px solid rgba(255, 244, 223, .5); font-weight: 800; font-size: 14px; color: var(--ivoor);
}
.chip-keuze input:checked + span { background: var(--goud); color: var(--inkt); border-color: var(--goud); }
.chip-keuze input:focus-visible + span { outline: 3px solid var(--goud); outline-offset: 2px; }
.melding {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; line-height: 1.4;
  background: rgba(244, 198, 106, .14); border: 1.5px solid rgba(244, 198, 106, .55); color: var(--ivoor);
}
.melding svg { flex: none; margin-top: 1px; }
.melding.fout { background: rgba(200, 35, 72, .18); border-color: rgba(235, 53, 113, .7); }
.melding.licht { background: #fff6e3; color: #6b4a07; border-color: #f2d48f; }
.melding.licht.fout { background: #fff0f3; color: #8d1530; border-color: #f2b8c6; }

/* ═══ Welkom ═══════════════════════════════════════════════════════ */
.maan {
  position: absolute; top: calc(var(--veilig-boven) + 34px); left: 26px;
  width: 54px; height: 54px; border-radius: 50%;
  box-shadow: -12px 6px 0 0 #ffe3a3; transform: rotate(-12deg);
  filter: drop-shadow(0 0 14px rgba(255, 220, 150, .8));
}
.welkom-logo { width: 100%; max-width: 360px; margin: 10px auto 0; display: block; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
.welkom-cadeau { width: 78%; max-width: 320px; margin: -6px auto -18px; display: block; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .45)); }
.hoek-cadeaus { position: fixed; right: max(0px, calc(50% - 250px)); bottom: calc(var(--veilig-onder) - 8px); width: min(46vw, 210px); z-index: 0; pointer-events: none; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }

/* ═══ Stappen ══════════════════════════════════════════════════════ */
.stappen { display: flex; align-items: center; justify-content: center; gap: 0; margin: 2px 0 4px; }
.stap { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 244, 223, .8); display: grid; place-items: center; }
.stap.klaar { border-color: var(--goud); color: var(--goud); }
.stap.klaar svg { width: 13px; height: 13px; stroke-width: 3.5; }
.stap.nu { box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.stap-lijn { width: 34px; height: 2px; background: rgba(255, 244, 223, .7); }

/* ═══ Witte kaartlijsten (cadeaus) ═════════════════════════════════ */
.lijst {
  background: var(--wit); color: var(--inkt);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .32);
}
.wens {
  display: grid; grid-template-columns: 66px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 12px 12px 12px; border-bottom: 1px solid #eee8f3; position: relative;
}
.wens:last-child { border-bottom: 0; }
.wens-foto { width: 66px; height: 66px; border-radius: 12px; object-fit: contain; background: #f7f3ec; display: grid; place-items: center; overflow: hidden; }
.wens-foto img { width: 100%; height: 100%; object-fit: contain; }
.wens-foto .goud-icoon { width: 40px; height: 40px; }
.wens-midden { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.wens-titel { font-weight: 800; font-size: 15.5px; line-height: 1.18; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--inkt); text-decoration: none; }
.wens-rij { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prijs { font-weight: 800; font-size: 15.5px; color: var(--inkt); }
.winkel-label {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px;
  background: var(--violet); color: var(--wit); font-size: 12px; font-weight: 900; text-decoration: none;
}
.winkel-label svg { width: 13px; height: 13px; }
.winkel-label.licht { background: var(--wit); color: var(--violet); height: 28px; font-size: 13px; padding: 0 10px; }
.wens-noot { font-size: 13px; color: var(--grijs); font-weight: 700; line-height: 1.3; }
.prio { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 900; background: #fff1d6; color: #8a5a00; }
.prio.heel_graag { background: #ffe1e9; color: #a3163a; }
.prio.extra { background: #efeaff; color: #4b3596; }
.boven-budget { color: #b0173b; font-size: 12px; font-weight: 800; display: inline-flex; gap: 4px; align-items: center; }
.boven-budget svg { width: 14px; height: 14px; }
.wens-acties { display: flex; flex-direction: column; gap: 2px; align-self: start; }
.wens-acties .icoonknop { color: #c4213f; width: 38px; height: 38px; }
.wens-acties .icoonknop.neutraal { color: #6a5a8c; }
.wens-acties svg { width: 21px; height: 21px; }
.wens-klikbaar { cursor: pointer; }
.leeg-lijst { padding: 22px 18px; text-align: center; color: var(--grijs); font-weight: 700; font-size: 15px; line-height: 1.45; }

/* ═══ Lootjeskaart ═════════════════════════════════════════════════ */
.lot-kaart {
  background: linear-gradient(180deg, #fffaf0 0%, #fdeec8 100%);
  border: 3px solid var(--goud);
  border-radius: 24px;
  padding: 26px 20px 24px;
  color: var(--inkt); text-align: center;
  box-shadow: 0 0 0 5px rgba(244, 198, 106, .22), 0 0 46px rgba(244, 198, 106, .5), 0 18px 40px rgba(0, 0, 0, .35);
}
.lot-avatar {
  width: 66px; height: 66px; margin: -60px auto 10px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #4a2c7a, #2a1748); border: 3px solid var(--goud); color: var(--ivoor);
  box-shadow: 0 0 18px rgba(244, 198, 106, .7);
}
.lot-avatar svg { width: 36px; height: 36px; stroke-width: 2.2; }
.lot-kaart.met-avatar { margin-top: 34px; padding-top: 18px; }
.lot-label { font-size: 17px; font-weight: 800; color: #3a2d4f; }
.lot-naam { font-size: 46px; line-height: 1.05; font-weight: 900; margin-top: 4px; word-break: break-word; }
.onthul-kop { position: relative; height: 160px; display: grid; place-items: center; }
.onthul-kop .stralen {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 120, .32) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%);
  mask-image: radial-gradient(circle, #000 20%, transparent 68%);
  animation: draai 30s linear infinite;
}
.onthul-kop img { width: 170px; position: relative; filter: drop-shadow(0 0 22px rgba(255, 200, 90, .7)); }

/* Trek-animatie */
.trek-podium { display: grid; place-items: center; min-height: 320px; position: relative; }
.trek-cadeau { width: 240px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.trek-cadeau.schud { animation: schud .55s ease-in-out infinite; }
.trek-cadeau.open { animation: openBarst .7s cubic-bezier(.2, .8, .2, 1) forwards; }
.trek-gloed { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 110, .55), transparent 65%); opacity: .7; animation: puls 1.4s ease-in-out infinite; }
@keyframes schud { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-5deg) translateY(-2px); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-3deg) translateY(-3px); } 80% { transform: rotate(3deg); } }
@keyframes openBarst { 0% { transform: scale(1); opacity: 1; } 40% { transform: scale(1.18); } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes puls { 0%, 100% { transform: scale(.9); opacity: .5; } 50% { transform: scale(1.08); opacity: .9; } }
.verschijn { animation: verschijn .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes verschijn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

/* ═══ Dashboard (deelnemer) ════════════════════════════════════════ */
.kop-welkom { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.kop-welkom img { width: 52px; }
.kop-welkom h1 { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.1; }
.kop-welkom p { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--goud); }
.info-rij { display: flex; gap: 8px; flex-wrap: wrap; }
.info-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 244, 223, .1); border: 1px solid var(--rand); font-size: 14px; font-weight: 800; color: var(--ivoor);
}
.info-chip svg { width: 16px; height: 16px; color: var(--goud); }
.sectie-kop { display: flex; align-items: center; gap: 10px; margin: 6px 2px 0; }
.sectie-kop h2 { margin: 0; font-size: 20px; font-weight: 900; flex: 1; }
.sectie-kop img { width: 34px; height: 34px; }
.sectie-kop a, .sectie-kop button.tekstknop { font-size: 14px; padding: 4px; }
.kaart-donker {
  background: linear-gradient(180deg, rgba(64, 38, 112, .72), rgba(40, 23, 71, .82));
  border: 1px solid rgba(244, 198, 106, .3); border-radius: 20px; padding: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}
.kaart-donker.compact { padding: 14px 16px; }
.bericht-kaart { display: flex; gap: 12px; align-items: flex-start; }
.bericht-kaart img { width: 38px; height: 38px; }
.bericht-kaart p { margin: 3px 0 0; font-weight: 700; line-height: 1.45; color: var(--ivoor); white-space: pre-line; }
.mini-lot { display: flex; align-items: center; gap: 14px; }
.mini-lot .naam { font-size: 28px; font-weight: 900; line-height: 1.05; color: var(--inkt); }
.knoppen-rij { display: flex; gap: 10px; }
.knoppen-rij > * { flex: 1; }

/* Profiel ontvanger */
.ontvanger-kop { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(160deg, #ffe3a0, #e9a93e); color: var(--inkt);
  font-size: 28px; font-weight: 900; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
.ontvanger-kop .klein-label { font-size: 17px; font-weight: 700; color: var(--ivoor); }
.ontvanger-kop .grote-naam { font-size: 34px; font-weight: 900; line-height: 1.05; }
.budget-rij { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; color: var(--ivoor); }
.budget-rij span { display: inline-flex; align-items: center; gap: 8px; }

/* Tabbar */
.tabbar {
  position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, 460px);
  padding: 8px 8px calc(var(--veilig-onder) + 8px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(20, 13, 42, .9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(244, 198, 106, .28);
}
.tabbar.vijf { grid-template-columns: repeat(5, 1fr); }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px;
  color: rgba(255, 244, 223, .62); text-decoration: none; font-size: 12px; font-weight: 800; border-radius: 12px;
}
.tab img { width: 32px; height: 32px; opacity: .55; filter: saturate(.6); transition: opacity .15s; }
.tab.actief { color: var(--goud); }
.tab.actief img { opacity: 1; filter: none; }

/* ═══ Toast en dialoog ═════════════════════════════════════════════ */
#toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); top: calc(var(--veilig-boven) + 14px); width: min(92vw, 420px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: #fff; color: var(--inkt); border-radius: 14px; padding: 13px 16px; font-weight: 800; font-size: 15px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35); border-left: 5px solid var(--groen); animation: verschijn .3s both;
}
.toast.fout { border-left-color: var(--rood); }
.dialoog-achter { position: fixed; inset: 0; z-index: 80; background: rgba(10, 6, 24, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: end center; padding: 12px; }
@media (min-width: 600px) { .dialoog-achter { place-items: center; } }
.dialoog {
  width: min(100%, 440px); max-height: calc(100dvh - 40px); overflow: auto;
  background: #fff; color: var(--inkt); border-radius: 22px; padding: 22px 20px calc(18px + var(--veilig-onder));
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45); animation: verschijn .25s both;
}
.dialoog h2 { margin: 0 0 8px; font-size: 21px; font-weight: 900; }
.dialoog p { margin: 0 0 12px; color: #4a4060; font-weight: 600; line-height: 1.45; }
.dialoog .invoer { box-shadow: none; border-color: #e2dbee; }
.dialoog-knoppen { display: flex; flex-direction: column-reverse; gap: 8px; margin-top: 16px; }
@media (min-width: 600px) { .dialoog-knoppen { flex-direction: row; justify-content: flex-end; } .dialoog-knoppen .knop { width: auto; } }
.dialoog .knop-rand { color: var(--inkt); border-color: #d7cfe6; background: #fff; }
.code-rij { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eee8f3; }
.code-rij:last-child { border-bottom: 0; }
.code-rij strong { flex: 1; font-size: 16px; }
.code-waarde { font: 900 20px var(--font); letter-spacing: .14em; background: #fff4df; border: 1.5px dashed var(--goud-donker); padding: 4px 10px; border-radius: 10px; }

/* ═══ Beheer ═══════════════════════════════════════════════════════ */
.beheer { display: grid; grid-template-columns: 252px 1fr; min-height: 100dvh; }
.zijbalk {
  background: linear-gradient(180deg, rgba(23, 16, 47, .96), rgba(30, 18, 58, .96));
  border-right: 1px solid rgba(255, 255, 255, .08);
  padding: 22px 14px; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px;
}
.zijbalk-merk { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; }
.zijbalk-merk img { width: 46px; }
.zijbalk-merk strong { display: block; font-size: 19px; font-weight: 900; line-height: 1.05; }
.zijbalk-merk span { font-size: 14px; font-weight: 700; color: rgba(255, 244, 223, .8); }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  color: rgba(255, 244, 223, .88); text-decoration: none; font-weight: 800; font-size: 15.5px; border: 1.5px solid transparent;
}
.nav-item svg { width: 20px; height: 20px; }
.nav-item:hover { background: rgba(255, 255, 255, .06); }
.nav-item.actief { background: linear-gradient(90deg, rgba(126, 74, 214, .7), rgba(150, 70, 200, .55)); border-color: rgba(205, 170, 255, .55); color: #fff; }
.zijbalk .onder { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.beheer-hoofd { min-width: 0; padding-bottom: 40px; }
.banner {
  position: relative; min-height: 178px; padding: 32px 32px 26px; display: flex; flex-direction: column; justify-content: flex-end;
  background: url('/assets/sint-dak.webp') 70% 28% / cover no-repeat;
}
.banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 16, 47, .92) 0%, rgba(23, 16, 47, .55) 45%, rgba(23, 16, 47, 0) 75%), linear-gradient(0deg, rgba(36, 21, 68, 1) 0%, rgba(36, 21, 68, 0) 40%); }
.banner > * { position: relative; }
.banner h1 { margin: 0; font-size: 34px; font-weight: 900; }
.banner p { margin: 6px 0 0; font-weight: 700; color: var(--goud); font-size: 16px; }
.beheer-inhoud { padding: 8px 32px; display: flex; flex-direction: column; gap: 20px; max-width: 1080px; }
.tegels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tegel {
  background: linear-gradient(180deg, rgba(92, 60, 158, .72), rgba(54, 32, 102, .82));
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px;
  padding: 16px 10px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 26px rgba(0, 0, 0, .22);
}
.tegel svg.i { width: 30px; height: 30px; stroke-width: 1.8; }
.tegel strong { font-size: 32px; font-weight: 900; line-height: 1; margin-top: 4px; }
.tegel span { font-size: 14px; font-weight: 700; color: rgba(255, 244, 223, .88); }
.ring { width: 104px; height: 104px; }
.ring text { font: 900 24px var(--font); fill: #fff; }
.paneel { background: #fff; color: var(--inkt); border-radius: 16px; padding: 18px; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.paneel h2 { margin: 0 0 12px; font-size: 19px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.paneel h2 svg { width: 22px; height: 22px; color: var(--paars); }
.paneel .klein { color: var(--grijs); }
.paneel .veld > label, .paneel .veld > .label { color: var(--inkt); }
.paneel .veld .hint { color: var(--grijs); }
.paneel .invoer, .paneel .keuze { box-shadow: none; border-color: #e2dbee; background: #fbf9ff; }
.paneel .invoer:focus, .paneel .keuze:focus { border-color: #8f5fe0; }
.paneel-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.paneel-kop h2 { margin: 0; }
.activiteit { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid #eee8f3; font-weight: 700; font-size: 14.5px; }
.activiteit:last-child { border-bottom: 0; }
.activiteit .bol-groen { width: 24px; height: 24px; border-radius: 50%; background: var(--groen); color: #fff; display: grid; place-items: center; flex: none; }
.activiteit .bol-groen svg { width: 14px; height: 14px; stroke-width: 3.2; }
.activiteit .bol-paars { width: 24px; height: 24px; color: var(--paars); flex: none; }
.activiteit span { flex: 1; }
.activiteit time { color: var(--grijs); font-size: 13px; white-space: nowrap; }
.raster-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.deeln-rij { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #eee8f3; }
.deeln-rij:last-child { border-bottom: 0; }
.deeln-rij > svg { width: 24px; height: 24px; color: var(--paars); flex: none; }
.deeln-rij .naam { flex: 1; font-weight: 800; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.status svg { width: 15px; height: 15px; stroke-width: 3; }
.status.ok { color: var(--groen); }
.status.open { color: #9a6c05; }
.status.open::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--oranje); }
.status.grijs { color: var(--grijs); }
.statussen { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.rij-acties { display: flex; gap: 2px; }
.rij-acties .icoonknop { color: #5d4b85; width: 36px; height: 36px; }
.rij-acties .icoonknop.rood { color: #c4213f; }
.rij-acties svg { width: 19px; height: 19px; }
.optie {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 14px;
  border: 2px solid #e6dff2; cursor: pointer; background: #fff;
}
.optie + .optie { margin-top: 10px; }
.optie input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: #7b3fe4; flex: none; }
.optie strong { display: block; font-size: 15.5px; font-weight: 900; color: var(--paars); }
.optie span { font-size: 13px; color: var(--grijs); font-weight: 700; }
.optie:has(input:checked) { border-color: #9b6ff0; background: #f6f1ff; }
.koppel-rij { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.3fr); gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #eee8f3; }
.koppel-rij:last-of-type { border-bottom: 0; }
.koppel-naam { font-weight: 800; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.koppel-rij .keuze.vast { border-color: #9b6ff0; background: #f6f1ff; color: #5a2fb0; }
.koppel-rij .keuze { min-height: 44px; font-size: 15px; padding: 0 10px; }
.koppel-rij > svg { width: 20px; height: 20px; color: var(--paars); justify-self: center; }
.tabel-wrap { overflow-x: auto; }
table.tabel { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tabel th { text-align: left; font-size: 13px; color: var(--grijs); font-weight: 800; padding: 8px 10px; border-bottom: 2px solid #eee8f3; white-space: nowrap; }
.tabel td { padding: 10px; border-bottom: 1px solid #eee8f3; font-weight: 700; }
.tabel tr:last-child td { border-bottom: 0; }
.verborgen { filter: blur(6px); user-select: none; }
.label-pil { display: inline-flex; height: 24px; align-items: center; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.label-pil.paars { background: #efe7ff; color: #5a2fb0; }
.label-pil.groen { background: #e2f6ea; color: #157a40; }
.label-pil.grijs { background: #f1eef5; color: #6b6280; }
.label-pil.goud { background: #fff1d1; color: #8a5a00; }
.deel-link { display: flex; gap: 8px; align-items: center; }
.deel-link input { flex: 1; min-width: 0; font-size: 14px !important; min-height: 46px !important; }
.schakel { display: flex; align-items: center; gap: 12px; font-weight: 800; cursor: pointer; }
.schakel input { width: 46px; height: 26px; accent-color: #7b3fe4; }
.formraster { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formraster .breed { grid-column: 1 / -1; }
.mobiel-kop { display: none; }
.beheer-tabbar { display: none; }

@media (max-width: 960px) {
  .tegels { grid-template-columns: repeat(2, 1fr); }
  .raster-2 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .beheer { grid-template-columns: 1fr; }
  .zijbalk { display: none; }
  .mobiel-kop { display: flex; align-items: center; gap: 10px; padding: calc(var(--veilig-boven) + 12px) 18px 10px; }
  .mobiel-kop img { width: 38px; }
  .mobiel-kop strong { font-size: 17px; font-weight: 900; flex: 1; }
  .banner { min-height: 130px; padding: 20px 18px 16px; }
  .banner h1 { font-size: 26px; }
  .beheer-inhoud { padding: 6px 16px; }
  .beheer-hoofd { padding-bottom: calc(110px + var(--veilig-onder)); }
  .beheer-tabbar { display: grid; }
  .formraster { grid-template-columns: 1fr; }
  .tegel strong { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Formulierelementen op witte vlakken in lichte modus tekenen */
.invoer, .keuze, .paneel, .dialoog, .lijst { color-scheme: light; }

/* ═══ bol.com-zoeken en productkaart (1.3.0) ═══ */
.zoekbalk { display: flex; gap: 8px; }
.zoekbalk .invoer { flex: 1; min-width: 0; }
.zoekbalk .knop { min-height: 54px; width: 58px; padding: 0; }
.plus-knop { background: var(--rood); color: #fff; border-radius: 50%; width: 42px; height: 42px; box-shadow: 0 6px 14px rgba(200, 35, 72, .35); }
.plus-knop:hover { background: #b01d3f; }
.plus-knop svg { width: 22px; height: 22px; stroke-width: 2.6; }
.toegevoegd { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #e2f6ea; color: var(--groen); }
.toegevoegd svg { width: 22px; height: 22px; stroke-width: 3; }
.product-foto { background: #f7f3ec; border-radius: 16px; height: 240px; display: grid; place-items: center; overflow: hidden; }
.product-foto img { width: 100%; height: 100%; object-fit: contain; }
.product-noot { background: #fff6e3; border: 1.5px solid #f2d48f; border-radius: 12px; padding: 10px 12px; font-weight: 700; color: #5c4208; line-height: 1.4; }
.product-noot strong { display: block; font-size: 12px; color: #8a5a00; margin-bottom: 2px; }
.dialoog .knop-rood { color: #fff; }
.product-foto img.goud-icoon { width: 96px; height: 96px; }

/* ═══════════════════════════════════════════════════════════════════
   PakjesMagie 2.0 — dashboard, CadeauOntdekker en productdetails
   ═══════════════════════════════════════════════════════════════════ */
.roze-tekst { color: var(--roze); }
.tabbar.lijn .tab svg.i { width: 26px; height: 26px; stroke-width: 1.9; }
.tabbar.lijn .tab { color: rgba(255, 244, 223, .7); }
.tabbar.lijn .tab.actief { color: var(--roze); }

/* Dashboard */
.kop-profiel { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.kop-profiel .avatar { width: 72px; height: 72px; font-size: 32px; }
.kop-profiel h1 { margin: 0; font-size: 30px; font-weight: 900; line-height: 1.05; }
.kop-groet { margin: 0; font-size: 18px; font-weight: 700; color: var(--ivoor); }
.kop-groep { margin: 4px 0 0; font-size: 15px; font-weight: 700; color: rgba(255, 244, 223, .8); }
.home-lot { text-align: center; padding: 18px 18px 20px; }
.home-lot-kop { display: flex; align-items: center; gap: 8px; justify-content: flex-start; font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.home-lot .lot-naam { font-size: 42px; }
.menu-kaart {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; text-decoration: none;
  background: #fff; color: var(--inkt); box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}
.menu-kaart > svg.i { width: 22px; height: 22px; color: #6a5a8c; }
.menu-kaart.compact { padding: 10px 14px; }
.menu-icoon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.menu-icoon svg.i { width: 26px; height: 26px; }
.menu-icoon.roze { background: #ffe5ee; color: var(--rood); }
.menu-icoon.goud { background: #fff1d1; color: #b27a07; }
.menu-tekst { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-tekst strong { font-size: 18px; font-weight: 900; }
.menu-tekst span { font-size: 14px; font-weight: 700; color: var(--grijs); }
.knop-paars-groot {
  background: linear-gradient(90deg, #c22a62, #9b3bc4); border: 1.5px solid rgba(255, 190, 230, .6);
  box-shadow: 0 10px 26px rgba(170, 50, 140, .4); min-height: 54px; font-size: 17px;
}
.wens-acties.rij { flex-direction: row; align-self: center; }

/* Ontdekken */
.ontdek-titel { color: var(--goud); font-size: 34px; text-shadow: 0 2px 14px rgba(244, 198, 106, .35); }
.zoekveld { position: relative; }
.zoekveld input {
  width: 100%; min-height: 54px; border-radius: 16px; border: 2px solid transparent; padding: 0 16px 0 50px;
  font: 700 17px var(--font); background: #fff; color: var(--inkt); box-shadow: 0 8px 22px rgba(0, 0, 0, .25); color-scheme: light;
}
.zoekveld input:focus { outline: none; border-color: var(--goud); }
.zoekveld-icoon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--grijs); }
.zoekveld-icoon svg.i { width: 22px; height: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(255, 244, 223, .45); background: rgba(23, 16, 47, .35); color: var(--ivoor); font: 800 14px var(--font);
}
.chip svg.i { width: 16px; height: 16px; }
.chip.actief { background: rgba(235, 53, 113, .2); border-color: var(--roze); color: #fff; }
.chip.icoon { width: 40px; justify-content: center; padding: 0; }
.chips.recent { gap: 6px; }
.cat-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-tegel {
  aspect-ratio: 1 / .92; border-radius: 16px; text-decoration: none; color: var(--ivoor);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px 6px; text-align: center;
  background: linear-gradient(180deg, rgba(92, 60, 158, .75), rgba(54, 32, 102, .85));
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 20px rgba(0, 0, 0, .25);
  font-weight: 800; font-size: 13.5px; line-height: 1.15; transition: transform .12s;
}
.cat-tegel:active { transform: scale(.97); }
.cat-tegel svg.i { width: 34px; height: 34px; stroke-width: 1.7; color: #ff9fc2; }
.cat-tegel.uitgelicht { border: 2px solid var(--goud); box-shadow: 0 0 0 3px rgba(244, 198, 106, .2), 0 0 24px rgba(244, 198, 106, .3); }
.cat-tegel.uitgelicht svg.i { color: var(--goud); }
.budget-balk {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 16px; text-decoration: none;
  background: #fff; color: var(--inkt); box-shadow: 0 12px 28px rgba(0, 0, 0, .28); font-size: 17px;
}
.budget-pil { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px 6px 14px; border-radius: 999px; background: #f3eefc; font-weight: 900; font-size: 15px; color: var(--paars); }
.budget-pil svg.i { width: 18px; height: 18px; }

/* Resultaten */
.filter-rij { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.chip-select {
  appearance: none; -webkit-appearance: none; min-height: 36px; border-radius: 999px; padding: 0 30px 0 14px; cursor: pointer;
  border: 1.5px solid rgba(255, 244, 223, .45); color: var(--ivoor); font: 800 14px var(--font);
  background: rgba(23, 16, 47, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23FFF4DF' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
}
.chip-select option { color: var(--inkt); }
.product-lijst { display: flex; flex-direction: column; gap: 10px; }
.product-rij {
  display: flex; align-items: center; gap: 4px; background: #fff; color: var(--inkt); border-radius: 16px; padding: 8px 8px 8px 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25); color-scheme: light;
}
.product-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.product-beeld { width: 92px; height: 92px; flex: none; border-radius: 12px; background: #f7f3ec; display: grid; place-items: center; overflow: hidden; }
.product-beeld img { width: 100%; height: 100%; object-fit: contain; }
.product-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sterren { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: #c47a00; }
.sterren .aantal { color: var(--grijs); font-weight: 700; }
svg.ster-vol { width: 15px; height: 15px; fill: #f5a623; stroke: #f5a623; }
.budget-label { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.budget-label svg.i { width: 13px; height: 13px; stroke-width: 3; }
.budget-label.ok { background: #e2f6ea; color: #157a40; }
.hart-knop { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: transparent; color: var(--rood); cursor: pointer; display: grid; place-items: center; align-self: flex-start; }
.hart-knop svg.i { width: 26px; height: 26px; stroke-width: 2.1; transition: transform .15s; }
.hart-knop.aan svg.i { fill: var(--rood); }
.hart-knop:active svg.i { transform: scale(1.2); }
.skelet .product-beeld, .sk-regel { background: linear-gradient(90deg, #eee8f3 0%, #f8f5fb 50%, #eee8f3 100%); background-size: 200% 100%; animation: glans 1.2s linear infinite; }
.sk-regel { display: block; height: 14px; border-radius: 7px; width: 90%; }
.sk-regel.kort { width: 50%; }
.sk-blok { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
@keyframes glans { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Productdetail */
body.laag-open { overflow: hidden; }
.product-laag { position: fixed; inset: 0; z-index: 70; background: rgba(10, 6, 24, .6); display: flex; justify-content: center; animation: verschijn .25s both; }
.laag-vel {
  position: relative; width: min(100%, 560px); height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(ellipse 120% 50% at 50% 0%, #4d2a86 0%, #281747 60%, #1d1238 100%);
  display: flex; flex-direction: column;
}
@media (min-width: 700px) { .product-laag { padding: 24px; } .laag-vel { height: auto; max-height: calc(100dvh - 48px); border-radius: 24px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); } }
.laag-kop { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; padding: calc(var(--veilig-boven) + 10px) 12px 0; pointer-events: none; }
.laag-knop { pointer-events: auto; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--inkt); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.laag-knop svg.i { width: 24px; height: 24px; }
.laag-knop.hart { color: var(--rood); }
.laag-knop.hart.aan svg.i { fill: var(--rood); }
.galerij { position: relative; padding-top: calc(var(--veilig-boven) + 58px); }
.galerij-spoor { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.galerij-spoor::-webkit-scrollbar { display: none; }
.galerij-foto { flex: 0 0 100%; scroll-snap-align: center; height: 300px; display: grid; place-items: center; padding: 10px 40px 26px; background: none; border: 0; cursor: zoom-in; }
.galerij-foto img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .4)); background: #fff; }
.galerij-foto.leeg { cursor: default; }
.galerij-pijl { position: absolute; top: 55%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(23, 16, 47, .5); color: #fff; display: grid; place-items: center; cursor: pointer; }
.galerij-pijl.links { left: 8px; } .galerij-pijl.rechts { right: 8px; }
.galerij-pijl svg.i { width: 22px; height: 22px; }
.galerij-punten { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.galerij-punten span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.galerij-punten span.aan { background: #fff; width: 18px; border-radius: 4px; }
.laag-inhoud { background: #fff; color: var(--inkt); border-radius: 24px 24px 0 0; padding: 20px 18px 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; color-scheme: light; }
.merk { margin: 0; font-size: 13px; font-weight: 900; color: var(--paars); }
.laag-titel { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 900; }
.laag-prijs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prijs-groot { font-size: 30px; font-weight: 900; }
.prijs-oud { color: var(--grijs); font-weight: 700; }
.klein.donker { color: var(--grijs); margin: 0; display: flex; gap: 6px; align-items: center; }
.klein.donker svg.i { width: 16px; height: 16px; }
.spec-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.spec-chip { background: #f6f2fc; border-radius: 12px; padding: 8px; font-size: 13px; font-weight: 800; text-align: center; line-height: 1.2; overflow: hidden; }
.spec-chip small { display: block; font-size: 11px; color: var(--grijs); font-weight: 700; margin-bottom: 2px; }
.over h3 { margin: 6px 0 6px; font-size: 17px; font-weight: 900; }
.omschrijving { margin: 0; color: #3e3552; font-weight: 600; line-height: 1.5; white-space: pre-line; }
.omschrijving.ingeklapt { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tekstknop.donker { color: var(--paars); padding: 4px 0; }
.specs { margin: 0; display: flex; flex-direction: column; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eee8f3; font-size: 14px; }
.specs dt { color: var(--grijs); font-weight: 700; }
.specs dd { margin: 0; font-weight: 800; text-align: right; }
.laag-acties { position: sticky; bottom: 0; background: #fff; padding: 12px 18px calc(var(--veilig-onder) + 14px); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -10px 24px rgba(0, 0, 0, .08); }
.knop-rand-donker { background: #fff; border: 1.6px solid #d7cfe6; color: var(--inkt); min-height: 48px; font-size: 16px; }
.chip-keuze.licht span { color: var(--inkt); border-color: #d7cfe6; }
.notitie-form { background: #faf7ff; border-radius: 16px; padding: 14px; }
.notitie-form .veld > label { color: var(--inkt); }
.notitie-form .invoer { box-shadow: none; border-color: #e2dbee; }
.zoom-laag { position: absolute; inset: 0; z-index: 5; background: rgba(10, 6, 24, .92); border: 0; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.zoom-laag img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 12px; }

.laag-acties .knop { font-size: 17px; }
.op-lijst { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: #ffe5ee; color: #a3163a; font-weight: 900; font-size: 13.5px; }
.op-lijst svg.i { width: 16px; height: 16px; fill: currentColor; }
body.laag-open #toasts { top: auto; bottom: calc(var(--veilig-onder) + 132px); }

/* ═══ Vaste schermen: alles op één scherm (2.1.0) ═══
   Alleen cadeaupagina's scrollen; deze schermen schalen mee met de schermhoogte. */
.scherm.vast {
  height: 100dvh; min-height: 0; overflow: hidden;
  padding-top: calc(var(--veilig-boven) + clamp(10px, 2.6dvh, 24px));
  padding-bottom: calc(var(--veilig-onder) + clamp(12px, 2.6dvh, 30px));
}
.scherm.vast.met-tabbar { padding-bottom: calc(var(--veilig-onder) + 86px); }
.vast > .stapel-lg, .vast > .stapel, .vast > form {
  flex: 1 1 auto; min-height: 0; margin-top: 0 !important;
  gap: clamp(8px, 1.9dvh, 22px);
  overflow-y: auto; scrollbar-width: none;
}
.vast > .stapel-lg::-webkit-scrollbar, .vast > .stapel::-webkit-scrollbar { display: none; }
.vast.midden > .stapel-lg { flex: 0 1 auto; }
.vast .stapel { gap: clamp(6px, 1.4dvh, 14px); }
.vast .titel { font-size: clamp(23px, 3.6dvh, 30px); }
.vast .sub { font-size: clamp(14px, 2dvh, 16px); }
.vast .knop { min-height: clamp(46px, 6.4dvh, 56px); flex: none; }
.vast .knop-rand { min-height: clamp(40px, 5.4dvh, 48px); }
.vast .lijn-icoon { width: clamp(40px, 6.5dvh, 56px); height: clamp(40px, 6.5dvh, 56px); }
.vast .goud-icoon { max-height: 7dvh; width: auto; }
.vast .krimp { flex: 1 1 0; min-height: 50px; height: 0; width: auto; max-width: 100%; object-fit: contain; align-self: center; margin: 0 auto; }
.vast .krimp-vak { flex: 1 1 0; min-height: 0; }
.vast .krimp-vak > .scroll-vak { flex: 1 1 0; min-height: 0; overflow-y: auto; align-content: flex-start; }
.vast .welkom-kolom { padding-top: clamp(20px, 5dvh, 40px); }
.vast .welkom-logo { max-height: 24dvh; width: auto; max-width: 100%; margin: 0 auto; flex: none; }
.vast .welkom-cadeau { margin: 0 auto; max-width: 320px; }
.vast .maan { top: calc(var(--veilig-boven) + 18px); }
.vast .trek-podium { min-height: 0; }
.vast .trek-cadeau { max-height: 100%; width: auto; max-width: 240px; }
.vast .onthul-kop { height: clamp(90px, 18dvh, 160px); flex: none; }
.vast .onthul-kop img { width: auto; height: clamp(80px, 16dvh, 150px); max-width: 70%; }
.vast .lot-kaart { padding: clamp(14px, 2.6dvh, 26px) 18px; flex: none; }
.vast .lot-naam { font-size: clamp(32px, 5.2dvh, 46px); }
.vast .lot-avatar { width: clamp(48px, 7.5dvh, 66px); height: clamp(48px, 7.5dvh, 66px); margin-top: calc(clamp(48px, 7.5dvh, 66px) * -.9); }
.vast .lot-kaart.met-avatar { margin-top: clamp(26px, 4dvh, 34px); }
/* Home */
.vast .kop-profiel .avatar { width: clamp(52px, 8dvh, 72px); height: clamp(52px, 8dvh, 72px); font-size: clamp(24px, 3.6dvh, 32px); }
.vast .kop-profiel h1 { font-size: clamp(24px, 3.6dvh, 30px); }
.vast .kop-groet { font-size: clamp(15px, 2.1dvh, 18px); }
.vast .home-lot { padding: clamp(12px, 2dvh, 18px) 16px; }
.vast .home-lot .lot-naam { font-size: clamp(30px, 5dvh, 42px); }
.vast .home-lot .knop { margin-top: clamp(8px, 1.4dvh, 14px) !important; }
.vast .menu-kaart { padding: clamp(9px, 1.5dvh, 14px) 14px; flex: none; }
.vast .menu-icoon { width: clamp(38px, 5.4dvh, 46px); height: clamp(38px, 5.4dvh, 46px); }
.vast .menu-tekst strong { font-size: clamp(16px, 2.2dvh, 18px); }
.vast .kaart-donker { padding: clamp(12px, 2dvh, 18px); }
.vast .kaart-donker.stapel.rek { flex: 1 1 auto; min-height: 0; }
.vast .kaart-donker { flex: none; }
.vast .info-rij { flex: none; }
/* Ontdekken */
.vast .ontdek-kop { flex: none; gap: 2px; }
.vast .ontdek-kop .goud-icoon { max-height: 5.5dvh; }
.vast .ontdek-titel { font-size: clamp(26px, 4.2dvh, 34px); }
.vast .zoekveld { flex: none; }
.vast .zoekveld input { min-height: clamp(44px, 6dvh, 54px); }
.vast .chips.recent { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: none; margin: 0 -20px; padding: 0 20px; }
.vast .chips.recent .chip { flex: none; white-space: nowrap; text-decoration: none; }
.vast .cat-raster { flex: 1 1 0; min-height: 0; grid-auto-rows: 1fr; gap: clamp(6px, 1.1dvh, 10px); }
.vast .cat-tegel { aspect-ratio: auto; min-height: 0; gap: clamp(2px, .8dvh, 8px); font-size: clamp(11.5px, 1.6dvh, 13.5px); padding: 4px; }
.vast .cat-tegel svg.i { width: clamp(22px, 3.8dvh, 34px); height: clamp(22px, 3.8dvh, 34px); }
.vast .budget-balk { flex: none; padding: clamp(10px, 1.6dvh, 14px) 16px; }
/* Groep */
.vast .krimp-vak.stapel { overflow: hidden; }
@media (max-height: 700px) {
  .vast .welkom-kolom .klein { display: none; }
}

/* Op het beginscherm zetten (2.2.0) */
.installatie-icoon { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 6px 0 4px; }
.installatie-icoon img { border-radius: 18px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.installatie-stappen { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.installatie-stappen li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: #3e3552; }
.stap-icoon { width: 36px; height: 36px; border-radius: 10px; background: #f3eefc; color: #5a2fb0; display: grid; place-items: center; flex: none; }
.stap-icoon svg.i { width: 20px; height: 20px; }

/* iOS Safari: datumveld niet breder dan het vak, tekst links zoals de andere velden (2.3.1) */
.veld { min-width: 0; }
.formraster > * { min-width: 0; }
input.invoer[type="date"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; min-width: 0; max-width: 100%;
  line-height: 50px; text-align: left;
}
input.invoer[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
input.invoer[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; }

/* ═══ PakjesMagie 3.0 ═══ */
.gekocht-knop { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; cursor: pointer; color: #8f84a8; font: 800 11px var(--font); padding: 4px; min-width: 56px; }
.gekocht-knop svg.i { width: 28px; height: 28px; }
.gekocht-knop.aan { color: var(--groen); }
.gekocht-knop.aan svg.i rect { fill: #e2f6ea; }
.wens:has(.gekocht-knop.aan) .wens-titel { text-decoration: line-through; text-decoration-color: rgba(31, 157, 85, .6); }
.qa-lijst { display: flex; flex-direction: column; gap: 8px; }
.qa { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; }
.qa p { margin: 0; line-height: 1.4; font-weight: 700; }
.qa-v { color: var(--ivoor); }
.qa-a { color: var(--goud); margin-top: 4px !important; }
.qa-wacht { color: rgba(255, 244, 223, .55); font-size: 13px; margin-top: 4px !important; }
.qa-sint { margin: 0; font-size: 18px; font-weight: 900; line-height: 1.35; }
.sint-vraag { box-shadow: 0 0 0 3px rgba(235, 53, 113, .45), 0 12px 28px rgba(0, 0, 0, .28); }
.gedicht-kaart { background: #fff; color: var(--inkt); border-radius: 18px; padding: 16px; color-scheme: light; }
.gedicht-kaart h2 { margin: 0; font-size: 19px; font-weight: 900; display: flex; gap: 8px; align-items: center; }
.gedicht-tekst { width: 100%; border: 2px solid #eee8f3; border-radius: 12px; padding: 12px; font: 700 16px/1.6 var(--font); color: var(--inkt); background: #fffaf0; resize: vertical; }
.herstel-code { font: 900 26px var(--font); letter-spacing: .12em; text-align: center; background: #fff4df; border: 2px dashed var(--goud-donker); border-radius: 14px; padding: 14px 8px; margin: 6px 0 10px; color: var(--inkt); }
.koppel-rij.uitsl > svg.i { color: #c4213f; }
.beheer-wensen { max-height: 40dvh; overflow-y: auto; }
.code-rij span { color: var(--grijs); font-weight: 800; white-space: nowrap; }
svg.schild-groot { width: 54px; height: 54px; color: var(--goud); }
.privacy { color: var(--ivoor); line-height: 1.55; font-weight: 600; max-width: 62ch; }
.privacy h2 { font-size: 18px; margin: 14px 0 2px; color: #fff; }
.privacy p, .privacy ul { margin: 0; }
.privacy ul { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
/* Verkooppagina */
.scherm.landing { max-width: 720px; }
.landing-hero { min-height: calc(100dvh - 60px); justify-content: center; padding-top: 20px; }
.landing-hero .welkom-logo { max-height: 26dvh; width: auto; }
.landing-blok { margin-top: 44px; }
.kenmerken { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.kenmerk { display: flex; gap: 12px; align-items: flex-start; background: #fff; color: var(--inkt); border-radius: 16px; padding: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.kenmerk strong { font-size: 16px; font-weight: 900; }
.kenmerk p { margin: 3px 0 0; color: var(--grijs); font-weight: 700; font-size: 14px; line-height: 1.4; }
.stappen-lijst { list-style: none; counter-reset: stap; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.stappen-lijst li { counter-increment: stap; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 14px 62px; position: relative; background: rgba(255, 255, 255, .08); border: 1px solid var(--rand); border-radius: 16px; }
.stappen-lijst li::before { content: counter(stap); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--goud); color: var(--inkt); font-weight: 900; display: grid; place-items: center; }
.stappen-lijst span { color: rgba(255, 244, 223, .8); font-weight: 700; font-size: 14px; }
.faq { background: rgba(255, 255, 255, .08); border: 1px solid var(--rand); border-radius: 14px; padding: 12px 14px; }
.faq summary { font-weight: 900; cursor: pointer; }
.faq p { margin: 8px 0 0; color: rgba(255, 244, 223, .85); font-weight: 600; line-height: 1.45; }
.koppel-rij.uitsl { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 40px; }
/* Klein scherm met vraag van de Sint: budgetlabels wijken (staan ook bij Groep) */
@media (max-height: 760px) {
  .vast .stapel-lg:has(.sint-vraag) > .info-rij { display: none; }
  .vast .stapel-lg:has(.sint-vraag) .home-lot .lot-label { display: none; }
  .vast .sint-vraag .menu-tekst span { display: none; }
}

/* Verkooppagina: voorbeeldschermen, voet (3.2.0) */
.schermen { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; }
.schermen::-webkit-scrollbar { display: none; }
.scherm-voorbeeld { flex: 0 0 min(62%, 230px); margin: 0; scroll-snap-align: center; text-align: center; }
.scherm-voorbeeld img { width: 100%; height: auto; border-radius: 22px; border: 3px solid rgba(244, 198, 106, .45); box-shadow: 0 16px 34px rgba(0, 0, 0, .4); }
.scherm-voorbeeld figcaption { margin-top: 8px; font-weight: 800; font-size: 14px; color: var(--ivoor); }
@media (min-width: 700px) { .schermen { justify-content: center; } }
.voet { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--rand); text-align: center; font-size: 13px; font-weight: 600; color: rgba(255, 244, 223, .7); display: flex; flex-direction: column; gap: 8px; }
.voet p { margin: 0; line-height: 1.45; }
.voet a { color: var(--goud); font-weight: 800; }
.affiliate-regel { margin: 0; font-size: 12px; font-weight: 600; color: var(--grijs); text-align: center; }
.voet { background: rgba(23, 16, 47, .82); border: 1px solid var(--rand); border-radius: 16px; padding: 14px 16px; margin-bottom: 8px; position: relative; z-index: 1; }

/* ═══ Home volgens mock 3.3.0 ═══ */
body.home-modus { background: #1b0f3a url('/assets/home/achtergrond.webp') center bottom / cover no-repeat fixed; }
body.home-modus::before { display: none; }
body.home-modus .skyline { display: none; }
.home2 .kop-profiel { gap: 18px; padding-left: 6px; }
.avatar-mijter { position: relative; flex: none; }
.home2 .avatar { width: clamp(64px, 10dvh, 86px); height: clamp(64px, 10dvh, 86px); font-size: clamp(28px, 4.4dvh, 38px); border: 3px solid #f6cf78; box-shadow: 0 0 0 4px rgba(244, 198, 106, .18), 0 10px 24px rgba(0, 0, 0, .35); }
.avatar-hoed { position: absolute; width: 58%; height: auto; left: -14%; top: -22%; transform: rotate(-24deg); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.home2 .kop-groet { font-size: clamp(16px, 2.4dvh, 20px); color: #fff; font-weight: 700; }
.home2 .kop-profiel h1 { font-size: clamp(28px, 4.6dvh, 38px); }
.home2 .kop-groep { font-size: clamp(14px, 2dvh, 17px); color: rgba(255, 244, 223, .75); }
.home2 .sectie-kop { margin: 0 4px -4px; flex: none; }
.home2 .sectie-kop h2 { font-size: clamp(20px, 3dvh, 24px); }
.lot-scene {
  position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
  padding: clamp(10px, 2dvh, 22px) 18px clamp(14px, 2.6dvh, 26px);
  border-radius: 28px; border: 1.5px solid rgba(244, 198, 106, .7);
  background:
    linear-gradient(180deg, rgba(30, 16, 62, 0) 0%, rgba(30, 16, 62, .35) 38%, rgba(33, 18, 66, .96) 62%),
    url('/assets/sint-dak.webp') 72% 38% / cover no-repeat, #2a1650;
  box-shadow: 0 0 0 4px rgba(244, 198, 106, .08), 0 0 34px rgba(244, 198, 106, .25), 0 18px 40px rgba(0, 0, 0, .35);
}
.lot-scene-beeld { flex: 1 1 0; min-height: 40px; height: 0; width: auto; max-width: 46%; max-height: 130px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(255, 200, 90, .55)); margin-bottom: clamp(4px, 1dvh, 10px); }
.lot-scene h2 { margin: 0; font-size: clamp(18px, 2.8dvh, 23px); font-weight: 900; line-height: 1.2; color: #fff; text-wrap: balance; }
.lot-scene p { margin: 6px 0 0; font-size: clamp(14px, 2dvh, 16px); font-weight: 600; color: rgba(255, 244, 223, .82); line-height: 1.4; text-wrap: balance; }
.lot-scene .knop { margin-top: clamp(10px, 1.6dvh, 16px); max-width: 340px; }
.menu-kaart.ivoor {
  background: linear-gradient(180deg, #fffaf1 0%, #f8e7d8 100%); border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 24px; padding: clamp(8px, 1.4dvh, 14px) 18px clamp(8px, 1.4dvh, 14px) 10px; gap: 14px;
  box-shadow: 0 0 0 1px rgba(235, 53, 113, .18), 0 12px 28px rgba(0, 0, 0, .3);
}
.menu-beeld { flex: none; width: clamp(64px, 9dvh, 82px); height: clamp(56px, 8dvh, 72px); display: grid; place-items: center; border-right: 1px solid rgba(120, 80, 90, .18); padding-right: 12px; }
.menu-beeld img { width: 100%; height: 100%; object-fit: contain; }
.menu-kaart.ivoor .menu-tekst strong { font-size: clamp(17px, 2.5dvh, 21px); color: #1d1235; }
.menu-kaart.ivoor .menu-tekst span { font-size: clamp(13px, 1.9dvh, 16px); color: #5c4f6e; }
.menu-kaart.ivoor > svg.i { color: var(--roze); width: 24px; height: 24px; stroke-width: 2.4; }
.home-chips { justify-content: center; }
.info-chip.donker { background: rgba(23, 12, 48, .72); border: 1.5px solid rgba(244, 198, 106, .55); height: clamp(34px, 4.8dvh, 42px); padding: 0 16px; font-size: clamp(14px, 2dvh, 16px); color: #fff; }
.info-chip.donker svg.i { width: 20px; height: 20px; }
/* Tabbalk zoals de mock */
.tabbar.lijn { border-radius: 26px 26px 0 0; border-top: 1px solid rgba(244, 198, 106, .2); background: rgba(18, 10, 38, .94); padding-top: 12px; }
.tabbar.lijn .tab { position: relative; font-size: 13px; }
.tabbar.lijn .tab.actief::after { content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); width: 44px; height: 3px; border-radius: 3px; background: var(--roze); }
@media (max-height: 760px) {
  .home2 .stapel-lg:has(.sint-vraag) > .home-chips { display: none; }
  .home2 .stapel-lg:has(.bericht-kaart) > .home-chips { display: none; }
}

/* Home: verfijning naar mock */
.lot-scene { flex: none; height: clamp(170px, 29dvh, 250px); justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(30, 16, 62, .15) 0%, rgba(30, 16, 62, .2) 35%, rgba(33, 18, 66, .97) 66%),
    url('/assets/sint-dak.webp') 92% 62% / 175% auto no-repeat, #2a1650; }
.lot-scene-beeld { max-height: clamp(54px, 11dvh, 110px); }
.lot-scene h2 { font-size: clamp(16px, 2.5dvh, 21px); }
.lot-scene p { font-size: clamp(13px, 1.8dvh, 15px); }
.home-deco { position: fixed; left: max(-6px, calc(50% - 236px)); bottom: calc(var(--veilig-onder) + 74px); width: clamp(90px, 15dvh, 140px); pointer-events: none; z-index: 0; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45)); }
@media (max-height: 760px) { .home-deco { display: none; } }
.lot-scene { background:
    linear-gradient(180deg, rgba(30, 16, 62, .05) 0%, rgba(30, 16, 62, .15) 34%, rgba(33, 18, 66, .97) 64%),
    url('/assets/sint-dak.webp') 58% 70% / 160% auto no-repeat, #2a1650; }
.home-deco { display: none; }
@media (min-height: 900px) { .home-deco { display: block; width: 120px; bottom: calc(var(--veilig-onder) + 70px); } }
.lot-scene { background:
    linear-gradient(180deg, rgba(30, 16, 62, 0) 0%, rgba(30, 16, 62, .12) 32%, rgba(33, 18, 66, .97) 64%),
    url('/assets/home/lootje-scene.webp') 100% 0% / cover no-repeat, #2a1650; }

/* ═══════════ Home en Groep volgens mock 3.3.0 ═══════════ */
body.home-modus { background: linear-gradient(180deg, #1c0e3d 0%, #26124b 55%, #2d1552 100%) fixed; }
body.home-modus::before { display: block; }
body.home-modus .skyline { display: none; }
.home-skyline { position: fixed; left: 0; right: 0; bottom: calc(var(--veilig-onder) + 64px); height: clamp(70px, 12dvh, 110px); z-index: 0; pointer-events: none;
  background: url('/assets/home/skyline-rechts.webp') center bottom / auto 100% repeat-x; opacity: .95; }
.home3 > .stapel-lg, .groep2 > .stapel-lg { position: relative; z-index: 1; }

/* Banner bovenaan, tot de randen */
.home-banner, .groep-banner {
  position: relative; flex: none; margin: calc(-1 * (var(--veilig-boven) + clamp(10px, 2.6dvh, 24px))) -20px 0;
  padding: calc(var(--veilig-boven) + clamp(8px, 1.6dvh, 16px)) 20px clamp(10px, 2dvh, 18px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background:
    linear-gradient(180deg, rgba(28, 14, 61, 0) 45%, #1d0f3f 100%),
    url('/assets/home/banner.webp') 18% 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
  mask-image: linear-gradient(180deg, #000 82%, transparent);
}
.home-logo { width: min(68vw, 300px); max-height: 17dvh; height: auto; object-fit: contain; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5)); }

/* Welkom */
.home-welkom { display: flex; align-items: center; gap: 16px; padding-left: 6px; flex: none; }
.home-welkom .avatar { width: clamp(64px, 10.5dvh, 92px); height: clamp(64px, 10.5dvh, 92px); font-size: clamp(30px, 4.6dvh, 40px); border: 4px solid #fbe3a6; box-shadow: 0 0 0 3px #e3a43c, 0 10px 24px rgba(0, 0, 0, .35); }
.home-welkom .kop-groet { margin: 0; font-size: clamp(16px, 2.5dvh, 21px); font-weight: 700; color: #fff; }
.home-welkom h1 { margin: 0; font-size: clamp(28px, 4.6dvh, 38px); font-weight: 900; line-height: 1.05; }
.home-welkom .kop-groep { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; font-size: clamp(15px, 2.1dvh, 18px); font-weight: 800; color: var(--goud); }
.home-welkom .kop-groep svg.i { width: 20px; height: 20px; }
.sint-vraag-balk { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; text-decoration: none; color: #fff; font-weight: 800; flex: none;
  background: linear-gradient(90deg, #c22a62, #8d3fbf); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.sint-vraag-balk span { flex: 1; }

/* Lootjeskaart met lint */
.lot-roze {
  position: relative; flex: 1 1 auto; min-height: 0; margin-top: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
  padding: clamp(26px, 4dvh, 40px) 18px clamp(14px, 2.4dvh, 24px);
  border-radius: 28px; border: 2px solid #f0b85a;
  background: radial-gradient(ellipse 70% 55% at 50% 38%, rgba(232, 74, 120, .45), transparent 70%), linear-gradient(180deg, #4a1747 0%, #3a1446 55%, #2c1240 100%);
  box-shadow: 0 0 0 4px rgba(240, 184, 90, .12), 0 0 30px rgba(240, 120, 140, .35), inset 0 0 30px rgba(255, 120, 160, .12);
}
.lint {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 7px 34px 9px; font-weight: 900; font-size: clamp(17px, 2.6dvh, 22px); color: #fff4df;
  background: linear-gradient(180deg, #e2324f 0%, #b31637 100%); border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .2);
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
}
.glinster { position: absolute; color: #ffd98a; text-shadow: 0 0 10px rgba(255, 210, 120, .9); font-size: 22px; pointer-events: none; }
.glinster.g1 { top: 22%; left: 16%; font-size: 28px; } .glinster.g2 { top: 18%; right: 18%; } .glinster.g3 { top: 44%; left: 26%; font-size: 14px; }
.lot-cadeau { flex: 1 1 0; min-height: 50px; height: 0; width: auto; max-width: 60%; max-height: 170px; object-fit: contain; filter: drop-shadow(0 0 22px rgba(255, 190, 90, .6)); margin-bottom: clamp(6px, 1.2dvh, 12px); }
.lot-roze h2 { margin: 0; font-size: clamp(16px, 2.5dvh, 21px); font-weight: 900; color: #fff; text-wrap: balance; }
.lot-roze p { margin: 6px 0 0; font-size: clamp(13px, 1.9dvh, 16px); font-weight: 600; color: rgba(255, 244, 223, .85); text-wrap: balance; line-height: 1.4; }
.lot-roze .knop { margin-top: clamp(10px, 1.6dvh, 16px); max-width: 320px; }
.lot-inhoud { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; }
.lot-voor { font-size: clamp(15px, 2.2dvh, 18px) !important; color: #fff !important; }
.lot-wie { margin: 4px 0 0 !important; font-size: clamp(36px, 6dvh, 52px) !important; font-weight: 900 !important; color: var(--goud) !important; text-shadow: 0 0 18px rgba(244, 198, 106, .5); }

/* Twee tegels */
.home-tegels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: none; }
.home-tegel { position: relative; display: flex; flex-direction: column; gap: 4px; padding: clamp(10px, 1.8dvh, 16px) 14px clamp(12px, 2dvh, 18px); border-radius: 22px; text-decoration: none; color: #fff; min-height: clamp(118px, 18dvh, 170px); }
.home-tegel.roze { background: linear-gradient(160deg, #a52a62 0%, #6c1f55 100%); border: 1.5px solid rgba(255, 140, 190, .6); box-shadow: 0 10px 24px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .2); }
.home-tegel.paars { background: linear-gradient(160deg, #6a3bb0 0%, #43237c 100%); border: 1.5px solid rgba(200, 160, 255, .55); box-shadow: 0 10px 24px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .2); }
.home-tegel .tegel-icoon { width: clamp(30px, 4.6dvh, 40px); height: clamp(30px, 4.6dvh, 40px); color: var(--goud); stroke-width: 1.8; margin-bottom: 2px; }
.home-tegel strong { font-size: clamp(16px, 2.5dvh, 21px); font-weight: 900; line-height: 1.12; }
.home-tegel span { font-size: clamp(12.5px, 1.8dvh, 15px); font-weight: 600; color: rgba(255, 244, 223, .88); line-height: 1.3; padding-right: 26px; }
.home-tegel .tegel-pijl { position: absolute; right: 12px; bottom: 12px; width: 26px; height: 26px; color: #fff; stroke-width: 1.8; }

/* Statistiekbalk */
.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); flex: none; border-radius: 20px; padding: clamp(8px, 1.4dvh, 12px) 4px;
  background: linear-gradient(180deg, rgba(74, 40, 130, .75), rgba(50, 26, 92, .85)); border: 1.5px solid rgba(200, 160, 255, .4); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.home-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.home-stats > div + div { border-left: 1px solid rgba(255, 255, 255, .15); }
.home-stats svg.i { width: clamp(24px, 3.6dvh, 32px); height: clamp(24px, 3.6dvh, 32px); color: var(--goud); stroke-width: 1.8; }
.home-stats strong { font-size: clamp(16px, 2.4dvh, 20px); font-weight: 900; }
.home-stats span { font-size: clamp(12px, 1.7dvh, 14px); font-weight: 600; color: rgba(255, 244, 223, .85); }

/* ═══ Groep ═══ */
.groep-banner { padding-bottom: clamp(12px, 2dvh, 20px); background:
    linear-gradient(180deg, rgba(28, 14, 61, 0) 40%, #1d0f3f 100%),
    url('/assets/home/banner.webp') 0% 40% / cover no-repeat; }
.groep-banner .goud-icoon { max-height: 7dvh; width: auto; }
.groep-banner h1 { margin: 2px 0 0; font-size: clamp(28px, 4.6dvh, 38px); font-weight: 900; }
.groep-banner p { margin: 4px 0 0; font-weight: 600; color: rgba(255, 244, 223, .9); font-size: clamp(14px, 2dvh, 16px); max-width: 260px; }
.groep-banner-deco { position: absolute; right: -10px; bottom: 0; width: clamp(96px, 16dvh, 150px); height: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .4)); }
.segmenten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; flex: none;
  background: rgba(23, 12, 48, .7); border: 1.5px solid rgba(200, 160, 255, .35); }
.seg { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: clamp(40px, 5.6dvh, 48px); border-radius: 999px; border: 0; background: none; color: #fff; font: 800 clamp(13px, 1.9dvh, 15px) var(--font); cursor: pointer; }
.seg svg.i { width: 20px; height: 20px; }
.seg.actief { background: linear-gradient(180deg, #e03a74, #b51f58); box-shadow: 0 6px 14px rgba(181, 31, 88, .45), inset 0 1px 0 rgba(255, 255, 255, .3); }
.groep-info { position: relative; flex: none; background: linear-gradient(180deg, #fff9ee, #f7e9d3); color: var(--inkt); border-radius: 22px; padding: clamp(12px, 2dvh, 18px) 16px 10px; border: 1.5px solid #f2d39a; box-shadow: 0 12px 28px rgba(0, 0, 0, .3); color-scheme: light; }
.groep-info h2 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; font-size: clamp(18px, 2.7dvh, 22px); font-weight: 900; }
.groep-info h2 svg.i { width: 26px; height: 26px; color: #c58a1d; }
.groep-info h2 small { margin-left: auto; margin-right: 60px; font-size: 14px; color: var(--grijs); }
.groep-info-hoed { position: absolute; right: 8px; top: -26px; width: clamp(58px, 9dvh, 80px); height: auto; transform: rotate(10deg); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.groep-rijen > * { display: flex; align-items: center; gap: 12px; padding: clamp(6px, 1.2dvh, 11px) 4px; border-bottom: 1px solid #ecdcc3; font-size: clamp(14px, 2dvh, 16px); font-weight: 700; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; color: inherit; font-family: inherit; text-align: left; }
.groep-rijen > *:last-child { border-bottom: 0; }
.groep-rijen svg.i { width: 22px; height: 22px; color: #b5402f; flex: none; }
.groep-rijen span { flex: 1; }
.groep-rijen strong { font-weight: 900; }
.groep-rijen button { cursor: pointer; }
.voortgang { flex: none; border-radius: 22px; padding: clamp(10px, 1.6dvh, 14px) 12px 12px; background: linear-gradient(180deg, rgba(74, 40, 130, .7), rgba(50, 26, 92, .82)); border: 1.5px solid rgba(200, 160, 255, .4); }
.voortgang h2 { margin: 0 0 10px 4px; display: flex; align-items: center; gap: 10px; font-size: clamp(18px, 2.7dvh, 22px); font-weight: 900; }
.voortgang h2 svg.i { width: 26px; height: 26px; color: var(--goud); stroke-width: 3; }
.voortgang-tegels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.voortgang-tegels > div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: clamp(8px, 1.4dvh, 12px) 4px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); text-align: center; }
.voortgang-tegels svg.i { width: clamp(28px, 4.2dvh, 36px); height: clamp(28px, 4.2dvh, 36px); color: var(--goud); stroke-width: 1.8; }
.voortgang-tegels svg.i.rood { color: var(--roze); fill: rgba(235, 53, 113, .25); }
.voortgang-tegels strong { font-size: clamp(16px, 2.4dvh, 20px); font-weight: 900; }
.voortgang-tegels span { font-size: clamp(12px, 1.7dvh, 14px); font-weight: 600; color: rgba(255, 244, 223, .85); }
.ring-klein { width: clamp(46px, 7.4dvh, 62px); height: clamp(46px, 7.4dvh, 62px); }
.ring-klein text { font: 900 16px var(--font); fill: #fff; }
.laatste-update { flex: none; display: flex; gap: 12px; align-items: flex-start; border-radius: 22px; padding: clamp(10px, 1.6dvh, 14px) 16px;
  background: linear-gradient(180deg, rgba(110, 40, 120, .7), rgba(70, 26, 96, .82)); border: 1.5px solid rgba(255, 140, 190, .4); }
.laatste-update > svg.i { width: 34px; height: 34px; color: var(--goud); flex: none; }
.laatste-update strong { font-size: clamp(16px, 2.4dvh, 19px); font-weight: 900; }
.laatste-update p { margin: 2px 0 0; font-size: clamp(13px, 1.9dvh, 15px); font-weight: 600; color: rgba(255, 244, 223, .9); line-height: 1.4; }
.groep-lijst { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.groep-namen { overflow-y: auto; flex: 1; min-height: 0; }
.groep-namen > div { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #ecdcc3; font-weight: 800; }
.groep-namen > div:last-child { border-bottom: 0; }
.groep-namen svg.i { color: #b5402f; }
/* ── Compacter, zoals de mock ── */
.home3 > .stapel-lg, .groep2 > .stapel-lg { gap: clamp(7px, 1.5dvh, 16px); }
.home-banner { padding-bottom: clamp(4px, 1dvh, 10px); }
.home-logo { width: min(62vw, 270px); max-height: 14dvh; }
.home-welkom { gap: 14px; }
.home-welkom .avatar { width: clamp(54px, 8.6dvh, 78px); height: clamp(54px, 8.6dvh, 78px); font-size: clamp(26px, 4dvh, 34px); }
.home-welkom .kop-groet { font-size: clamp(15px, 2.2dvh, 19px); }
.home-welkom h1 { font-size: clamp(24px, 4dvh, 33px); }
.home-welkom .kop-groep { font-size: clamp(13px, 1.9dvh, 16px); }
.lot-roze { margin-top: 16px; padding-top: clamp(22px, 3.4dvh, 34px); justify-content: center; }
.lot-cadeau { flex: none; height: clamp(62px, 13dvh, 150px); width: auto; max-width: 62%; max-height: none; }
.lint { top: -17px; font-size: clamp(16px, 2.4dvh, 20px); padding: 6px 30px 8px; }
.home-tegels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-tegel { min-height: clamp(96px, 15dvh, 150px); padding: clamp(9px, 1.5dvh, 14px) 12px clamp(10px, 1.6dvh, 14px); border-radius: 20px; }
.home-tegel strong { font-size: clamp(15px, 2.2dvh, 19px); }
.home-tegel span { font-size: clamp(12px, 1.65dvh, 14px); }
.home-tegel .tegel-icoon { width: clamp(26px, 4dvh, 36px); height: clamp(26px, 4dvh, 36px); }
.home-tegel .tegel-pijl { width: 24px; height: 24px; right: 10px; bottom: 10px; }
.home-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-stats strong { font-size: clamp(15px, 2.2dvh, 19px); }
.home-stats svg.i { width: clamp(22px, 3.2dvh, 30px); height: clamp(22px, 3.2dvh, 30px); }
/* Groep */
.groep-banner { padding-bottom: clamp(6px, 1.2dvh, 12px); }
.banner-icoon { width: clamp(38px, 6dvh, 54px) !important; height: clamp(38px, 6dvh, 54px) !important; color: var(--goud); stroke-width: 1.6; filter: drop-shadow(0 0 10px rgba(244, 198, 106, .5)); }
.groep-banner h1 { font-size: clamp(24px, 4dvh, 32px); }
.groep-banner p { font-size: clamp(13px, 1.8dvh, 15px); max-width: 230px; }
.groep-banner-deco { width: clamp(78px, 13dvh, 128px); right: -22px; }
.seg { gap: 4px; font-size: clamp(12px, 1.7dvh, 14px); min-height: clamp(36px, 5dvh, 44px); padding: 0 4px; }
.seg svg.i { width: 17px; height: 17px; }
.groep-info { padding: clamp(10px, 1.6dvh, 14px) 14px 6px; }
.groep-info h2 { font-size: clamp(16px, 2.4dvh, 20px); margin-bottom: 2px; }
.groep-info h2 svg.i { width: 22px; height: 22px; }
.groep-info-hoed { width: clamp(50px, 7.6dvh, 70px); top: -22px; }
.groep-rijen > * { padding: clamp(4px, 0.95dvh, 9px) 2px; font-size: clamp(13px, 1.8dvh, 15px); gap: 10px; }
.groep-rijen svg.i { width: 20px; height: 20px; }
.voortgang { padding: clamp(8px, 1.3dvh, 12px) 10px 10px; }
.voortgang h2 { font-size: clamp(16px, 2.4dvh, 20px); margin-bottom: clamp(6px, 1dvh, 10px); }
.voortgang h2 svg.i { width: 22px; height: 22px; }
.voortgang-tegels { gap: 7px; }
.voortgang-tegels > div { padding: clamp(6px, 1dvh, 10px) 2px; }
.voortgang-tegels svg.i { width: clamp(22px, 3.4dvh, 30px); height: clamp(22px, 3.4dvh, 30px); }
.voortgang-tegels strong { font-size: clamp(15px, 2.1dvh, 18px); }
.voortgang-tegels span { font-size: clamp(11.5px, 1.6dvh, 13px); }
.ring-klein { width: clamp(38px, 6.2dvh, 54px); height: clamp(38px, 6.2dvh, 54px); }
.laatste-update { padding: clamp(8px, 1.3dvh, 12px) 14px; gap: 10px; }
.laatste-update > svg.i { width: 28px; height: 28px; }
.laatste-update strong { font-size: clamp(15px, 2.1dvh, 18px); }
.laatste-update p { font-size: clamp(12.5px, 1.75dvh, 14px); }
@media (max-height: 720px) {
  .groep-banner p { display: none; }
  .voortgang-tegels span { font-size: 11px; }
}
.lot-cadeau { height: clamp(52px, 11dvh, 130px); }
.lot-roze h2 { font-size: clamp(15px, 2.2dvh, 19px); }
.lot-roze p { font-size: clamp(12.5px, 1.75dvh, 15px); margin-top: 4px; }
.lot-roze { padding-bottom: clamp(10px, 1.8dvh, 18px); }
.home-tegel strong { font-size: clamp(14px, 1.95dvh, 17px); }
@media (max-height: 720px) { .lot-cadeau { height: 44px; } .glinster.g3 { display: none; } }
