/* ===== Thema: officiële Marktplaats-kleuren — pas hier snel aan ===== */
:root {
  --mp-orange: #EEA566;     /* primaire merkkleur */
  --mp-blue: #116EB4;
  --mp-offwhite: #F7F7F5;
  --mp-ink: #2D3C4D;        /* donkerblauw uit het logo */

  --accent: var(--mp-orange);
  --accent-ink: var(--mp-ink);
  --blue: var(--mp-blue);
  --blue-text: #116EB4;
  --sel-bg: #EAF3FB;

  /* Licht (standaard) */
  --bg: var(--mp-offwhite);
  --surface: #FFFFFF;
  --surface-2: #EFEEEA;
  --line: #E3E2DD;
  --ink: var(--mp-ink);
  --ink-muted: #5F6B78;
  --shadow: 0 10px 30px rgba(20, 30, 45, .14);

  /* Feed: altijd donker, foto's centraal */
  --feed-bg: #10161D;
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, .8);
  --like: #FF3B5C;
  --star: #FFC83D;
  --radius: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --kb: 0px; /* hoogte toetsenbord (iOS), gezet via JS */
}
/* Donker, zoals de Marktplaats-app in dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1B1B;
    --surface: #262626;
    --surface-2: #303030;
    --line: #3A3A3A;
    --ink: #F2F2F2;
    --ink-muted: #A9A9A9;
    --blue-text: #3D9BE9;
    --sel-bg: rgba(17, 110, 180, .22);
    --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--bg); color: var(--ink); font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;              /* geen dubbeltik-zoom */
  -webkit-touch-callout: none;             /* geen iOS-contextmenu bij long-press */
  user-select: none; -webkit-user-select: none;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}
input, textarea { user-select: text; -webkit-user-select: text; font-family: inherit; }
button { font-family: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--blue-text); outline-offset: 2px; }
img { -webkit-user-drag: none; }
svg { display: block; }

#app {
  position: relative; height: 100vh; height: 100dvh;
  max-width: 520px; margin: 0 auto; overflow: hidden;
  background: var(--bg);
}
@media (min-width: 521px) { #app { box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(0,0,0,.25); } html, body { background: #0C1117; } }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); }

/* Schermovergangen */
.screen.in-fwd  { animation: in-fwd .34s var(--ease) both; }
.screen.in-back { animation: in-back .34s var(--ease) both; }
.screen.in-fade { animation: in-fade .4s ease both; }
.screen.in-up   { animation: in-up .42s var(--ease) both; }
@keyframes in-fwd  { from { transform: translateX(32px); opacity: 0 } }
@keyframes in-back { from { transform: translateX(-32px); opacity: 0 } }
@keyframes in-fade { from { opacity: 0 } }
@keyframes in-up   { from { transform: translateY(40px) scale(.98); opacity: 0 } }

/* ===== Knoppen ===== */
.btn {
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px;
  font-size: 17px; font-weight: 700; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform .12s, opacity .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.btn.blue { background: var(--blue); color: #fff; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--blue-text); box-shadow: none; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; }
.btn .spin { display: inline-block; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg) } }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; border-radius: 12px; flex: none; }
.icon-btn svg { width: 26px; height: 26px; }
.icon-btn:active { background: var(--surface-2); }

