﻿/* KubberX Casino Theme â€” Logo brand: neon lime on black */

:root {
    /* Primary â€” from logo neon lime */
    --kx-primary: #c8f542;
    --kx-primary-dark: #a8d42e;
    --kx-primary-light: #e0ff80;
    --kx-lime: #c8f542;
    --kx-lime-dark: #a8d42e;
    --kx-lime-light: #e0ff80;
    /* Secondary â€” logo gold/yellow text */
    --kx-gold: #e8b923;
    --kx-gold-dark: #c49a15;
    --kx-gold-light: #fde68a;
    /* Surfaces â€” pure black + dark green tint */
    --kx-bg: #000000;
    --kx-bg-mid: #0a1208;
    --kx-card: rgba(10, 18, 6, 0.72);
    --kx-panel: rgba(6, 8, 4, 0.94);
    --kx-border: rgba(200, 245, 66, 0.18);
    --kx-glow: rgba(200, 245, 66, 0.4);
}

/* â”€â”€ Base â”€â”€ */
body {
    background-color: var(--kx-bg);
    color: #fff;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse at 15% 10%, rgba(200, 245, 66, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 90%, rgba(232, 185, 35, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #000000 0%, #0a1208 50%, #000000 100%);
    background-attachment: fixed;
}
a { text-decoration: none; }
::selection { background: rgba(200, 245, 66, 0.35); color: #000; }
.font-display { font-family: 'Orbitron', 'Outfit', sans-serif; }

/* â”€â”€ Glassmorphism â”€â”€ */
.glass {
    background: var(--kx-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--kx-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
}
.glass-panel {
    background: var(--kx-panel);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--kx-border);
}
.glass-card {
    background: var(--kx-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--kx-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    border-color: rgba(200, 245, 66, 0.4);
    box-shadow: 0 16px 40px rgba(200, 245, 66, 0.12);
    transform: translateY(-4px) scale(1.01);
}
.glass-input,
.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    color: #fff;
    border: 1px solid var(--kx-border);
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.glass-input::placeholder,
.form-control::placeholder { color: rgba(200, 245, 66, 0.25); }
.glass-input:focus,
.form-control:focus {
    border-color: rgba(200, 245, 66, 0.55);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(200, 245, 66, 0.2);
}
select.form-control {
    cursor: pointer;
    color-scheme: dark;
    background-color: rgba(10, 20, 16, 0.95);
}
select.form-control option {
    background-color: #0a1410;
    color: #ffffff;
}
.drawer-panel select.form-control,
.drawer-body select.form-control {
    background-color: #0a1410;
    color: #ffffff;
}
.kx-winner-count-auto {
    opacity: 0.85;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.03);
}
.kx-prize-remove {
    min-width: 2.25rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    margin-bottom: 0.15rem;
}

/* â”€â”€ Buttons â”€â”€ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-gold, .btn-primary, .btn-success {
    background: linear-gradient(135deg, var(--kx-primary), var(--kx-primary-dark));
    color: #000000;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(200, 245, 66, 0.3);
}
.btn-gold:hover, .btn-primary:hover, .btn-success:hover {
    box-shadow: 0 8px 28px rgba(200, 245, 66, 0.45);
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(135deg, var(--kx-primary-light), var(--kx-primary));
}
.btn-outline {
    background: transparent;
    border: 1px solid rgba(200, 245, 66, 0.3);
    color: rgba(224, 255, 128, 0.9);
}
.btn-outline:hover {
    border-color: var(--kx-primary);
    color: #000;
    background: var(--kx-primary);
    box-shadow: 0 4px 16px rgba(200, 245, 66, 0.35);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: rgba(200, 245, 66, 0.6);
}
.btn-ghost:hover { background: rgba(200, 245, 66, 0.08); color: var(--kx-primary); }
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
    background: #f87171;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.75rem; border-radius: 0.75rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; border-radius: 1.25rem; }
.btn-block { width: 100%; }

/* â”€â”€ Forms & cards â”€â”€ */
.form-card {
    background: var(--kx-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--kx-border);
    border-radius: 1.25rem;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
}
.form-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--kx-border);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.08em;
    background: linear-gradient(to right, #fff, var(--kx-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(200, 245, 66, 0.55);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.card {
    background: var(--kx-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--kx-border);
    border-radius: 1.25rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
    transition: all 0.3s ease;
}
.card:hover { border-color: rgba(200, 245, 66, 0.3); }
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--kx-border);
    background: rgba(200, 245, 66, 0.02);
}
.card-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
}
.card-body { padding: 0; }

/* â”€â”€ Tables â”€â”€ */
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; font-size: 0.875rem; }
.table-wrap th {
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(200, 245, 66, 0.6);
    background: rgba(200, 245, 66, 0.03);
}
.table-wrap td {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--kx-border);
    color: rgba(255, 255, 255, 0.85);
}
.table-wrap tr:hover td { background: rgba(200, 245, 66, 0.04); }

/* â”€â”€ Badges â”€â”€ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}
.badge-open, .badge-won, .badge-success, .badge-active {
    background: rgba(200, 245, 66, 0.15);
    color: var(--kx-primary);
    border: 1px solid rgba(200, 245, 66, 0.35);
    box-shadow: 0 0 10px rgba(200, 245, 66, 0.15);
}
.badge-closed, .badge-lost, .badge-inactive, .badge-blocked {
    background: rgba(239, 68, 68, 0.15);
    color: #ff8b8b;
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.badge-pending {
    background: rgba(232, 185, 35, 0.15);
    color: var(--kx-gold);
    border: 1px solid rgba(232, 185, 35, 0.35);
    box-shadow: 0 0 10px rgba(232, 185, 35, 0.1);
}
.badge-draft {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.28);
}
.badge-admin {
    background: rgba(200, 245, 66, 0.1);
    color: var(--kx-primary-light);
    border: 1px solid rgba(200, 245, 66, 0.25);
}

/* â”€â”€ Stats â”€â”€ */
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4,1fr); } }
.stat-card {
    background: var(--kx-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--kx-border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
    transition: all 0.3s ease;
}
.stat-card:hover {
    border-color: rgba(200, 245, 66, 0.35);
    transform: translateY(-2px);
}
.stat-card .stat-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.stat-card .stat-number { font-size: 1.75rem; font-weight: 800; color: #fff; font-family: 'Orbitron', sans-serif; }
.stat-card .stat-title { font-size: 0.75rem; color: rgba(200, 245, 66, 0.45); margin-top: 0.375rem; text-transform: uppercase; letter-spacing: 0.08em; }
.stat-card.gold .stat-number { color: var(--kx-gold); text-shadow: 0 0 12px rgba(232,185,35,0.35); }
.stat-card.green .stat-number { color: var(--kx-primary); text-shadow: 0 0 12px rgba(200,245,66,0.35); }
.stat-card.red .stat-number { color: #ff8b8b; }
.stat-card.blue .stat-number { color: var(--kx-primary-light); }

.empty-state { text-align: center; padding: 3rem 0; color: rgba(200, 245, 66, 0.35); }
.empty-state .empty-icon { font-size: 2.25rem; margin-bottom: 0.75rem; }
.digit-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--kx-primary), var(--kx-primary-dark));
    color: #000;
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 2px;
    box-shadow: 0 0 16px rgba(200, 245, 66, 0.5);
}
.result-digits { display: inline-flex; gap: 4px; }

/* â”€â”€ Public layout â”€â”€ */
.page-container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .page-container { padding: 0 1.5rem; } }

/* Shared visibility helpers (work even when mobile-app.css is not loaded) */
.kx-mobile-only { display: block; }
.kx-desktop-only,
.kx-desktop-wide,
.kx-page-desktop-fallback { display: none; }

@media (min-width: 1024px) {
    .kx-mobile-only { display: none !important; }
    .kx-desktop-only { display: block !important; }
    .kx-desktop-wide { display: block !important; }
    .kx-page-desktop-fallback { display: block !important; }
    body.kx-app .kx-desktop-only,
    body.kx-app .kx-page-desktop-fallback { display: block !important; }

    /* Kill mobile chrome + phone-frame on desktop (beats mobile-app.css leaks) */
    body.kx-app .app-dl-bar,
    body.kx-app .app-header,
    body.kx-app .app-userbar,
    body.kx-app .app-drawer,
    body.kx-app .app-drawer-overlay,
    body.kx-app .app-bottom-nav,
    body.kx-app .kx-desktop-shell-top {
        display: none !important;
    }

    body.kx-app .kx-app-frame {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        min-height: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        background: transparent !important;
        padding-bottom: 0 !important;
        isolation: auto !important;
        position: relative !important;
    }

    body.kx-app {
        padding-bottom: 0 !important;
    }
}

