/* ===== KODEN CASINO — LUXURY DARK CASINO DESIGN SYSTEM (STAKE/ROOBET VIBE) ===== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
    --bg-main: #0b0c10;
    --bg-card: #12141c;
    --bg-panel: #181b24;
    --bg-input: #0e1017;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(139, 92, 246, 0.4);
    --neon-purple: #8b5cf6;
    --neon-purple-glow: rgba(139, 92, 246, 0.35);
    --neon-green: #00e701;
    --neon-green-glow: rgba(0, 231, 1, 0.3);
    --gold: #fbbf24;
    --gold-glow: rgba(251, 191, 36, 0.35);
    --danger-red: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.3);
}

* {
    box-sizing: border-box;
}

body, button, input, select, textarea, .font-sans {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: #e2e8f0;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

/* Hard safeguard: mobile bottom navigation bar & drawer are strictly hidden on desktop */
#koden-mobile-bottom-nav,
#mobile-games-drawer {
    display: none !important;
}

/* ===== HIGH END CASINO SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

/* ===== LUXURY GLASS & CARD EFFECTS ===== */
.koden-glass {
    background: rgba(18, 20, 28, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
}

.koden-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== MODERN GAME TILES (STAKE/ROOBET STYLE) ===== */
.game-card-stake {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #141722;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.game-card-stake:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--neon-purple-glow);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px var(--neon-purple-glow);
}

.game-card-stake::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(10,12,18,0.95) 100%);
    pointer-events: none;
}

/* Badges */
.badge-original {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.85);
    color: white;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.badge-rtp {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    font-size: 8px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--neon-green);
    backdrop-filter: blur(8px);
}

/* ===== MODERN BETTING CONTROLS ===== */
.chip-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px dashed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.7rem;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), filter 0.15s;
    flex-shrink: 0;
    user-select: none;
}
.chip-btn:hover {
    transform: scale(1.15) translateY(-2px);
    filter: brightness(1.25);
}
.chip-btn:active {
    transform: scale(0.92);
}

/* Bet quick multiplier buttons (1/2, 2x, Max) */
.bet-pill-btn {
    height: 38px;
    padding: 0 12px;
    background: #181b24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #94a3b8;
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.bet-pill-btn:hover {
    background: #222634;
    color: white;
    border-color: rgba(255, 255, 255, 0.18);
}
.bet-pill-btn:active {
    transform: scale(0.95);
}

/* Primary Casino CTA Button */
.btn-casino-primary {
    background: linear-gradient(135deg, #00e701 0%, #00b301 100%);
    color: #052e05;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 25px rgba(0, 231, 1, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-casino-primary:hover:not(:disabled) {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 231, 1, 0.55);
}
.btn-casino-primary:active:not(:disabled) {
    transform: scale(0.97);
}

/* Balance Glow */
.balance-display {
    color: var(--gold) !important;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
}

/* Animation Pulses */
@keyframes neonPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.03); }
}
.animate-neon-pulse {
    animation: neonPulse 2s infinite ease-in-out;
}

/* Live Ticker Bar */
.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.ticker-move {
    display: inline-block;
    animation: tickerLoop 30s linear infinite;
}
@keyframes tickerLoop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Notification toasts */
.notification {
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== LUXURY RANK SHIMMER & GLOW ===== */
@keyframes rankShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.rank-shimmer {
    background-size: 200% auto;
    animation: rankShimmer 3s linear infinite;
}

@keyframes rankPulseGlow {
    0%, 100% {
        box-shadow: 0 0 8px currentColor;
        opacity: 0.9;
    }
    50% {
        box-shadow: 0 0 18px currentColor, 0 0 25px currentColor;
        opacity: 1;
    }
}

.rank-glow-pulse {
    animation: rankPulseGlow 2.2s infinite ease-in-out;
}

/* ===== VIP CLUB NEON & LUXURY STYLING ===== */
@keyframes neonGoldGlow {
    0%, 100% {
        color: #fbbf24;
        text-shadow: 0 0 2px #fff, 0 0 5px #fbbf24, 0 0 10px #f59e0b, 0 0 15px rgba(245, 158, 11, 0.5);
    }
    50% {
        color: #fffbeb;
        text-shadow: 0 0 2px #fff, 0 0 6px #fde047, 0 0 12px #eab308, 0 0 18px rgba(234, 179, 8, 0.65);
    }
}

@keyframes neonLifetimeGlow {
    0%, 100% {
        color: #f472b6;
        text-shadow: 0 0 2px #fff, 0 0 5px #f472b6, 0 0 11px #c084fc, 0 0 16px rgba(192, 132, 252, 0.55);
    }
    50% {
        color: #ffffff;
        text-shadow: 0 0 2px #fff, 0 0 6px #fbcfe8, 0 0 13px #e879f9, 0 0 18px rgba(236, 72, 153, 0.7);
    }
}

.vip-neon-gold {
    display: inline-block;
    color: #fbbf24 !important;
    font-weight: 900;
    font-size: inherit;
    letter-spacing: 0.04em;
    padding: 0 2px;
    overflow: visible !important;
    text-shadow: 0 0 2px #fff, 0 0 5px #fbbf24, 0 0 10px #f59e0b, 0 0 15px rgba(245, 158, 11, 0.5);
    animation: neonGoldGlow 2.4s infinite ease-in-out;
}

.vip-neon-lifetime {
    display: inline-block;
    color: #f472b6 !important;
    font-weight: 900;
    font-size: inherit;
    letter-spacing: 0.05em;
    padding: 0 2px;
    overflow: visible !important;
    text-shadow: 0 0 2px #fff, 0 0 5px #f472b6, 0 0 11px #c084fc, 0 0 16px rgba(192, 132, 252, 0.55);
    animation: neonLifetimeGlow 2.8s infinite ease-in-out;
}

.vip-crown-icon {
    font-size: 10px;
    display: inline-block;
    filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.7));
    animation: crownFloat 2s ease-in-out infinite alternate;
}

@keyframes crownFloat {
    0% { transform: translateY(0) rotate(-4deg); }
    100% { transform: translateY(-2px) rotate(4deg); }
}

.vip-neon-tag {
    font-size: 6.5px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1px 4.5px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #0b0c10;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 5px rgba(245, 158, 11, 0.35);
}

.vip-neon-tag.lifetime {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.4);
}

.vip-border-neon {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.25), inset 0 0 15px rgba(245, 158, 11, 0.1);
}