:root {
    /* Color Palette - Premium Dark Neon Casino */
    --bg-dark: #05070a;
    --bg-panel: #0b0f14;
    --bg-sidebar: #080a0d;
    
    --neon-green: #00ff9c;
    --neon-green-dim: rgba(0, 255, 156, 0.4);
    --danger-red: #ff3c3c;
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    
    --accent-glow: 0 0 25px rgba(0, 255, 156, 0.4);
    --soft-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.9);
    --border-glow: 0 0 15px rgba(0, 255, 156, 0.2);
    
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --transition-speed: 0.35s;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --dashboard-width: 340px;

    /* Game Theme Variables */
    --tile-bg: linear-gradient(145deg, #131a20, #090c0f);
    --tile-border: rgba(255, 255, 255, 0.04);
    --tile-glow: rgba(0, 255, 156, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

h1, h2, h3, .logo-text { font-family: 'Outfit', sans-serif; }

.app-container { display: flex; height: 100vh; width: 100vw; }

/* Sidebar Refinement */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--glass-border);
    display: flex; flex-direction: column;
    z-index: 100;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.sidebar.collapsed {
    width: 0;
    min-width: 0;
    border-right-color: transparent;
}

.sidebar.collapsed .sidebar-header {
    position: fixed;
    top: 20px;
    left: 20px;
    width: auto;
    height: auto;
    border: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    z-index: 210;
}

.sidebar.collapsed .logo-wrapper {
    opacity: 1 !important;
    width: auto !important;
    pointer-events: auto !important;
}

.sidebar.collapsed .logo-image {
    width: 34px;
    height: 34px;
}

.sidebar.collapsed .logo-text {
    font-size: 1.1rem;
}

.sidebar.collapsed .discord-tag {
    font-size: 0.55rem;
}

.sidebar.collapsed .sidebar-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-40px);
}

.sidebar-header {
    height: 120px;
    display: flex; align-items: center; justify-content: center; /* Centered */
    padding: 0 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo { display: flex; align-items: center; gap: 16px; }
.logo-image { width: 46px; height: 46px; filter: drop-shadow(0 0 12px var(--neon-green)); }
.logo-wrapper { 
    display: flex; flex-direction: column; 
    transition: opacity 0.3s ease;
}
.sidebar.collapsed .logo-wrapper { opacity: 0; pointer-events: none; width: 0; }

.logo-text { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.5px; white-space: nowrap; }
.logo-text span { color: var(--neon-green); text-shadow: 0 0 15px rgba(0, 255, 156, 0.6); }

.discord-tag {
    font-size: 0.7rem; color: var(--neon-green); opacity: 0.6;
    font-weight: 700; letter-spacing: 0.5px; margin-top: -4px;
    white-space: nowrap;
}

.sidebar-nav { flex: 1; padding: 0 16px; }

.nav-item {
    display: flex; align-items: center;
    padding: 16px 24px; margin-bottom: 8px;
    border-radius: 12px; cursor: pointer;
    color: var(--nav-inactive);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; font-size: 0.9rem;
    position: relative;
}

.nav-item:hover { color: #fff; padding-left: 32px; background: rgba(255, 255, 255, 0.02); }
.nav-item.active { color: var(--neon-green); background: linear-gradient(90deg, rgba(0, 255, 156, 0.1) 0%, transparent 100%); }
.nav-item.active::before {
    content: ''; position: absolute; left: 0; top: 20%; height: 60%;
    width: 4px; background: var(--neon-green); border-radius: 0 4px 4px 0;
    box-shadow: 0 0 15px var(--neon-green);
}

.nav-item .nav-label {
    transition: opacity 0.3s ease, margin-left 0.3s ease;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 16px;
}

.sidebar.collapsed .nav-item .nav-label {
    opacity: 0;
    margin-left: -20px;
    position: absolute;
    pointer-events: none;
}

.sidebar.collapsed .nav-item:hover {
    padding-left: 16px;
}

.sidebar-footer { 
    padding: 30px 20px; 
    border-top: 1px solid var(--glass-border); 
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-footer {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: auto;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    z-index: 200;
    opacity: 1;
}

.min-bet-indicator { 
    font-size: 0.8rem; 
    font-weight: 800; 
    color: var(--text-secondary); 
    opacity: 0.4; 
    letter-spacing: 1px;
    white-space: nowrap;
}

.sidebar-toggle {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 105;
}

.sidebar.collapsed .sidebar-toggle {
    position: static;
    transform: rotate(180deg);
}

.sidebar.collapsed .min-bet-indicator {
    display: block !important;
    opacity: 0.8;
    order: 2;
}
.jackpot-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.toggle-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input { display: none; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #1a1f26;
    transition: .4s;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-secondary);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--neon-green);
    border-color: var(--neon-green);
}

input:checked + .slider:before {
    transform: translateX(16px);
    background-color: #000;
}

/* Main Content centering */
.main-content {
    flex: 1;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 156, 0.04) 0%, transparent 70%);
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding: 20px;
    overflow-y: auto;
}

