/* =========================================================
   EliteDrive — Klantportaal (account + reserveren)
   Zwart/goud huisstijl, afgestemd op styles/style.css.
   ========================================================= */

:root {
    --bg: #0a0a0a;
    --bg-soft: #121212;
    --bg-card: #161616;
    --bg-elev: #1c1c1c;
    --line: #2a2a2a;
    --text: #f5f5f5;
    --text-dim: #b5b5b5;
    --text-mute: #8a8a8a;
    --gold: #d4af37;
    --gold-2: #f1d27b;
    --gold-rgb: 212, 175, 55;
    --green: #3fae6b;
    --red: #e06b6b;
    --radius: 8px;
    --radius-lg: 14px;
    --font-display: "Cinzel", "Times New Roman", serif;
    --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(1200px 600px at 50% -10%, #161616 0%, var(--bg) 60%);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--gold-2);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ----- Header ----- */
.portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 10, 10, 0.8);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.brand {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 700;
}
.brand .drive {
    color: var(--text);
}

.portal-header nav a {
    color: var(--text-dim);
    font-size: 14px;
    margin-left: 18px;
}

.portal-header nav {
    display: flex;
    align-items: center;
}

/* ----- Taalwisselaar ----- */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 18px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}
.lang-btn {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    background: transparent;
    border: none;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}
.lang-btn:hover {
    color: var(--text);
}
.lang-btn.is-active {
    color: var(--bg);
    background: var(--accent-2, var(--gold));
}

/* ----- Layout ----- */
.wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    color: var(--gold);
    margin: 0 0 8px;
}

h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 30px;
    margin: 0 0 8px;
}
h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
    margin: 0 0 14px;
    color: var(--gold-2);
}

.lead {
    color: var(--text-dim);
    margin: 0 0 28px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-bottom: 20px;
}

/* ----- Forms ----- */
.field {
    margin-bottom: 16px;
}
.field label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
    width: 100%;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    padding: 11px 13px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent-2, var(--gold));
}
.field textarea {
    min-height: 84px;
    resize: vertical;
}

/* ----- Adres-autocomplete ----- */
.ac-wrap {
    position: relative;
}
.ac-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    background: var(--bg-elev);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-height: 260px;
    overflow-y: auto;
}
.ac-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    padding: 10px 13px;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
}
.ac-item:last-child {
    border-bottom: 0;
}
.ac-item:hover,
.ac-item.active {
    background: rgba(var(--gold-rgb), 0.16);
    color: var(--gold-2);
}

