/* Layout: app-balk met merk en tabs, daaronder één weergave tegelijk; asfalt-neutraal met signaalgeel als accent, borden houden hun eigen kleuren */
:root {
  --bg: #F3F4F1; --surface: #FFFFFF; --fg: #15181C; --muted: #5B6270; --line: #E1E3DE; --soft: #EEF0EB;
  --accent: #F2B705; --accent-soft: #FFF4CC; --accent-ink: #2A2100;
  --btn: #15181C; --btn-ink: #FFFFFF;
  --red: #C8302A; --red-soft: #FBE9E7; --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --grid: #E6E4DF; --blue: #1D5BB0; --blue-soft: #E7EFFA;
  --amber: #8A5A00; --amber-soft: #FFF2D6; --good: #1F7A4A; --good-soft: #E3F4EA;
  --sign-white: #FFFFFF; --sign-ink: #16191F;
  --display: "Overpass", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101214; --surface: #1A1D21; --fg: #EDEEF0; --muted: #A0A7B2; --line: #2B2F35; --soft: #22262B;
    --accent: #F5C02E; --accent-soft: #3A3010; --accent-ink: #231B00; --btn: #EDEEF0; --btn-ink: #15181C;
    --red: #F0675E; --red-soft: #3A1E1D; --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --grid: #34373C; --blue: #7DAEF0; --blue-soft: #1A2840;
    --amber: #F2C46B; --amber-soft: #3A2E14; --good: #5CCB8B; --good-soft: #173A27;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101214; --surface: #1A1D21; --fg: #EDEEF0; --muted: #A0A7B2; --line: #2B2F35; --soft: #22262B;
  --accent: #F5C02E; --accent-soft: #3A3010; --accent-ink: #231B00; --btn: #EDEEF0; --btn-ink: #15181C;
  --red: #F0675E; --red-soft: #3A1E1D; --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --grid: #34373C; --blue: #7DAEF0; --blue-soft: #1A2840;
  --amber: #F2C46B; --amber-soft: #3A2E14; --good: #5CCB8B; --good-soft: #173A27;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.55; margin: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 56px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.wrap { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(26px, 4.6vw, 36px); font-weight: 800; line-height: 1.1; }
h2 { font-size: 21px; font-weight: 800; }
h3 { font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
p { margin: 0; }
a { color: inherit; }
.lead { color: var(--muted); margin-top: 6px; max-width: 64ch; }
.muted { color: var(--muted); }
.meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* app-balk */
.appbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); padding-top: 14px; border-bottom: 1px solid var(--line); }
.brandrow { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand .mark { width: 30px; height: 30px; transform: rotate(45deg); background: var(--accent); border: 3px solid var(--surface); outline: 2px solid var(--accent); border-radius: 4px; flex: none; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brandright { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); font-weight: 700; font-size: 13px; text-decoration: none; }
.tabs { display: flex; gap: 2px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 9px 12px 11px; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--fg); }
.tabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.tabs a:focus-visible, .btn:focus-visible, select:focus-visible, input:focus-visible, .opt:focus-visible, .flash:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* bouwstenen */
.view { display: flex; flex-direction: column; gap: 20px; padding-top: 22px; }
.view[hidden] { display: none !important; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; vertical-align: 1px; white-space: nowrap; }
.tag.zwaar { background: var(--red-soft); color: var(--red); }
.tag.vaak { background: var(--amber-soft); color: var(--amber); }
.tag.pro { background: var(--accent); color: var(--accent-ink); }
.btn { font: inherit; font-size: 14px; font-weight: 600; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.btn:hover { border-color: var(--fg); }
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.btn.primary:hover { opacity: .9; }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.good { border-color: var(--good); color: var(--good); }
.btn.again { border-color: var(--amber); color: var(--amber); }
select, input[type="text"], input[type="date"] { font: inherit; font-size: 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 8px 10px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.controls label { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.bar { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 2px; }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; background: #1E2228; color: #F3F4F1; border: 1px solid #2E333A; border-radius: 18px; padding: 22px 24px; }
.hero h1 { color: #FFFFFF; }
.hero .lead { color: #C3C8CF; }
.hero .ghost { background: transparent; color: #F3F4F1; border-color: #4A5059; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.hero .road { width: 150px; height: 96px; }
@media (max-width: 560px) { .hero { grid-template-columns: 1fr; } .hero .road { display: none; } }
.action { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--fg); transition: transform .15s, border-color .15s; }
.action:hover { transform: translateY(-2px); border-color: var(--fg); }
.action .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); }
.action .icon svg { width: 26px; height: 26px; }
.action b { font-family: var(--display); font-size: 17px; font-weight: 800; }

/* spiekbrief */
.ladder .signs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-top: 12px; }
.sign { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.disc { width: 58px; height: 58px; border-radius: 50%; background: var(--sign-white); border: 7px solid #C8302A; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--sign-ink); font-variant-numeric: tabular-nums; }
.disc.small { font-size: 12px; }
.sign span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.sign b { color: var(--fg); font-weight: 600; display: block; }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.subnav a { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; }
.subnav a:hover { border-color: var(--fg); }
.subnav button { margin-left: auto; font: inherit; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 5px 12px; cursor: pointer; border: 1px solid var(--amber); background: var(--amber-soft); color: var(--amber); }
.subnav button[aria-pressed="true"] { background: var(--amber); color: var(--surface); }
.topic header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.les { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
ul.rules { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); column-gap: 24px; }
ul.rules li { padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
ul.rules li .tag { margin-right: 6px; }
li strong { font-weight: 600; }
.trick { display: block; color: var(--blue); font-size: 13.5px; margin-top: 3px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.vs div { background: var(--soft); border-radius: 8px; padding: 7px 10px; font-size: 14px; min-width: 0; }
.vs div b { display: block; font-weight: 600; }
.only-hot li:not([data-hot]) { display: none; }
.only-hot .group:not(:has(li[data-hot])) { display: none; }
.only-hot .topic:not(:has(li[data-hot])) { display: none; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.pit { border-radius: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pit.zwaar { border-left: 4px solid var(--red); border-radius: 0 12px 12px 0; }
.pit b { font-weight: 600; }
.pit .hint { font-size: 13px; color: var(--muted); }
.tips { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.tips ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.note { font-size: 13px; color: var(--muted); max-width: 75ch; }

/* kaartjes */
.flash { perspective: 1200px; cursor: pointer; }
.flash-inner { position: relative; min-height: 300px; transition: transform .45s; transform-style: preserve-3d; }
.flash.flipped .flash-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.face.back { transform: rotateY(180deg); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.face .kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.face .big { font-family: var(--display); font-weight: 800; font-size: clamp(19px, 3.4vw, 24px); line-height: 1.25; text-wrap: balance; }

/* oefenen */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.mode { text-align: left; font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 14px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.mode b { font-weight: 700; }
.mode span { font-size: 13px; color: var(--muted); }
.mode[aria-pressed="true"] { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.timer { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.timer > span { display: block; height: 100%; background: var(--accent); width: 100%; }
.qtext { font-family: var(--display); font-weight: 800; font-size: clamp(19px, 3.2vw, 23px); line-height: 1.3; margin: 6px 0 14px; text-wrap: balance; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { text-align: left; font: inherit; font-size: 15px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; display: flex; gap: 10px; align-items: baseline; }
.opt:hover:not(:disabled) { border-color: var(--fg); }
.opt b { font-weight: 700; color: var(--muted); min-width: 1.2em; }
.opt.right { border-color: var(--good); background: var(--good-soft); }
.opt.wrong { border-color: var(--red); background: var(--red-soft); }
.opt:disabled { cursor: default; }
.feedback { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 14.5px; }
.feedback strong { display: block; margin-bottom: 2px; }
.wronglist { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.wronglist li { background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.verdict { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 15px; padding: 4px 12px; border-radius: 999px; }
.verdict.ok { background: var(--good-soft); color: var(--good); }
.verdict.no { background: var(--red-soft); color: var(--red); }

/* slot (Pro) */
.lock { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 26px 20px; }
.lock .padlock { width: 44px; height: 44px; }

/* profiel */
.profilehead { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.bigavatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 24px; flex: none; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.topicbars { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.topicbars .tb { display: grid; grid-template-columns: 150px minmax(0, 1fr) 46px; gap: 10px; align-items: center; font-size: 14px; }
.topicbars .tb span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 480px) { .topicbars .tb { grid-template-columns: 110px minmax(0, 1fr) 40px; } }
.confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }

/* pro */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan.featured { border: 2px solid var(--accent); }
.price { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; }
.price small { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; flex: 1; }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: ""; width: 16px; height: 16px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--good-soft); box-shadow: inset 0 0 0 4px var(--good-soft), inset 0 0 0 8px var(--good); }
.plan li.no { color: var(--muted); }
.plan li.no::before { background: var(--soft); box-shadow: none; }
.demo { border: 1px dashed var(--amber); background: var(--amber-soft); color: var(--fg); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* tekeningen en animatie */
.ill { display: flex; justify-content: center; margin: 4px 0 6px; }
.ill svg { width: 150px; height: 104px; max-width: 100%; }
.face .ill svg { width: 120px; height: 84px; }
@keyframes popIn { from { opacity: .001; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }
@keyframes drift { 0% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 100% { transform: translateX(-6px); } }
@keyframes dash { to { stroke-dashoffset: -48; } }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .9; } }
@keyframes bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.25); } }
.anim-in { animation: popIn .35s ease-out; }
.opt.wrong { animation: shake .4s; }
.opt.right { animation: glow .8s ease-out; }
.blink { animation: blink 1s steps(1) infinite; }
.drift { animation: drift 4s ease-in-out infinite; }
.roadline { animation: dash 1.2s linear infinite; }
.streak { font-weight: 700; color: var(--amber); font-variant-numeric: tabular-nums; }
.streak.bump { display: inline-block; animation: bump .4s; }
.confetti { position: fixed; top: -12px; width: 9px; height: 14px; border-radius: 2px; z-index: 50; pointer-events: none; animation: fall linear forwards; }
@media (prefers-reduced-motion: reduce) { .anim-in, .opt.wrong, .opt.right, .blink, .drift, .roadline, .streak.bump { animation: none; } .flash-inner { transition: none; } .confetti { display: none; } }
@media (max-width: 420px) { .vs { grid-template-columns: 1fr; } .card { padding: 16px; } }

/* reviews */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; }
.starpick { display: flex; gap: 4px; }
.starpick button { background: none; border: 0; padding: 2px; cursor: pointer; color: var(--line); }
.starpick button svg { width: 30px; height: 30px; }
.starpick button.on { color: var(--accent); }
.starpick button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.review { display: flex; flex-direction: column; gap: 6px; }
.review .who { display: flex; gap: 10px; align-items: center; }
.review .who .avatar { width: 30px; height: 30px; font-size: 12px; }
textarea { font: inherit; font-size: 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 9px 10px; width: 100%; min-height: 96px; resize: vertical; }
.err { color: var(--red); font-size: 13px; }
.okmsg { color: var(--good); font-size: 14px; font-weight: 600; }
.bignum { font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }

/* helpdesk en juridisch */
.legalview .legal p, .legalview .legal li { font-size: 12.5px; line-height: 1.55; }
.legalview .legal h2 { font-size: 15px; }
.legalview .legal { padding: 14px 16px; }
.footer { font-size: 13px; }
.search { width: 100%; font-size: 15px; padding: 11px 14px; }
.faqcat { margin-top: 6px; }
.legal h2 { margin-top: 6px; }
.legal h3 { text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--fg); margin-top: 16px; }
.legal p, .legal li { color: var(--fg); font-size: 14.5px; max-width: 72ch; }
.legal p { margin-top: 6px; }
.legal ul { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.ph { background: var(--accent-soft); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.paylist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; margin-top: 12px; }
.pay { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.pay b { font-weight: 700; }
.pay span { font-size: 13px; color: var(--muted); }
.footer { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; font-size: 14px; }
.footer h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.footer a { display: block; text-decoration: none; padding: 3px 0; color: var(--fg); }
.footer a:hover { text-decoration: underline; }
/* mijn spiekbrief */
.notes { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.notes li { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.notes li .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.notes li .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; padding: 2px 4px; }
.notes li .x:hover { color: var(--red); }
.notes li.auto { border-left: 4px solid var(--amber); border-radius: 0 10px 10px 0; }
.notes li.new { animation: popIn .4s ease-out; }

/* pro */
.tag.pro { position: relative; overflow: hidden; }
.tag.pro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.procard { position: relative; border: 2px solid var(--accent); background: var(--surface); border-radius: 16px; padding: 18px 20px; overflow: hidden; }
.procard::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; background: var(--accent); opacity: .14; transform: rotate(45deg); border-radius: 18px; }
.prowelcome { background: #1E2228; color: #F3F4F1; border: 2px solid var(--accent); border-radius: 18px; padding: 22px 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; animation: popIn .5s ease-out; }
.prowelcome h2 { color: #FFFFFF; }
.prowelcome p { color: #C3C8CF; }
.prowelcome .mark { width: 54px; height: 54px; transform: rotate(45deg); background: var(--accent); border-radius: 8px; outline: 3px solid #F2B705; outline-offset: 4px; animation: spinIn .8s ease-out; }
@keyframes spinIn { from { transform: rotate(-135deg) scale(.4); opacity: 0; } to { transform: rotate(45deg) scale(1); opacity: 1; } }
.ring { width: 132px; height: 132px; flex: none; }
.ring circle { fill: none; stroke-width: 12; }
.ring .bg { stroke: var(--soft); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1s ease-out; }
.ring text { font-family: var(--display); font-weight: 800; font-size: 28px; fill: var(--fg); }
.ready { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* bewegende tekeningen */
@keyframes needle { from { transform: rotate(-70deg); } to { transform: rotate(60deg); } }
@keyframes drive { from { transform: translateX(-34px); } to { transform: translateX(34px); } }
@keyframes overtake { 0% { transform: translate(-50px, 0); } 40% { transform: translate(-10px, -22px); } 70% { transform: translate(30px, -22px); } 100% { transform: translate(60px, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beam { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
@keyframes park { 0%, 15% { transform: translateX(-60px); } 70%, 100% { transform: translateX(0); } }
@keyframes check { 0%, 30% { stroke-dashoffset: 40; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes alt1 { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }
@keyframes alt2 { 0%, 49% { opacity: .15; } 50%, 100% { opacity: 1; } }
@keyframes walk { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
.ill .needle { transform-origin: 75px 72px; animation: needle 2.2s ease-in-out infinite alternate; }
.ill .drive { animation: drive 3s ease-in-out infinite alternate; }
.ill .overtake { animation: overtake 3.4s ease-in-out infinite; }
.ill .wheel1 { transform-origin: 52px 76px; animation: spin 1s linear infinite; }
.ill .wheel2 { transform-origin: 100px 76px; animation: spin 1s linear infinite; }
.ill .beam { animation: beam 1.6s ease-in-out infinite; }
.ill .park { animation: park 3.5s ease-in-out infinite; }
.ill .check { stroke-dasharray: 40; animation: check 2.4s ease-in-out infinite; }
.ill .alt1 { animation: alt1 .9s steps(1) infinite; }
.ill .alt2 { animation: alt2 .9s steps(1) infinite; }
.ill .walk { animation: walk 3s ease-in-out infinite alternate; }
.topic header .tico { width: 74px; height: 52px; flex: none; }
.topic header .tico svg { width: 74px; height: 52px; }
.topic header { align-items: center; }
.topic header .ttl { display: flex; gap: 12px; align-items: center; }
@media (prefers-reduced-motion: reduce) { .ill .needle, .ill .drive, .ill .overtake, .ill .wheel1, .ill .wheel2, .ill .beam, .ill .park, .ill .check, .ill .alt1, .ill .alt2, .ill .walk { animation: none; } }

/* vrolijke kleuren per onderwerp */
.topic { border-top: 5px solid var(--tc, var(--line)); }
.topic header .tico { border-radius: 10px; overflow: hidden; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--tc, var(--muted)); }
.action .icon { background: var(--tc-soft, var(--soft)); color: var(--tc, var(--fg)); }
.action { border-top: 4px solid var(--tc, var(--line)); }
.stat.c1 { border-top: 4px solid #E8553D; } .stat.c2 { border-top: 4px solid #2E9E6B; } .stat.c3 { border-top: 4px solid #7B5BD6; } .stat.c4 { border-top: 4px solid #F2B705; }
.hero { background: #1E2228 radial-gradient(circle at 92% 12%, rgba(242,183,5,.22) 0 70px, transparent 71px), #1E2228; }
.modes .mode[data-mode="ronde"] { border-top: 4px solid #E8553D; } .modes .mode[data-mode="onderwerp"] { border-top: 4px solid #2E9E6B; } .modes .mode[data-mode="examen"] { border-top: 4px solid #7B5BD6; } .modes .mode[data-mode="fouten"] { border-top: 4px solid #F2B705; } .modes .mode[data-mode="kort"] { border-top: 4px solid #14A3A3; } .tag.new { background: #DDF5EE; color: #0E7A63; }

/* dagdoel en badges */
.goal { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.goal .ring { width: 104px; height: 104px; }
.goal .ring text { font-size: 22px; }
.flame { font-family: var(--display); font-weight: 800; font-size: 30px; color: #E8553D; line-height: 1; }
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 12px; margin-top: 12px; }
.badge { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 14px; background: var(--soft); font-size: 13px; }
.badge .bi { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; }
.badge.locked { opacity: .4; filter: grayscale(1); }
.badge b { font-size: 13.5px; }
.plan-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.plan-list li { display: flex; gap: 10px; align-items: center; background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.plan-list li .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.speak { margin-left: auto; }

/* navigatie op gsm */
.bottomnav { display: none; }
@media (max-width: 640px) {
  .tabs { display: none; }
  .appbar { padding-bottom: 10px; }
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; justify-content: space-around; background: var(--surface); border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; text-decoration: none; color: var(--muted); padding: 5px 8px; border-radius: 12px; min-width: 58px; }
  .bottomnav a svg { width: 22px; height: 22px; }
  .bottomnav a[aria-current="page"] { color: var(--fg); background: var(--accent-soft); }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .brand .meta { display: none; }
  .brandright { gap: 6px; }
  .brandright .helpbtn, .brandright #proBadge { display: none; }
  .brand b { font-size: 17px; }
  h1 { font-size: 24px; }
  .hero { padding: 18px; }
}
.xpchip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--fg); white-space: nowrap; text-decoration: none; }

/* meer */
.moregrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.moretile { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--tc, var(--line)); border-radius: 0 14px 14px 0; padding: 14px 16px; }
.moretile b { display: block; font-family: var(--display); font-size: 16px; }
.moretile span { font-size: 13px; color: var(--muted); }
.moretile { border-left-width: 1px; border-radius: 16px; } .moretile .mi { width: 44px; height: 44px; border-radius: 12px; background: var(--tc); color: #fff; display: grid; place-items: center; flex: none; } .moretile .mi svg { width: 24px; height: 24px; }
.mode .mi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; margin-bottom: 4px; } .mode .mi svg { width: 18px; height: 18px; }
.xpchip { display: inline-flex; align-items: center; gap: 4px; } .xpchip svg { width: 13px; height: 13px; color: #C9960A; }
.moretile:hover { border-color: var(--fg); }

/* leerpad */
.lphead { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.lphead .rank { font-family: var(--display); font-weight: 800; font-size: 22px; }
.unit { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.unit .uhead { background: var(--tc); color: #fff; padding: 14px 18px; display: flex; gap: 14px; align-items: center; }
.unit .uhead .ill { margin: 0; }
.unit .uhead .ill svg { width: 74px; height: 52px; border-radius: 10px; }
.unit .uhead b { font-family: var(--display); font-size: 19px; display: block; }
.unit .uhead span { font-size: 13px; opacity: .9; }
.unit.locked .uhead { background: var(--muted); }
.lpath { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 22px 12px 26px; }
.lnode { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translateX(var(--x, 0)); }
.lnode button { width: 70px; height: 70px; border-radius: 50%; border: 0; cursor: pointer; background: var(--tc); color: #fff; font-family: var(--display); font-weight: 800; font-size: 22px; box-shadow: 0 6px 0 color-mix(in srgb, var(--tc) 60%, #000); transition: transform .1s, box-shadow .1s; }
.lnode button:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--tc) 60%, #000); }
.lnode button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.lnode.locked button { background: var(--soft); color: var(--muted); box-shadow: 0 6px 0 var(--line); cursor: not-allowed; }
.lnode.current button { animation: bob 1.4s ease-in-out infinite; }
.lnode .bubble { position: absolute; top: -34px; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.lnode .lstars { display: flex; gap: 2px; }
.lnode .lstars svg { width: 16px; height: 16px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.bigstars { display: flex; gap: 10px; justify-content: center; margin: 10px 0; }
.bigstars svg { width: 54px; height: 54px; }
.bigstars .on { animation: popStar .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes popStar { from { transform: scale(0) rotate(-40deg); } to { transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .lnode.current button, .bigstars .on { animation: none; } }

/* rijbewijs-route */
:root { --berm: #DDEBD3; --berm2: #C9DFBC; --asphalt: #3A3F46; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --berm: #1C2A1F; --berm2: #233528; --asphalt: #4A5059; } }
:root[data-theme="dark"] { --berm: #1C2A1F; --berm2: #233528; --asphalt: #4A5059; }
.lpath { position: relative; display: block; background: var(--berm); background-image: radial-gradient(var(--berm2) 1.5px, transparent 1.6px); background-size: 18px 18px; overflow: hidden; padding: 0; }
.lpath .roadsvg { position: absolute; top: 0; left: 50%; margin-left: -200px; width: 400px; pointer-events: none; }
.lpath .deco { position: absolute; width: 30px; height: 30px; pointer-events: none; }
.lnode { position: absolute; left: 50%; z-index: 1; width: 120px; margin-left: -60px; display: flex; flex-direction: column; align-items: center; gap: 4px; transform: translateX(var(--x, 0)); }
.lnode button { width: 64px; height: 64px; border-radius: 50%; border: 5px solid #fff; cursor: pointer; background: var(--tc); color: #fff; font-family: var(--display); font-weight: 800; font-size: 22px; box-shadow: 0 0 0 2px rgba(0,0,0,.25), 0 5px 0 rgba(0,0,0,.25); transition: transform .1s; display: grid; place-items: center; }
.lnode button svg { width: 28px; height: 28px; }
.lnode button:active { transform: translateY(3px); }
.lnode.locked button { background: #9AA0A6; color: #fff; cursor: not-allowed; }
.lnode.locked button[data-upsell] { cursor: pointer; background: #6E7580; }
.lnode.cp button { width: 78px; height: 78px; border-radius: 14px; background: #fff; color: #16191F; border: 4px solid #16191F; }
.lnode.cp button svg { width: 50px; height: 50px; }
.lnode.cp.done button { border-color: #2E9E6B; }
.lnode .cplabel { font-size: 11.5px; font-weight: 800; background: #16191F; color: #fff; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.lnode .lstars { position: relative; z-index: 2; background: rgba(22,25,31,.75); padding: 2px 6px; border-radius: 99px; display: flex; gap: 2px; }
.lnode .mecar { position: absolute; left: -46px; top: 20px; width: 40px; animation: bob 1.4s ease-in-out infinite; }
.lnode .bubble { top: -30px; }
@media (prefers-reduced-motion: reduce) { .lnode .mecar { animation: none; } }
.chest { width: 110px; height: 90px; display: block; margin: 0 auto; }
.chest .lid { transform-origin: 20px 40px; animation: lidOpen .8s .3s ease-out both; }
.chest .shine { animation: beam 1.2s ease-in-out infinite; }
@keyframes lidOpen { from { transform: rotate(0); } to { transform: rotate(-35deg); } }
.coinchip { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--fg); text-decoration: none; }
.coin { width: 14px; height: 14px; border-radius: 50%; background: #F2B705; box-shadow: inset 0 0 0 2px #C9960A; display: inline-block; flex: none; }
@media (prefers-reduced-motion: reduce) { .chest .lid, .chest .shine { animation: none; } }

/* winkel */
.shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.item .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; }
.item .ico svg { width: 32px; height: 32px; }
.item b { font-family: var(--display); font-size: 17px; }
.item .cost { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: 15px; }
.lnode.locked button svg { width: 26px; height: 26px; }
.item .own { font-size: 12px; color: var(--muted); }
.qtools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.opt.struck { opacity: .3; text-decoration: line-through; }

/* feest, complimenten en aanbod */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(10,12,15,.62); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); animation: fadeIn .25s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.celebrate { position: relative; width: min(360px, 100%); background: var(--surface); border-radius: 24px; padding: 30px 22px 22px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.4); animation: bounceIn .6s cubic-bezier(.2,1.5,.4,1) both; overflow: hidden; }
@keyframes bounceIn { from { transform: scale(.4) translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.celebrate .rays { position: absolute; left: 50%; top: 92px; width: 380px; height: 380px; margin: -190px 0 0 -190px; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--bc, #F2B705) 30%, transparent) 0 12deg, transparent 12deg 30deg); border-radius: 50%; animation: spinRays 9s linear infinite; z-index: 0; }
@keyframes spinRays { to { transform: rotate(360deg); } }
.celebrate > *:not(.rays) { position: relative; z-index: 1; }
.celebrate .bigbadge { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 36px; background: var(--bc, #F2B705); box-shadow: 0 0 0 8px color-mix(in srgb, var(--bc, #F2B705) 35%, transparent), 0 10px 0 color-mix(in srgb, var(--bc, #F2B705) 55%, #000); animation: badgeSpin .9s .15s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes badgeSpin { from { transform: rotate(-200deg) scale(0); } to { transform: none; } }
.celebrate .kick { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bc, #C9960A); }
.celebrate h2 { font-size: 26px; margin-top: 4px; }
.celebrate p { color: var(--muted); margin-top: 6px; }
.celebrate .btn { margin-top: 18px; width: 100%; justify-content: center; padding: 12px; font-size: 16px; }
.celebrate .later { margin-top: 8px; }
.upsell ul { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.upsell li { display: flex; gap: 10px; align-items: center; }
.upsell li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; background: var(--good); -webkit-mask: none; box-shadow: inset 0 0 0 5px var(--good-soft); }
.upsell .deal { margin-top: 14px; background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 55; background: var(--fg); color: var(--bg); font-weight: 800; font-family: var(--display); padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.3); animation: toastIn 2.4s ease-in-out both; white-space: nowrap; }
@keyframes toastIn { 0% { transform: translate(-50%, -80px); } 12%, 85% { transform: translate(-50%, 0); } 100% { transform: translate(-50%, -80px); } }
.xpfloat { position: absolute; right: 14px; top: 50%; font-weight: 800; font-family: var(--display); color: var(--good); pointer-events: none; animation: floatUp 1.1s ease-out forwards; }
@keyframes floatUp { from { transform: translateY(-50%); opacity: 1; } to { transform: translateY(-160%); opacity: 0; } }
.opt { position: relative; }
.praise { color: var(--good); }
@media (prefers-reduced-motion: reduce) { .overlay, .celebrate, .celebrate .rays, .celebrate .bigbadge, .toast, .xpfloat { animation: none; } }

/* inklapbare onderwerpen */
.topic header { cursor: pointer; }
.topic header::after { content: "+"; font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--muted); margin-left: auto; }
.topic.open header::after { content: "−"; }
.topic:not(.open) > :not(header) { display: none; }

/* examen-animaties */
@keyframes slideIn { from { opacity: .001; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.slide-in { animation: slideIn .32s ease-out; }
.timer.low > span { background: var(--red); animation: pulse .5s ease-in-out infinite; }
.countup { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .tag.pro::after, .prowelcome, .prowelcome .mark, .slide-in, .timer.low > span, .notes li.new { animation: none; } }

/* beheer */
.tablewrap { overflow-x: auto; margin-top: 10px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--soft); }
.pill.open { background: var(--amber-soft); color: var(--amber); }
.pill.done { background: var(--good-soft); color: var(--good); }
.trbar { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 8px; }
.trbar .btn[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.trq:not(:empty) { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 14.5px; }
.trq ol { margin: 6px 0 4px; padding-left: 22px; }
.lessons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.lesson { border-top: 5px solid var(--tc); display: flex; flex-direction: column; gap: 10px; }
.lesson .scene { width: 100%; height: auto; border-radius: 12px; display: block; }
.lesson ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.lesson .btn { align-self: flex-start; }
.hrow2 { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; font-size: 14px; padding: 4px 0; }
.hrow2 > div { display: flex; flex-direction: column; gap: 3px; }
.hrow2 .fill { height: 10px; border-radius: 0 4px 4px 0; min-width: 2px; }
.hrow2 .val { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; white-space: nowrap; }
.hrow2 .val b { color: var(--fg); }
.rvlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.rv { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.rv p { margin: 6px 0 0; }
.coupon { padding: 12px 16px; }
html[data-read="groot"] body { zoom: 1.12; }
html[data-read="ruim"] body { zoom: 1.15; }
html[data-read="ruim"] p, html[data-read="ruim"] li, html[data-read="ruim"] .qtext, html[data-read="ruim"] .opt span { letter-spacing: .03em; word-spacing: .14em; line-height: 1.7; }
#readSet .btn[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.pill.test { background: var(--blue-soft); color: var(--blue); }
.chcard { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; text-decoration: none; color: #fff; background: linear-gradient(120deg, #E0457B, #7B5BD6); box-shadow: 0 8px 22px rgba(224,69,123,.28); transition: transform .15s; }
.chcard:hover { transform: translateY(-2px); }
.chcard svg { width: 48px; height: 48px; flex: none; animation: bob 2s ease-in-out infinite; }
.chcard div { flex: 1; } .chcard b { display: block; font-family: var(--display); font-size: 20px; } .chcard span { opacity: .92; font-size: 14px; }
.chcard .btn { background: #fff; color: #16191F; border-color: #fff; opacity: 1; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .chcard svg { animation: none; } }
.btn.link { background: transparent; border-color: transparent; color: var(--muted); font-size: 13.5px; padding-left: 4px; padding-right: 4px; box-shadow: none; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.vkbar select { max-width: 100%; }
.vkchart svg { width: 100%; height: auto; display: block; margin-top: 10px; overflow: visible; }
.vkchart .ax { font-size: 11px; fill: var(--muted); font-family: inherit; }
.vkchart .gl { stroke: var(--grid); stroke-width: 1; }
.vkchart .hit { fill: transparent; cursor: default; }
.vkchart g.bar:hover path { opacity: .8; }
.hrow { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 14px; padding: 4px 0; }
.hrow .track { height: 14px; border-radius: 4px; background: transparent; position: relative; }
.hrow .fill { height: 14px; border-radius: 0 4px 4px 0; background: var(--s1); min-width: 2px; }
.hrow .val { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }
.hrow .val b { color: var(--fg); font-weight: 700; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.vktip { position: fixed; z-index: 80; pointer-events: none; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.14); max-width: 240px; }
.insight { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
table.data td.ok { color: var(--good); font-weight: 700; } table.data td.bad { color: var(--red); font-weight: 700; }
table.cmp td:nth-child(n+2), table.cmp th:nth-child(n+2) { text-align: center; }
.helpbtn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 700; color: var(--fg); }

/* echte versie: demo-teksten verbergen */
html.live #view-pro > .demo, html.live #view-beheer > .demo, html.live #bonusTest { display: none !important; }
#pAccount:empty { display: none; }
.soonbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent); }
.soonbar .btn { margin-left: auto; }
