/* FoxPOS Pas – klantenapp. Eén layout; --brand komt per organisatie uit de backoffice (Klantenapp). */
:root {
    --brand: #EE6A1F;
    --brand-ink: #ffffff;
    --ink: #17182A;
    --ink-soft: #4A4D63;
    --muted: #7C7F93;
    --line: #E6E6EC;
    --bg: #F3F3F6;
    --surface: #FFFFFF;
    --ok: #13834B;
    --ok-tint: #E7F6EE;
    --bad: #C2341D;
    --bad-tint: #FDECEA;
    --warn-tint: #FFF4E0;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(23, 24, 42, .05), 0 8px 24px rgba(23, 24, 42, .07);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, sans-serif;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: var(--font); color: var(--ink); background: var(--bg);
    font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; transform: scale(.94); } }

/* ---------- Knoppen en formulieren ---------- */
.btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    min-height: 54px; padding: 0 20px; border-radius: 14px; border: 0;
    font-weight: 650; font-size: 16.5px; letter-spacing: -.005em; transition: transform .08s, filter .15s, background .15s;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn-light { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-link { background: none; border: 0; color: var(--ink-soft); font-weight: 600; padding: 12px 4px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 14px; font-weight: 650; color: var(--ink-soft); }
.field input {
    width: 100%; min-height: 54px; padding: 0 16px; border-radius: 13px; background: var(--surface);
    border: 1.5px solid var(--line); font-size: 17px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(23, 24, 42, .08); }
.field.invalid input { border-color: var(--bad); }
.field.valid input { border-color: var(--ok); }
.field .hint { font-size: 13.5px; color: var(--muted); }
.field .err { font-size: 13.5px; color: var(--bad); font-weight: 550; }
.input-mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
input::-ms-reveal, input::-ms-clear { display: none; }
.form-links { display: grid; justify-items: center; margin-top: 10px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-soft); font-size: 14px; font-weight: 650; padding: 10px; min-height: 44px; }
.checks { list-style: none; padding: 0; margin: 2px 0 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.checks li::before { content: '○'; display: inline-block; width: 18px; }
.checks li.ok { color: var(--ok); }
.checks li.ok::before { content: '✓'; font-weight: 700; }
.form-error { background: var(--bad-tint); color: var(--bad); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; font-weight: 550; margin-bottom: 16px; }
.form-note { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--ink-soft); margin: 4px 0 18px; display: flex; gap: 10px; }
.form-note svg { flex: none; margin-top: 2px; }

/* ---------- Startscherm (nog niet ingelogd) ---------- */
.welcome {
    min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: #fff;
    padding: calc(28px + var(--safe-top)) 24px calc(28px + var(--safe-bottom));
    background:
        radial-gradient(120% 70% at 100% 0%, rgba(255, 105, 0, .55), transparent 60%),
        radial-gradient(90% 60% at 0% 30%, rgba(108, 0, 255, .45), transparent 65%),
        #17182A;
}
.welcome-logo { height: 30px; width: auto; }
.welcome-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 0 32px; }
.welcome-card {
    position: relative; width: min(300px, 82%); aspect-ratio: 1.586; border-radius: 18px; margin-bottom: 40px;
    background: linear-gradient(135deg, #FF7A1A 0%, #E2357E 55%, #6C2BFF 100%);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .18);
    transform: rotate(-6deg); padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between;
}
.welcome-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255, 255, 255, .28), transparent 45%); }
.welcome-card .chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #f8e2a6, #c9a24d); }
.welcome-card .nr { font-family: ui-monospace, Consolas, monospace; font-size: 17px; letter-spacing: .12em; opacity: .95; }
.welcome-card .mark { position: absolute; right: 18px; top: 16px; width: 22px; height: auto; opacity: .9; filter: brightness(0) invert(1); }
.welcome h1 { font-family: var(--font-display); font-size: clamp(32px, 9vw, 40px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 12px; font-weight: 750; }
.welcome p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 17px; max-width: 30ch; }
.welcome-actions { display: grid; gap: 12px; }