/* Turn Indicator Styling */
.turn-indicator { width: 100%; margin-bottom: 20px; display: flex; justify-content: center; z-index: 50; }
.turn-info { text-align: center; width: 100%; max-width: 600px; }

.waiting-state { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pay-cmd { font-size: 1.8rem; font-weight: 900; color: var(--neon-green); text-shadow: 0 0 20px rgba(0, 255, 156, 0.6); letter-spacing: 4px; text-transform: uppercase; }
.waiting-msg { font-size: 0.75rem; font-weight: 800; color: var(--text-secondary); letter-spacing: 3px; text-transform: uppercase; opacity: 0.6; }

.active-state { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.player-header { display: flex; align-items: center; gap: 12px; }
.player-header h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; color: #fff; }
.player-avatar { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--neon-green); box-shadow: 0 0 15px rgba(0, 255, 156, 0.3); image-rendering: pixelated; }

.multiplier-info { display: flex; gap: 12px; }
.mult-card {
    background: rgba(15, 20, 25, 0.95); border: 1px solid var(--glass-border); padding: 8px 16px;
    border-radius: 12px; display: flex; flex-direction: column; min-width: 140px;
    box-shadow: var(--soft-shadow);
}
.mult-label { font-size: 0.55rem; color: var(--text-secondary); font-weight: 800; letter-spacing: 1.5px; margin-bottom: 2px; }
.mult-value { font-size: 1.1rem; font-weight: 800; color: var(--neon-green); }

.v-hidden, .hidden { display: none !important; }

.flash-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
}

.flash-animate {
    display: flex !important;
    animation: flashFade 2s forwards;
}

@keyframes flashFade {
    0% { opacity: 0; background: rgba(0, 255, 156, 0.4); }
    10% { opacity: 1; background: rgba(0, 255, 156, 0.2); }
    100% { opacity: 0; background: transparent; }
}