.row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.row .field {
    flex: 1 1 160px;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dim);
}
.check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-2, var(--gold));
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    border: 1px solid var(--accent-2, var(--gold));
    background: transparent;
    color: var(--accent-2, var(--gold));
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.btn:hover {
    background: var(--accent-2, var(--gold));
    color: var(--bg);
    text-decoration: none;
}
.btn-primary {
    background: var(--accent-2, var(--gold));
    color: var(--bg);
}
.btn-primary:hover {
    background: var(--gold-2);
}
.btn-ghost {
    border-color: var(--line);
    color: var(--text-dim);
}
.btn-ghost:hover {
    background: var(--bg-elev);
    color: var(--text);
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ----- Auth (login/registratie) ----- */
.auth-tabs {
    display: flex;
    gap: 6px;
    margin: 18px 0 16px;
    border-bottom: 1px solid var(--line);
}
.auth-tab {
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.auth-tab:hover {
    color: var(--text);
}
.auth-tab.is-active {
    color: var(--accent-2, var(--gold));
    border-bottom-color: var(--accent-2, var(--gold));
}
.auth-form {
    max-width: 440px;
}
.auth-form .btn {
    margin-top: 6px;
}

/* Honeypot-veld onzichtbaar voor echte gebruikers (anti-spam) */
.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Cloudflare Turnstile-widget */
.captcha-box {
    margin: 4px 0 10px;
    min-height: 65px;
}

/* ----- Beveiliging & privacy ----- */
.sub {
    font-family: inherit;
    font-size: 16px;
    color: var(--text);
    margin: 4px 0 12px;
}
.gdpr {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.btn-danger {
    border-color: #e06b6b;
    color: #e06b6b;
}
.btn-danger:hover {
    background: #e06b6b;
    color: #fff;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}
/* Utility-klassen ter vervanging van inline styles (CSP-veilig: de strikte
   Content Security Policy blokkeert style="..."-attributen). */
.actions.center {
    justify-content: center;
}
.lead.spaced {
    margin-top: 14px;
}
.note.spaced {
    margin-top: 16px;
}

/* ----- Quote box ----- */
.quote {
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 18px;
    margin-top: 18px;
    background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.08), transparent);
}
.quote .price {
    font-family: var(--font-display);
    font-size: 30px;
    color: var(--gold);
}
.quote .disc {
    font-size: 12px;
    color: var(--text-mute);
    margin-top: 6px;
}

/* ----- Slots ----- */
.slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.slot {
    border: 1px solid var(--line);
    background: var(--bg-elev);
    color: var(--text);
    border-radius: var(--radius);
    padding: 9px 14px;
    cursor: pointer;
    font-size: 14px;
}
.slot:hover {
    border-color: var(--gold);
}
.slot.selected {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
    font-weight: 600;
}
.slot.taken {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ----- Ophalen/aankomen segmented control ----- */
.field-label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 6px;
}
.timetype {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.tt-btn {
    background: var(--bg-elev);
    color: var(--text);
    border: 0;
    font-family: inherit;
    font-size: 14px;
    padding: 9px 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.tt-btn + .tt-btn {
    border-left: 1px solid var(--line);
}
.tt-btn:hover {
    color: var(--gold-2);
}
.tt-btn.active {
    background: var(--gold);
    color: var(--bg);
    font-weight: 600;
}

/* ----- Retourrit-blok ----- */
.check-field {
    margin-top: 4px;
}
.return-block {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(var(--gold-rgb), 0.05);
    padding: 14px 16px;
    margin-bottom: 16px;
}
.return-block .small {
    font-size: 12.5px;
    margin: 0 0 12px;
}
.return-block .row {
    margin-bottom: 4px;
}

/* =========================================================
   KLANTENDASHBOARD (account.html)
   ========================================================= */
/* Het dashboard mag breder zijn dan de smalle login-/formulierkolom. */
.wrap.is-dashboard {
    max-width: 1080px;
}

/* Hero met avatar + welkomsttekst + hoofdactie */
.dash-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.dash-id {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.dash-avatar {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 100%);
}
.dash-id-text {
    min-width: 0;
}
.dash-id-text h1 {
    margin: 2px 0 0;
}
.dash-sub {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--text-mute);
    overflow-wrap: anywhere;
}
.dash-actions {
    flex: 0 0 auto;
}

/* KPI-statistieken */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}
.stat-card {
    text-align: left;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    background: var(--bg-card);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.stat-card:hover {
    border-color: var(--accent-2, var(--gold));
    transform: translateY(-2px);
}
.stat-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mute);
}
.stat-value {
    display: block;
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.1;
    color: var(--gold);
}
.stat-card.accent .stat-value {
    color: var(--accent-2, var(--gold));
}

/* Tabnavigatie */
.dash-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.dash-tab {
    flex: 0 0 auto;
    background: none;
    border: none;
    color: var(--text-mute);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.dash-tab:hover {
    color: var(--text);
}
.dash-tab.is-active {
    color: var(--gold-2);
    border-bottom-color: var(--accent-2, var(--gold));
}

/* Tabpanelen */
.dash-panel {
    display: none;
}
.dash-panel.is-active {
    display: block;
    animation: dashFade 0.2s ease;
}
@keyframes dashFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

/* Overzicht: twee kolommen (volgende rit + snelle acties) */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.card-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.card-head-row h2 {
    margin: 0;
}
.link-btn {
    background: none;
    border: none;
    color: var(--gold-2);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
}
.link-btn:hover {
    text-decoration: underline;
}

/* Snelle acties */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elev);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.quick-action:hover {
    border-color: var(--accent-2, var(--gold));
    color: var(--text);
    text-decoration: none;
}
.qa-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--gold-rgb), 0.12);
    color: var(--gold);
    font-size: 16px;
}