/* ===== 1. Laadscherm ===== */
#splash { align-items: center; justify-content: center; gap: 14px; padding: 24px; }
.splash-icon { width: 92px; height: 92px; animation: pop 1s cubic-bezier(.2,.9,.3,1.35) both; }
.splash-logo { width: min(54vw, 210px); animation: fade .6s .25s both; }
/* Alleen de tekst (zonder het ronde icoon) wit maken in dark mode */
@media (prefers-color-scheme: dark) { .splash-logo { filter: brightness(0) invert(1); } }
.splash-sub { margin: 4px 0 0; color: var(--ink-muted); font-size: 14px; text-align: center; max-width: 260px; animation: fade .6s .5s both; }
.splash-error { color: var(--ink-muted); display: flex; gap: 10px; align-items: center; }
@keyframes pop { 0% { transform: scale(.4) rotate(-20deg); opacity: 0 } 60% { opacity: 1 } 100% { transform: none; opacity: 1 } }
@keyframes fade { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

/* ===== Home (Marktplaats-app) ===== */
.home-scroll { flex: 1; overflow-y: auto; overscroll-behavior-y: contain; padding-bottom: calc(var(--sab) + 24px); scrollbar-width: none; }
.home-scroll::-webkit-scrollbar { display: none; }
.mp-topline { height: calc(var(--sat) + 5px); background: var(--mp-orange); }
.mp-header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.mp-search { flex: 1; min-width: 0; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-muted); font-size: 16px; text-align: left; }
.mp-search span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-search svg { width: 20px; height: 20px; }
.swipe-btn { position: relative; flex: none; height: 46px; display: flex; align-items: center; gap: 6px; padding: 0 14px 0 11px;
  border: 0; border-radius: 10px; font-size: 16px; font-weight: 800; color: var(--mp-ink);
  background: linear-gradient(135deg, #F3B57A, var(--mp-orange) 55%, #E8914A);
  box-shadow: 0 4px 14px rgba(238,165,102,.45); transition: transform .15s; }
.swipe-btn svg { width: 22px; height: 22px; }
.swipe-btn:active { transform: scale(.95); }
.swipe-btn::after { content: ""; position: absolute; inset: -4px; border-radius: 14px; border: 2px solid var(--mp-orange); opacity: 0; animation: halo 2.2s 1s infinite; }
@keyframes halo { 0% { opacity: .9; transform: scale(.96) } 70%, 100% { opacity: 0; transform: scale(1.12) } }
.coach { position: relative; margin: 8px 12px 4px; padding: 12px 14px; border-radius: 12px; background: var(--mp-blue); color: #fff; font-size: 14px; line-height: 1.4;
  animation: fade .5s .3s both; }
.coach b { display: block; font-size: 15px; }
.coach::before { content: ""; position: absolute; top: -7px; right: 42px; width: 14px; height: 14px; background: var(--mp-blue); transform: rotate(45deg); border-radius: 2px; }
.mp-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); }
.mp-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 8px 2px;
  border: 0; border-radius: 12px; background: none; color: var(--ink-muted); font-size: 13px; font-weight: 500; transition: background .15s; }
.mp-action svg { width: 28px; height: 28px; }
.mp-action:active { background: var(--surface-2); }
.mp-action.primary { background: var(--mp-blue); color: #fff; }
.mp-cats { display: flex; gap: 10px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.mp-cat { width: 58px; height: 52px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--blue-text); border-radius: 10px; background: none; color: var(--blue-text); }
.mp-cat svg { width: 26px; height: 26px; }
.mp-cat.all { flex: 1; width: auto; font-size: 17px; font-weight: 700; }
.mp-tabs { display: grid; grid-template-columns: 1fr 1fr; position: sticky; top: 67px; z-index: 4; background: var(--bg); border-bottom: 1px solid var(--line); }
.mp-tabs button { height: 52px; border: 0; background: none; font-size: 17px; font-weight: 600; color: var(--ink); position: relative; }
.mp-tabs button[aria-selected="true"] { color: var(--blue-text); }
.mp-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--blue-text); border-radius: 2px; }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; padding: 14px 12px; }
.mp-item { position: relative; border: 0; padding: 0; background: none; text-align: left; color: var(--ink); animation: fade .4s both; }
.mp-item .ph { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.mp-item .ph img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s; }
.mp-item .ph img.loaded { opacity: 1; }
.mp-item .t { margin: 8px 2px 4px; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.mp-item .p { margin: 0 2px; font-size: 17px; font-weight: 700; }
.mp-heart { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(20,20,20,.78); color: #fff; transition: transform .15s; }
.mp-heart svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }
.mp-heart[aria-pressed="true"] svg { fill: var(--like); stroke: var(--like); }
.mp-heart:active { transform: scale(.88); }
.mp-foot { text-align: center; color: var(--ink-muted); font-size: 12px; padding: 4px 24px 12px; margin: 0; }

/* ===== 2 + 3. Formulieren ===== */
.form-screen { padding: calc(var(--sat) + 64px) 22px calc(var(--sab) + 24px); gap: 14px; overflow-y: auto; }
.back-btn, .feed-back { position: absolute; top: calc(var(--sat) + 10px); left: calc(var(--sal) + 8px); width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: none; display: grid; place-items: center; z-index: 3; }
.back-btn svg, .feed-back svg { width: 26px; height: 26px; }
.back-btn:active { background: var(--surface-2); }
.form-top { margin-bottom: 14vh; }
.swipe-tag { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--mp-blue); color: #fff; font-weight: 800; font-size: 18px; }
.h1 { display: block; font-size: 30px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.5px; }
.muted { color: var(--ink-muted); margin: 0; }
.fine { color: var(--ink-muted); font-size: 13px; line-height: 1.45; margin: 4px 2px; }
#name-form { display: flex; flex-direction: column; gap: 12px; }
#name-input, .text-input {
  height: 58px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 20px; padding: 0 16px; outline: none; transition: border-color .15s;
}
#name-input:focus, .text-input:focus { border-color: var(--blue-text); }
.counter { align-self: flex-end; margin-top: -6px; font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 0; }
.cat-tile {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  gap: 18px; min-height: 104px; padding: 14px; border-radius: var(--radius);
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); text-align: left;
  font-size: 17px; font-weight: 700; transition: border-color .15s, background .15s, transform .15s var(--ease);
  animation: fade .4s both;
}
.cat-tile svg { width: 34px; height: 34px; stroke: var(--tile, var(--accent)); }
.cat-tile:active { transform: scale(.96); }
.cat-tile[aria-pressed="true"] { border-color: var(--blue-text); background: var(--sel-bg); }
.cat-tile .check { margin-left: auto; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center; transition: background .15s, transform .2s var(--ease); }
.cat-tile .check svg { visibility: hidden; width: 14px; height: 14px; }
.cat-tile[aria-pressed="true"] .check { background: var(--blue); border-color: var(--blue); transform: scale(1.1); }
.cat-tile[aria-pressed="true"] .check svg { visibility: visible; }
.cat-tile .row { display: flex; width: 100%; align-items: center; }
.sticky-cta { position: sticky; bottom: 0; margin-top: auto; padding-top: 16px; background: linear-gradient(transparent, var(--bg) 30%); }

