/* ==========================================================================
 * MIDNIGHT LOUNGE - View-specifieke stijlen
 * REGULR.vip Loyalty Platform
 *
 * Pagina-specifieke CSS: login, gast dashboard, QR, wallet, POS scanner,
 * admin dashboard, superadmin, marketing studio
 * Laatste update: 2026-04-17
 * ========================================================================== */

/* ==========================================================================
 * 1. SHARED: LOGIN & REGISTRATIE
 * ========================================================================== */
.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.auth-logo {
    font-size: 32px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 2rem;
    text-align: center;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 22px;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-primary);
    font-weight: 500;
}

/* ==========================================================================
 * 2. GAST: DASHBOARD
 * ========================================================================== */
.guest-greeting {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.guest-greeting span {
    color: var(--accent-primary);
}

.guest-tier {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Wallet kaart op dashboard */
.wallet-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.wallet-card__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.wallet-card__balance {
    font-size: 40px;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.wallet-card__balance .currency {
    font-size: 22px;
    font-weight: 500;
    vertical-align: super;
    margin-right: 2px;
}

.wallet-card__points {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Odometer animatie voor saldo */
.odometer {
    display: inline-block;
    transition: all 0.3s ease-out;
}

.odometer__digit {
    display: inline-block;
    overflow: hidden;
    height: 1.1em;
    vertical-align: bottom;
}

.odometer__digit-inner {
    transition: transform 0.3s ease-out;
}

/* ==========================================================================
 * 3. GAST: QR CODE
 * ========================================================================== */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.qr-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Buitenste wrapper: glass-card met verticale layout */
.qr-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 1rem;
    padding: var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
}

/* Witte binnen-container voor de QR code zelf */
.qr-code-wrapper {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.qr-code-wrapper canvas,
.qr-code-wrapper img {
    width: 220px !important;
    height: 220px !important;
    display: block;
}

/* Pulserende neon rand */
.qr-box--glow {
    box-shadow:
        0 0 10px rgba(255, 193, 7, 0.3),
        0 0 20px rgba(255, 193, 7, 0.15),
        0 0 40px rgba(255, 193, 7, 0.05);
    animation: qrPulse 2s ease-in-out infinite;
}

@keyframes qrPulse {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(255, 193, 7, 0.3),
            0 0 20px rgba(255, 193, 7, 0.15),
            0 0 40px rgba(255, 193, 7, 0.05);
    }
    50% {
        box-shadow:
            0 0 15px rgba(255, 193, 7, 0.5),
            0 0 30px rgba(255, 193, 7, 0.25),
            0 0 60px rgba(255, 193, 7, 0.1);
    }
}

.qr-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.qr-timer__bar {
    width: 120px;
    height: 3px;
    background: var(--glass-border);
    border-radius: 2px;
    overflow: hidden;
}

.qr-timer__fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 1s linear;
}

.qr-instructions {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    line-height: 1.6;
}

/* QR timer tekst (BEM) */
.qr-timer__label {
    font-size: 13px;
    color: var(--text-muted);
}

.qr-timer__value {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-primary);
    font-variant-numeric: tabular-nums;
    min-width: 2.5ch;
    text-align: right;
}

.qr-timer__value.warning {
    color: var(--warning);
    animation: pulse 1s ease-in-out infinite;
}

.qr-timer__value.expired {
    color: var(--error);
}

/* QR placeholder (loading spinner) */
.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 14px;
}

/* QR page layout */
.qr-page__main {
    padding-top: var(--space-md);
    padding-bottom: var(--space-xl);
}

.page-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.page-header h1 {
    margin-bottom: var(--space-xs);
}

/* Info card (glass-card variant) */
.info-card {
    margin-bottom: var(--space-lg);
}

.info-card h3 {
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

/* Steps list */
.steps-list {
    list-style: none;
    counter-reset: steps-counter;
    padding: 0;
    margin-bottom: var(--space-lg);
}

.steps-list li {
    counter-increment: steps-counter;
    position: relative;
    padding: 0.75rem 0 0.75rem 2.5rem;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid var(--glass-border);
}

.steps-list li:last-child {
    border-bottom: none;
}

.steps-list li::before {
    content: counter(steps-counter);
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Security note */
.security-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(33, 150, 243, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--info);
    line-height: 1.4;
}

.security-note svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Quick actions (nav buttons) */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* Outline button variant */
.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    font-size: 14px;
}