/* App download popup — always hidden unless opened on desktop */
.kx-app-dl-popup {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 520;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    margin: 0;
    box-sizing: border-box;
}
@media (min-width: 1024px) {
    .kx-app-dl-popup.is-open {
        display: flex !important;
    }
}
.kx-app-dl-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}
.kx-app-dl-popup-panel {
    position: relative;
    z-index: 1;
    width: min(26rem, calc(100vw - 2.5rem));
    max-height: min(90vh, 36rem);
    overflow-y: auto;
    margin: auto;
    padding: 2rem 1.75rem 1.5rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(200, 245, 66, 0.16), transparent 55%),
        linear-gradient(165deg, #121a0e 0%, #0a1008 100%);
    border: 1px solid rgba(200, 245, 66, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    text-align: center;
}
.kx-app-dl-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.kx-app-dl-popup-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
.kx-app-dl-popup-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(200, 245, 66, 0.35);
    background: #0a1408;
    box-shadow: 0 8px 24px rgba(200, 245, 66, 0.18);
}
.kx-app-dl-popup-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kx-app-dl-popup-panel h2 {
    margin: 0 0 0.55rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}
.kx-app-dl-popup-panel p {
    margin: 0 0 1.35rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.58);
}
.kx-app-dl-popup-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--kx-primary), var(--kx-primary-dark));
    color: #0a1408;
    font-size: 0.95rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(200, 245, 66, 0.28);
    margin-bottom: 0.65rem;
}
.kx-app-dl-popup-cta:hover {
    color: #0a1408;
    filter: brightness(1.05);
}
.kx-app-dl-popup-later {
    display: block;
    width: 100%;
    padding: 0.55rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.kx-app-dl-popup-later:hover {
    color: rgba(255, 255, 255, 0.75);
}

.page-hero {
    padding: 3.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, rgba(200,245,66,0.08) 0%, transparent 60%);
}
@media (min-width: 768px) { .page-hero { padding: 4.5rem 0; } }
.page-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: rgba(200, 245, 66, 0.1);
    border: 1px solid rgba(200, 245, 66, 0.3);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--kx-primary);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}
.page-title {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: 0.025em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    font-family: 'Orbitron', sans-serif;
}
@media (min-width: 768px) { .page-title { font-size: 3.25rem; } }
@media (min-width: 1024px) { .page-title { font-size: 4rem; } }
.page-desc {
    max-width: 36rem;
    margin: 0 auto 2.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.section-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-family: 'Orbitron', sans-serif;
}
.section-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--kx-primary);
    box-shadow: 0 0 12px var(--kx-glow);
    animation: vault-pulse 2s ease-in-out infinite;
}
.more-link {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(200, 245, 66, 0.45);
    transition: color 0.2s;
}
.more-link:hover { color: var(--kx-primary); }
.pill {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--kx-border);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
}
.pill:hover { border-color: rgba(200, 245, 66, 0.35); color: var(--kx-primary); }
.pill-active {
    background: rgba(200, 245, 66, 0.15);
    color: var(--kx-primary);
    border-color: rgba(200, 245, 66, 0.45);
    box-shadow: 0 0 16px rgba(200, 245, 66, 0.2);
}
.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 1.25rem;
    background: var(--kx-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--kx-border);
}
.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.875rem;
}
.search-bar input::placeholder { color: rgba(200, 245, 66, 0.25); }
.games-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .games-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .games-grid { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 1280px) { .games-grid { grid-template-columns: repeat(6,1fr); } }
.draws-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; padding: 1rem 0 2rem; }
@media (min-width: 768px) { .draws-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .draws-grid { grid-template-columns: repeat(3,1fr); } }
.casino-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.875rem; padding-bottom: 2.5rem; }
@media (min-width: 640px) { .casino-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 768px) { .casino-grid { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 1024px) { .casino-grid { grid-template-columns: repeat(6,1fr); } }
.stats-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 42rem; margin: 0 auto 2.5rem; }
@media (min-width: 640px) { .stats-row { grid-template-columns: repeat(3,1fr); } }
.stat-box {
    background: var(--kx-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--kx-border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
    transition: all 0.3s;
}
.stat-box:hover { border-color: rgba(200, 245, 66, 0.35); }
.results-table {
    width: 100%;
    font-size: 0.875rem;
    background: var(--kx-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--kx-border);
    border-radius: 1.25rem;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
}
.results-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: rgba(200, 245, 66, 0.6);
    background: rgba(200, 245, 66, 0.03);
    border-bottom: 1px solid var(--kx-border);
}
.results-table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--kx-border); }
.results-table tr:last-child td { border-bottom: none; }
.results-table tr:hover td { background: rgba(200, 245, 66, 0.04); }
.alert-bar {
    padding: 0.75rem 0;
    text-align: center;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--kx-gold);
    background: rgba(232, 185, 35, 0.1);
    border-bottom: 1px solid rgba(232, 185, 35, 0.15);
    backdrop-filter: blur(8px);
}

/* ── Vault loader ── */
.vault-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    background: #000;
    overflow: hidden;
}
.vault-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.vault-loader-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 50% 42%, rgba(200, 245, 66, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 20% 80%, rgba(232, 185, 35, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 35% 28% at 85% 15%, rgba(200, 245, 66, 0.05) 0%, transparent 45%),
        #000;
    animation: vaultLoaderPulse 2.8s ease-in-out infinite;
}
.vault-loader-orbit {
    position: relative;
    width: 11.5rem;
    height: 11.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.vault-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid transparent;
    pointer-events: none;
}
.vault-loader-ring--a {
    border-top-color: rgba(200, 245, 66, 0.85);
    border-right-color: rgba(200, 245, 66, 0.15);
    animation: vaultSpin 1.1s linear infinite;
}
.vault-loader-ring--b {
    inset: 0.7rem;
    border-bottom-color: rgba(232, 185, 35, 0.75);
    border-left-color: rgba(232, 185, 35, 0.12);
    animation: vaultSpin 1.7s linear infinite reverse;
}
.vault-loader-ring--c {
    inset: 1.4rem;
    border: 1px dashed rgba(200, 245, 66, 0.28);
    animation: vaultSpin 4s linear infinite;
}
.vault-loader-spark {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0.45rem;
    height: 0.45rem;
    margin-left: -0.22rem;
    border-radius: 50%;
    background: var(--kx-primary, #c8f542);
    box-shadow: 0 0 12px rgba(200, 245, 66, 0.9);
    animation: vaultSpark 1.1s linear infinite;
    transform-origin: 50% 5.75rem;
    pointer-events: none;
    z-index: 1;
}
.vault-loader-spark--2 {
    background: var(--kx-gold, #e8b923);
    box-shadow: 0 0 12px rgba(232, 185, 35, 0.85);
    animation: vaultSpark 1.7s linear infinite reverse;
    transform-origin: 50% 5.05rem;
    top: 0.7rem;
}
.vault-loader-core {
    position: relative;
    z-index: 2;
    width: 5.5rem;
    height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 245, 66, 0.12), transparent 70%);
    animation: vaultLogoFloat 2.2s ease-in-out infinite;
}
.vault-loader-logo {
    width: 4.75rem !important;
    height: 4.75rem !important;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(200, 245, 66, 0.55));
}
.vault-loader-brand {
    position: relative;
    z-index: 2;
    margin: 0.15rem 0 0;
    font-family: 'Orbitron', 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    color: var(--kx-primary, #c8f542);
    text-shadow: 0 0 24px rgba(200, 245, 66, 0.4);
}
.vault-loader-tag {
    position: relative;
    z-index: 2;
    margin: 0.15rem 0 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}
.vault-loader-bar {
    position: relative;
    z-index: 2;
    width: min(14rem, 60vw);
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border: 1px solid rgba(200, 245, 66, 0.15);
}
.vault-loader-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--kx-primary, #c8f542), var(--kx-gold, #e8b923), var(--kx-primary, #c8f542));
    background-size: 200% 100%;
    box-shadow: 0 0 14px rgba(200, 245, 66, 0.55);
    animation: vaultBarFill 1.35s cubic-bezier(0.4, 0, 0.2, 1) forwards, vaultBarShimmer 1s linear infinite;
}
.vault-loader-status {
    position: relative;
    z-index: 2;
    margin: 0.85rem 0 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    color: rgba(200, 245, 66, 0.7);
}
.vault-loader-status::after {
    content: '';
    animation: vaultDots 1.2s steps(4, end) infinite;
}
@keyframes vaultSpin {
    to { transform: rotate(360deg); }
}
@keyframes vaultSpark {
    to { transform: rotate(360deg); }
}
@keyframes vaultLogoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.03); }
}
@keyframes vaultLoaderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.82; }
}
@keyframes vaultBarFill {
    0% { width: 0; }
    100% { width: 100%; }
}
@keyframes vaultBarShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes vaultDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

@media (max-width: 1023px) {
    .vault-loader { display: none !important; }
}

.dash-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .dash-grid-2 { grid-template-columns: 1fr 1fr; } }
.form-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--kx-border);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
}
.table-actions { display: flex; flex-wrap: wrap; gap: 0.375rem; align-items: center; }

