/* ==========================================
   VINSMOKE PWA — Premium Design System
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
    /* Core palette */
    --bg-primary: #0f0f17;
    --bg-secondary: #181825;
    --bg-card: rgba(30, 30, 50, 0.7);
    --bg-card-solid: #1e1e32;
    --bg-glass: rgba(40, 40, 70, 0.4);
    --bg-input: rgba(255, 255, 255, 0.06);

    /* Accent */
    --accent: #a855f7;
    --accent-light: #c084fc;
    --accent-dark: #7c3aed;
    --accent-glow: rgba(168, 85, 247, 0.25);
    --accent-gradient: linear-gradient(135deg, #a855f7, #6366f1);

    /* Text */
    --text-primary: #f1f1f6;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b82;
    --text-accent: #c084fc;

    /* Status */
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.12);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.12);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --info: #3b82f6;

    /* Tiers */
    --tier-bronze: #cd7f32;
    --tier-silver: #c0c0c0;
    --tier-gold: #ffd700;

    /* Border */
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(168, 85, 247, 0.3);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--accent-glow);

    /* Z-index */
    --z-header: 100;
    --z-tab-bar: 200;
    --z-modal: 300;
    --z-toast: 400;

    /* Safe area */
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-light);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* ---------- Utility ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

.slide-up {
    animation: slideUp 0.35s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Layout ---------- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.page-content {
    flex: 1;
    padding: 16px 16px calc(80px + var(--safe-bottom)) 16px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    padding: 20px 16px 12px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 2px;
}

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.card-accent {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Points Card ---------- */
.points-card {
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.points-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.points-value {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.points-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
    font-weight: 500;
}

.points-euro {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-top: 12px;
    backdrop-filter: blur(10px);
}

/* ---------- Tier Badge ---------- */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-badge.bronze {
    background: rgba(205, 127, 50, 0.15);
    color: var(--tier-bronze);
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.tier-badge.silver {
    background: rgba(192, 192, 192, 0.15);
    color: var(--tier-silver);
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.tier-badge.gold {
    background: rgba(255, 215, 0, 0.15);
    color: var(--tier-gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* ---------- QR Code ---------- */
.qr-container {
    text-align: center;
    padding: 20px;
}

.qr-code {
    display: inline-block;
    padding: 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.qr-code canvas,
.qr-code img {
    display: block !important;
}

.qr-hint {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 12px;
}

/* ---------- Tab Bar ---------- */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + var(--safe-bottom));
    z-index: var(--z-tab-bar);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.tab-item.active {
    color: var(--accent-light);
}

.tab-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
}

.tab-item:active {
    transform: scale(0.9);
}

.tab-icon {
    font-size: 1.3rem;
}

/* ---------- Form Elements ---------- */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 1.05rem;
}

/* ---------- Alerts ---------- */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 16px;
    animation: slideUp 0.3s ease-out;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-toast);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 90%;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: rgba(34, 197, 94, 0.4);
    color: var(--success);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--error);
}

/* ---------- Transaction List ---------- */
.tx-list {
    list-style: none;
}

.tx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    animation: fadeIn 0.3s ease-out;
}

.tx-item:last-child {
    border-bottom: none;
}

.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tx-icon.earn {
    background: var(--success-bg);
}

.tx-icon.redeem {
    background: var(--error-bg);
}

.tx-info {
    flex: 1;
    min-width: 0;
}

.tx-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tx-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.tx-amount {
    text-align: right;
    flex-shrink: 0;
}

.tx-points {
    font-size: 0.95rem;
    font-weight: 700;
}

.tx-points.earn {
    color: var(--success);
}

.tx-points.redeem {
    color: var(--error);
}

.tx-euros {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ---------- News Items ---------- */
.news-item {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    animation: slideUp 0.35s ease-out;
}

.news-item .news-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.news-type.news {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.news-type.promo {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.news-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.news-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.news-item .news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.news-item img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

/* ---------- Reward Items ---------- */
.reward-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
}

.reward-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: var(--accent-glow);
    flex-shrink: 0;
}

.reward-info {
    flex: 1;
    min-width: 0;
}

.reward-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.reward-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.reward-status {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.reward-status.available {
    background: var(--success-bg);
    color: var(--success);
}

.reward-status.redeemed {
    background: var(--bg-input);
    color: var(--text-muted);
}

/* ---------- Profile ---------- */
.profile-header {
    text-align: center;
    padding: 20px 0;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 12px;
    box-shadow: var(--shadow-glow);
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.profile-phone {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.stat-item {
    text-align: center;
    padding: 14px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-light);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---------- Loader ---------- */
.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.loader::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 0.9rem;
}

/* ---------- Login Page ---------- */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    background: var(--bg-primary);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    font-size: 3rem;
    margin-bottom: 12px;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

.login-toggle {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.login-toggle span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.login-toggle a,
.login-toggle button {
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.9rem;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

/* ---------- Tabs (Content Sections) ---------- */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.25s ease-out;
}

/* ---------- Section titles ---------- */
.section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 24px 0 12px;
}

/* ---------- Separator ---------- */
.separator {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

/* ---------- Action Row ---------- */
.action-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.action-row .btn {
    flex: 1;
}

/* ---------- Customer Action Sheet (Employee) ---------- */
.action-sheet {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-glow);
    animation: slideUp 0.3s ease-out;
}

.action-sheet-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.action-sheet-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.action-sheet-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.action-sheet-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.action-sheet-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.quick-amount {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.quick-amount button {
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.quick-amount button:hover,
.quick-amount button.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent-light);
}

/* ---------- Scanner ---------- */
.scanner-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-glow);
    aspect-ratio: 1;
}

.scanner-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scanner-frame {
    width: 65%;
    height: 65%;
    border: 2px solid var(--accent-light);
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
    animation: pulse 2s ease-in-out infinite;
}

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: var(--z-modal);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card-solid);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-handle {
    width: 36px;
    height: 4px;
    background: var(--text-muted);
    border-radius: var(--radius-full);
    margin: 0 auto 16px;
    opacity: 0.4;
}

/* ---------- Responsive ---------- */
@media (min-width: 600px) {

    .page-content,
    .page-header {
        max-width: 560px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .tab-bar {
        max-width: 560px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

@media (min-width: 1024px) {
    .login-page {
        background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.08), transparent 60%), var(--bg-primary);
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: var(--radius-full);
}

/* ---------- Summary Stats Row ---------- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 1.4rem;
    font-weight: 800;
}

.stat-card .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
}

/* ---------- Install Prompt ---------- */
.install-banner {
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.install-banner:hover {
    transform: scale(1.01);
}

.install-banner .install-text {
    flex: 1;
}

.install-banner .install-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.install-banner .install-text p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.install-banner .install-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}