.btn-outline:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.btn-outline:active {
    transform: scale(0.98);
}

/* Refresh button (not full-width) */
.btn-refresh {
    width: auto;
    margin: 0 auto;
    padding: 0.5rem 1.25rem;
    font-size: 13px;
}

.btn-refresh svg {
    transition: transform 0.3s ease;
}

.qr-box.refreshing .btn-refresh svg {
    transform: rotate(360deg);
}

/* ==========================================================================
 * 4. GAST: WALLET / OPWAARDEREN
 * ========================================================================== */

/* Wallet page layout (zelfde als QR pagina) */
.wallet-page__main {
    padding-top: var(--space-md);
    padding-bottom: var(--space-xl);
}

/* --- Balance card: gouden glassmorfisme met glow --- */
.wallet-balance-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 340px;
    margin: 0 auto var(--space-lg);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-xl);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        0 0 15px rgba(255, 193, 7, 0.15);
    overflow: hidden;
    text-align: center;
}

/* Glow overlay achtergrond */
.wallet-balance-card__glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.wallet-balance-card__content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.wallet-balance-card__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.wallet-balance-card__amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    font-variant-numeric: tabular-nums;
}

/* Meta rij: punten + tier naast elkaar */
.wallet-balance-card__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-balance-card__points {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 13px;
    color: var(--text-muted);
}

.wallet-balance-card__points svg {
    color: var(--accent-primary);
    opacity: 0.7;
}

.wallet-balance-card__tier .tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 193, 7, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.wallet-balance-card__tenant {
    position: relative;
    z-index: 1;
    margin-top: var(--space-sm);
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Odometer animatie voor saldo */
.odometer-roll {
    animation: odometerRoll 500ms ease-out;
}

@keyframes odometerRoll {
    0% { opacity: 0.5; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Deposit opties: grid met pakket-knoppen --- */
.deposit-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: var(--space-lg);
}

@media (min-width: 480px) {
    .deposit-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .deposit-options {
        grid-template-columns: repeat(4, 1fr);
    }
}

.btn-deposit-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.875rem 0.5rem 0.625rem;
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-stack);
    width: 100%;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
}

.btn-deposit-option:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(255, 193, 7, 0.08);
    transform: scale(1.03);
}

.btn-deposit-option:active {
    transform: scale(0.97);
}

.btn-deposit-option--active {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(255, 193, 7, 0.12);
}

/* Bonus package card: slightly taller, accent border hint */
.btn-deposit-option--bonus {
    border-color: rgba(76, 175, 80, 0.25);
}
.btn-deposit-option--bonus:hover {
    border-color: var(--success, #4CAF50);
    background: rgba(76, 175, 80, 0.08);
}

/* Package deposit button inner elements */
.deposit-option__name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: capitalize;
    margin-bottom: 0.125rem;
}

.deposit-option__amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary, #FFC107);
    line-height: 1.1;
}

/* Bonus package: total amount (what guest gets) */
.deposit-option__total {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-primary, #FFC107);
    line-height: 1.1;
}

/* "stort €100" below total */
.deposit-option__stort {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* "+ €10 bonus" line */
.deposit-option__bonus-line {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--success, #4CAF50);
    line-height: 1.2;
}

/* Extras: discount % and points (small, secondary) */
.deposit-option__extras {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-tertiary, rgba(255,255,255,0.45));
    margin-top: 0.1rem;
    line-height: 1.3;
}

/* Perks (legacy, kept for backward compat) */
.deposit-option__perks {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--success, #4CAF50);
    line-height: 1.3;
    margin-top: 0.125rem;
}

.deposit-option__bonus {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-primary, #FFC107);
    opacity: 0.8;
}

/* --- Custom bedrag input (legacy, niet meer gebruikt sinds pakket-systeem) --- */
.custom-deposit {
    margin-bottom: var(--space-lg);
}

.custom-deposit label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.custom-deposit__input-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.custom-deposit__input-row:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}

.custom-deposit__prefix {
    padding: 0.875rem 0 0.875rem 1rem;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    user-select: none;
    flex-shrink: 0;
}