/* â”€â”€ Drawer â”€â”€ */
.drawer-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
    position: fixed; top: 0; right: 0; z-index: 301;
    height: 100%; width: 100%; max-width: 36rem;
    background: var(--kx-panel);
    backdrop-filter: blur(28px);
    border-left: 1px solid var(--kx-border);
    box-shadow: -8px 0 40px rgba(0,0,0,0.75);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    display: flex; flex-direction: column;
    pointer-events: none;
    visibility: hidden;
}
.drawer-panel.open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.5rem; border-bottom: 1px solid var(--kx-border); flex-shrink: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.75rem; }
.drawer-footer { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; padding: 1.25rem 1.5rem; border-top: 1px solid var(--kx-border); background: rgba(200,245,66,0.02); flex-shrink: 0; }
.drawer-close { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; border-radius: 0.75rem; font-size: 1.5rem; color: rgba(200,245,66,0.45); transition: all 0.2s; }
.drawer-close:hover { background: rgba(200,245,66,0.1); color: var(--kx-primary); }

/* Full-screen contest editor */
body.kx-contest-drawer-active { overflow: hidden; }

.kx-contest-drawer-overlay {
    z-index: 380;
    background: rgba(0, 0, 0, 0.72);
}

.drawer-panel-full {
    left: 0;
    right: 0;
    top: 0;
    max-width: none;
    width: 100%;
    border-left: none;
    box-shadow: none;
    transform: translateY(12px);
    opacity: 0;
    z-index: 390;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
    pointer-events: none;
    visibility: hidden;
}
.drawer-panel-full.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.kx-contest-drawer-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100dvh;
    background:
        radial-gradient(ellipse at top right, rgba(200, 245, 66, 0.08), transparent 42%),
        radial-gradient(ellipse at bottom left, rgba(16, 185, 129, 0.06), transparent 40%),
        var(--kx-panel);
}

.kx-contest-drawer-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--kx-border);
    background: rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .kx-contest-drawer-head {
        padding: 1.25rem 2rem;
        gap: 1.25rem;
    }
}

.kx-contest-drawer-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.55rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(200, 245, 66, 0.22);
    color: rgba(224, 255, 128, 0.9);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.kx-contest-drawer-back:hover {
    background: rgba(200, 245, 66, 0.1);
    border-color: rgba(200, 245, 66, 0.4);
    color: var(--kx-primary);
}

.kx-contest-drawer-head-copy {
    min-width: 0;
    flex: 1;
}
.kx-contest-drawer-eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(200, 245, 66, 0.55);
}
.kx-contest-drawer-head-copy h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.04em;
}
.kx-contest-drawer-head-copy p {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(148, 163, 184, 0.95);
    max-width: 42rem;
}

.kx-contest-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem 2rem;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
    .kx-contest-drawer-body {
        padding: 1.5rem 2rem 2.5rem;
    }
}

.kx-contest-drawer-inner {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
}

.kx-contest-form-grid {
    display: grid;
    gap: 1rem;
}
@media (min-width: 1024px) {
    .kx-contest-form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.1rem;
    }
    .kx-contest-section-hero,
    .kx-contest-section-prizes {
        grid-column: 1 / -1;
    }
}

.kx-contest-section {
    background: var(--kx-card);
    border: 1px solid var(--kx-border);
    border-radius: 1rem;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
@media (min-width: 768px) {
    .kx-contest-section {
        padding: 1.25rem 1.35rem;
    }
}

.kx-contest-section-head {
    margin-bottom: 1rem;
}
.kx-contest-section-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
}
.kx-contest-section-head p {
    margin: 0.3rem 0 0;
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.95);
    line-height: 1.45;
}
.kx-contest-section-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.kx-contest-hero-grid {
    display: grid;
    gap: 1rem;
}
@media (min-width: 768px) {
    .kx-contest-hero-grid {
        grid-template-columns: minmax(220px, 280px) 1fr;
        gap: 1.25rem;
        align-items: start;
    }
}

.kx-contest-cover-slot .form-group {
    margin-bottom: 0;
}
.kx-contest-cover-slot .kx-banner-image-preview-wrap {
    max-width: 280px;
}
.kx-contest-form .kx-crop-preview-img {
    max-width: 100%;
    max-height: 280px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.kx-contest-hero-fields {
    display: grid;
    gap: 0.15rem;
}
@media (min-width: 768px) {
    .kx-contest-hero-fields {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 1rem;
    }
    .kx-contest-hero-fields .form-group:first-child {
        grid-column: 1 / -1;
    }
}

.kx-prize-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.kx-prize-row {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.kx-prize-row .form-group {
    margin-bottom: 0;
}

.kx-contest-drawer-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--kx-border);
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 2;
}
@media (min-width: 768px) {
    .kx-contest-drawer-footer {
        padding: 1.1rem 2rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
    }
}

.kx-contest-form .form-section-title {
    display: none;
}

.kx-contest-table-thumb {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--kx-border);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kx-contest-table-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kx-contest-table-thumb-fallback {
    font-size: 1.35rem;
    line-height: 1;
    opacity: 0.55;
}

#kxContestTableCard {
    overflow: visible;
    position: relative;
    z-index: 2;
}
#kxContestTableCard .card-header {
    overflow: visible;
}
#kxContestTableCard .card-body {
    overflow: hidden;
}

.kx-contest-page-desc {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    color: rgba(148, 163, 184, 0.95);
}

.kx-contest-card-head {
    gap: 0.75rem;
    flex-wrap: wrap;
}

.kx-contest-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.kx-col-dropdown {
    position: relative;
}
.kx-col-dropdown-btn {
    gap: 0.35rem;
}
.kx-col-dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    z-index: 100;
    width: min(16rem, calc(100vw - 2rem));
    padding: 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid var(--kx-border);
    background: var(--kx-panel);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.kx-col-dropdown-panel[hidden] {
    display: none !important;
}
.kx-col-dropdown-panel.is-open {
    display: block;
}
.kx-col-picker-title {
    margin: 0 0 0.65rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(200, 245, 66, 0.55);
}
.kx-col-picker-options {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}
.kx-col-picker-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    color: #e2e8f0;
    cursor: pointer;
    padding: 0.35rem 0.4rem;
    border-radius: 0.5rem;
}
.kx-col-picker-item:hover {
    background: rgba(255, 255, 255, 0.04);
}
.kx-col-picker-item.is-locked {
    opacity: 0.55;
    cursor: default;
}
.kx-col-picker-item input {
    accent-color: var(--kx-primary);
}
.kx-col-picker-reset {
    width: 100%;
    justify-content: center;
}
#kxContestTable .kx-col-hidden {
    display: none !important;
}

.kx-contest-hero-fields .kx-contest-status-field {
    grid-column: 1 / -1;
}

.kx-status-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.kx-status-toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.kx-status-toggle-btn:hover {
    border-color: rgba(200, 245, 66, 0.28);
    background: rgba(200, 245, 66, 0.05);
}
.kx-status-toggle-btn.is-active {
    border-color: rgba(200, 245, 66, 0.55);
    background: rgba(200, 245, 66, 0.12);
    box-shadow: 0 0 0 1px rgba(200, 245, 66, 0.15);
    color: #fff;
}
.kx-status-toggle-btn.is-active .kx-status-toggle-icon {
    color: var(--kx-primary);
}
.kx-status-toggle-icon {
    font-size: 1.35rem !important;
    width: 1.35rem;
    height: 1.35rem;
    color: rgba(148, 163, 184, 0.95);
}
.kx-status-toggle-label {
    font-size: 0.85rem;
    font-weight: 800;
}
.kx-status-toggle-btn small {
    font-size: 0.62rem;
    color: rgba(148, 163, 184, 0.95);
    line-height: 1.35;
}

.kx-table-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding-left: 0.65rem;
    padding-right: 0.75rem;
}
.kx-table-action-icon {
    font-size: 1rem !important;
    width: 1rem;
    height: 1rem;
    line-height: 1;
}

.kx-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 2.35rem);
    gap: 0.4rem;
    width: max-content;
}
.kx-action-form {
    display: contents;
}
.kx-action-icon-btn {
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
}
.kx-action-icon-btn .kx-table-action-icon {
    font-size: 1.1rem !important;
    width: 1.1rem;
    height: 1.1rem;
}
#kxContestTable td[data-contest-col="actions"],
.kx-contest-row-actions {
    min-width: 5.5rem;
    vertical-align: middle;
    position: relative;
    z-index: 3;
}
#kxContestTable .table-actions {
    display: table-cell;
}