/* Lege ministaat (overzicht) */
.empty-mini {
    color: var(--text-mute);
    font-size: 14px;
    padding: 6px 0;
}

/* Ritfilter-pillen */
.ride-filters {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-elev);
}
.filter-pill {
    background: none;
    border: none;
    color: var(--text-mute);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.filter-pill:hover {
    color: var(--text);
}
.filter-pill.is-active {
    background: var(--accent-2, var(--gold));
    color: #1a1a1a;
}

@media (max-width: 820px) {
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .overview-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .dash-avatar {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
    .dash-actions {
        width: 100%;
    }
    .dash-actions .btn {
        width: 100%;
    }
    .dash-tab {
        padding: 11px 13px;
        font-size: 14px;
    }
    .stat-card {
        padding: 15px;
    }
    .stat-value {
        font-size: 26px;
    }
}

/* ----- Bookings list ----- */
.booking {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--bg-elev);
}
.booking .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.booking .route {
    font-weight: 600;
}
.booking .meta {
    font-size: 13px;
    color: var(--text-mute);
    margin-top: 4px;
}
.booking .when-pill {
    display: inline-block;
    margin-left: 2px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
    background: rgba(var(--gold-rgb), 0.14);
    color: var(--gold-2);
}
.badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text-dim);
    white-space: nowrap;
}
.badge.requested {
    color: var(--gold);
    border-color: var(--gold);
}
.badge.confirmed {
    color: var(--green);
    border-color: var(--green);
}
.badge.completed {
    color: var(--text-dim);
}
.badge.cancelled {
    color: var(--red);
    border-color: var(--red);
}

/* ----- Betaalregel (Mollie-betaallink in de boekingskaart) ----- */
.booking .pay-row {
    margin-top: 10px;
}
.booking .pay-btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 999px;
    background: var(--accent-2, var(--gold));
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease;
}
.booking .pay-btn:hover {
    filter: brightness(1.08);
}
.booking .pay-paid {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
}

/* ----- Betaal-checkout (Shopify-stijl, in-page) ----- */
body.modal-open {
    overflow: hidden;
}
.checkout-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
    animation: checkoutFade 0.18s ease;
}
@keyframes checkoutFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.checkout-dialog {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    width: 100%;
    max-width: 1000px;
    height: min(92vh, 900px);
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

/* Betaalkolom (links) */
.checkout-main {
    order: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-card);
}
.checkout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.checkout-title {
    font-weight: 600;
    color: var(--gold-2);
    font-size: 15px;
    letter-spacing: 0.02em;
}
.checkout-close {
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s ease;
}
.checkout-close:hover {
    color: var(--text);
}
.checkout-body {
    position: relative;
    flex: 1;
    background: #fff;
    min-height: 0;
}
.checkout-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.checkout-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text-dim);
    font-size: 14px;
}
.checkout-loading.hidden {
    display: none;
}
/* Branded betaalpaneel (vervangt de iframe; opent Mollie in nieuw tabblad) */
.checkout-body.checkout-pay {
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 44px 28px;
}
.pay-badge {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border-radius: 50%;
    background: rgba(var(--gold-rgb), 0.12);
    border: 1px solid var(--line);
}
.pay-head {
    font-family: var(--font-display);
    font-size: 21px;
    color: var(--gold-2);
}
.pay-intro {
    max-width: 380px;
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-dim);
}
.pay-cta {
    margin-top: 8px;
    padding: 14px 32px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-2, var(--gold)) 0%, var(--accent-2-dark, var(--gold-2)) 100%);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease;
}
.pay-cta:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.pay-cta:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}
.pay-err {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--danger, #d9534f);
}
.pay-note {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--text-mute);
}
.checkout-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
}
.checkout-ext {
    color: var(--text-dim);
    font-size: 13px;
    text-decoration: underline;
}
.checkout-ext:hover {
    color: var(--text);
}
.checkout-done {
    padding: 9px 20px;
    border: none;
    border-radius: 999px;
    background: var(--gold);
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: filter 0.15s ease;
}
.checkout-done:hover {
    filter: brightness(1.08);
}