.custom-deposit__field {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 16px;
    font-weight: 600;
    padding: 0.875rem 1rem 0.875rem 0.25rem;
}

.custom-deposit__field:focus {
    box-shadow: none !important;
}

/* --- Transactiegeschiedenis --- */
.transaction-list {
    min-height: 60px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.transaction-details {
    flex: 1;
    min-width: 0;
}

.transaction-type {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.transaction-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.transaction-amount {
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.transaction-amount.positive {
    color: var(--success);
}

.transaction-amount.negative {
    color: var(--text-secondary);
}

/* --- Transaction icon colors per type --- */
.transaction-icon.icon-payment {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.25);
    color: #F44336;
}

.transaction-icon.icon-deposit {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.25);
    color: #4CAF50;
}

.transaction-icon.icon-bonus {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.25);
    color: #FFC107;
}

.transaction-icon.icon-correction {
    background: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.25);
    color: #2196F3;
}

/* --- Transaction status modifiers (non-paid: pending/failed/expired/cancelled) --- */
.transaction-item--pending {
    background: rgba(255, 193, 7, 0.06);
    border-left: 3px solid #FFC107;
    padding-left: 0.75rem;
    border-radius: 6px;
}

.transaction-item--failed,
.transaction-item--expired {
    background: rgba(244, 67, 54, 0.06);
    border-left: 3px solid #f44336;
    padding-left: 0.75rem;
    border-radius: 6px;
}

.transaction-item--cancelled {
    background: rgba(158, 158, 158, 0.06);
    border-left: 3px solid #9e9e9e;
    padding-left: 0.75rem;
    border-radius: 6px;
    opacity: 0.65;
}

/* Rood uitroepteken icoon voor non-paid */
.transaction-icon.icon-warning {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* Type label in rood voor non-paid */
.transaction-type--failed {
    color: #f44336;
}

/* Status labels */
.transaction-status-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    margin-top: 3px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.transaction-status-label--pending {
    color: #FFC107;
}

.transaction-status-label--failed {
    color: #f44336;
}

.transaction-status-label--cancelled {
    color: #9e9e9e;
}

/* Bedrag in rood, zonder +/- teken voor non-paid */
.transaction-amount--failed {
    color: #f44336;
}

/* Warning tekst "Niet bijgeschreven" */
.transaction-warning {
    font-size: 0.65rem;
    color: #f44336;
    margin-top: 2px;
    opacity: 0.85;
    font-weight: 500;
}

/* --- Empty state --- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 0.25rem;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

.empty-state .text-muted {
    font-size: 13px;
}

/* --- Paginering --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--glass-border);
}

.page-info {
    font-size: 14px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 2rem;
    text-align: center;
}

/* ==========================================================================
 * 5. GAST: INBOX / NOTIFICATIES
 * ========================================================================== */
.inbox-list {
    list-style: none;
}

.inbox-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.inbox-item:last-child {
    border-bottom: none;
}

.inbox-item--unread {
    border-left: 3px solid var(--accent-primary);
    padding-left: 1rem;
}

.inbox-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.inbox-item__content {
    flex: 1;
    min-width: 0;
}

.inbox-item__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.inbox-item__text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox-item__time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ==========================================================================
 * 6. BARTENDER: QR SCANNER
 * ========================================================================== */
.scanner-page {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: var(--z-overlay);
    display: flex;
    flex-direction: column;
}

.scanner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-primary);
    z-index: 2;
}

.scanner-header__title {
    font-size: 16px;
    font-weight: 600;
}

.scanner-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scanlijn animatie */
.scanner-line {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--accent-gradient);
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
    animation: scanLine 2.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes scanLine {
    0%, 100% { top: 20%; }
    50% { top: 80%; }
}

/* Scan kader */
.scanner-frame {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.scanner-frame::before,
.scanner-frame::after,
.scanner-frame span::before,
.scanner-frame span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--accent-primary);
    border-style: solid;
}

.scanner-frame::before {
    top: -2px; left: -2px;
    border-width: 3px 0 0 3px;
    border-radius: 8px 0 0 0;
}

.scanner-frame::after {
    top: -2px; right: -2px;
    border-width: 3px 3px 0 0;
    border-radius: 0 8px 0 0;
}

.scanner-frame span::before {
    bottom: -2px; left: -2px;
    border-width: 0 0 3px 3px;
    border-radius: 0 0 0 8px;
}