/* ===== 5. Feed ===== */
.feed-screen { background: var(--feed-bg); color: var(--text); }
.feed {
  height: 100%; overflow-y: scroll; overflow-x: hidden; outline: none;
  scroll-snap-type: y mandatory; overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar, .carousel::-webkit-scrollbar, .gallery::-webkit-scrollbar { display: none; }
.feed-top { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--sat) + 64px); padding-top: var(--sat);
  display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 4; }
.feed-top > * { pointer-events: auto; }
.feed-back { color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.feed-back:active { background: rgba(255,255,255,.12); }
.feed-title { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 17px; text-shadow: 0 1px 4px rgba(0,0,0,.5); pointer-events: none; }
.feed-title img { width: 26px; height: 26px; }
.feed-progress { position: absolute; right: calc(var(--sar) + 14px); top: calc(var(--sat) + 21px); font-size: 13px; font-weight: 700;
  background: rgba(0,0,0,.35); padding: 4px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.card {
  position: relative; height: 100vh; height: 100dvh; overflow: hidden;
  scroll-snap-align: start; scroll-snap-stop: always; background: var(--feed-bg);
}
.carousel {
  display: flex; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: var(--cat, #1d2733); }
.slide img { position: absolute; display: block; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.slide img.loaded { opacity: 1; }
.slide .bg { inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(22px) brightness(.5); }
.slide .fg { inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center 40%; }

.shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.5), transparent 15%),
    linear-gradient(to top, rgba(4,8,14,.94) 0%, rgba(4,8,14,.62) 24%, transparent 48%); }

.meta { position: absolute; left: calc(var(--sal) + 16px); right: calc(var(--sar) + 84px);
  bottom: calc(var(--sab) + 20px); text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.dots { display: flex; gap: 5px; margin-bottom: 12px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.4); transition: width .25s var(--ease), background .25s; }
.dots i.on { width: 18px; background: #fff; }
.price { font-size: 32px; font-weight: 800; letter-spacing: -.5px; color: var(--mp-orange); pointer-events: none; }
.title { margin: 2px 0 6px; font-size: 19px; font-weight: 700; line-height: 1.25; pointer-events: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sub { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); flex-wrap: wrap; pointer-events: none; }
.sub svg { width: 15px; height: 15px; flex: none; }
.caption { display: flex; gap: 4px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 14px; text-align: left; max-width: 100%; }
.caption span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.caption b { color: #fff; flex: none; }

.actions { position: absolute; right: calc(var(--sar) + 6px); bottom: calc(var(--sab) + 18px);
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
.act { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 66px; min-height: 66px; padding: 0; border: 0; background: none; color: #fff;
  font-size: 12px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.6); -webkit-touch-callout: none; }
.act .ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10,16,25,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .2s var(--ease), background .2s; }
.act svg { width: 28px; height: 28px; }
.act:active .ic { transform: scale(.88); }
.act .lbl { max-width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: #fff; border: 2px solid #fff; text-shadow: none; }
.act.offer.done .ic { background: var(--mp-orange); color: var(--mp-ink); }

.like svg { fill: none; stroke: #fff; stroke-width: 2; transition: fill .15s, stroke .15s; }
.like[aria-pressed="true"] svg { fill: var(--like); stroke: var(--like); }
.like.pop .ic { animation: likepop .45s var(--ease); }
.like.unpop .ic { animation: unpop .3s ease; }
.like.holding .ic { transform: scale(.9); }
.like .star-badge { position: absolute; top: -3px; right: 5px; width: 22px; height: 22px; display: none; }
.like.super .star-badge { display: block; animation: likepop .45s var(--ease); }
.like.super .star-badge svg { width: 22px; height: 22px; fill: var(--star); stroke: none; filter: drop-shadow(0 0 4px rgba(255,200,61,.8)); }
.like.super .ic { box-shadow: 0 0 0 2px var(--star), 0 0 14px rgba(255,200,61,.55); }
/* Ring verschijnt pas na 0,2 s ingedrukt houden (class wordt dan pas gezet) en vult in 0,4 s */
.like .ring { position: absolute; top: -4px; left: 4px; width: 58px; height: 58px; pointer-events: none; opacity: 0; transform: scale(.85); transition: opacity .12s, transform .2s var(--ease); }
.like .ring circle { fill: none; stroke: var(--star); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 170; stroke-dashoffset: 170;
  transform: rotate(-90deg); transform-origin: center; }
.like.charging .ring { opacity: 1; transform: none; }
.like.charging .ring circle { animation: ring .4s linear forwards; }
.like.super.charging .ring circle { stroke: #fff; }
@keyframes ring { to { stroke-dashoffset: 0 } }
@keyframes likepop { 0% { transform: scale(1) } 35% { transform: scale(1.32) } 65% { transform: scale(.94) } 100% { transform: scale(1) } }
@keyframes unpop { 0% { transform: scale(1) } 50% { transform: scale(.8) } 100% { transform: scale(1) } }

/* Dubbeltik-hart en superlike-animatie */
.burst { position: absolute; width: 110px; height: 110px; margin: -55px 0 0 -55px; pointer-events: none; color: var(--like);
  animation: burst .85s var(--ease) forwards; z-index: 5; filter: drop-shadow(0 4px 14px rgba(0,0,0,.35)); }
.burst svg { width: 100%; height: 100%; }
@keyframes burst { 0% { transform: scale(.2) rotate(var(--rot, -12deg)); opacity: 0 } 25% { transform: scale(1.15) rotate(var(--rot, -12deg)); opacity: 1 }
  60% { transform: scale(1) rotate(var(--rot, -12deg)); opacity: 1 } 100% { transform: scale(1.05) translateY(-70px) rotate(var(--rot, -12deg)); opacity: 0 } }
.super-fx { position: absolute; inset: 0; pointer-events: none; z-index: 6; display: grid; place-items: center; }
.super-fx .flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(255,200,61,.35), transparent 60%); animation: out .9s forwards; }
.super-fx .big-star { width: 170px; height: 170px; fill: var(--star); animation: superstar 1.2s var(--ease) forwards;
  filter: drop-shadow(0 0 24px rgba(255,200,61,.8)); }
.super-fx .label { position: absolute; top: 58%; font-size: 26px; font-weight: 900; color: var(--star);
  letter-spacing: 1px; text-shadow: 0 2px 10px rgba(0,0,0,.6); animation: fade .3s .15s both, out .4s .9s forwards; }
.super-fx .bit { position: absolute; left: 50%; top: 45%; width: 9px; height: 13px; border-radius: 2px;
  background: var(--c); animation: confetti 1.15s cubic-bezier(.15,.6,.4,1) forwards; }
@keyframes superstar { 0% { transform: scale(.2) rotate(-40deg); opacity: 0 } 30% { transform: scale(1.15) rotate(8deg); opacity: 1 }
  70% { transform: scale(1); opacity: 1 } 100% { transform: scale(1.4); opacity: 0 } }
@keyframes confetti { 0% { transform: translate(0,0) rotate(0); opacity: 1 }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0 } }
@keyframes out { to { opacity: 0 } }

.card.highlight::after { content: ""; position: absolute; inset: 0; border: 4px solid var(--mp-orange); pointer-events: none; animation: out 1.4s .4s forwards; z-index: 7; }

.swipe-hint { position: absolute; left: 50%; bottom: calc(var(--sab) + 150px); transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none; animation: hint 1.6s ease-in-out infinite, fade .4s both; }
.swipe-hint .chev svg { width: 30px; height: 30px; }
@keyframes hint { 0%, 100% { transform: translate(-50%, 0) } 50% { transform: translate(-50%, -10px) } }

/* Eindkaart */
.card.end { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: calc(var(--sat) + 70px) 20px calc(var(--sab) + 24px); text-align: center; background: var(--bg); color: var(--ink); }
.card.end .big { font-size: 64px; line-height: 1; }
.card.end h2 { font-size: 28px; margin: 0; }
.card.end .saved { width: 100%; margin-top: 8px; text-align: left; }
.card.end .saved h3 { font-size: 16px; margin: 0 0 8px; }
.saved-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.saved-row button { flex: 0 0 92px; border: 0; padding: 0; background: none; position: relative; }
.saved-row img { width: 92px; height: 115px; object-fit: cover; border-radius: 10px; display: block; background: var(--surface-2); }
.saved-row .star { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; fill: var(--star); filter: drop-shadow(0 0 3px rgba(0,0,0,.5)); }
.card.end .btns { display: flex; gap: 10px; margin-top: 10px; width: 100%; }
.card.end .btns .btn { flex: 1; font-size: 15px; padding: 0 10px; white-space: nowrap; }

/* ===== 4. Tutorial ===== */
.tutorial { position: absolute; inset: 0; z-index: 30; background: rgba(4,8,14,.6); animation: in-fade .3s both; }
.tutorial.closing { animation: out .25s forwards; }
.tut-card { position: absolute; left: 16px; right: 16px; top: calc(var(--sat) + 76px);
  background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.tut-text { margin: 0 0 14px; font-size: 18px; line-height: 1.45; font-weight: 600; min-height: 3em; }
.tut-text.swap { animation: fade .3s both; }
.tut-text svg { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; }
.tut-text .muted { color: var(--ink-muted); }
.tut-nav { display: flex; align-items: center; justify-content: space-between; }
.tut-dots { display: flex; gap: 6px; }
.tut-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .25s var(--ease), background .25s; }
.tut-dots i.on { width: 20px; background: var(--blue-text); }
.tut-gesture { position: absolute; inset: 0; pointer-events: none; }
.finger { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: rgba(255,255,255,.85); box-shadow: 0 0 0 10px rgba(255,255,255,.25); }
.tutorial[data-step="0"] .finger { left: 50%; top: 70%; animation: swipe-up 1.6s ease-in-out infinite; }
.tutorial[data-step="2"] .finger { left: 75%; top: 48%; animation: swipe-left 1.6s ease-in-out infinite; }
.tutorial[data-step="1"] .finger { display: none; }
@keyframes swipe-up { 0% { transform: translateY(0); opacity: 0 } 15% { opacity: 1 }
  70% { transform: translateY(-28vh); opacity: 1 } 100% { transform: translateY(-30vh); opacity: 0 } }
@keyframes swipe-left { 0% { transform: translateX(0); opacity: 0 } 15% { opacity: 1 }
  70% { transform: translateX(-45vw); opacity: 1 } 100% { transform: translateX(-48vw); opacity: 0 } }
.tut-ring { position: absolute; border-radius: 50%; border: 3px solid var(--mp-orange);
  box-shadow: 0 0 0 6px rgba(238,165,102,.3); animation: pulse 1.2s ease-in-out infinite; pointer-events: none;
  transition: left .35s var(--ease), top .35s var(--ease), width .35s var(--ease), height .35s var(--ease), border-radius .35s; }
@keyframes pulse { 0%,100% { transform: scale(1) } 50% { transform: scale(1.12) } }

/* ===== Bottom sheet ===== */
.sheet-backdrop { position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.5);
  opacity: 0; transition: opacity .35s ease; }
.sheet-backdrop.open { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: var(--kb); z-index: 41;
  max-height: calc(92% - var(--kb)); display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.35);
  transform: translateY(100%); transition: transform .42s var(--ease-sheet), bottom .25s ease; will-change: transform; }
.sheet.open { transform: translateY(var(--drag, 0px)); }
.sheet.dragging { transition: none; }
.sheet-grab { flex: none; height: 28px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.sheet-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-2); z-index: 2; }
.sheet-close::before, .sheet-close::after { content: ""; position: absolute; left: 12px; top: 19px; width: 16px; height: 2.5px;
  border-radius: 2px; background: var(--ink-muted); transform: rotate(45deg); }