/* Bestelsamenvatting (rechts op desktop, boven op mobiel) */
.checkout-summary {
    order: 2;
    background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-soft) 100%);
    border-left: 1px solid var(--line);
    overflow-y: auto;
}
.cs-toggle {
    display: none; /* enkel op mobiel zichtbaar */
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border: none;
    border-bottom: 1px solid var(--line);
    background: var(--bg-elev);
    color: var(--text);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
}
.cs-toggle-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-2);
}
.cs-toggle-text::before {
    content: "\25B8"; /* ▸ */
    transition: transform 0.18s ease;
    color: var(--gold);
}
.cs-toggle.open .cs-toggle-text::before {
    transform: rotate(90deg);
}
.cs-toggle-total {
    font-weight: 600;
    color: var(--gold-2);
}
.cs-body {
    padding: 26px 26px 30px;
}
.cs-heading {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}
.cs-ride {
    padding: 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.cs-route {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}
.cs-arrow {
    color: var(--gold);
}
.cs-ride-meta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-dim);
}
.cs-ride-ref {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 0.03em;
}
.cs-lines {
    margin-top: 20px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}
.cs-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    font-size: 14px;
}
.cs-line-label {
    color: var(--text-dim);
}
.cs-line-val {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.cs-line.cs-total {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.cs-total .cs-line-label {
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
}
.cs-total .cs-line-val {
    color: var(--gold-2);
    font-weight: 700;
    font-size: 19px;
}
.cs-trust {
    margin-top: 22px;
    font-size: 12.5px;
    color: var(--text-mute);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Responsive: één kolom, samenvatting inklapbaar bovenaan (Shopify-patroon) */
@media (max-width: 820px) {
    .checkout-overlay {
        padding: 0;
    }
    .checkout-dialog {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        max-width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
    }
    .checkout-summary {
        order: 1;
        border-left: none;
        border-bottom: 1px solid var(--line);
        overflow-y: visible;
    }
    .checkout-main {
        order: 2;
    }
    .cs-toggle {
        display: flex;
    }
    .cs-heading {
        display: none;
    }
    .cs-body {
        display: none;
        padding: 18px 20px 22px;
    }
    .cs-body.open {
        display: block;
    }
}

/* ----- Bewerken van een openstaande reservatie ----- */
.booking .edit-row {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.btn-edit {
    display: inline-block;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-edit:hover {
    border-color: var(--accent-2, var(--gold));
}
.btn-edit.primary {
    background: var(--accent-2, var(--gold));
    color: #1a1a1a;
    border-color: var(--accent-2, var(--gold));
}
.btn-edit.btn-danger {
    border-color: rgba(224, 107, 107, 0.55);
    color: var(--red);
}
.btn-edit.btn-danger:hover {
    border-color: var(--red);
    background: rgba(224, 107, 107, 0.1);
}
.btn-edit.btn-danger.solid {
    background: var(--red);
    border-color: var(--red);
    color: #1a1a1a;
}
.btn-edit.btn-danger.solid:hover {
    background: #d65a5a;
    border-color: #d65a5a;
}
.btn-edit:disabled {
    opacity: 0.6;
    cursor: default;
}
/* ----- Annuleer-bevestiging in de boekingskaart ----- */
.booking .cancel-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.booking .cancel-q {
    margin: 0 0 6px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}
.booking .cancel-fee {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
}
.booking .cancel-fee.has-fee {
    color: var(--red);
}
.booking .cancel-fee.is-free {
    color: var(--green);
}
.booking .cancel-hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--text-mute);
}
.booking .edit-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.booking .edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}
.booking .edit-form .field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}
.booking .edit-form label {
    font-size: 12px;
    color: var(--text-mute);
}
.booking .edit-form input,
.booking .edit-form textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    box-sizing: border-box;
}
.booking .edit-form input:focus,
.booking .edit-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.booking .edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
@media (max-width: 560px) {
    .booking .edit-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Steps ----- */
.steps {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.step-pill {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-mute);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
}
.step-pill.active {
    color: var(--gold);
    border-color: var(--gold);
}
.step-pill.done {
    color: var(--green);
    border-color: var(--green);
}

.hidden {
    display: none !important;
}

.note {
    font-size: 13px;
    margin-top: 12px;
    min-height: 18px;
}
.note.err {
    color: var(--red);
}
.note.ok {
    color: var(--green);
}

/* E-mailverificatie — melding bovenaan + banner in het dashboard */
.verify-notice {
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.5;
}
.verify-notice.is-ok {
    border-color: rgba(63, 174, 107, 0.5);
    background: rgba(63, 174, 107, 0.1);
    color: var(--green);
}
.verify-notice.is-err {
    border-color: rgba(224, 107, 107, 0.5);
    background: rgba(224, 107, 107, 0.1);
    color: var(--red);
}
.verify-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--gold-rgb), 0.4);
    background: rgba(var(--gold-rgb), 0.08);
}
.verify-banner-text {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.verify-banner-text strong {
    color: var(--gold-2);
    font-size: 15px;
}
.verify-banner-text span {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.5;
}
.verify-banner .btn {
    white-space: nowrap;
}

.muted {
    color: var(--text-mute);
    font-size: 14px;
}

.success-box {
    text-align: center;
    padding: 20px 0;
}
.success-box .ref {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--gold);
    letter-spacing: 2px;
}