.flash-content {
    font-size: 8rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    text-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: flashPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes flashPop {
    0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Utility Bar - Random Pick & Outside Spot */
.game-utility-bar {
    width: 500px; 
    display: flex; 
    justify-content: space-between;
    margin-bottom: 10px;
    z-index: 40;
}

.utility-btn.outside {
    border-color: rgba(255, 255, 255, 0.05);
}

.utility-btn.outside:hover {
    border-color: var(--neon-green-dim);
    color: var(--neon-green);
    background: rgba(0, 255, 156, 0.05);
}

.utility-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.utility-btn:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Game Stage */
.game-stage {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 440px;
    margin: auto 0;
    z-index: 10;
    transition: opacity 0.3s ease;
}

/* Playing-now badge on top of game */
.playing-ign-badge {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 300;
    pointer-events: none;
    animation: badgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes badgePop {
    0% { transform: scale(0.8) translateY(-10px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.playing-ign-badge img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.playing-ign-badge span {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Actions Bar - Cashout Spot */
.game-actions-bar {
    margin-top: 20px;
    width: 100%;
    display: flex; justify-content: center;
    z-index: 50;
}

.control-btn.cashout {
    background: linear-gradient(145deg, #0b2a18, #05070a);
    border: 1px solid var(--neon-green-dim);
    color: #fff;
    padding: 12px 30px; /* Smaller padding */
    border-radius: 16px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    min-width: 180px; /* Smaller min-width */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    position: relative; overflow: hidden;
}

.control-btn.cashout .btn-main { font-size: 0.95rem; letter-spacing: 1.5px; text-transform: uppercase; }
.control-btn.cashout .btn-sub { font-size: 0.75rem; color: var(--neon-green); font-weight: 800; letter-spacing: 0.5px; }

.control-btn.cashout:hover {
    transform: translateY(-8px) scale(1.02);
    background: var(--neon-green);
    box-shadow: 0 0 50px rgba(0, 255, 156, 0.6);
}

.control-btn.cashout:hover .btn-main, 
.control-btn.cashout:hover .btn-sub { color: #000; }

/* Mines Grid Styling */
.mines-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.mines-config {
    width: 100%;
    max-width: 440px;
    background: rgba(0, 0, 0, 0.4);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.config-label {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.config-label .highlight {
    color: var(--neon-green);
    font-size: 0.95rem;
}

.mines-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin-bottom: 5px;
}

.mines-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--neon-green);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 156, 0.5);
    transition: transform 0.2s ease;
}

.mines-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.mines-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 12px; background: var(--bg-panel);
    padding: 20px; border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--soft-shadow);
    margin: 0 auto;
}

.mine-tile {
    width: 76px; height: 76px;
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex; align-items: center; justify-content: center;
    perspective: 1000px;
}

.mine-tile:hover { transform: scale(1.04); border-color: var(--neon-green); box-shadow: 0 0 15px var(--tile-glow); }

.mine-tile.cascade-fade {
    animation: cascadeTileOut 0.4s ease-out forwards;
}

.tile-inner { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    transform-style: preserve-3d; 
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
}

.tile-flipped .tile-inner { 
    transform: rotateY(180deg) scale(1.05);
    animation: flipPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes flipPop {
    0% { transform: rotateY(0deg) scale(1); }
    100% { transform: rotateY(180deg) scale(1.05); }
}

.tile-front, .tile-back {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden;
    border-radius: 17px;
}

.tile-back.bomb-hit {
    background: rgba(255, 60, 60, 0.2) !important;
    border: 2px solid #ff3c3c;
    box-shadow: 0 0 40px rgba(255, 60, 60, 0.6);
    animation: bombPulse 1s infinite alternate;
}

@keyframes bombPulse {
    from { box-shadow: 0 0 20px rgba(255, 60, 60, 0.4); }
    to { box-shadow: 0 0 50px rgba(255, 60, 60, 0.8); }
}

.tile-front {
    font-size: 1.8rem; font-weight: 900;
    color: var(--nav-inactive);
    font-family: 'Outfit', sans-serif;
    pointer-events: none;
    display: flex; align-items: center; justify-content: center; /* Centered */
    width: 100%; height: 100%;
}

.tile-back { transform: rotateY(180deg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tile-back img { width: 50%; height: 50%; object-fit: contain; }

/* Dashboard Panel (Right) */
.dashboard-panel {
    width: var(--dashboard-width);
    background-color: var(--bg-sidebar);
    border-left: 1px solid var(--glass-border);
    display: flex; flex-direction: column;
}

.panel-section { flex: 1; display: flex; flex-direction: column; padding: 40px 24px; min-height: 50%; }
.panel-section:first-child { border-bottom: 1px solid var(--glass-border); }
.panel-section h3 { font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 4px; margin-bottom: 15px; font-weight: 800; text-align: center; }

.list-container { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }

.info-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--glass-border);
    padding: 6px 10px; border-radius: 8px;
    display: flex; justify-content: space-between; align-items: center;
    transition: all 0.3s ease;
}

.info-card:hover { border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); transform: translateX(-4px); }
.username { font-weight: 600; font-size: 0.75rem; color: #fff; }
.amount { color: var(--neon-green); font-weight: 900; font-size: 0.75rem; }

.mini-avatar { width: 18px; height: 18px; border-radius: 3px; border: 1px solid var(--neon-green-dim); margin-right: 8px; }
.user-info { display: flex; align-items: center; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }

/* Blackjack Styling - Professional "Human-Made" Casino Look */
.blackjack-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 680px;
    background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-dark) 100%);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8), inset 0 2px 10px rgba(255, 255, 255, 0.02);
    overflow: hidden;
    position: relative;
    animation: shuffleFade 0.6s ease-out;
}

@keyframes shuffleFade {
    0% { opacity: 0; transform: scale(0.98) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.bj-arena {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 35px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    min-height: 220px; /* Prevent dealers cards from jumping when player hand changes */
}

.dealer-side {
    background: radial-gradient(circle at top, var(--tile-glow) 0%, transparent 70%);
}

.player-side {
    background: radial-gradient(circle at bottom, var(--tile-glow) 0%, transparent 70%);
}

.bj-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.side-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.arena-label {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--text-secondary);
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0.4;
}

.bj-score {
    background: var(--bg-dark);
    border: 2px solid var(--tile-border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.bj-score.highlight {
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 156, 0.6);
}

.cards-container {
    display: block; /* Absolute children base */
    width: 200px; /* Room for ~5 cards */
    height: 120px;
    margin: 0 auto 20px auto;
    perspective: 1000px;
    position: relative;
}

.card {
    width: 80px;
    height: 110px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.card.flipped {
    transform: rotateY(180deg) !important;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

.card-front {
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Outfit', sans-serif;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.card-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.9;
    font-weight: 800;
}

.card-rank-tl { align-self: flex-start; }
.card-rank-br { 
    align-self: flex-end; 
    transform: rotate(180deg);
}

.rank-char { font-size: 0.9rem; }
.suit-char { font-size: 0.8rem; }

.center-suit {
    font-size: 2.2rem;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    pointer-events: none;
}

.card-back {
    background: var(--bg-dark) !important;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 15px var(--tile-glow);
    transform: rotateY(180deg);
}

.card-logo {
    width: 65%;
    filter: drop-shadow(0 0 8px var(--neon-green));
}

.bj-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Match Premium Buttons */
.bj-btn {
    background: #0f171e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 110px;
    text-transform: uppercase;
}

.bj-btn:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

.bj-btn.hit {
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 156, 0.2);
}

.bj-btn.hit:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 40px rgba(0, 255, 156, 0.8);
}

.bj-btn.stand {
    border-color: #ffffff;
    color: #ffffff;
}

.bj-btn.stand:hover {
    background: #ffffff;
    color: #000;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
}

.score-badge {
    position: absolute;
    top: -45px;
    background: #05070a;
    border: 1px solid var(--neon-green);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 156, 0.3);
    z-index: 10;
}

@keyframes dealCard {
    0% { 
        transform: translate(400px, -300px) rotate(15deg) scale(0.4);
        opacity: 0; 
    }
    100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1; 
    }
}

.card-deal-anim {
    animation: dealCard 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.card.flipped.card-deal-anim {
    animation: dealCardFlipped 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes dealCardFlipped {
    0% { 
        transform: translate(400px, -300px) rotate(15deg) scale(0.4) rotateY(180deg);
        opacity: 0; 
    }
    100% { 
        transform: translate(0, 0) rotate(0deg) scale(1) rotateY(180deg);
        opacity: 1; 
    }
}

@media (max-width: 1400px) { :root { --sidebar-width: 220px; --dashboard-width: 300px; } }
@media (max-width: 1200px) { .dashboard-panel { display: none; } }

/* Split Button & Card Fixes */
.bj-btn.split {
    border-color: #3498db;
    color: #3498db;
}

.bj-btn.split:hover {
    background: #3498db;
    color: #fff;
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.4);
}

.flipped {
    transform: rotateY(180deg) !important;
}

.v-hidden {
    display: none !important;
}

.card {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* Game Container Logic */
.game-container {
    position: relative;
}

/* Flash Overlay */
.flash-overlay {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
}

.flash-content {
    font-size: 8rem;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
}

.flash-img {
    width: 200px;
    height: 200px;
}

.flash-animate {
    animation: flashIn 1s cubic-bezier(0.17, 0.89, 0.32, 1.49) forwards;
}

@keyframes flashIn {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-45deg); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.2) rotate(10deg); opacity: 1; }
    80% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Towers Game Styles */
.towers-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.towers-header {
    margin-bottom: 12px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.towers-modes {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mode-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mode-btn.active {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 156, 0.4);
}

.towers-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: 250px; /* Reduced for better fit */
    background: rgba(0, 0, 0, 0.4);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.towers-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0;
    transition: all 0.4s ease;
}

.towers-row.cascade-fade .towers-tile {
    animation: cascadeTileOut 0.4s ease-out forwards;
}

@keyframes cascadeTileOut {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

.towers-row.active {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}

.towers-row.locked {
    opacity: 0.2;
    pointer-events: none;
    filter: blur(1px);
}

.towers-row.passed {
    opacity: 0.5;
    pointer-events: none;
}

.towers-tile {
    aspect-ratio: 1 / 1;
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.towers-tile:hover {
    background: var(--bg-panel);
    border-color: var(--neon-green-dim);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--tile-glow);
}

.tile-val {
    font-size: 0.6rem;
    font-weight: 800;
    color: #fff;
    opacity: 0.9;
}

.tile-amt {
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--neon-green);
    opacity: 0.7;
    margin-top: 1px;
}

.towers-tile.safe {
    background: rgba(0, 255, 156, 0.1);
    border-color: var(--neon-green);
    animation: tilePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.towers-tile.bomb {
    background: rgba(255, 60, 60, 0.1);
    border-color: #ff3c3c;
    animation: shake 0.4s ease-in-out;
}

.towers-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- COINFLIP STYLING --- */
.coinflip-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 500px;
}

.coinflip-header h2 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
    font-weight: 800;
}

.coin-stage {
    perspective: 1000px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.coin {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.coin-face img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.coin-front {
    /* Emerald Face */
    background: radial-gradient(circle, #0a1f10 0%, #000 100%);
    border-color: var(--neon-green);
    box-shadow: inset 0 0 20px rgba(0, 255, 156, 0.2);
}

.coin-front img {
    filter: drop-shadow(0 0 15px rgba(0, 255, 156, 0.5));
}

.coin-back {
    /* Diamond Face */
    transform: rotateY(180deg);
    background: radial-gradient(circle, #0a1622 0%, #000 100%);
    border-color: #3bf1ff;
    box-shadow: inset 0 0 20px rgba(59, 241, 255, 0.2);
}

.coin-back img {
    filter: drop-shadow(0 0 15px rgba(59, 241, 255, 0.5));
}

.coinflip-controls {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.cf-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    background: #090c0f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1.5px;
    min-width: 180px;
}

.cf-btn img {
    width: 24px;
    height: 24px;
}

.cf-btn:hover {
    transform: translateY(-5px);
}

.cf-emerald:hover {
    border-color: var(--neon-green);
    box-shadow: 0 10px 30px rgba(0, 255, 156, 0.2);
    background: rgba(0, 255, 156, 0.05);
}

.cf-diamond:hover {
    border-color: #3bf1ff;
    box-shadow: 0 10px 30px rgba(59, 241, 255, 0.2);
    background: rgba(59, 241, 255, 0.05);
}

/* --- HILO STYLING --- */
.hilo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 500px;
}

.hilo-header h2 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 4px;
    font-weight: 800;
}

.hilo-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    position: relative;
    width: 100%;
}

.hilo-controls {
    display: flex;
    gap: 20px;
    width: 100%;
}

.hilo-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: var(--tile-bg);
    border: 1px solid var(--tile-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.hilo-btn:hover:not(:disabled) {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 10px 30px rgba(0, 255, 156, 0.2);
    background: rgba(0, 255, 156, 0.05);
}

.hilo-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.hl-main {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
}

.hl-sub {
    font-size: 1.1rem;
    color: var(--neon-green);
    font-weight: 800;
}

.hl-lower:hover:not(:disabled) {
    border-color: var(--danger-red);
    box-shadow: 0 10px 30px rgba(255, 60, 60, 0.2);
    background: rgba(255, 60, 60, 0.05);
}

.hl-lower .hl-sub {
    color: var(--danger-red);
}


.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.action-btn.cashout {
    background: var(--neon-green);
    color: #000;
    border: none;
    box-shadow: 0 0 30px rgba(0, 255, 156, 0.3);
}

.action-btn.cashout:hover {
    box-shadow: 0 0 50px rgba(0, 255, 156, 0.5);
    transform: translateY(-2px) scale(1.02);
}

@keyframes tilePop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}
/* --- CHICKEN GAME STYLING (Enhanced) --- */
.chicken-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.chicken-viewbox {
    width: 100%;
    max-width: 800px;
    height: 380px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #0a0d11;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.6), 0 20px 40px rgba(0,0,0,0.3);
    scroll-behavior: smooth;
}

.chicken-viewbox::-webkit-scrollbar { display: none; }
.chicken-viewbox { -ms-overflow-style: none; scrollbar-width: none; }

.chicken-road {
    display: flex;
    align-items: center;
    padding: 0 100px;
    min-width: 100%;
    height: 100%;
    position: relative;
    background-image: 
        linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.03) 95%),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 80px 100%, 100% 40px;
}

