/* Gedeelde app-opmaak voor de Ostrica- en de Perlas-demo.
   Zelfde componenten, twee huid-lagen: .m-ostrica en .m-perlas (onderaan). */

@font-face { font-family: "Century Gothic"; font-weight: 400; font-display: swap; src: url("../fonts/century-gothic-reg.woff") format("woff"); }
@font-face { font-family: "Century Gothic"; font-weight: 700; font-display: swap; src: url("../fonts/century-gothic-bold.woff") format("woff"); }

:root {
  --font: system-ui, sans-serif;
  --ink: #172b36; --ink-2: #4c5a63; --ink-3: #8a959c;
  --bg: #f4f4f6; --card: #fff; --line: #e4e7ea; --soft: #f1f3f5;
  --brand: #74c276; --brand-d: #5aa95c; --brand-ink: #fff;
  --hero: #908382; --hero-ink: #fff; --hero-2: rgba(255,255,255,.72);
  --pos: #2e9b5f; --neg: #c8452f;
  --r: 12px; --r-sm: 8px; --r-btn: 10px;
  --shadow: 0 1px 2px rgba(17,35,55,.05), 0 6px 20px rgba(17,35,55,.06);
  --stage: #e9e7e4;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--stage); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Podium: telefoonframe op desktop ---------- */
.stage { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 56px; padding: 40px 48px; }
.side { max-width: 380px; justify-self: end; }
.side.right { justify-self: start; }
.side .logo { height: 44px; width: auto; margin-bottom: 36px; }
.side .eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 12px; }
.side h1 { font-size: 34px; line-height: 1.12; letter-spacing: -.01em; margin-bottom: 16px; }
.side p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-bottom: 14px; }
.side .qr { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,.08); }
.side .qr img { width: 104px; height: 104px; background: #fff; padding: 8px; border-radius: 10px; }
.side .qr p { font-size: 13px; margin: 0; }
.side h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.jump { display: grid; gap: 8px; margin-bottom: 24px; }
.jump button { text-align: left; background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.06); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.jump button:hover { background: #fff; }
.jump button span { color: var(--ink-3); font-weight: 400; font-size: 13px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.side .small { font-size: 13px; color: var(--ink-3); }

.phone { width: 400px; height: 840px; max-height: calc(100vh - 40px); background: #0e0f11; border-radius: 56px; padding: 12px; box-shadow: 0 40px 80px rgba(20,24,30,.28), 0 0 0 1px rgba(255,255,255,.06) inset; position: relative; }
.notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 112px; height: 32px; background: #0e0f11; border-radius: 20px; z-index: 50; }
.screen { width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: var(--bg); position: relative; display: flex; flex-direction: column; }
#app { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }

@media (max-width: 1100px) { .side.right { display: none; } .stage { grid-template-columns: minmax(0,1fr) auto; } }
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  html, body { height: 100%; height: 100dvh; overflow: hidden; overscroll-behavior: none; background: var(--bg); }
  .stage { display: block; padding: 0; height: 100%; height: 100dvh; min-height: 0; }
  .side { display: none; }
  .phone { width: min(100%, 560px); height: 100%; height: 100dvh; max-height: none; margin: 0 auto; border-radius: 0; padding: 0; box-shadow: none; background: var(--bg); }
  .notch { display: none; }
  .screen { border-radius: 0; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
@media (hover: none) and (pointer: coarse) and (min-width: 700px) { body { background: var(--stage); } .phone { box-shadow: 0 0 0 1px var(--line); } }

/* ---------- Splash ---------- */
.splash { position: absolute; inset: 0; display: grid; place-items: center; background: var(--card); z-index: 40; transition: opacity .5s ease; }
.splash img { width: 150px; animation: splashIn .9s cubic-bezier(.2,.7,.2,1) both; }
.splash.weg { opacity: 0; pointer-events: none; }
@keyframes splashIn { from { opacity: 0; transform: scale(.92) translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Inloggen ---------- */
.login { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; color: #fff; overflow: hidden; }
.login .media { position: absolute; inset: 0; }
.login .media img, .login .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%); }
.login .top { position: relative; z-index: 2; padding: 58px 24px 0; display: flex; justify-content: space-between; align-items: center; }
.login .top .logo { height: 38px; width: auto; }
.login .kies { background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 0; color: #fff; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 99px; display: inline-flex; gap: 4px; align-items: center; text-decoration: none; }
.login .spacer { flex: 1; }
.login .sheet { position: relative; z-index: 2; background: var(--card); color: var(--ink); border-radius: 28px 28px 0 0; padding: 26px 24px 30px; animation: sheetUp .6s cubic-bezier(.2,.8,.2,1) both; }
.login h1 { font-size: 26px; letter-spacing: -.01em; }
.login .sub { color: var(--ink-2); font-size: 15px; margin: 6px 0 20px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.input { width: 100%; height: 50px; border: 1px solid var(--line); background: var(--soft); border-radius: var(--r-sm); padding: 0 14px; font-size: 16px; outline: none; transition: border-color .2s, background .2s; }
.input:focus { border-color: var(--brand); background: #fff; }
.pw { position: relative; }
.pw button { position: absolute; right: 6px; top: 6px; height: 38px; width: 38px; border: 0; background: none; color: var(--ink-3); display: grid; place-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; font-size: 14px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.textbtn { background: none; border: 0; padding: 0; color: var(--brand-d); font-weight: 700; font-size: 14px; }
.btn { width: 100%; height: 52px; border: 0; border-radius: var(--r-btn); background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s, filter .15s; }
.btn:active { transform: scale(.985); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.soft { background: var(--soft); color: var(--ink); }
.btn .spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login .demo { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 14px; }
.pwatip { display: block; margin-top: 10px; font-size: 12px; color: var(--ink-3); text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Code-stap */
.code { display: flex; gap: 8px; margin: 22px 0 10px; }
.code span { flex: 1; height: 58px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--soft); display: grid; place-items: center; font-size: 24px; font-weight: 700; transition: border-color .2s, background .2s, transform .2s; }
.code span.vol { border-color: var(--brand); background: #fff; transform: translateY(-2px); }
.code-status { font-size: 13px; color: var(--ink-3); min-height: 20px; display: flex; align-items: center; gap: 6px; }
.code-status.ok { color: var(--pos); font-weight: 700; }

/* Face ID */
.faceid { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(10,14,20,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .25s both; }
.faceid .box { width: 170px; height: 170px; border-radius: 36px; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--ink); gap: 8px; }
.faceid svg { width: 76px; height: 76px; }
.faceid .scan path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1s ease forwards; }
.faceid .ok { color: var(--pos); }
.faceid small { font-size: 13px; font-weight: 600; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- App-structuur ---------- */
.topbar { padding: 58px 20px 12px; display: flex; align-items: center; gap: 12px; background: var(--bg); position: relative; z-index: 5; transition: box-shadow .2s; }
.topbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.topbar .t { flex: 1; min-width: 0; }
.topbar small { display: block; font-size: 13px; color: var(--ink-3); }
.topbar h1 { font-size: 22px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .mini { height: 26px; width: auto; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; flex: none; padding: 0; position: relative; }
.iconbtn svg { width: 20px; height: 20px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--ink); color: #fff; border: 0; padding: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.avatar.sm { width: 32px; height: 32px; }
.content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 20px 28px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.content::-webkit-scrollbar { display: none; }
.view { animation: viewIn .35s cubic-bezier(.2,.7,.2,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tabbar { display: flex; background: var(--card); border-top: 1px solid var(--line); padding: 8px 10px 28px; position: relative; z-index: 6; }
.tabbar button { flex: 1; background: none; border: 0; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--ink-3); position: relative; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar button.on { color: var(--ink); }
.tabbar button.on svg { color: var(--brand-d); }
.tabbar .badge { position: absolute; top: 2px; left: calc(50% + 7px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--neg); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  .topbar { padding-top: max(16px, env(safe-area-inset-top)); }
  .login .top { padding-top: max(18px, env(safe-area-inset-top)); }
  .tabbar { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .login .sheet { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}

/* ---------- Bouwstenen ---------- */
.sec { margin-top: 26px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.sec-h h2 { font-size: 17px; }
.sec-h button { background: none; border: 0; padding: 0; font-size: 14px; font-weight: 700; color: var(--brand-d); }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.muted { color: var(--ink-3); }
.pos { color: var(--pos); } .neg { color: var(--neg); }

/* Hero met totaal en grafiek */
.hero { background: var(--hero); color: var(--hero-ink); border-radius: var(--r); padding: 20px 20px 14px; position: relative; overflow: hidden; }
.hero .lbl { font-size: 13px; color: var(--hero-2); display: flex; align-items: center; gap: 8px; }
.hero .oog { background: none; border: 0; color: inherit; padding: 2px; display: grid; opacity: .8; }
.hero .oog svg { width: 18px; height: 18px; }
.hero .bedrag { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 4px; white-space: nowrap; }
.hero .bedrag small { font-size: 20px; opacity: .8; font-weight: 700; }
.hero .delta { font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-height: 20px; }
.hero .delta b { font-weight: 700; }
.hero .datum { color: var(--hero-2); }
.chart { position: relative; height: 150px; margin: 12px -20px 0; touch-action: pan-y; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .cursor { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.55); pointer-events: none; opacity: 0; }
.chart .dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); pointer-events: none; opacity: 0; }
.chart.scrub .cursor, .chart.scrub .dot { opacity: 1; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(255,255,255,.14); margin-top: 10px; }
.seg button { flex: 1; border: 0; background: none; color: var(--hero-2); font-size: 13px; font-weight: 700; padding: 7px 0; border-radius: 7px; }
.seg button.on { background: #fff; color: var(--hero); }
.seg.licht { background: var(--soft); }
.seg.licht button { color: var(--ink-2); }
.seg.licht button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.acties { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.acties button { background: var(--card); border: 0; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 4px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink); }
.acties i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--brand-d); }
.acties svg { width: 20px; height: 20px; }

.lijst { padding: 4px 16px; }
.rij { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.rij:last-child { border-bottom: 0; }
.rij .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.rij .ic svg { width: 18px; height: 18px; }
.rij .t { flex: 1; min-width: 0; }
.rij .t b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rij .t span { font-size: 13px; color: var(--ink-3); }
.rij .w { text-align: right; font-weight: 700; font-size: 15px; white-space: nowrap; }
.rij .w span { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.chev { color: var(--ink-3); width: 18px; height: 18px; flex: none; }

.port { padding: 16px; display: flex; gap: 14px; align-items: center; width: 100%; border: 0; text-align: left; }
.port + .port { margin-top: 10px; }
.port .kleur { width: 6px; align-self: stretch; border-radius: 3px; background: var(--brand); flex: none; }
.port .t { flex: 1; min-width: 0; }
.port .t b { display: block; font-size: 16px; }
.port .t span { font-size: 13px; color: var(--ink-3); }
.port .w { text-align: right; }
.port .w b { display: block; font-size: 16px; white-space: nowrap; }
.port .w span { font-size: 13px; font-weight: 700; }

.adviseur { display: flex; gap: 14px; align-items: center; padding: 16px; }
.adviseur img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none; }
.adviseur .t { flex: 1; min-width: 0; }
.adviseur .t b { display: block; font-size: 16px; }
.adviseur .t span { font-size: 13px; color: var(--ink-3); display: block; }
.adviseur .t em { font-style: normal; font-size: 14px; color: var(--ink-2); display: block; margin-top: 4px; }
.rondknop { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.rondknop svg { width: 20px; height: 20px; }

.afspraak-kaart { display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin-top: 10px; }
.kal { width: 50px; flex: none; text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.kal small { display: block; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; padding: 3px 0; text-transform: uppercase; letter-spacing: .06em; }
.kal b { display: block; font-size: 20px; padding: 4px 0 5px; }

.artikelen { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: none; }
.artikelen::-webkit-scrollbar { display: none; }
.artikel { flex: 0 0 78%; scroll-snap-align: start; border: 0; padding: 0; text-align: left; overflow: hidden; }
.artikel img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.artikel div { padding: 12px 14px 14px; }
.artikel small { font-size: 12px; font-weight: 700; color: var(--brand-d); }
.artikel b { display: block; font-size: 15px; line-height: 1.3; margin-top: 4px; }

.noot { font-size: 12px; line-height: 1.5; color: var(--ink-3); margin-top: 22px; }
.noot.risico { display: flex; gap: 10px; align-items: flex-start; }
.noot.risico svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* Beleggingen */
.kiezer { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 4px; scrollbar-width: none; }
.kiezer::-webkit-scrollbar { display: none; }
.kiezer button { flex: none; border: 1px solid var(--line); background: var(--card); padding: 9px 14px; border-radius: 99px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.kiezer button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.donut-wrap { display: flex; gap: 18px; align-items: center; padding: 18px; }
.donut { width: 132px; height: 132px; flex: none; position: relative; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { transition: stroke-width .2s, opacity .2s; }
.donut .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .mid b { font-size: 20px; }
.donut .mid span { font-size: 11px; color: var(--ink-3); }
.legenda { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.legenda button { display: flex; align-items: center; gap: 8px; font-size: 13px; background: none; border: 0; padding: 4px 0; text-align: left; width: 100%; color: var(--ink); }
.legenda i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legenda span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legenda b { font-variant-numeric: tabular-nums; }
.legenda button.dim { opacity: .35; }
.kerncijfers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.kerncijfers div { padding: 14px 10px; text-align: center; }
.kerncijfers div + div { border-left: 1px solid var(--line); }
.kerncijfers small { display: block; font-size: 12px; color: var(--ink-3); }
.kerncijfers b { font-size: 16px; }
.pos-tabel { width: 100%; border-collapse: collapse; font-size: 14px; }
.pos-tabel td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.pos-tabel tr:last-child td { border-bottom: 0; }
.pos-tabel td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.pos-tabel .bar { height: 4px; border-radius: 2px; background: var(--soft); margin-top: 6px; overflow: hidden; }
.pos-tabel .bar i { display: block; height: 100%; border-radius: 2px; }
.pos-tabel small { color: var(--ink-3); font-weight: 400; display: block; font-size: 12px; }
.bescherming { display: flex; gap: 12px; padding: 14px 16px; margin-top: 10px; align-items: flex-start; }
.bescherming i { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); color: var(--brand-d); display: grid; place-items: center; flex: none; }
.bescherming svg { width: 18px; height: 18px; }
.bescherming b { display: block; font-size: 14px; }
.bescherming p { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }
.sri { display: flex; gap: 4px; margin-top: 8px; }
.sri span { flex: 1; height: 26px; border-radius: 6px; background: var(--soft); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.sri span.on { background: var(--ink); color: #fff; }
.sri-lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 4px; }

/* Prognose */
.prog { padding: 18px; }
.prog .uitkomst { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-bottom: 8px; }
.prog .uitkomst small { font-size: 12px; color: var(--ink-3); display: block; }
.prog .uitkomst b { font-size: 22px; letter-spacing: -.01em; }
.prog .uitkomst .klein b { font-size: 15px; }
.progchart { height: 190px; margin: 12px -6px 6px; position: relative; }
.progchart svg { width: 100%; height: 100%; overflow: visible; }
.progchart text { font-size: 10px; fill: var(--ink-3); font-family: var(--font); }
.kans { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--soft); margin: 12px 0 6px; }
.kans .ring { width: 46px; height: 46px; flex: none; position: relative; }
.kans .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.kans .ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; }
.kans p { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.schuif { margin-top: 16px; }
.schuif .kop { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.schuif .kop b { font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand) var(--p, 50%), var(--soft) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--soft); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--brand); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.05); margin-top: -10px; }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.leg-prog { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.leg-prog span { display: flex; align-items: center; gap: 6px; }
.leg-prog i { width: 14px; height: 8px; border-radius: 2px; display: inline-block; }

/* ---------- Chat ---------- */
.chat-kop { display: flex; gap: 12px; align-items: center; }
.chat-kop .ava { position: relative; flex: none; }
.chat-kop .ava img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.chat-kop .ava::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #34c759; border: 2px solid var(--bg); }
.chat-kop b { display: block; font-size: 17px; }
.chat-kop span { font-size: 12px; color: var(--ink-3); }
.chat { padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.dag { align-self: center; font-size: 12px; color: var(--ink-3); background: var(--card); padding: 4px 10px; border-radius: 99px; margin: 12px 0 6px; box-shadow: var(--shadow); }
.msg { max-width: 82%; padding: 10px 13px 8px; border-radius: 18px; font-size: 15px; line-height: 1.42; background: var(--card); box-shadow: 0 1px 1px rgba(0,0,0,.04); align-self: flex-start; border-bottom-left-radius: 6px; animation: msgIn .3s cubic-bezier(.2,.8,.2,1) both; }
.msg.me { align-self: flex-end; background: var(--bubble, var(--brand)); color: var(--bubble-ink, #fff); border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.msg time { display: block; text-align: right; font-size: 11px; opacity: .6; margin-top: 2px; }
.msg.bijlage { display: flex; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; border: 0; text-align: left; font: inherit; color: inherit; }
.msg.bijlage i { width: 40px; height: 46px; border-radius: 6px; background: var(--neg); color: #fff; display: grid; place-items: end center; font-size: 10px; font-weight: 800; font-style: normal; padding-bottom: 6px; flex: none; }
.msg.bijlage b { display: block; font-size: 14px; }
.msg.bijlage span { font-size: 12px; color: var(--ink-3); }
.msg.voorstel { padding: 14px; width: 82%; }
.msg.voorstel small { font-size: 12px; font-weight: 700; color: var(--brand-d); display: block; margin-bottom: 8px; }
.msg.voorstel .rijtje { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.msg.voorstel .btn { height: 42px; font-size: 14px; }
.msg.voorstel .opties { display: grid; gap: 6px; }
.msg.voorstel .opties button { border: 1px solid var(--line); background: var(--soft); border-radius: var(--r-sm); padding: 10px 12px; text-align: left; font-weight: 700; font-size: 14px; }
.msg.voorstel .bevestigd { display: flex; align-items: center; gap: 6px; color: var(--pos); font-weight: 700; font-size: 14px; }
.typing { align-self: flex-start; background: var(--card); border-radius: 18px; border-bottom-left-radius: 6px; padding: 12px 14px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: dots 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.snel { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 4px; scrollbar-width: none; }
.snel::-webkit-scrollbar { display: none; }
.snel button { flex: none; border: 1px solid var(--brand); color: var(--brand-d); background: var(--card); border-radius: 99px; padding: 8px 14px; font-size: 14px; font-weight: 700; }
.chatbar { display: flex; gap: 8px; align-items: center; padding: 8px 12px 10px; background: var(--bg); }
.chatbar .input { height: 46px; border-radius: 23px; background: var(--card); }
.chatbar .rondknop:disabled { opacity: .4; }
.chatbar .plus { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.chatbar .plus svg { width: 20px; height: 20px; }

/* ---------- Sheets & toast ---------- */
.sheet-bg { position: absolute; inset: 0; background: rgba(10,14,20,.42); z-index: 20; opacity: 0; transition: opacity .25s; }
.sheet-bg.open { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--card); border-radius: 26px 26px 0 0; padding: 10px 20px 30px; max-height: 88%; overflow-y: auto; transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.sheet.open { transform: none; }
.sheet .greep { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { font-size: 21px; margin-bottom: 4px; }
.sheet .sub { color: var(--ink-2); font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.sheet .sluit { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--soft); display: grid; place-items: center; }
.sheet .sluit svg { width: 16px; height: 16px; }
.bedrag-in { display: flex; align-items: baseline; justify-content: center; gap: 6px; font-size: 44px; font-weight: 700; margin: 8px 0 14px; letter-spacing: -.02em; }
.bedrag-in input { width: 6ch; border: 0; outline: none; font-size: 44px; font-weight: 700; text-align: left; background: none; letter-spacing: -.02em; padding: 0; }
.chips { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.chips button.on { border-color: var(--brand); color: var(--brand-d); }
.keuze { display: grid; gap: 8px; margin-bottom: 18px; }
.keuze button { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); font-size: 15px; text-align: left; }
.keuze button span { color: var(--ink-3); font-size: 13px; }
.keuze button.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.klaar { text-align: center; padding: 18px 0 6px; }
.klaar .vink { width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; margin: 0 auto 16px; animation: pop .4s cubic-bezier(.2,1.4,.4,1) both; }
.klaar .vink svg { width: 34px; height: 34px; }
.klaar h2 { margin-bottom: 6px; }
.klaar p { color: var(--ink-2); font-size: 15px; margin-bottom: 20px; line-height: 1.5; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.artikel-vol img { width: calc(100% + 40px); margin: -10px -20px 16px; aspect-ratio: 16/10; object-fit: cover; }
.artikel-vol small { font-size: 12px; font-weight: 700; color: var(--brand-d); }
.artikel-vol h2 { font-size: 23px; line-height: 1.2; margin: 6px 0 14px; }
.artikel-vol p { font-size: 16px; line-height: 1.62; color: var(--ink-2); margin-bottom: 14px; }
.profiel-kop { display: flex; gap: 14px; align-items: center; margin: 6px 0 18px; }
.profiel-kop b { display: block; font-size: 18px; }
.profiel-kop span { font-size: 13px; color: var(--ink-3); }
.schakel { position: relative; width: 50px; height: 30px; flex: none; }
.schakel input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.schakel i { position: absolute; inset: 0; border-radius: 15px; background: var(--line); transition: background .2s; pointer-events: none; }
.schakel i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.schakel input:checked + i { background: var(--pos); }
.schakel input:checked + i::after { transform: translateX(20px); }
.toast { position: absolute; left: 16px; right: 16px; bottom: 100px; z-index: 35; background: var(--ink); color: #fff; padding: 13px 16px; border-radius: 14px; font-size: 14px; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: toastIn .35s cubic-bezier(.2,.8,.2,1) both; }
.toast svg { width: 18px; height: 18px; flex: none; color: #7ee3a4; }
.toast.weg { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ============================================================
   HUID: OSTRICA — Century Gothic, taupe + groen, ronde hoek linksonder
   ============================================================ */
.m-ostrica {
  --font: "Century Gothic", "CenturyGothic", "Questrial", "Avenir Next", sans-serif;
  --ink: #112337; --ink-2: #585e6a; --ink-3: #8b909a;
  --bg: #f4f4f6; --soft: #f1f1f3; --line: #e3e3e7;
  --brand: #74c276; --brand-d: #4f9f52; --brand-ink: #fff;
  --hero: #908382; --hero-ink: #fff; --hero-2: rgba(255,255,255,.78);
  --pos: #3f9a4a; --neg: #be3b2b;
  --r: 6px; --r-sm: 4px; --r-btn: 3px;
  --bubble: #112337; --bubble-ink: #fff;
  --stage: #ebe9e7;
}
.m-ostrica .hero { border-radius: var(--r) var(--r) var(--r) 56px; }
.m-ostrica .seg button.on { color: #908382; }
.m-ostrica .login .sheet { border-radius: 0 0 0 0; border-top-right-radius: 64px; }
.m-ostrica .artikel img, .m-ostrica .artikel-vol img { border-bottom-left-radius: 40px; }
.m-ostrica .kiezer button { border-radius: 3px; }
.m-ostrica .kiezer button.on { background: #908382; border-color: #908382; }
.m-ostrica .sec-h h2 { font-weight: 700; }
.m-ostrica .snel button { border-radius: 3px; }
.m-ostrica .avatar { background: #908382; }
.m-ostrica .kal small { background: #908382; }
.m-ostrica .acties i { background: rgba(116,194,118,.14); }
.m-ostrica .login .demo { color: var(--ink-3); }

/* ============================================================
   HUID: PERLAS — Inter, navy + oranje, fondskleuren blauw/geel/oranje
   ============================================================ */
.m-perlas {
  --font: "Inter", Arial, sans-serif;
  --ink: #172b36; --ink-2: #4f636e; --ink-3: #85949c;
  --bg: #fff8f3; --soft: #f3efeb; --line: #eadfd6;
  --brand: #e96424; --brand-d: #d4561a; --brand-ink: #fff;
  --hero: #143247; --hero-ink: #fff; --hero-2: rgba(255,255,255,.7);
  --pos: #1f9d62; --neg: #d1432a;
  --r: 16px; --r-sm: 10px; --r-btn: 12px;
  --bubble: #143247; --bubble-ink: #fff;
  --stage: #eef8fc;
}
.m-perlas h1, .m-perlas h2, .m-perlas .hero .bedrag, .m-perlas .prog .uitkomst b { letter-spacing: -.03em; }
.m-perlas .hero { background: radial-gradient(120% 90% at 100% 0%, #1d4a66 0%, #143247 55%); }
.m-perlas .hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #4fbce9 0 33.3%, #f9c51f 33.3% 66.6%, #e96424 66.6%); }
.m-perlas .seg button.on { color: #143247; }
.m-perlas .login .sheet { border-radius: 28px 28px 0 0; }
.m-perlas .login .sheet::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #4fbce9 0 33.3%, #f9c51f 33.3% 66.6%, #e96424 66.6%); }
.m-perlas .kiezer button.on { background: #143247; border-color: #143247; }
.m-perlas .acties i { background: #fdeee6; }
.m-perlas .avatar { background: #143247; }
.m-perlas .card { box-shadow: 0 1px 2px rgba(20,50,71,.05), 0 8px 24px rgba(20,50,71,.06); }
.m-perlas .login .top .logo { height: 44px; background: #fff; padding: 6px 12px; border-radius: 12px; }
.m-perlas .topbar .mini { height: 30px; }

/* ---------- Kleine en lage schermen (iPhone SE e.d.) ---------- */
.login { overflow-y: auto; }
.login .sheet { flex: none; }
.msg.voorstel .kal small { color: var(--brand-ink); margin: 0; font-size: 11px; }
.chat-kop > div:last-child { min-width: 0; }
.chat-kop span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-height: 740px) {
  .login .sheet { padding-top: 20px; }
  .login h1 { font-size: 22px; }
  .login .sub { margin: 4px 0 14px; font-size: 14px; }
  .login .input { height: 44px; }
  .login .field { margin-bottom: 10px; }
  .login .row-between { margin: 0 0 12px; font-size: 13px; }
  .login .btn { height: 46px; }
  .login .or { margin: 10px 0; }
  .login .demo { margin-top: 10px; }
  .login .pwatip { display: none; }
  .code span { height: 50px; }
}
