.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--hit-target);
    padding: 0 var(--space-6);
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--color-orange);
    color: var(--color-white);
    font-weight: 600;
    font-size: var(--text-base);
    letter-spacing: 0.01em;
    transition: background var(--motion-fast) var(--easing-out),
                transform var(--motion-fast) var(--easing-out),
                box-shadow var(--motion-base) var(--easing-out);
}
/* Links als knop: display:block breekt de flex-centrering, dus breedte
   regel je met width (inline-flex blijft staan), nooit met display. */
a.btn { text-decoration: none; }
.btn:hover {
    background: var(--color-orange-hover);
    color: var(--color-white);
    transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
    background: var(--color-white);
    color: var(--color-orange);
    border: 1.5px solid var(--color-orange);
    box-shadow: none;
}
.btn-secondary:hover {
    background: var(--color-orange-soft);
    color: var(--color-orange-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border: 0;
    padding: var(--space-2) var(--space-4);
    font-weight: 500;
    box-shadow: none;
    min-height: auto;
}
.btn-ghost:hover { color: var(--color-orange); transform: none; }
/* Ghost-knop die OOK een volle .btn is (PDF/UBL downloaden, factuur-feedback):
   .btn:hover geeft een oranje vulling, dus de tekst moet wit zijn i.p.v. oranje
   (anders oranje-op-oranje = onleesbaar). Losse .btn-ghost-links blijven oranje. */
.btn.btn-ghost:hover { color: var(--color-white); }

.input, .textarea, .select {
    display: block;
    width: 100%;
    min-height: var(--hit-target);
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-text);
    font: inherit;
    transition: border-color var(--motion-fast) var(--easing-out),
                box-shadow var(--motion-fast) var(--easing-out);
}
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 4px var(--color-orange-glow);
}
.textarea { min-height: 140px; resize: vertical; line-height: var(--leading-normal); }

.field { display: block; margin-bottom: var(--space-5); }
.field-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}
.field-hint {
    margin-top: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--motion-base) var(--easing-out),
                box-shadow var(--motion-base) var(--easing-out),
                transform var(--motion-base) var(--easing-out);
}

.tile {
    display: block;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    transition: border-color var(--motion-base) var(--easing-out),
                box-shadow var(--motion-base) var(--easing-out),
                transform var(--motion-base) var(--easing-out);
    overflow: hidden;
}
.tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 80% 0%, var(--color-orange-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--motion-base) var(--easing-out);
    pointer-events: none;
}
.tile:hover {
    border-color: var(--color-orange);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.tile:hover::after { opacity: 1; }
.tile:active { transform: translateY(0); }

.tile-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}
.tile-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    line-height: var(--leading-tight);
    margin: 0 0 var(--space-2);
    color: var(--color-text);
}
.tile-meta {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.tile-feature {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-hover) 100%);
    color: var(--color-white);
    border: 0;
    box-shadow: 0 18px 48px var(--color-orange-shadow);
}
.tile-feature .tile-eyebrow { color: rgba(255, 255, 255, 0.78); }
.tile-feature .tile-title { color: var(--color-white); }
.tile-feature .tile-meta { color: rgba(255, 255, 255, 0.78); }
.tile-feature::after { display: none; }
.tile-feature:hover { box-shadow: 0 24px 60px var(--color-orange-shadow); transform: translateY(-3px); }

.alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
.alert-warning { background: #FEF3C7; color: #78350F; }
.alert-success { background: #D1FAE5; color: #065F46; }
.alert-error { background: #FEE2E2; color: #991B1B; }

.divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-7) 0;
    border: 0;
}

.notice {
    padding: var(--space-3) var(--space-4);
    border-radius: 10px;
    margin: var(--space-4) 0;
    border: 1px solid var(--color-border);
    background: #fafafa;
    font-size: 0.95rem;
}
.notice-ok { border-color: var(--color-orange); background: #fff4ee; }
.notice-warn { border-color: #e0a900; background: #fffae8; }
.notice-error { border-color: #d23f3f; background: #fdeeee; }

/* Gedeelde dialoog + toast (vervangen alert/confirm/prompt). Hier zodat élke pagina
   die components.css laadt — inclusief admin — dezelfde Pinflo-stijl krijgt. */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 12, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    z-index: 1000;
    animation: modal-fade 0.12s ease-out;
}
.modal-dialog {
    background: #fff;
    border-radius: var(--radius-xl, 16px);
    max-width: 440px;
    width: 100%;
    padding: var(--space-6);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    animation: modal-pop 0.14s ease-out;
}
.modal-title { margin: 0 0 var(--space-3); font-size: 1.15rem; }
.modal-body { margin-bottom: var(--space-5); }
.modal-line { margin: 0 0 var(--space-3); line-height: 1.5; }
.modal-line:last-child { margin-bottom: 0; }
.modal-actions { display: flex; gap: var(--space-3); justify-content: flex-end; flex-wrap: wrap; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal-input {
    width: 100%;
    margin-top: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}
.modal-input:focus { outline: none; border-color: var(--color-orange); }

.toast-stack {
    position: fixed;
    bottom: var(--space-5);
    right: var(--space-5);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: min(360px, calc(100vw - 2 * var(--space-5)));
}
.toast {
    margin: 0;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    animation: toast-in 0.18s ease-out;
}
.toast-out { animation: toast-out 0.18s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(12px); } }
@media (max-width: 600px) {
    .toast-stack { left: var(--space-4); right: var(--space-4); bottom: var(--space-4); max-width: none; }
}

.pricing-counter {
    margin: 0 0 var(--space-4);
    padding: var(--space-2) var(--space-3);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-orange);
    background: #fff4ee;
    border: 1px solid var(--color-orange);
    border-radius: 8px;
}

/* === Pinflo-checkbox: duidelijk vakje met vinkje (aan) of kruisje (uit).
       Native checkboxes zijn op mobiel piepklein en amper zichtbaar; dit vakje
       toont altijd expliciet zijn status. === */
.pf-check {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin: 0;
    display: inline-grid;
    place-items: center;
    background: #fff;
    border: 2px solid var(--color-border-strong);
    border-radius: 7px;
    cursor: pointer;
    transition: background var(--motion-fast, 0.15s) ease,
                border-color var(--motion-fast, 0.15s) ease;
}
.pf-check::before {
    content: '\2715';
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text-muted);
}
.pf-check:checked {
    background: var(--color-orange);
    border-color: var(--color-orange);
}
.pf-check:checked::before {
    content: '\2713';
    color: #fff;
}
.pf-check:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}
