/* App-shell: account, wizard, admin, demo beheer */

body.page-app {
    background: var(--cream);
    min-height: 100vh;
}

/* Display headings in app UI */
.auth-card h1,
.wizard-card h1,
.dashboard-header h1,
.builder-header h1 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    letter-spacing: var(--tracking-display);
    line-height: var(--leading-display);
}

.dashboard-header p,
.auth-card__lead {
    color: var(--text-secondary);
    line-height: var(--leading-body);
}

.dashboard-header {
    margin-bottom: 1.75rem;
}

.dashboard-tabs {
    margin-bottom: 1.5rem;
}

.nav-user {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
}

.site-nav .nav-user + a,
.site-nav a.nav-logout {
    font-weight: 600;
}

/* Demo banner */
.demo-banner {
    background: var(--ink);
    color: var(--text-on-dark-muted);
    text-align: center;
    font-size: var(--text-sm);
    padding: 0.5rem 1rem;
}

.demo-banner a {
    color: var(--text-on-dark);
    font-weight: 600;
    text-decoration: none;
}

.demo-banner a:hover {
    color: #fff;
}

/* App footer (stemhulp demo) */
.app-footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.app-footer a {
    font-weight: 600;
}

.demo-label {
    color: var(--brand);
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    font-style: normal;
}

/* ─── Checkout / betaling ─────────────────────────────────────── */

.checkout-page {
    max-width: 540px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.checkout-card {
    background: #fff;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.06);
}

.checkout-card h1 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    letter-spacing: var(--tracking-display);
    line-height: var(--leading-display);
    margin: 0 0 0.4rem;
}

.checkout-card__intro {
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
}

.checkout-summary {
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.checkout-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
    font-size: 0.9375rem;
}

.checkout-summary__row:last-child { border-bottom: none; }