/* =========================================================
   Responsive — tablet & smartphone
   ========================================================= */

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
    .wrap {
        padding: 32px 18px 64px;
    }
    h1 {
        font-size: 26px;
    }
    .card {
        padding: 22px;
    }
}

/* Smartphone (≤ 560px) */
@media (max-width: 560px) {
    .portal-header {
        flex-wrap: wrap;
        gap: 10px 14px;
        padding: 14px 16px;
    }
    .portal-header nav {
        flex-wrap: wrap;
        gap: 6px 0;
        width: 100%;
    }
    .portal-header nav a {
        margin-left: 0;
        margin-right: 16px;
    }
    .lang-switch {
        margin-left: auto;
    }
    .brand {
        font-size: 19px;
        letter-spacing: 2px;
    }

    .wrap {
        padding: 26px 14px 56px;
    }
    h1 {
        font-size: 23px;
    }
    h2 {
        font-size: 18px;
    }
    .card {
        padding: 18px 16px;
        border-radius: var(--radius);
    }

    /* Inputs op 16px → voorkomt auto-zoom op iOS */
    .field input,
    .field textarea,
    .field select {
        font-size: 16px;
    }

    /* Velden onder elkaar i.p.v. naast elkaar */
    .row {
        gap: 0;
    }
    .row .field {
        flex: 1 1 100%;
    }

    /* Knoppen volle breedte, gestapeld */
    .actions {
        flex-direction: column;
        gap: 10px;
    }
    .actions .btn {
        width: 100%;
        text-align: center;
    }
    .auth-form {
        max-width: none;
    }
    .auth-form .btn {
        width: 100%;
        text-align: center;
    }

    /* Auth-tabs gelijkmatig verdeeld */
    .auth-tab {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
        font-size: 14px;
    }

    .quote .price {
        font-size: 26px;
    }
    .success-box .ref {
        font-size: 22px;
    }

    /* Tijdsloten comfortabel aantikbaar */
    .slot {
        padding: 11px 14px;
    }
}

/* Heel smal (≤ 360px) */
@media (max-width: 360px) {
    .portal-header nav a {
        margin-right: 12px;
        font-size: 13px;
    }
    h1 {
        font-size: 21px;
    }
}