.road-markings {
    position: absolute;
    top: 50%;
    left: 0;
    width: 10000px;
    height: 4px;
    background: repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.1) 40px, rgba(255,255,255,0.1) 80px);
    transform: translateY(-50%);
    pointer-events: none;
}

.chicken-layer {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    height: 100%;
    min-width: 120px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.chicken-layer.active {
    background: linear-gradient(180deg, transparent, rgba(0, 255, 156, 0.05), transparent);
    transform: scale(1.05);
}

.chicken-island {
    width: 80px;
    height: 80px;
    background: #161b22;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,255,255,0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 5;
}

.chicken-island:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--neon-green-dim);
    box-shadow: 0 15px 30px var(--tile-glow);
}

.chicken-island.safe-revealed {
    background: rgba(0, 255, 156, 0.1);
    border-color: var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green-dim);
}

.chicken-island.falling {
    animation: islandFall 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

.island-mult {
    font-size: 0.9rem;
    font-weight: 900;
    color: #fff;
    opacity: 0.8;
}

.chicken-start-pad {
    min-width: 60px;
    height: 180px;
    background: rgba(255,255,255,0.03);
    border-radius: 30px;
    border: 2px dashed rgba(255,255,255,0.1);
    margin-right: 40px;
    flex-shrink: 0;
}

.chicken-token {
    position: absolute;
    width: 64px;
    height: 64px;
    z-index: 50;
    transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1), 
                top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    pointer-events: none;
}