/* â”€â”€ Casino extras â”€â”€ */
.lottie-icon, .lottie-container { width: 100%; height: 100%; pointer-events: none; }
.lottie-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.neon-text {
    background: linear-gradient(to right, var(--kx-primary), var(--kx-primary-light), var(--kx-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(200, 245, 66, 0.3));
}
.neon-border {
    border: 1px solid rgba(200, 245, 66, 0.35);
    box-shadow: 0 0 24px rgba(200, 245, 66, 0.15), inset 0 0 24px rgba(200, 245, 66, 0.04);
}
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, var(--kx-gold), var(--kx-gold-dark));
    color: #000;
    font-weight: 900;
    font-size: 0.875rem;
    box-shadow: 0 4px 16px rgba(232, 185, 35, 0.35);
    animation: chip-bounce 2s ease-in-out infinite;
}
.action-tile {
    background: var(--kx-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--kx-border);
    border-radius: 1.25rem;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
}
.action-tile:hover {
    border-color: rgba(200, 245, 66, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(200, 245, 66, 0.15);
}
.action-tile .lottie-container { width: 3.5rem; height: 3.5rem; margin: 0 auto 0.5rem; transition: transform 0.3s; }
.action-tile:hover .lottie-container { transform: scale(1.15); }
.action-tile p {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(200, 245, 66, 0.5);
    text-transform: uppercase;
    transition: color 0.2s;
}
.action-tile:hover p { color: var(--kx-primary); }
.hot-event-banner { position: relative; overflow: hidden; border-radius: 1.75rem; }
.shimmer-btn {
    background: linear-gradient(90deg, #a8d42e 0%, #c8f542 40%, #e0ff80 50%, #c8f542 60%, #a8d42e 100%);
    background-size: 200% 100%;
    animation: shimmer 2.5s linear infinite;
}

/* â”€â”€ Animations â”€â”€ */
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes vault-pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--kx-glow); }
    50% { opacity: 0.7; transform: scale(0.95); box-shadow: 0 0 16px var(--kx-glow); }
}
@keyframes load-bar {
    0% { width: 0%; }
    100% { width: 100%; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes chip-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(3deg); }
}
@keyframes fade-up {
    0% { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}
.animate-ticker { animation: ticker 35s linear infinite; }
.animate-vault-pulse { animation: vault-pulse 2s ease-in-out infinite; }
.animate-load-bar { animation: load-bar 1.4s ease-in-out forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float 6s ease-in-out 2s infinite; }
.animate-shimmer { animation: shimmer 2.5s linear infinite; }
.animate-chip-bounce { animation: chip-bounce 2s ease-in-out infinite; }
.animate-scale-in { animation: scale-in 0.5s ease-out forwards; }
.reveal-on-scroll { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease-out; }
.fade-up { animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
.fade-up-d4 { animation-delay: 0.4s; }
.fade-up-d5 { animation-delay: 0.5s; }

/* â”€â”€ Logo sizing â”€â”€ */
.kx-logo-img { height: 2.25rem; width: 2.25rem; object-fit: contain; filter: drop-shadow(0 0 8px rgba(200,245,66,0.4)); }
.vault-loader .kx-logo-img,
.vault-loader img,
.vault-loader-logo {
    height: auto;
    width: auto;
    max-width: 4.75rem;
    max-height: 4.75rem;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(200, 245, 66, 0.55));
}

/* â”€â”€ KX Modal System â”€â”€ */
.kx-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
@media (min-width: 640px) {
    .kx-modal { align-items: center; padding: 1.5rem; }
}
.kx-modal.kx-modal-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.kx-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}
.kx-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 32rem;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 1.25rem 1.25rem 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
@media (min-width: 640px) {
    .kx-modal-panel {
        border-radius: 1.25rem;
        transform: translateY(24px) scale(0.96);
    }
}
.kx-modal.kx-modal-open .kx-modal-panel {
    transform: translateY(0) scale(1);
}
.kx-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--kx-border);
    flex-shrink: 0;
}
.kx-modal-close {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--kx-border);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}
.kx-modal-close:hover {
    border-color: rgba(200, 245, 66, 0.4);
    background: rgba(200, 245, 66, 0.1);
}
.kx-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}
body.kx-modal-active { overflow: hidden; }
button.action-tile {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Banner admin: image preview + crop */
.kx-banner-image-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}
.kx-image-library-panel {
    width: min(42rem, 100%);
    max-height: min(88vh, 40rem);
}
.kx-image-library-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    overflow-y: auto;
    max-height: min(58vh, 26rem);
}
.kx-image-library-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 0.75rem;
    border: 1px solid var(--kx-border);
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.kx-image-library-item:hover {
    border-color: rgba(200, 245, 66, 0.55);
    transform: translateY(-1px);
}
.kx-image-library-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.55rem;
    background: #0a0f0d;
}
.kx-image-library-item span {
    font-size: 0.62rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.55);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kx-image-library-empty {
    margin: 0;
    padding: 1.5rem 1.1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}
.kx-banner-image-preview-wrap {
    margin-top: 0.85rem;
    border: 1px solid var(--kx-border);
    border-radius: 0.85rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}
.kx-crop-image-field .kx-banner-image-preview,
.kx-banner-image-preview {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: #0a0f0d;
}
.kx-contest-form .kx-crop-preview-img {
    max-width: 220px;
    max-height: 220px;
    margin: 0 auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}
.kx-banner-crop-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.kx-banner-crop-modal.open {
    opacity: 1;
    pointer-events: auto;
}
.kx-banner-crop-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}
.kx-banner-crop-panel {
    position: relative;
    width: min(100%, 52rem);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    background: var(--kx-card);
    border: 1px solid var(--kx-border);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}