/* ---------- Formulierschermen ---------- */
.screen { min-height: 100vh; min-height: 100dvh; padding: calc(12px + var(--safe-top)) 20px calc(28px + var(--safe-bottom)); display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 6px; min-height: 52px; margin-bottom: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; color: inherit; }
.icon-btn:active { background: rgba(23, 24, 42, .06); }
.screen h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.1; letter-spacing: -.025em; margin: 6px 0 8px; font-weight: 750; }
.screen .lead { color: var(--ink-soft); margin: 0 0 26px; font-size: 16px; }
.screen form { display: block; }
.screen .grow { flex: 1; }
.panel { display: contents; }
.steps { display: flex; gap: 6px; margin: 2px 0 14px; }
.steps i { height: 4px; flex: 1; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--ink); }
.card-help { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 20px; font-size: 13.5px; color: var(--ink-soft); }
.mini-card { flex: none; width: 74px; height: 47px; border-radius: 8px; background: #fff; position: relative; overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--line), inset 0 -3px 0 #FF6900; }
.mini-card::before { content: '1234 5678 90'; position: absolute; left: 6px; top: 16px; font: 700 7px ui-monospace, Consolas, monospace; color: #000; letter-spacing: .04em; }
.mini-card::after { content: 'CVV 123'; position: absolute; left: 6px; top: 29px; font: 700 6.5px var(--font); color: #000; }
.split { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }

/* ---------- Inlogcode ---------- */
.pin-screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: calc(36px + var(--safe-top)) 24px calc(20px + var(--safe-bottom)); text-align: center; }
.pin-logo { width: 64px; height: 64px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; margin-bottom: 18px; }
.pin-logo img { max-width: 70%; max-height: 70%; object-fit: contain; }
.pin-screen h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.015em; }
.pin-screen .sub { color: var(--muted); margin: 0 0 26px; font-size: 15px; min-height: 22px; }
.pin-screen .sub.err { color: var(--bad); font-weight: 600; }
.pin-dots { display: flex; gap: 14px; margin-bottom: 34px; }
.pin-dots i { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink-soft); transition: background .12s, transform .12s; }
.pin-dots i.on { background: var(--ink); box-shadow: none; transform: scale(1.08); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px 26px; justify-content: center; }
.keypad button { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--surface); font-size: 28px; font-weight: 500; box-shadow: 0 1px 2px rgba(23, 24, 42, .06); }
.keypad button:active { background: #E4E4EA; }
.keypad button.plain { background: transparent; box-shadow: none; font-size: 15px; font-weight: 650; color: var(--ink-soft); }
.pin-screen .btn-link { margin-top: auto; padding-top: 24px; }

/* ---------- Hoofdscherm ---------- */
.hero {
    position: relative; color: #fff; padding: calc(10px + var(--safe-top)) 20px 78px; overflow: hidden;
    background: var(--brand);
}
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 20, .45) 0%, rgba(10, 10, 20, .15) 45%, color-mix(in srgb, var(--brand) 82%, transparent) 100%); }
.hero.no-photo .hero-shade { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%), linear-gradient(160deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .22)); }
.hero-bar { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.hero-bar .icon-btn { color: #fff; background: rgba(0, 0, 0, .18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-org { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.org-logo { width: 56px; height: 56px; flex: none; border-radius: 16px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.org-logo img { max-width: 78%; max-height: 78%; object-fit: contain; }
.org-logo span { font-weight: 800; font-size: 22px; color: var(--brand); }
.hero-org h1 { font-family: var(--font-display); font-size: 25px; line-height: 1.12; letter-spacing: -.02em; margin: 0; font-weight: 750; text-shadow: 0 1px 12px rgba(0, 0, 0, .18); }
.hero-org p { margin: 2px 0 0; font-size: 14px; color: rgba(255, 255, 255, .85); }

.content { position: relative; margin-top: -58px; padding: 0 16px calc(32px + var(--safe-bottom)); }
.balance-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 20px 20px 16px; }
.balance-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.balance-amount { font-family: var(--font-display); font-size: 46px; line-height: 1.05; letter-spacing: -.035em; font-weight: 750; margin: 6px 0 4px; }
.balance-amount.neg { color: var(--bad); }
.balance-amount small { font-size: .5em; letter-spacing: -.01em; vertical-align: .5em; margin-left: 1px; }
.balance-meta { color: var(--ink-soft); font-size: 14.5px; }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.card-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.card-chip i { width: 18px; height: 12px; border-radius: 3px; background: var(--brand); display: inline-block; }
.card-chip.blocked { background: var(--bad-tint); color: var(--bad); }
.topup-note { display: flex; gap: 9px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

.account-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 2px; scrollbar-width: none; }
.account-tabs::-webkit-scrollbar { display: none; }
.account-tabs button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .92); font-weight: 650; font-size: 14.5px; box-shadow: 0 1px 2px rgba(23, 24, 42, .08); }
.account-tabs button.on { background: var(--ink); color: #fff; }

.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--warn-tint); border-radius: 14px; padding: 14px; margin-top: 14px; font-size: 14.5px; color: #6B4500; }
.notice strong { display: block; color: #4A3000; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 4px 10px; }
.section-title h2 { font-size: 19px; margin: 0; letter-spacing: -.015em; }
.tx-day { font-size: 13px; font-weight: 700; color: var(--muted); margin: 18px 6px 8px; text-transform: capitalize; }
.tx-list { background: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(23, 24, 42, .05); overflow: hidden; }
.tx { display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 14px; border: 0; background: none; text-align: left; min-height: 68px; }
.tx + .tx { border-top: 1px solid var(--line); }
button.tx:active { background: var(--bg); }
.tx-icon { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--bg); color: var(--ink-soft); }
.tx-icon.in { background: var(--ok-tint); color: var(--ok); }
.tx-icon.buy { background: color-mix(in srgb, var(--brand) 13%, white); color: color-mix(in srgb, var(--brand) 80%, black); }
.tx-main { flex: 1; min-width: 0; }
.tx-title { font-weight: 650; font-size: 15.5px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tx-sub { font-size: 13.5px; color: var(--muted); }
.tx-amount { font-weight: 700; font-size: 16px; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.tx-amount.in { color: var(--ok); }
.tx-amount svg { color: #B8BACA; }
.empty-state { text-align: center; color: var(--muted); padding: 34px 20px; background: var(--surface); border-radius: var(--radius); }
.empty-state svg { margin: 0 auto 10px; color: #C3C5D3; }
.more-btn { margin-top: 12px; }

/* ---------- Onderblad (bon, menu, instellingen) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15, 16, 30, .45); z-index: 40; opacity: 0; transition: opacity .2s; }
.sheet-backdrop.open { opacity: 1; }
.sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto; max-height: 92vh; max-height: 92dvh;
    background: var(--bg); border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
    display: flex; flex-direction: column; padding-bottom: var(--safe-bottom);
}
.sheet.open { transform: none; }
.sheet-grip { width: 40px; height: 5px; border-radius: 5px; background: #CFD0DA; margin: 9px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 6px 22px; flex: none; }
.sheet-head h2 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.sheet-body { overflow-y: auto; padding: 6px 18px 22px; -webkit-overflow-scrolling: touch; }

.receipt { background: var(--surface); border-radius: 16px; padding: 22px 20px 18px; position: relative; box-shadow: 0 1px 2px rgba(23, 24, 42, .06); }
.receipt-head { text-align: center; padding-bottom: 14px; border-bottom: 1.5px dashed var(--line); }
.receipt-head strong { display: block; font-size: 18px; letter-spacing: -.01em; }
.receipt-head span { color: var(--muted); font-size: 13.5px; }
.receipt-lines { padding: 12px 0; border-bottom: 1.5px dashed var(--line); }
.r-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; }
.r-line .q { color: var(--muted); margin-right: 4px; }
.r-sub { font-size: 13px; color: var(--muted); padding: 0 0 4px 22px; display: flex; justify-content: space-between; }
.r-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; padding: 14px 0 6px; letter-spacing: -.01em; }
.r-small { display: flex; justify-content: space-between; color: var(--muted); font-size: 13.5px; padding: 2px 0; }
.receipt-foot { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 14px; }

.menu-account { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; padding: 14px; margin-bottom: 18px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 750; font-size: 18px; flex: none; text-transform: uppercase; }
.menu-account .who { min-width: 0; }
.menu-account .who strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-account .who span { font-size: 13px; color: var(--muted); }
.menu-group { background: var(--surface); border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.menu-label { font-size: 12.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 6px 8px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 14px; border: 0; background: none; text-align: left; font-size: 15.5px; font-weight: 600; }
.menu-item + .menu-item { border-top: 1px solid var(--line); }
.menu-item:active { background: var(--bg); }
.menu-item .dot-logo { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--bg); font-weight: 800; color: #fff; }
.menu-item .dot-logo img { max-width: 76%; max-height: 76%; object-fit: contain; }
.menu-item .grow { flex: 1; min-width: 0; }
.menu-item .grow small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.menu-item .tick { color: var(--ok); }
.menu-item.danger { color: var(--bad); }
.menu-item svg.chev { color: #B8BACA; }

#toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--bad); }

.skeleton { background: linear-gradient(90deg, #ececf1 25%, #f6f6f9 50%, #ececf1 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.notice.danger { background: var(--bad-tint); color: #7A2414; }
.notice.danger strong { color: var(--bad); }

/* ---------- Mijn account ---------- */
.page-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-top)) 10px 8px; background: rgba(243, 243, 246, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.page-head h1 { flex: 1; margin: 0; font-size: 20px; letter-spacing: -.015em; }
.account-page { margin-top: 0; padding-top: 6px; }
.acc-who { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 18px; padding: 16px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(23, 24, 42, .05); }
.acc-who .who { min-width: 0; }
.acc-who strong { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-who span { font-size: 13px; color: var(--muted); }
.acc-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 4px 10px; }
.acc-title h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.acc-title .btn-small { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.acc-org { margin-bottom: 16px; }
.acc-org-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin: 0 4px 8px; }
.acc-org-head .dot-logo { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; overflow: hidden; color: #fff; font-weight: 800; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); }
.acc-org-head .dot-logo img { max-width: 76%; max-height: 76%; object-fit: contain; }
.card-row { padding: 12px 14px; }
.card-row + .card-row { border-top: 1px solid var(--line); }
.card-row-main { display: flex; align-items: center; gap: 12px; }
.card-row-main .grow { flex: 1; min-width: 0; }
.card-row-main .grow strong { display: block; font-size: 16px; letter-spacing: .03em; }
.card-row-main .grow small { display: block; color: var(--muted); font-size: 13.5px; }
.card-row-main .grow small b { color: var(--ink); }
.card-row-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: var(--ink-soft); flex: none; }
.card-row-actions { display: flex; justify-content: flex-end; margin-top: 2px; }
.card-row-confirm { margin-top: 10px; background: var(--bad-tint); border-radius: 12px; padding: 12px; font-size: 14px; color: #7A2414; display: grid; gap: 10px; }
.card-row-confirm > div { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.btn-small { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--bg); font-weight: 650; font-size: 14.5px; color: var(--ink); }
.btn-small.link-danger { background: transparent; color: var(--bad); }
.card-row-confirm .btn-small { background: #fff; }
.card-row-confirm .btn-small.danger { background: var(--bad); color: #fff; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--bg); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-tint); color: var(--ok); }
.pill.bad { background: var(--bad-tint); color: var(--bad); }
.menu-account { cursor: pointer; }

/* ---------- App installeren ---------- */
.install-card { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; background: var(--ink); color: #fff; border-radius: 20px; padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.install-card img { border-radius: 14px; }
.install-text strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.install-text span { display: block; font-size: 14px; color: rgba(255, 255, 255, .78); }
.install-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.install-actions .btn-small { background: rgba(255, 255, 255, .12); color: #fff; }
.install-actions .btn-small.primary { background: #fff; color: var(--ink); }
.install-lead { margin: 0 0 16px; color: var(--ink-soft); }
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.install-steps li { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.step-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: #0A84FF; flex: none; }
.step-icon img { border-radius: 7px; }
.menu-app-icon { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.home-grid.single .install-card { max-width: 520px; }

/* ---------- Zijbalk (alleen laptop) en layout ---------- */
html, body { overflow-x: hidden; }
.sidebar { display: none; }
.side-brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; letter-spacing: -.01em; padding: 4px 6px 22px; }
.menu-item.current { background: color-mix(in srgb, var(--brand) 7%, white); }

/* ---------- Tablet (≥ 700px) ---------- */
@media (min-width: 700px) {
    #app { max-width: none; }

    /* Inloggen, registreren, wachtwoord, inlogcode: kaart in het midden */
    .screen, .pin-screen {
        justify-content: center; align-items: center; padding: 40px 24px;
        background: radial-gradient(80% 60% at 100% 0%, rgba(255, 105, 0, .10), transparent 60%),
                    radial-gradient(70% 60% at 0% 100%, rgba(108, 0, 255, .08), transparent 60%), var(--bg);
    }
    .panel {
        display: block; width: 100%; max-width: 460px; background: var(--surface); border-radius: 26px;
        padding: 18px 32px 32px; box-shadow: 0 1px 2px rgba(23, 24, 42, .05), 0 30px 60px -30px rgba(23, 24, 42, .28);
    }
    .screen .panel .card-help, .screen .panel .form-note { background: var(--bg); border-color: transparent; }
    .pin-screen .panel { display: flex; flex-direction: column; align-items: center; padding: 36px 32px 26px; max-width: 420px; }
    .pin-screen .keypad button:not(.plain) { background: var(--bg); box-shadow: none; }
    .pin-screen .btn-link { margin-top: 24px; padding-top: 12px; }

    .welcome { align-items: center; justify-content: center; text-align: center; }
    .welcome-card { margin-left: auto; margin-right: auto; }
    .welcome p { margin: 0 auto; }
    .welcome > * { width: 100%; max-width: 440px; }
    .welcome-main { flex: 0; padding: 48px 0 40px; }
    .welcome-logo { width: auto; max-width: none; align-self: center; }
    .welcome > .welcome-logo { width: auto; }

    /* Overzicht: links saldo en rekeningen, rechts de transacties */
    .hero { padding: calc(14px + var(--safe-top)) 32px 96px; }
    .hero-bar, .hero-org { max-width: 1200px; margin-left: auto; margin-right: auto; }
    .hero-org { margin-top: 26px; }
    .hero-org h1 { font-size: 30px; }
    .content { max-width: 1200px; margin: -72px auto 0; padding: 0 32px 48px; }
    .home-grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
    .home-grid.single { grid-template-columns: minmax(0, 520px); }
    .home-side { position: sticky; top: 20px; }
    .home-main .section-title { margin-top: 82px; }
    .home-main .section-title h2 { font-size: 21px; }
    .account-tabs { flex-wrap: wrap; overflow: visible; margin: 0 0 12px; padding: 0; }

    /* Onderblad wordt een venster */
    .sheet {
        top: 50%; bottom: auto; left: 50%; right: auto; width: min(520px, calc(100vw - 48px)); max-height: min(86vh, 820px);
        border-radius: 24px; padding-bottom: 0; transform: translate(-50%, -46%) scale(.97); opacity: 0;
        transition: transform .2s ease, opacity .2s ease; box-shadow: 0 30px 80px rgba(15, 16, 30, .35);
    }
    .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
    .sheet-grip { display: none; }
    .sheet-head { padding-top: 14px; }
    .sheet-body { padding: 6px 22px 26px; }
}

@media (min-width: 700px) {
    .page-head { padding: 18px 32px 10px; max-width: 1264px; margin: 0 auto; }
    .page-head h1 { font-size: 26px; }
    .account-page { margin: 0 auto; padding-top: 8px; }
}
@media (min-width: 1000px) {
    .acc-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
}

/* ---------- Laptop (≥ 1100px): vaste zijbalk ---------- */
@media (min-width: 1100px) {
    .layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 100vh; }
    .sidebar {
        display: block; position: sticky; top: 0; height: 100vh; overflow-y: auto;
        padding: 24px 18px; background: var(--surface); border-right: 1px solid var(--line);
    }
    .sidebar .menu-account, .sidebar .menu-group { background: var(--bg); }
    .sidebar .menu-item { min-height: 52px; }
    .hero-bar .icon-btn, .page-head #menu-btn { display: none; }
    .hero-bar { min-height: 24px; }
    .hero { padding-top: 26px; padding-bottom: 104px; }
    .hero { padding-left: 40px; padding-right: 40px; }
    .content { padding: 0 40px 56px; }
    .home-grid { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