.chicken-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    position: relative;
    z-index: 52;
    transform: scaleX(-1);
}

.chicken-shadow {
    position: absolute;
    bottom: -5px;
    left: 10%;
    width: 80%;
    height: 10px;
    background: rgba(0,0,0,0.4);
    filter: blur(5px);
    border-radius: 50%;
}

.chicken-token.falling {
    animation: chickenFall 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes islandFall {
    0% { transform: translateY(0); opacity: 1; }
    20% { transform: translateY(-10px); }
    100% { transform: translateY(300px) rotate(10deg); opacity: 0; }
}

@keyframes chickenFall {
    0% { transform: translateY(0) scale(1); }
    20% { transform: translateY(-30px) scale(1.1); }
    100% { transform: translateY(400px) rotate(-90deg) scale(0.5); opacity: 0; }
}
/* --- PLINKO STYLING --- */
.plinko-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.plinko-board-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 30px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5), 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
}

.plinko-canvas-container {
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 100%);
    border-radius: 20px;
    overflow: hidden;
}

#plinko-canvas {
    display: block;
    image-rendering: auto;
}

.plinko-actions-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}
/* --- JACKPOT STYLING --- */
.jackpot-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.jackpot-stage {
    position: relative;
    width: 400px;
    height: 400px;
}