.checkout-summary__row--sub {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.checkout-summary__row--total {
    background: var(--cream, #fafaf8);
    font-size: 1rem;
}

.checkout-summary__row--total strong { font-size: 1.125rem; }

.checkout-form { margin-bottom: 0.75rem; }

.checkout-form .btn--large {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}

.checkout-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    text-align: center;
}

.checkout-back {
    text-align: center;
    font-size: 0.875rem;
    margin: 1rem 0 0;
}

.checkout-success {
    text-align: center;
    padding: 1rem 0;
}

.checkout-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.checkout-success h1 { margin-bottom: 0.5rem; }
.checkout-success p  { color: var(--text-secondary); margin-bottom: 1.5rem; }

.checkout-card__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

/* Auto-verlengen checkbox */
.checkout-autorenew {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    background: var(--brand-light, #eef2ff);
    border: 1px solid rgba(38, 67, 221, 0.18);
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
}

.checkout-autorenew input[type="checkbox"] {
    margin-top: 0.1rem;
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
    cursor: pointer;
}

.checkout-autorenew span {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.92rem;
}

.checkout-autorenew small {
    font-size: 0.82rem;
}

/* Kortingscode */
.checkout-discount-form {
    margin: 1.25rem 0 0.75rem;
}

.checkout-discount-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.checkout-discount-input {
    flex: 1;
    min-width: 140px;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-sm, 6px);
    font-family: inherit;
    font-size: 0.92rem;
}

.checkout-discount-input:focus {
    outline: none;
    border-color: var(--brand, #2643dd);
    box-shadow: 0 0 0 3px rgba(38, 67, 221, 0.15);
}

.checkout-discount-ok {
    margin: 0.45rem 0 0;
    font-size: 0.85rem;
    color: var(--success, #0f8a5f);
    font-weight: 600;
}

.checkout-summary__row--discount span:last-child {
    color: var(--success, #0f8a5f);
    font-weight: 700;
}

/* Wizard live-waarschuwing overlay */
.wizard-live-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(2px);
}

.wizard-live-overlay[hidden] {
    display: none;
}

.wizard-live-modal {
    background: var(--surface, #fff);
    border-radius: var(--radius-xl, 16px);
    padding: 2.5rem 2rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
}

.wizard-live-modal__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.wizard-live-modal__title {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--ink, #1e293b);
}

.wizard-live-modal__body {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.6;
}

/* ─── Dashboard: stemhulpen actiebalk ───────────────────────── */

.stemhulpen-actions-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stemhulpen-budget-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stemhulpen-budget-hint strong {
    color: var(--ink);
}

.stemhulpen-budget-hint--empty {
    color: var(--text-tertiary, #94a3b8);
}

/* ─── Dashboard: leeg scherm ─────────────────────────────────── */

.dashboard-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-card, 0.75rem);
    border: 1.5px dashed var(--border);
}

.dashboard-empty__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.dashboard-empty h2 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

/* ─── Dashboard: pakketten tab ───────────────────────────────── */

.bundles-panel {
    background: var(--white);
    border-radius: var(--radius-card, 0.75rem);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.bundles-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.bundles-panel__header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 400;
}

.bundles-empty {
    padding: 2rem 0 0;
}

.bundles-empty p {
    margin: 0 0 0.5rem;
    color: var(--text-secondary);
}

.bundles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.bundle-card {
    background: var(--cream, #f8fafc);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm, 0.5rem);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bundle-card--active {
    border-color: var(--primary, #4f46e5);
    background: var(--primary-bg, #eef2ff);
}

.bundle-card--expired,
.bundle-card--pending {
    opacity: 0.75;
}

.bundle-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.bundle-card__name {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bundle-card__name strong {
    font-size: 0.95rem;
    color: var(--ink);
}

.bundle-card__slots {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.bundle-card__meta {
    font-size: 0.8rem;
    color: var(--text-tertiary, #94a3b8);
}

/* Status badges for bundles */
.status-badge--active  { background: #dcfce7; color: #166534; }
.status-badge--full    { background: #fef3c7; color: #92400e; }
.status-badge--expired { background: #fee2e2; color: #991b1b; }
.status-badge--pending { background: #f1f5f9; color: #64748b; }

.bundles-panel__buy {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.bundles-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.bundle-buy-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm, 0.5rem);
    text-decoration: none;
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.bundle-buy-card:hover {
    border-color: var(--primary, #4f46e5);
    box-shadow: 0 2px 8px rgba(79,70,229,0.1);
}

.bundle-buy-card strong {
    color: var(--ink);
    font-size: 0.9rem;
}

.bundle-buy-card span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Tabs badge */
.dashboard-tabs__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    margin-left: 0.35rem;
    background: var(--primary, #4f46e5);
    color: #fff;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    vertical-align: middle;
}

/* ─── Checkout: plan picker ──────────────────────────────────── */

.checkout-plan-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.checkout-plan-option {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm, 0.5rem);
    text-decoration: none;
    background: var(--white);
    transition: border-color 0.15s;
}

.checkout-plan-option.is-selected,
.checkout-plan-option:hover {
    border-color: var(--primary, #4f46e5);
}

.checkout-plan-option strong {
    color: var(--ink);
    font-size: 0.9rem;
}

.checkout-plan-option span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ─── Wizard stap 7: bundel-keuze ────────────────────────────── */

.wizard-bundle-empty {
    text-align: center;
    padding: 2rem;
}

.wizard-bundle-empty__icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.wizard-bundle-picker {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wizard-bundle-picker__intro {
    margin: 0 0 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bundle-option {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm, 0.5rem);
    cursor: pointer;
    background: var(--white);
    transition: border-color 0.15s, background 0.15s;
}

.bundle-option input[type="radio"] {
    margin-top: 0.2rem;
    accent-color: var(--primary, #4f46e5);
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.bundle-option.is-selected,
.bundle-option:has(input:checked) {
    border-color: var(--primary, #4f46e5);
    background: var(--primary-bg, #eef2ff);
}

.bundle-option__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bundle-option__name {
    font-size: 0.95rem;
    color: var(--ink);
}

.bundle-option__slots {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.bundle-option__term {
    font-size: 0.8rem;
    color: var(--text-tertiary, #94a3b8);
}

/* ─── Dashboard pakketkiezer ─────────────────────────────────── */

.dashboard-pricing {
    margin-top: 0.5rem;
}

.dashboard-pricing__head {
    margin-bottom: 1.5rem;
}

.dashboard-pricing__head h2 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 400;
    letter-spacing: var(--tracking-display);
    margin: 0 0 0.5rem;
}

.dashboard-pricing__head p {
    color: var(--text-secondary);
    margin: 0;
    max-width: 42rem;
}

.pricing-card__form {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

.pricing-card__form .btn[data-plan-submit] {
    margin-top: auto;
    width: 100%;
    text-align: center;
}