.kx-banner-crop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--kx-border);
}
.kx-banner-crop-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.kx-banner-crop-close {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.kx-banner-crop-body {
    padding: 1rem;
    background: #050807;
    min-height: 280px;
    max-height: 55vh;
}
.kx-banner-crop-image {
    display: block;
    max-width: 100%;
}
.kx-banner-crop-tools,
.kx-banner-crop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
}
.kx-banner-crop-tools {
    border-top: 1px solid var(--kx-border);
}
.kx-banner-crop-actions {
    justify-content: flex-end;
    border-top: 1px solid var(--kx-border);
}
/* ═══════════════════════════════════════════════════════════
   Desktop UX rebuild (≥1024px) — full-bleed shell + dense pages
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
    .page-container {
        max-width: 88rem;
        padding: 1.5rem 2.5rem 3.5rem;
    }

    body.kx-app main {
        padding-top: 0.25rem;
    }

    /* ── Header: 3-zone flex, full bleed ── */
    body.kx-app .kx-desk-header.kx-desktop-wide {
        position: sticky;
        top: 0;
        z-index: 300;
        display: block !important;
        width: 100%;
        background: rgba(4, 8, 4, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(200, 245, 66, 0.14);
    }
    body.kx-app .kx-desk-header-inner {
        max-width: 88rem;
        margin: 0 auto;
        padding: 0 2.5rem;
        min-height: 4.5rem;
        height: 4.5rem;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }
    body.kx-app .kx-desk-brand {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }
    body.kx-app .kx-desk-nav {
        flex: 1 1 auto;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 0.35rem;
    }
    body.kx-app .kx-desk-nav-link {
        display: inline-flex;
        align-items: center;
        padding: 0.6rem 1.15rem;
        border-radius: 999px;
        font-size: 0.875rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        color: rgba(255, 255, 255, 0.58);
        white-space: nowrap;
        transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    }
    body.kx-app .kx-desk-nav-link:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.06);
    }
    body.kx-app .kx-desk-nav-link.is-active {
        color: #0a1408;
        background: linear-gradient(135deg, var(--kx-primary), var(--kx-primary-dark));
        box-shadow: 0 4px 18px rgba(200, 245, 66, 0.3);
    }
    body.kx-app .kx-desk-actions {
        flex: 0 0 auto;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 0.75rem;
        margin-left: 0;
    }
    body.kx-app .kx-desk-wallet-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 0.45rem;
        padding: 0.5rem 1rem;
        border-radius: 999px;
        background: rgba(232, 185, 35, 0.1);
        border: 1px solid rgba(232, 185, 35, 0.32);
        cursor: pointer;
        transition: border-color 0.2s, background 0.2s;
    }
    body.kx-app .kx-desk-wallet-btn:hover {
        border-color: rgba(232, 185, 35, 0.6);
        background: rgba(232, 185, 35, 0.16);
    }
    body.kx-app .kx-desk-wallet-amt {
        font-size: 0.95rem;
        font-weight: 800;
        color: var(--kx-gold);
    }
    body.kx-app .kx-desk-wallet-unit {
        font-size: 0.65rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.4);
        letter-spacing: 0.08em;
    }
    body.kx-app .kx-desk-avatar {
        display: block;
        border-radius: 999px;
        outline: 2px solid rgba(200, 245, 66, 0.22);
        outline-offset: 2px;
        transition: outline-color 0.2s;
        line-height: 0;
    }
    body.kx-app .kx-desk-avatar:hover,
    body.kx-app .kx-desk-avatar.is-active {
        outline-color: rgba(200, 245, 66, 0.7);
    }
    body.kx-app .kx-desk-btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.7rem 1.4rem;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--kx-primary), var(--kx-primary-dark));
        color: #0a1408;
        font-size: 0.85rem;
        font-weight: 800;
        box-shadow: 0 4px 18px rgba(200, 245, 66, 0.28);
        border: none;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        text-decoration: none;
    }
    body.kx-app .kx-desk-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 24px rgba(200, 245, 66, 0.4);
    }
    body.kx-app .kx-desk-btn-ghost {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.7rem 1.25rem;
        border-radius: 999px;
        border: 1px solid rgba(200, 245, 66, 0.3);
        color: rgba(224, 255, 128, 0.92);
        font-size: 0.85rem;
        font-weight: 700;
        transition: background 0.2s, border-color 0.2s;
        text-decoration: none;
    }
    body.kx-app .kx-desk-btn-ghost:hover {
        background: rgba(200, 245, 66, 0.1);
        border-color: var(--kx-primary);
        color: var(--kx-primary);
    }
    body.kx-app .kx-desk-download-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.65rem 1.1rem;
        border-radius: 999px;
        background: linear-gradient(135deg, #f7d358, #e8b923);
        color: #1a1200;
        font-size: 0.8rem;
        font-weight: 800;
        text-decoration: none;
        border: none;
        box-shadow: 0 4px 16px rgba(232, 185, 35, 0.28);
        transition: transform 0.2s, box-shadow 0.2s;
        white-space: nowrap;
    }
    body.kx-app .kx-desk-download-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(232, 185, 35, 0.4);
        color: #1a1200;
    }
    body.kx-app .kx-desk-download-icon {
        font-size: 1.1rem;
        line-height: 1;
    }
    body.kx-app .kx-desk-btn-lg { padding: 0.85rem 1.6rem; font-size: 0.9rem; }
    body.kx-app .kx-desk-btn-block { width: 100%; }

    /* ── Ticker ── */
    body.kx-app .kx-desk-ticker.kx-desktop-wide {
        position: relative;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        width: 100%;
        height: 2.15rem;
        overflow: hidden;
        background: linear-gradient(90deg, rgba(10, 28, 12, 0.95), rgba(8, 16, 8, 0.85));
        border-bottom: 1px solid rgba(200, 245, 66, 0.1);
    }
    body.kx-app .kx-desk-ticker-live {
        position: relative;
        z-index: 2;
        flex: 0 0 auto;
        margin-left: 1.5rem;
        padding: 0.2rem 0.55rem;
        border-radius: 0.35rem;
        background: #ef4444;
        color: #fff;
        font-size: 0.6rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        animation: vault-pulse 1.6s ease-in-out infinite;
    }
    body.kx-app .kx-desk-ticker-track {
        display: flex;
        gap: 3.5rem;
        padding-left: 1.25rem;
        white-space: nowrap;
        animation: ticker 28s linear infinite;
    }
    body.kx-app .kx-desk-ticker-track span {
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(200, 245, 66, 0.78);
    }

    /* ── Footer ── */
    body.kx-app .kx-desk-footer.kx-desktop-wide {
        display: block !important;
        margin-top: 2.5rem;
        padding: 3.5rem 0 2.25rem;
        border-top: 1px solid rgba(200, 245, 66, 0.12);
        background:
            radial-gradient(ellipse at 20% 0%, rgba(200, 245, 66, 0.05) 0%, transparent 50%),
            linear-gradient(180deg, transparent, rgba(6, 12, 6, 0.75));
    }
    body.kx-app .kx-desk-footer-inner {
        max-width: 88rem;
        margin: 0 auto;
        padding: 0 2.5rem;
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 2.5rem;
        align-items: start;
    }
    body.kx-app .kx-desk-footer-brand p {
        margin-top: 0.85rem;
        max-width: 24rem;
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.4);
        line-height: 1.6;
    }
    body.kx-app .kx-desk-footer-cols { display: contents; }
    body.kx-app .kx-desk-footer-cols h4 {
        margin-bottom: 0.85rem;
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--kx-primary);
    }
    body.kx-app .kx-desk-footer-cols a {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.45);
        transition: color 0.2s;
    }
    body.kx-app .kx-desk-footer-cols a:hover { color: var(--kx-primary); }
    body.kx-app .kx-desk-footer-copy {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 0.5rem;
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.28);
    }

    /* ── Compact page hero ── */
    body.kx-app .kx-desk-hero.page-hero {
        padding: 2.25rem 0 1.75rem;
        text-align: left;
        background: none;
    }
    body.kx-app .kx-desk-hero .page-tag {
        margin-bottom: 0.75rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        font-size: 0.65rem;
    }
    body.kx-app .kx-desk-hero .page-title {
        font-size: clamp(1.85rem, 2.8vw, 2.65rem);
        margin-bottom: 0.65rem;
        max-width: 22ch;
        line-height: 1.15;
    }
    body.kx-app .kx-desk-hero .page-desc {
        margin: 0;
        max-width: 40rem;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.5);
    }
    body.kx-app .kx-desk-new-pill {
        margin-left: 0.5rem;
        padding: 0.2rem 0.5rem;
        border-radius: 0.4rem;
        background: var(--kx-primary);
        color: #000;
        font-size: 0.6rem;
        font-weight: 800;
    }

    /* ── Home ── */
    body.kx-app .kx-desk-home {
        padding-top: 0.5rem;
        padding-bottom: 1rem;
    }
    body.kx-app .kx-desk-home-hero {
        position: relative;
        min-height: 0;
        height: min(46vh, 26rem);
        margin: 0 0 2rem;
        border-radius: 1.35rem;
        overflow: hidden;
        border: 1px solid rgba(200, 245, 66, 0.16);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    }
    body.kx-app .kx-desk-home-hero-media { position: absolute; inset: 0; }
    body.kx-app .kx-desk-home-hero-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        animation: kxDeskKenBurns 18s ease-in-out infinite alternate;
    }
    body.kx-app .kx-desk-home-hero-shade {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(105deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.2) 100%),
            radial-gradient(ellipse at 70% 40%, rgba(200, 245, 66, 0.1), transparent 55%);
    }
    body.kx-app .kx-desk-home-hero-content {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: 100%;
        padding: 2.75rem 3rem;
        max-width: 36rem;
    }
    body.kx-app .kx-desk-brand-mark {
        margin-bottom: 0.4rem;
        font-family: 'Orbitron', sans-serif;
        font-size: clamp(1.5rem, 2.4vw, 2.1rem);
        font-weight: 900;
        letter-spacing: 0.08em;
        color: var(--kx-primary);
        text-shadow: 0 0 24px rgba(200, 245, 66, 0.35);
    }
    body.kx-app .kx-desk-home-hero-title {
        font-family: 'Orbitron', sans-serif;
        font-size: clamp(1.6rem, 2.6vw, 2.35rem);
        font-weight: 800;
        line-height: 1.15;
        margin-bottom: 0.65rem;
    }
    body.kx-app .kx-desk-home-hero-desc {
        font-size: 0.95rem;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.62);
        margin-bottom: 1.25rem;
    }
    body.kx-app .kx-desk-home-hero-ctas {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
    }
    @keyframes kxDeskKenBurns {
        from { transform: scale(1.02); }
        to { transform: scale(1.08) translate3d(-1%, -0.5%, 0); }
    }

    body.kx-app .kx-desk-home .hot-event-banner,
    body.kx-app .kx-desk-home #kxBannerSlider .hot-event-banner {
        border-radius: 1.35rem;
        min-height: 0 !important;
        height: min(46vh, 26rem);
        border: 1px solid rgba(200, 245, 66, 0.16);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    }
    body.kx-app .kx-desk-home .hot-event-banner .relative.z-10 {
        padding: 2.5rem 3rem !important;
    }
    body.kx-app .kx-desk-banner-section {
        margin-bottom: 0.5rem;
    }
    body.kx-app .kx-desk-home .hot-event-banner .min-h-80,
    body.kx-app .kx-desk-home #kxBannerTrack > div {
        min-height: min(46vh, 26rem) !important;
        height: min(46vh, 26rem);
    }
    body.kx-app .kx-desk-home .hot-event-banner h1 {
        font-size: clamp(1.75rem, 3vw, 2.75rem) !important;
    }

    body.kx-app .kx-desk-panel { margin-bottom: 2.25rem; }
    body.kx-app .kx-desk-lottery-scroll {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding: 0.25rem 0.15rem 0.35rem;
        margin: 0 -0.15rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
    }
    body.kx-app .kx-desk-lottery-scroll.is-dragging {
        cursor: grabbing;
        user-select: none;
    }
    body.kx-app .kx-desk-lottery-scroll.is-dragging a {
        pointer-events: none;
    }
    body.kx-app .kx-desk-lottery-scroll::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    body.kx-app .kx-desk-lottery-slide {
        flex: 0 0 min(28rem, 82%);
        min-width: min(28rem, 82%);
        scroll-snap-align: start;
    }
    body.kx-app .kx-desk-lottery-slide .kx-ticket {
        height: 12.5rem;
        min-height: 12.5rem;
        margin: 0;
        overflow: hidden;
    }
    body.kx-app .kx-desk-section-head {
        margin-bottom: 1.15rem;
        padding: 0 0.15rem;
    }
    body.kx-app .kx-desk-actions-grid {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.75rem;
        margin-bottom: 0;
    }
    body.kx-app .kx-desk-action.action-tile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem 0.5rem;
        border-radius: 1.1rem;
        background: rgba(10, 18, 8, 0.75);
        border: 1px solid rgba(200, 245, 66, 0.12);
        transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
        text-align: center;
        width: 100%;
    }
    body.kx-app .kx-desk-action.action-tile:hover {
        transform: translateY(-3px);
        border-color: rgba(200, 245, 66, 0.4);
        box-shadow: 0 12px 28px rgba(200, 245, 66, 0.1);
    }
    body.kx-app .kx-desk-action.action-tile p {
        margin: 0;
        font-size: 0.75rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.72);
    }
    body.kx-app .kx-desk-section-head {
        margin-bottom: 1rem;
    }
    body.kx-app .kx-desk-section-head .section-title { font-size: 1.2rem; }
    body.kx-app .kx-desk-section-head .more-link {
        padding: 0.4rem 0.85rem;
        border-radius: 999px;
        border: 1px solid rgba(200, 245, 66, 0.22);
        color: rgba(200, 245, 66, 0.75);
        font-size: 0.7rem;
    }
    body.kx-app .kx-desk-section-head .more-link:hover {
        background: rgba(200, 245, 66, 0.1);
        color: var(--kx-primary);
    }

    /* ── Lottery ticket cards (physical ticket UX) ── */
    body.kx-app .kx-desk-draws.draws-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
        padding: 0;
    }
    @media (min-width: 1400px) {
        body.kx-app .kx-desk-draws.draws-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }
    body.kx-app .kx-ticket {
        position: relative;
        display: flex !important;
        flex-direction: row;
        align-items: stretch;
        min-height: 12.5rem;
        padding: 0;
        border-radius: 0.85rem;
        background: #0b1209;
        border: 1px solid rgba(200, 245, 66, 0.28);
        box-shadow:
            0 10px 28px rgba(0, 0, 0, 0.45),
            inset 0 0 0 1px rgba(255, 255, 255, 0.03);
        overflow: hidden;
        isolation: isolate;
        transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    }
    body.kx-app .kx-ticket:hover {
        transform: translateY(-3px) rotate(-0.2deg);
        border-color: rgba(200, 245, 66, 0.5);
        box-shadow:
            0 18px 40px rgba(200, 245, 66, 0.12),
            0 10px 28px rgba(0, 0, 0, 0.5);
    }
    body.kx-app .kx-ticket-stub {
        position: relative;
        z-index: 2;
        flex: 0 0 4.25rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 0.35rem;
        background:
            repeating-linear-gradient(
                0deg,
                rgba(200, 245, 66, 0.04) 0 2px,
                transparent 2px 6px
            ),
            linear-gradient(180deg, #121c0e, #0a1008);
        border-right: none;
        border-radius: 0.85rem 0 0 0.85rem;
    }
    body.kx-app .kx-ticket-stub-brand {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-family: 'Orbitron', sans-serif;
        font-size: 0.62rem;
        font-weight: 900;
        letter-spacing: 0.22em;
        color: var(--kx-primary);
    }
    body.kx-app .kx-ticket-stub-no {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        color: rgba(255, 255, 255, 0.45);
    }
    body.kx-app .kx-ticket-stub-bars {
        width: 1.65rem;
        height: 2.4rem;
        background: repeating-linear-gradient(
            90deg,
            #c8f542 0 2px,
            transparent 2px 4px,
            rgba(200, 245, 66, 0.35) 4px 5px,
            transparent 5px 7px,
            #c8f542 7px 10px,
            transparent 10px 12px
        );
        opacity: 0.85;
        border-radius: 2px;
    }
    body.kx-app .kx-ticket-stub-admit {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: 0.5rem;
        font-weight: 800;
        letter-spacing: 0.18em;
        color: rgba(232, 185, 35, 0.75);
    }
    body.kx-app .kx-ticket-perforation {
        position: relative;
        z-index: 3;
        flex: 0 0 0.7rem;
        margin: 0.55rem 0;
        background-image: radial-gradient(circle at center, #050805 0 0.28rem, transparent 0.3rem);
        background-size: 100% 0.85rem;
        background-repeat: repeat-y;
        background-position: center;
        border-left: 1px dashed rgba(200, 245, 66, 0.35);
        border-right: 1px dashed rgba(200, 245, 66, 0.2);
        background-color: #0b1209;
    }
    body.kx-app .kx-ticket-main {
        position: relative;
        z-index: 2;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-width: 0;
        padding: 1.2rem 1.35rem 1.15rem;
        background:
            radial-gradient(ellipse at 0% 0%, rgba(200, 245, 66, 0.08), transparent 55%),
            repeating-linear-gradient(
                -12deg,
                transparent 0 10px,
                rgba(200, 245, 66, 0.015) 10px 11px
            ),
            linear-gradient(165deg, #10180c 0%, #0a1008 100%);
        overflow: hidden;
    }
    body.kx-app .kx-ticket-watermark {
        position: absolute;
        right: 0.5rem;
        bottom: 0.4rem;
        font-family: 'Orbitron', sans-serif;
        font-size: 2.4rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        color: rgba(200, 245, 66, 0.05);
        pointer-events: none;
        user-select: none;
        transform: rotate(-8deg);
    }
    body.kx-app .kx-ticket-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.45rem;
    }
    body.kx-app .kx-ticket-type {
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: rgba(200, 245, 66, 0.75);
    }
    body.kx-app .kx-ticket-status {
        padding: 0.18rem 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.55rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    body.kx-app .kx-ticket.is-live .kx-ticket-status {
        background: rgba(239, 68, 68, 0.18);
        color: #fca5a5;
        border-color: rgba(239, 68, 68, 0.3);
    }
    body.kx-app .kx-ticket-title {
        font-family: 'Orbitron', sans-serif;
        font-size: 1.15rem;
        font-weight: 800;
        line-height: 1.2;
        margin: 0 0 0.25rem;
        letter-spacing: 0.02em;
    }
    body.kx-app .kx-ticket-when {
        margin: 0 0 0.55rem;
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 0.68rem;
        color: rgba(255, 255, 255, 0.4);
        letter-spacing: 0.02em;
    }
    body.kx-app .kx-ticket-label {
        margin: 0;
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.38);
    }
    body.kx-app .kx-ticket-prize {
        font-family: 'Orbitron', sans-serif;
        font-size: 1.55rem;
        font-weight: 900;
        color: var(--kx-primary);
        text-shadow: 0 0 16px rgba(200, 245, 66, 0.28);
        margin: 0.1rem 0 0.75rem;
        letter-spacing: 0.02em;
    }
    body.kx-app .kx-ticket-footer {
        margin-top: auto;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 0.75rem;
        padding-top: 0.7rem;
        border-top: 1px dashed rgba(200, 245, 66, 0.22);
    }
    body.kx-app .kx-ticket-serial span {
        display: block;
        font-size: 0.52rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.35);
        margin-bottom: 0.15rem;
    }
    body.kx-app .kx-ticket-serial strong {
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        color: rgba(224, 255, 128, 0.85);
    }
    body.kx-app .kx-ticket-actions {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    body.kx-app .kx-ticket-entry {
        display: inline-flex;
        align-items: center;
        padding: 0.4rem 0.7rem;
        border-radius: 0.35rem;
        background: linear-gradient(135deg, var(--kx-primary), var(--kx-primary-dark));
        color: #0a1408;
        font-size: 0.68rem;
        font-weight: 800;
        box-shadow: 0 3px 10px rgba(200, 245, 66, 0.25);
    }
    body.kx-app .kx-ticket-cta {
        display: inline-flex;
        align-items: center;
        padding: 0.4rem 0.85rem;
        border-radius: 0.35rem;
        border: 1px solid rgba(200, 245, 66, 0.4);
        color: var(--kx-primary);
        font-size: 0.7rem;
        font-weight: 800;
        text-decoration: none;
        background: rgba(0, 0, 0, 0.25);
        transition: background 0.2s, color 0.2s;
    }
    body.kx-app .kx-ticket-cta:hover {
        background: var(--kx-primary);
        color: #0a1408;
    }
    body.kx-app .kx-ticket-cta.is-muted {
        border-color: rgba(255, 255, 255, 0.18);
        color: rgba(255, 255, 255, 0.5);
    }
    body.kx-app .kx-ticket-art {
        position: relative;
        flex: 0 0 12.5rem;
        width: 12.5rem;
        max-width: 12.5rem;
        min-width: 12.5rem;
        align-self: stretch;
        overflow: hidden;
        border-radius: 0 0.85rem 0.85rem 0;
        background: #060a05;
    }
    body.kx-app .kx-ticket-art img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
        transition: transform 0.4s ease;
    }
    body.kx-app .kx-ticket:hover .kx-ticket-art img {
        transform: scale(1.04);
    }
    body.kx-app .kx-ticket-art-shade {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(90deg, rgba(11, 18, 9, 0.75) 0%, rgba(11, 18, 9, 0.15) 45%, transparent 72%);
        pointer-events: none;
    }
    body.kx-app .kx-ticket-art-fallback {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        inset: 0;
        font-size: 2.5rem;
        background:
            radial-gradient(circle at 50% 40%, rgba(200, 245, 66, 0.16), transparent 60%),
            linear-gradient(160deg, #122010, #0a1008);
    }

    /* ── Game cards ── */
    body.kx-app .kx-desk-games.games-grid {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.9rem;
        padding-bottom: 0;
    }
    body.kx-app .kx-desk-game {
        display: block;
        overflow: hidden;
        border-radius: 1.1rem;
        background: rgba(10, 18, 8, 0.75);
        border: 1px solid rgba(200, 245, 66, 0.12);
        transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
        text-decoration: none;
        color: inherit;
    }
    body.kx-app .kx-desk-game:hover {
        transform: translateY(-3px);
        border-color: rgba(200, 245, 66, 0.4);
        box-shadow: 0 14px 30px rgba(200, 245, 66, 0.1);
    }
    body.kx-app .kx-desk-game-art {
        position: relative;
        height: 7.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    body.kx-app .kx-desk-game-tag {
        position: absolute;
        top: 0.55rem;
        left: 0.55rem;
        z-index: 2;
        padding: 0.18rem 0.45rem;
        border-radius: 0.35rem;
        background: var(--kx-primary);
        color: #0a1408;
        font-size: 0.55rem;
        font-weight: 800;
        letter-spacing: 0.06em;
    }
    body.kx-app .kx-desk-game-body { padding: 0.75rem 0.85rem 0.95rem; }
    body.kx-app .kx-desk-game-body h3 {
        font-size: 0.8rem;
        font-weight: 800;
        margin-bottom: 0.2rem;
    }
    body.kx-app .kx-desk-game-body p {
        font-size: 0.65rem;
        color: rgba(255, 255, 255, 0.4);
        margin: 0;
    }

    /* ── Lottery toolbar / stats ── */
    body.kx-app .kx-desk-lottery { padding: 0.25rem 0 2.75rem; }
    body.kx-app .kx-desk-toolbar {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        margin-bottom: 1.25rem;
        padding: 1.25rem 1.35rem;
        border-radius: 1.1rem;
        background: rgba(10, 18, 8, 0.55);
        border: 1px solid rgba(200, 245, 66, 0.1);
    }
    body.kx-app .kx-desk-stats.stats-row {
        max-width: none;
        margin: 0 0 1.25rem;
        gap: 0.85rem;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    body.kx-app .kx-desk-stat.stat-box {
        padding: 1.1rem 0.85rem;
        border-radius: 1.1rem;
        background: rgba(10, 18, 8, 0.75);
        border: 1px solid rgba(200, 245, 66, 0.14);
    }
    body.kx-app .kx-desk-stat-num {
        font-family: 'Orbitron', sans-serif;
        font-size: 1.6rem;
        font-weight: 900;
        color: var(--kx-primary);
    }
    body.kx-app .kx-desk-stat-label {
        margin-top: 0.25rem;
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.4);
    }
    body.kx-app .kx-desk-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
    }
    body.kx-app .kx-desk-search-row {
        display: flex;
        gap: 0.75rem;
    }
    body.kx-app .kx-desk-results-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.85rem;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.35);
    }
    body.kx-app .kx-desk-results-badge {
        color: var(--kx-primary);
        padding: 0.28rem 0.65rem;
        border-radius: 999px;
        background: rgba(200, 245, 66, 0.1);
        border: 1px solid rgba(200, 245, 66, 0.22);
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
    body.kx-app .kx-desk-empty {
        padding: 3rem 2rem;
        text-align: center;
        border-radius: 1.25rem;
        background: rgba(10, 18, 8, 0.65);
        border: 1px dashed rgba(200, 245, 66, 0.2);
        color: rgba(255, 255, 255, 0.45);
    }

    /* ── Casino desktop ── */
    body.kx-app .kx-desk-casino { padding: 0.5rem 0 3rem; }
    body.kx-app .kx-desk-casino-intro {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        padding: 1.5rem 1.75rem;
        margin-bottom: 1.35rem;
        border-radius: 1.25rem;
        background: rgba(10, 18, 8, 0.78);
        border: 1px solid rgba(200, 245, 66, 0.16);
    }
    body.kx-app .kx-desk-casino-intro h1 {
        font-family: 'Orbitron', sans-serif;
        font-size: 1.65rem;
        font-weight: 900;
        margin: 0 0 0.25rem;
    }
    body.kx-app .kx-desk-casino-intro p {
        margin: 0;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.45);
    }
    body.kx-app .kx-desk-filter-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.15rem;
    }
    body.kx-app .kx-desk-filter-bar .search-bar {
        flex: 1 1 16rem;
        min-width: 14rem;
    }
    body.kx-app .kx-desk-select {
        appearance: none;
        -webkit-appearance: none;
        min-width: 10rem;
        padding: 0.8rem 2.25rem 0.8rem 1rem;
        border-radius: 1rem;
        background: rgba(10, 18, 8, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c8f542' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
        background-size: 10px 7px;
        border: 1px solid rgba(200, 245, 66, 0.22);
        color: #fff;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        outline: none;
        color-scheme: dark;
    }
    body.kx-app .kx-desk-select:focus {
        border-color: rgba(200, 245, 66, 0.55);
        box-shadow: 0 0 0 3px rgba(200, 245, 66, 0.15);
    }
    body.kx-app .kx-desk-select option {
        background: #0a1410;
        color: #fff;
    }
    body.kx-app .kx-desk-casino .casino-grid {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.9rem;
        padding-bottom: 0;
    }

    /* ── Results ── */
    body.kx-app .kx-desk-results { padding: 0.25rem 0 3rem; }
    body.kx-app .kx-desk-table-wrap {
        border-radius: 1.25rem;
        overflow: hidden;
        border: 1px solid rgba(200, 245, 66, 0.14);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
    }
    body.kx-app .kx-desk-table.results-table {
        margin: 0;
        border: none;
        border-radius: 0;
        background: rgba(8, 14, 6, 0.92);
    }
    body.kx-app .kx-desk-table th {
        padding: 1rem 1.25rem;
        background: rgba(200, 245, 66, 0.05);
    }
    body.kx-app .kx-desk-table td {
        padding: 1rem 1.25rem;
        vertical-align: middle;
    }
    body.kx-app .kx-desk-table-name { font-weight: 700; }
    body.kx-app .kx-desk-table-muted {
        color: rgba(255, 255, 255, 0.35);
        font-size: 0.8rem;
    }
    body.kx-app .kx-desk-type-pill {
        display: inline-flex;
        padding: 0.22rem 0.55rem;
        border-radius: 999px;
        font-size: 0.58rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        background: rgba(200, 245, 66, 0.1);
        color: var(--kx-primary);
        border: 1px solid rgba(200, 245, 66, 0.25);
    }
    body.kx-app .kx-desk-results .digit-box {
        width: 1.85rem;
        height: 2.15rem;
        font-size: 0.95rem;
    }

    /* ── Checker ── */
    body.kx-app .kx-desk-checker { padding: 0.5rem 0 3.5rem; }
    body.kx-app .kx-desk-checker-card {
        max-width: 28rem;
        margin: 1rem auto 0;
        padding: 2.35rem;
        border-radius: 1.35rem;
        background: linear-gradient(165deg, rgba(14, 24, 10, 0.96), rgba(6, 10, 4, 0.94));
        border: 1px solid rgba(200, 245, 66, 0.18);
        box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
    }
    body.kx-app .kx-desk-checker-card h2 {
        font-family: 'Orbitron', sans-serif;
        font-size: 1.25rem;
        font-weight: 800;
        margin: 0 0 0.4rem;
        text-align: center;
    }
    body.kx-app .kx-desk-checker-card > p {
        text-align: center;
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.45);
        margin: 0 0 1.5rem;
    }
    body.kx-app .kx-desk-checker-form label {
        display: block;
        margin-bottom: 0.4rem;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(200, 245, 66, 0.65);
    }
    body.kx-app .kx-desk-checker-form .form-control { margin-bottom: 1rem; }
    body.kx-app .kx-desk-checker-alert {
        margin-top: 1.1rem;
        padding: 0.85rem 1rem;
        border-radius: 0.85rem;
        text-align: center;
        font-size: 0.875rem;
    }
    body.kx-app .kx-desk-checker-alert.is-error {
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.28);
        color: #fca5a5;
    }
    body.kx-app .kx-desk-checker-result {
        margin-top: 1.25rem;
        padding: 1rem;
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(200, 245, 66, 0.14);
        display: grid;
        gap: 0.7rem;
    }
    body.kx-app .kx-desk-checker-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        font-size: 0.875rem;
    }
    body.kx-app .kx-desk-checker-row span:first-child { color: rgba(255, 255, 255, 0.4); }
    body.kx-app .kx-desk-checker-row.is-win {
        padding-top: 0.7rem;
        border-top: 1px solid rgba(200, 245, 66, 0.15);
    }
    body.kx-app .kx-desk-checker-row.is-win strong {
        font-family: 'Orbitron', sans-serif;
        font-size: 1.1rem;
        color: var(--kx-primary);
    }

    /* ── Profile dashboard ── */
    body.kx-app .kx-desk-profile {
        padding: 1.75rem 0 3.5rem;
        max-width: 88rem;
        margin: 0 auto;
    }
    body.kx-app .kx-desk-profile .kx-profile-wrap {
        max-width: none !important;
        width: 100%;
        margin: 0;
        padding: 0;
        display: grid !important;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 1rem;
        align-items: start;
        flex-direction: unset;
    }
    body.kx-app .kx-desk-profile .kx-profile-head-card,
    body.kx-app .kx-desk-profile .kx-desk-profile-identity {
        grid-column: 1 / -1;
        padding: 1.35rem 1.5rem;
        border-radius: 1.25rem;
        background: linear-gradient(135deg, rgba(14, 24, 10, 0.96), rgba(8, 12, 6, 0.94));
        border: 1px solid rgba(200, 245, 66, 0.16);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    }
    body.kx-app .kx-desk-profile .kx-profile-card,
    body.kx-app .kx-desk-profile .kx-profile-vip,
    body.kx-app .kx-desk-profile .kx-profile-wallet,
    body.kx-app .kx-desk-profile .kx-profile-lottery-tickets {
        border-radius: 1.15rem;
        background: rgba(10, 18, 8, 0.8);
        border: 1px solid rgba(200, 245, 66, 0.12);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
        max-width: none;
    }
    body.kx-app .kx-desk-profile .kx-desk-profile-vip {
        min-height: 100%;
    }
    body.kx-app .kx-desk-profile .kx-desk-profile-wallet {
        min-height: 100%;
    }
    body.kx-app .kx-desk-profile .kx-profile-quick {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
    }
    body.kx-app .kx-desk-profile .kx-profile-quick-item {
        border-radius: 1rem;
        background: rgba(10, 18, 8, 0.75);
        border: 1px solid rgba(200, 245, 66, 0.12);
        transition: transform 0.2s, border-color 0.2s;
    }
    body.kx-app .kx-desk-profile .kx-profile-quick-item:hover {
        transform: translateY(-2px);
        border-color: rgba(200, 245, 66, 0.4);
    }
    body.kx-app .kx-desk-profile .kx-profile-lottery-tickets {
        grid-column: 1 / -1;
    }
    body.kx-app .kx-desk-profile .kx-profile-wallet-btns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    body.kx-app .kx-desk-games.games-grid,
    body.kx-app .kx-desk-casino .casino-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    body.kx-app .kx-desk-actions-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    body.kx-app .kx-desk-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    body.kx-app .kx-desk-footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) and (max-width: 1100px) {
    body.kx-app .kx-desk-draws.draws-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    /* ── Desktop landing page extras ── */
    body.kx-app .kx-desk-landing .kx-desk-panel { margin-bottom: 2.5rem; }
    body.kx-app .kx-desk-landing-stats {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
        margin: 0.25rem 0 2.5rem;
    }
    body.kx-app .kx-desk-landing-stat {
        padding: 1.35rem 1.15rem;
        border-radius: 1.15rem;
        text-align: center;
        background: rgba(10, 18, 8, 0.72);
        border: 1px solid rgba(200, 245, 66, 0.14);
    }
    body.kx-app .kx-desk-landing-stat strong {
        display: block;
        font-family: 'Orbitron', sans-serif;
        font-size: 1.35rem;
        font-weight: 900;
        color: var(--kx-primary);
        margin-bottom: 0.3rem;
    }
    body.kx-app .kx-desk-landing-stat span {
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.42);
    }
    body.kx-app .kx-desk-promo-band {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin: 0 0 2rem;
    }
    body.kx-app .kx-desk-promo-card {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        padding: 1.75rem 1.85rem;
        border-radius: 1.25rem;
        overflow: hidden;
        text-decoration: none;
        color: #fff;
        border: 1px solid rgba(200, 245, 66, 0.16);
        min-height: 10rem;
        transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    }
    body.kx-app .kx-desk-promo-card:hover {
        transform: translateY(-3px);
        border-color: rgba(200, 245, 66, 0.4);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    }
    body.kx-app .kx-desk-promo-lottery {
        background:
            radial-gradient(ellipse at 90% 20%, rgba(200, 245, 66, 0.22), transparent 50%),
            linear-gradient(135deg, #0d1a0c, #061008);
    }
    body.kx-app .kx-desk-promo-casino {
        background:
            radial-gradient(ellipse at 90% 20%, rgba(232, 185, 35, 0.22), transparent 50%),
            linear-gradient(135deg, #1a1408, #0a0804);
    }
    body.kx-app .kx-desk-promo-eyebrow {
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(200, 245, 66, 0.75);
    }
    body.kx-app .kx-desk-promo-casino .kx-desk-promo-eyebrow { color: rgba(232, 185, 35, 0.85); }
    body.kx-app .kx-desk-promo-card strong {
        font-family: 'Orbitron', sans-serif;
        font-size: 1.35rem;
        font-weight: 800;
    }
    body.kx-app .kx-desk-promo-card > span:not(.kx-desk-promo-eyebrow) {
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: auto;
    }
    body.kx-app .kx-desk-promo-card em {
        margin-top: 0.75rem;
        font-style: normal;
        font-size: 0.8rem;
        font-weight: 800;
        color: var(--kx-primary);
    }
    body.kx-app .kx-desk-promo-casino em { color: var(--kx-gold); }
    body.kx-app .kx-desk-home-categories { display: block; }
    body.kx-app .kx-desk-cat-section { margin-bottom: 1.75rem; }
    body.kx-app .kx-desk-casino-grid.casino-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.9rem;
        padding-bottom: 0;
    }
    @media (min-width: 1280px) {
        body.kx-app .kx-desk-casino-grid.casino-grid {
            grid-template-columns: repeat(8, minmax(0, 1fr));
        }
    }
    body.kx-app .kx-desk-casino-grid .glass-card {
        border-radius: 1rem;
        background: rgba(10, 18, 8, 0.78);
    }
    body.kx-app .kx-desk-casino-grid .glass-card:hover {
        border-color: rgba(200, 245, 66, 0.4);
    }
    body.kx-app .kx-desk-live-shell {
        border-radius: 1.25rem;
        border: 1px solid rgba(200, 245, 66, 0.14);
        background: rgba(8, 14, 6, 0.85);
        overflow: hidden;
    }
    body.kx-app .kx-desk-live-tabs {
        display: flex;
        gap: 0.4rem;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid rgba(200, 245, 66, 0.1);
        flex-wrap: wrap;
    }
    body.kx-app .kx-desk-live-tab {
        padding: 0.45rem 0.9rem;
        border-radius: 999px;
        border: 1px solid rgba(200, 245, 66, 0.16);
        background: transparent;
        color: rgba(255, 255, 255, 0.55);
        font-size: 0.75rem;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    body.kx-app .kx-desk-live-tab.is-active,
    body.kx-app .kx-desk-live-tab.active {
        background: linear-gradient(135deg, var(--kx-primary), var(--kx-primary-dark));
        color: #0a1408;
        border-color: transparent;
    }
    body.kx-app .kx-desk-live-table { padding: 0.5rem 0 0.75rem; }
    body.kx-app .kx-desk-live-head {
        display: grid;
        grid-template-columns: 1.4fr 1fr 0.7fr;
        gap: 0.75rem;
        padding: 0.5rem 1.15rem;
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(200, 245, 66, 0.55);
    }
    body.kx-app .kx-desk-live-scroll {
        max-height: 18rem;
        overflow-y: auto;
        padding: 0 0.5rem 0.5rem;
    }
    body.kx-app .kx-desk-live-bets .app-live-bet-row {
        display: grid;
        grid-template-columns: 1.4fr 1fr 0.7fr;
        gap: 0.75rem;
        align-items: center;
        padding: 0.7rem 0.65rem;
        margin: 0 0.25rem 0.35rem;
        border-radius: 0.75rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.04);
    }
    body.kx-app .kx-desk-live-bets .app-live-bet-game {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        min-width: 0;
    }
    body.kx-app .kx-desk-live-bets .app-live-bet-game-img,
    body.kx-app .kx-desk-live-bets .app-live-bet-game-fallback {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 0.45rem;
        object-fit: cover;
        flex-shrink: 0;
        background: rgba(200, 245, 66, 0.08);
    }
    body.kx-app .kx-desk-live-bets .app-live-bet-game-name,
    body.kx-app .kx-desk-live-bets .app-live-bet-player {
        font-size: 0.8rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.kx-app .kx-desk-live-bets .app-live-bet-profit {
        font-size: 0.8rem;
        font-weight: 800;
        text-align: right;
        color: var(--kx-primary);
    }
    body.kx-app .kx-desk-final-cta {
        margin: 1rem 0 2.5rem;
        border-radius: 1.5rem;
        overflow: hidden;
        border: 1px solid rgba(200, 245, 66, 0.18);
        background:
            radial-gradient(ellipse at 30% 0%, rgba(200, 245, 66, 0.16), transparent 55%),
            linear-gradient(160deg, #0c160a, #050805);
    }
    body.kx-app .kx-desk-final-cta-inner {
        padding: 2.75rem 2.5rem;
        text-align: center;
        max-width: 40rem;
        margin: 0 auto;
    }
    body.kx-app .kx-desk-final-cta-inner h2 {
        font-family: 'Orbitron', sans-serif;
        font-size: clamp(1.6rem, 2.5vw, 2.25rem);
        font-weight: 900;
        margin: 0.35rem 0 0.75rem;
    }
    body.kx-app .kx-desk-final-cta-inner > p:not(.kx-desk-brand-mark) {
        color: rgba(255, 255, 255, 0.55);
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }
    body.kx-app .kx-desk-final-cta .kx-desk-home-hero-ctas {
        justify-content: center;
    }
}