.scanner-frame span::after {
    bottom: -2px; right: -2px;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 8px 0;
}

/* Result overlay na scan */
.scan-result {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: var(--z-modal);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 200ms ease-out;
}

.scan-result--visible {
    display: flex;
}

.scan-result__avatar {
    margin-bottom: 1rem;
}

.scan-result__name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.scan-result__badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
 * 7. BARTENDER: BETALING
 * ========================================================================== */
.payment-page {
    padding: 1rem;
    padding-bottom: 8rem; /* space for keypad */
}

.payment-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.payment-field {
    text-align: center;
}

.payment-field__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.payment-field__value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.payment-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.payment-summary__total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--glass-border);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Numeriek keypad */
.keypad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0;
    z-index: var(--z-sticky);
}

.keypad__key {
    padding: 1rem;
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-lightest);
    border: none;
    cursor: pointer;
    font-family: var(--font-stack);
    transition: var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.keypad__key:active {
    background: rgba(255, 255, 255, 0.1);
}

.keypad__key--accent {
    background: var(--accent-gradient);
    color: #000;
    font-weight: 700;
}

.keypad__key--accent:active {
    filter: brightness(0.9);
}

.keypad__key--delete {
    color: var(--error);
}

/* ==========================================================================
 * 8. ADMIN: DASHBOARD
 * ========================================================================== */
.admin-page {
    display: block;
    min-height: 100vh;
}

.admin-main {
    flex: 1;
    padding: 1rem;
    padding-top: 4.5rem; /* nav offset */
}

@media (min-width: 1024px) {
    .admin-main {
        margin-left: 260px;
        padding: 2rem;
        padding-top: 2rem;
    }
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.admin-header__title {
    font-size: 24px;
    font-weight: 700;
}

.admin-header__actions {
    display: flex;
    gap: 0.5rem;
}

/* Revenue chart placeholder */
.chart-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
}

.chart-canvas {
    width: 100%;
    height: 100%;
}

/* Whale tracker (top klanten) */
.whale-list {
    list-style: none;
}

.whale-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.whale-item__rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.whale-item:nth-child(1) .whale-item__rank {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
    color: var(--accent-primary);
}

.whale-item__info {
    flex: 1;
    min-width: 0;
}

.whale-item__name {
    font-size: 14px;
    font-weight: 500;
}

.whale-item__spent {
    font-size: 12px;
    color: var(--text-muted);
}

.whale-item__amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* ==========================================================================
 * 9. ADMIN: INSTELLINGEN
 * ========================================================================== */
.settings-section {
    margin-bottom: 2rem;
}

.settings-section__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row__label {
    font-size: 14px;
    color: var(--text-primary);
}

.settings-row__desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

/* Kleur input */
.color-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-input__swatch {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--glass-border);
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

.color-input__swatch input[type="color"] {
    width: 150%;
    height: 150%;
    margin: -25%;
    border: none;
    cursor: pointer;
}

/* IP whitelist textarea */
.ip-textarea {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
}

/* ==========================================================================
 * 10. ADMIN: MARKETING STUDIO
 * ========================================================================== */
.marketing-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    padding: 0.25rem;
}

.marketing-tab {
    flex: 1;
    padding: 0.625rem;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-stack);
    transition: var(--transition-fast);
}

.marketing-tab--active {
    background: var(--glass-bg);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.segment-result {
    margin-top: 1rem;
}

.segment-result__count {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* ==========================================================================
 * 11. SUPERADMIN: DASHBOARD
 * ========================================================================== */
.superadmin-page {
    padding: 1rem;
    padding-top: 5rem;
}

@media (min-width: 768px) {
    .superadmin-page {
        padding: 2rem;
        padding-top: 5rem;
    }
}

.tenant-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .tenant-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tenant-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tenant-card {
    position: relative;
    padding: 1.25rem;
}

.tenant-card__name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tenant-card__slug {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.tenant-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.tenant-card__stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
}

.tenant-card__stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tenant-card__status {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* ==========================================================================
 * 12. FOOTER
 * ========================================================================== */
.site-footer {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: auto;
}

/* ==========================================================================
 * 13. 404 PAGINA
 * ========================================================================== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.error-page__code {
    font-size: 72px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-page__text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