.sheet-close::after { transform: rotate(-45deg); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 18px calc(var(--sab) + 20px); }
.sheet-body.swap > * { animation: fade .3s both; }
.sheet.open .sheet-body > * { animation: rise .45s var(--ease) both; }
.sheet.open .sheet-body > *:nth-child(2) { animation-delay: .04s; }
.sheet.open .sheet-body > *:nth-child(3) { animation-delay: .08s; }
.sheet.open .sheet-body > *:nth-child(4) { animation-delay: .12s; }
.sheet.open .sheet-body > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) } }
.sheet h3 { margin: 2px 52px 4px 0; font-size: 22px; line-height: 1.25; }
.sheet .price-line { color: var(--ink); font-weight: 800; font-size: 24px; margin: 0 0 12px; }
.sheet .muted { color: var(--ink-muted); }
.sheet-footer { position: sticky; bottom: calc(-1 * (var(--sab) + 20px)); display: flex; gap: 10px; margin: 8px -18px calc(-1 * (var(--sab) + 20px));
  padding: 12px 18px calc(var(--sab) + 14px); background: var(--surface); border-top: 1px solid var(--line); }
.sheet-footer .btn { flex: 1; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sheet-footer .btn svg { width: 20px; height: 20px; }
.sheet-footer .btn.saved svg { fill: var(--like); stroke: var(--like); }

/* Bod */
.offer-input { display: flex; align-items: center; gap: 8px; height: 68px; padding: 0 16px; margin: 14px 0 6px;
  border-radius: 12px; background: var(--bg); border: 2px solid var(--line); font-size: 30px; font-weight: 800; transition: border-color .15s; }
.offer-input:focus-within { border-color: var(--blue-text); }
.offer-input input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--ink); font-size: 30px; font-weight: 800; }
.offer-delta { min-height: 20px; font-size: 14px; font-weight: 700; margin: 0 2px 12px; color: var(--ink-muted); transition: color .2s; }
.offer-delta.good { color: #1E9E5A; } .offer-delta.mid { color: #C27A1A; } .offer-delta.bad { color: #D64545; }
.chips { display: flex; gap: 8px; margin-bottom: 12px; }
.chips button { flex: 1; min-height: 44px; border-radius: 12px; border: 0; background: var(--sel-bg); color: var(--blue-text); font-weight: 700; font-size: 15px; transition: transform .12s; }
.chips button:active { transform: scale(.95); }
.chips button.on { background: var(--blue); color: #fff; }
.sheet textarea { width: 100%; min-height: 70px; resize: none; padding: 12px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 16px; outline: none; margin-bottom: 12px; display: block; }
.sheet textarea:focus { border-color: var(--blue-text); }
.err { color: #D64545; margin: 8px 0 0; font-size: 14px; }
.done { text-align: center; padding: 26px 0 16px; }
.done .ok { width: 76px; height: 76px; border-radius: 50%; background: #1FB26B; display: grid; place-items: center; margin: 0 auto 14px;
  animation: pop .5s both; }
.done .ok svg { width: 40px; height: 40px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .4s .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0 } }

/* Info */
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 6px -18px 14px; padding: 0 18px; scrollbar-width: none; }
.gallery img { flex: 0 0 72%; width: 72%; min-width: 0; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; scroll-snap-align: center; background: var(--surface-2); }
.desc { font-size: 16px; line-height: 1.5; margin: 0 0 14px; user-select: text; -webkit-user-select: text; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 16px; font-size: 15px; }
.facts dt { color: var(--ink-muted); }
.facts dd { margin: 0; font-weight: 600; }
.seller-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 14px;
  background: var(--bg); text-align: left; font-size: 15px; color: var(--ink); }