#jackpot-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(0,0,0,0.5), 0 0 20px rgba(0, 255, 156, 0.1);
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 40px;
    background: #fff;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    z-index: 20;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.jackpot-info {
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.jackpot-timer {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--neon-green);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 2px;
}

.jackpot-pot-total {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

.jackpot-winner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid var(--neon-green);
    text-align: center;
    z-index: 30;
    animation: tilePop 0.4s ease-out;
    min-width: 250px;
}

.winner-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.winner-amount {
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-green);
}

.cascade-fade {
    animation: cascadeOut 0.5s forwards ease-in;
    pointer-events: none;
}

@keyframes cascadeOut {
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        filter: blur(10px);
    }
}

/* Glass Card - Used for Settings/Locked states */
.glass-card {
    background: rgba(15, 20, 25, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    animation: cardEntrance 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes cardEntrance {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}


.setting-row {
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 12px;
}

.setting-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Custom Color Picker Styles */
.color-picker-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.color-wheel-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.color-wheel-canvas-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    cursor: crosshair;
    transition: transform 0.3s ease;
}

.color-wheel-canvas-wrapper:hover {
    transform: scale(1.02);
}

.color-wheel-canvas {
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

.color-wheel-cursor {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.1s, height 0.1s;
    background: transparent;
}

.color-wheel-canvas-wrapper:active .color-wheel-cursor {
    width: 10px;
    height: 10px;
}

.color-preview-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-preview-swatch {
    width: 100%;
    height: 64px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: background 0.2s ease;
}

.color-values {
    display: flex;
    gap: 8px;
}

.color-value-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
}


.theme-swatch.active {
    border-color: #fff !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.custom-accent-swatch, .custom-bg-swatch {
    background: conic-gradient(from 0deg, red, yellow, lime, aqua, blue, magenta, red);
    position: relative;
}

.custom-accent-swatch::after, .custom-bg-swatch::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
}