.seller-row .avatar { width: 44px; height: 44px; font-size: 15px; border-width: 0; }
.seller-row b { display: block; font-size: 16px; }
.seller-row .go { margin-left: auto; color: var(--ink-muted); }
.seller-row .go svg { width: 20px; height: 20px; }

/* Profiel */
.profile-head { display: flex; gap: 14px; align-items: center; margin: 4px 52px 12px 0; }
.profile-head .avatar { width: 68px; height: 68px; font-size: 24px; border-width: 0; flex: none; }
.profile-head h3 { margin: 0; }
.stars { color: #D98A1F; font-weight: 700; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.badges span { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--sel-bg); color: var(--blue-text); }
.bio { margin: 0 0 16px; line-height: 1.5; color: var(--ink-muted); }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.item { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); color: var(--ink); text-align: left; transition: transform .15s; }
.item:active { transform: scale(.97); }
.item img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--surface-2); }
.item div { padding: 8px 10px 10px; font-size: 14px; }
.item b { display: block; font-size: 16px; }
.item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.section-title { font-size: 16px; margin: 4px 0 10px; }

/* ===== Toast ===== */
.toast { position: absolute; left: 12px; right: 12px; bottom: calc(var(--sab) + 16px); z-index: 60;
  display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 10px 10px 16px; border-radius: 14px;
  background: #2B2F36; color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transform: translateY(calc(100% + 30px)); opacity: 0; transition: transform .35s var(--ease), opacity .25s; }
.toast.show { transform: none; opacity: 1; }
.toast-text { flex: 1; }
.toast-action { border: 0; background: none; color: var(--mp-orange); font-weight: 800; font-size: 15px; padding: 8px 10px; border-radius: 8px; }
.toast-action:active { background: rgba(255,255,255,.1); }

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

/* ===== Home-spotlight (na naar beneden scrollen) ===== */

.home-scroll.locked { overflow: hidden; }
.spotlight { position: absolute; inset: 0; z-index: 20; opacity: 0; transition: opacity .35s ease; -webkit-tap-highlight-color: transparent; }
.spotlight.show { opacity: 1; }
.spot-hole { position: absolute; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(4, 8, 14, .62), 0 0 0 3px var(--mp-orange), 0 0 24px 6px rgba(238,165,102,.55);
  transition: left .3s var(--ease), top .3s var(--ease); }
.spot-hole.nudge { animation: nudge .45s var(--ease); }
@keyframes nudge { 30% { transform: scale(1.12) } 60% { transform: scale(.97) } }
.spot-card { position: absolute; right: 12px; left: 12px; max-width: 360px; margin-left: auto; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-size: 15px; line-height: 1.4;
  animation: rise .45s .15s var(--ease) both; }
.spot-card::before { content: ""; position: absolute; top: -7px; left: calc(var(--arrow, 50%) - 7px); width: 14px; height: 14px;
  background: var(--surface); transform: rotate(45deg); border-radius: 3px; }
.spot-card b { display: block; font-size: 17px; margin-bottom: 2px; }
.spot-card p { margin: 0; color: var(--ink-muted); }
.spot-card .btn { margin-top: 12px; width: 100%; }

/* ===== ⋯-knop en menu ===== */
.act.more { min-height: 44px; }
.act.more .ic { width: 44px; height: 44px; }
.act.more svg { width: 24px; height: 24px; }
.menu { display: flex; flex-direction: column; gap: 8px; }
.menu-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px; border: 0; border-radius: 14px;
  background: var(--bg); color: var(--ink); text-align: left; font-size: 16px; transition: transform .12s, background .15s; }
.menu-row:active { transform: scale(.98); background: var(--surface-2); }
.menu-row .mi { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--sel-bg); color: var(--blue-text); }
.menu-row .mi svg { width: 22px; height: 22px; }
.menu-row .mt { min-width: 0; flex: 1; }
.menu-row .mt b { display: block; }
.menu-row .mt span { display: block; color: var(--ink-muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-row .go { color: var(--ink-muted); flex: none; }
.menu-row .go svg { width: 20px; height: 20px; }
#rename { display: flex; flex-direction: column; gap: 10px; }
#rename .text-input { width: 100%; }