.settings-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.settings-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.settings-tab-btn.active {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 4px 15px var(--neon-green-dim);
}

/* Multiplier Options */
.multiplier-toggle-group {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.mult-opt-btn {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mult-opt-btn:hover {
    background: rgba(255, 255, 255, 0.03);
}

.mult-opt-btn.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.notification-area {
    position: fixed;
    top: 140px; 
    left: var(--sidebar-width); 
    margin-left: 20px; 
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
    pointer-events: none;
    transition: left var(--transition-speed) ease;
}

.sidebar.collapsed ~ .main-content .notification-area {
    left: 20px;
}

.notification {
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 260px;
    transform: translateX(-40px);
    opacity: 0;
    animation: notifSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
    overflow: hidden;
    position: relative;
    z-index: 2001;
}

.notification.win { border-color: var(--neon-green); border-left: 4px solid var(--neon-green); }
.notification.lose { border-color: var(--danger-red); border-left: 4px solid var(--danger-red); }
.notification.info { border-color: var(--text-secondary); border-left: 4px solid var(--text-secondary); }

.notif-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--neon-green);
    width: 0%;
    animation: notifProgress 3s linear forwards;
}

.notification.lose .notif-progress { background: var(--danger-red); }
.notification.info .notif-progress { background: var(--text-secondary); }

@keyframes notifSlideIn {
    to { transform: translateX(0); opacity: 1; }
}

@keyframes notifProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.notification.fading {
    opacity: 0;
    transform: translateX(-40px) scale(0.95);
    transition: all 0.5s ease;
}
/* --- KEYAUTH LOGIN STYLES --- */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(10, 15, 20, 0.95) 0%, #05070a 100%);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.login-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-card {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    border-radius: 30px;
    width: 440px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 255, 156, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    animation: loginFadeIn 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes loginFadeIn {
    0% { transform: scale(0.9) translateY(40px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.login-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.login-logo {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 20px var(--neon-green));
    margin-bottom: 10px;
}

.login-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.login-header h1 span {
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(0, 255, 156, 0.4);
}

.login-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

#license-key {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid (255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 20px 16px 50px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

#license-key:focus {
    outline: none;
    border-color: var(--neon-green);
    background: rgba(0, 255, 156, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 156, 0.1);
}

.btn-primary {
    width: 100%;
    background: var(--neon-green);
    color: #000;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 255, 156, 0.4);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.login-error {
    color: var(--danger-red);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    background: rgba(255, 60, 60, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 60, 60, 0.2);
}

.login-footer {
    text-align: center;
    margin-top: 10px;
}

.login-footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--neon-green);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.login-footer a:hover {
    opacity: 0.8;
}

/* Loader Styling */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.app-container.blur {
    pointer-events: none;
}

/* --- MOD STATUS INDICATOR --- */
.mod-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mod-status.offline .status-dot {
    background: #ff3c3c;
    box-shadow: 0 0 10px rgba(255, 60, 60, 0.4);
}

.mod-status.offline .status-text { color: #ff3c3c; }

.mod-status.online .status-dot {
    background: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 156, 0.4);
    animation: statusPulse 2s infinite;
}

.mod-status.online .status-text { color: var(--neon-green); }

@keyframes statusPulse {
    0% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.5; transform: scale(0.9); }
}
