/* Screen base class */
.screen {
    display: none !important;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.screen.active {
    display: block !important;
}

/* Time control buttons on HOMEPAGE ONLY - Match Game Page Styling */
.game-controls-hero .mode-toggle {
    display: flex;
    gap: 4px;
    background: #141529 !important;
    background-color: #141529 !important;
    border-radius: 32px !important;
    border: none !important;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 12px;
}
.game-controls-hero .mode-btn {
    flex: 1;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 6px;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none !important;
    transition: all 0.2s ease;
}
.game-controls-hero .mode-btn:hover {
    transform: none;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
}
.game-controls-hero .mode-btn.active {
    background: #344253 !important;
    background-color: #344253 !important;
    color: #fff !important;
    box-shadow: none !important;
    border-radius: 28px !important;
}
.game-controls-hero .mode-btn.active:hover {
    box-shadow: none !important;
}
/* HomeScreen Styles - Dedicated CSS for homepage */

/* Promotional Banner Section */
.promo-banner-section {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 80px;
}

.promo-banner {
    background: linear-gradient(135deg, #15042e 0%, #1a0d3a 50%, #15042e 100%);
    border-radius: 24px;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    border: none;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(138, 80, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.promo-content {
    z-index: 2;
    flex: 1;
}

.promo-title-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.promo-amount-large {
    font-size: 48px;
    font-weight: 900;
    color: #ffd700;
    line-height: 1;
}

.promo-title-text {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.promo-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.promo-btn {
    background: #ffd700;
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.promo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px 12px 0 0;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
    background: #ffed4e;
}

.promo-countdown {
    background: rgba(2, 3, 28, 0.8);
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(138, 80, 255, 0.3);
}

.countdown-icon {
    font-size: 14px;
    color: #ffd700;
}

.countdown-text {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.promo-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

.promo-visual {
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.promo-winners-badge {
    background: rgba(2, 3, 28, 0.9);
    border-radius: 20px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(138, 80, 255, 0.3);
}

.trophy-icon {
    font-size: 18px;
    color: #ffd700;
}

.winners-text {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.promo-placeholder {
    font-size: 120px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
    opacity: 0.7;
}

/* CYBERPUNK REDESIGN - Background */
:root {
    --grid-bg: #090d1d;
    --tile-bg: #090d1d;
    --tile-border: rgba(0, 217, 255, 0.2);
    --tile-revealed-bg: #090d1d;
}

#homepageScreen {
    background: #090d1d;
    padding-top: 60px;
}


.minesweeper-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1 !important;
    background: #090d1d !important;
    overflow: hidden !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: block !important;
}

/* Action tile styles removed - no more navigation buttons */

.grid-container {
    display: grid !important;
    grid-template-columns: repeat(18, 1fr) !important;
    grid-template-rows: repeat(8, 1fr) !important;
    width: 100% !important;
    height: 100% !important;
    gap: 8px !important;
    padding: 10px !important;
}

.grid-tile {
    background: #090d1d;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    color: rgba(0, 212, 170, 0.6);
    text-shadow: 0 0 8px rgba(0, 212, 170, 0.4);
    box-shadow: 0 4px 0 0 #1d1d1b, 0 6px 8px rgba(0, 0, 0, 0.3);
}

.grid-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 0 #1d1d1b, 0 8px 12px rgba(0, 0, 0, 0.35);
}

.grid-tile:active,
.grid-tile.pressed {
    background: #090d1d;
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.grid-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.1), transparent);
    transition: left 0.6s ease;
}

.grid-tile.clicking::before {
    left: 100%;
}

.grid-tile.revealed {
    background: #090d1d;
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.grid-tile.bomb {
    background: #090d1d;
    color: #fff;
    animation: bombReveal 0.8s ease-out, bombPulse 4s ease-in-out infinite 0.8s;
    box-shadow: 0 0 25px rgba(255, 68, 68, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

.grid-tile.diamond {
    background: #090d1d;
    color: #000;
    animation: diamondReveal 1s ease-out, diamondSparkle 5s ease-in-out infinite 1s;
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

.grid-tile.number {
    background: linear-gradient(135deg, #090d1d, #1a1f3a, #090d1d);
    color: #00d4aa;
    font-weight: 800;
    animation: numberReveal 0.5s ease-out;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 8px rgba(0, 212, 170, 0.8);
}

.grid-tile.clicking {
    animation: tileClick 0.3s ease-out;
}

/* Enhanced Background Animations */
@keyframes gridFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0.25; 
        filter: brightness(1);
    }
    25% { 
        transform: translateY(-2px) translateX(1px) rotate(0.5deg); 
        opacity: 0.3; 
        filter: brightness(1.1);
    }
    50% { 
        transform: translateY(-1px) translateX(-1px) rotate(-0.3deg); 
        opacity: 0.35; 
        filter: brightness(1.2);
    }
    75% { 
        transform: translateY(1px) translateX(0.5px) rotate(0.2deg); 
        opacity: 0.3; 
        filter: brightness(1.1);
    }
}

@keyframes bombReveal {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes bombPulse {
    0%, 100% { box-shadow: 0 0 25px rgba(255, 68, 68, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0 0 35px rgba(255, 68, 68, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

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

@keyframes diamondSparkle {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 212, 170, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 170, 1), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
}

@keyframes numberReveal {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes tileClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Overlay to capture clicks on top-row middle five cells */
.grid-action-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    grid-template-rows: repeat(8, 1fr);
    column-gap: 6px;
    row-gap: 13px;
    padding: 0;
    pointer-events: none; /* only buttons capture */
    z-index: 15; /* above container, below widgets */
    background: transparent;
    filter: none;
    backdrop-filter: none;
}

/* Overlay action styles removed - no more navigation buttons */
.grid-container .grid-tile.play-label {
    grid-column: span 2;
    aspect-ratio: 2; /* width:height = 2:1 => 1 row tall across 2 columns */
    height: auto;
    width: calc(100% - 6px); /* compensate for the single inter-column gap */
    justify-self: center; /* keep centered within the two columns */
}

.grid-container .grid-tile.merged-hidden {
    display: none;
}

/* Remaining overlay action styles removed */

.grid-tile {
    background: var(--tile-bg);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: default;
    pointer-events: none;
    box-shadow: 0 4px 0 0 #1d1d1b, 0 6px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 1.1;
    padding: 2px;
}

.grid-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.1), transparent);
    transition: left 0.6s ease;
}

.grid-tile.clicking::before {
    left: 100%;
}

.grid-tile.revealed {
    background: #090d1d;
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.grid-tile.bomb {
    background: #090d1d;
    animation: bombReveal 0.6s ease-out, bombExplode 1.5s ease-out 0.6s;
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.8);
}

.grid-tile.diamond {
    background: #090d1d;
    animation: diamondReveal 0.8s ease-out, diamondSpin 2s linear infinite 0.8s;
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.8);
}

/* Empty tiles just stay revealed */

.grid-tile.clicking {
    animation: tileClick 0.3s ease-out;
}

/* Background Animations */
@keyframes gridFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0.3; 
        filter: brightness(1);
    }
    20% { 
        transform: translateY(-2px) translateX(1px) rotate(0.2deg); 
        opacity: 0.35; 
        filter: brightness(1.1);
    }
    40% { 
        transform: translateY(1px) translateX(-1px) rotate(-0.1deg); 
        opacity: 0.32; 
        filter: brightness(0.95);
    }
    60% { 
        transform: translateY(-1px) translateX(2px) rotate(0.3deg); 
        opacity: 0.38; 
        filter: brightness(1.05);
    }
    80% { 
        transform: translateY(2px) translateX(-0.5px) rotate(-0.2deg); 
        opacity: 0.28; 
        filter: brightness(0.9);
    }
}

@keyframes tileClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); background: #2a2a2a; }
    100% { transform: scale(0.95); }
}

@keyframes bombReveal {
    0% { 
        transform: scale(1); 
        background: #302e2b; 
        box-shadow: none; 
    }
    30% { 
        transform: scale(1.15); 
        background: #ff6666; 
        box-shadow: 0 0 25px rgba(255, 68, 68, 0.6); 
    }
    100% { 
        transform: scale(0.95); 
        background: linear-gradient(135deg, #ff4444, #cc0000); 
        box-shadow: 0 0 15px rgba(255, 68, 68, 0.3); 
    }
}

@keyframes bombPulse {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 68, 68, 0.3); 
        transform: scale(0.95); 
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 68, 68, 0.5); 
        transform: scale(1); 
    }
}

@keyframes bombExplode {
    0% { 
        transform: scale(0.95);
        box-shadow: 0 0 30px rgba(255, 51, 51, 0.8);
    }
    25% { 
        transform: scale(1.3) rotate(5deg);
        box-shadow: 0 0 50px rgba(255, 51, 51, 1);
    }
    50% { 
        transform: scale(1.5) rotate(-3deg);
        box-shadow: 0 0 70px rgba(255, 100, 100, 1);
    }
    75% { 
        transform: scale(1.2) rotate(2deg);
        box-shadow: 0 0 40px rgba(255, 51, 51, 0.9);
    }
    100% { 
        transform: scale(0.95) rotate(0deg);
        box-shadow: 0 0 30px rgba(255, 51, 51, 0.8);
    }
}

@keyframes diamondReveal {
    0% { 
        transform: scale(1) rotate(0deg); 
        background: #302e2b; 
        box-shadow: none; 
    }
    50% { 
        transform: scale(1.1) rotate(180deg); 
        background: #00e701; 
        box-shadow: 0 0 30px rgba(0, 231, 1, 0.6); 
    }
    100% { 
        transform: scale(0.95) rotate(360deg); 
        background: linear-gradient(135deg, #00e701, #00e701, #00e701); 
        box-shadow: 0 0 20px rgba(0, 231, 1, 0.4); 
    }
}

@keyframes diamondSpin {
    0% { 
        transform: rotate(0deg) scale(1);
        box-shadow: 0 0 25px rgba(0, 150, 255, 0.8);
    }
    25% { 
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 0 35px rgba(0, 150, 255, 1);
    }
    50% { 
        transform: rotate(180deg) scale(1.2);
        box-shadow: 0 0 40px rgba(0, 150, 255, 1);
    }
    75% { 
        transform: rotate(270deg) scale(1.1);
        box-shadow: 0 0 35px rgba(0, 150, 255, 1);
    }
    100% { 
        transform: rotate(360deg) scale(1);
        box-shadow: 0 0 25px rgba(0, 150, 255, 0.8);
    }
}

/* No number animations needed */

/* Homepage Layout */
#homepageScreen.active {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
}

.homepage-layout {
    display: block;
    min-height: auto;
    width: 100%;
    padding-top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    position: relative;
    background: #090d1d;
}

/* Default homepage content layout */
.homepage-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 10;
    background: transparent;
    margin-top: 0;
}

/* Ensure all widget panels render above overlay */
.dashboard-section {
    position: relative;
    z-index: 20;
}

/* ============================================
   UNIFIED HOMEPAGE LAYOUT (ALL USERS)
   ============================================ */

/* Homepage content - always visible with consistent positioning */
.homepage-content {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
    overflow-y: visible;
    z-index: 10;
}

.leaderboard-section-spacing {
    max-width: 1600px;
    margin: 0 auto 0;
    padding: 0 80px 60px;
}


/* Compact Hero Section */
/* Hero Section */
.hero-section-main {
    max-width: 1400px;
    margin: 50px auto 40px;
    padding: 0 80px;
}

.hero-main-container {
    display: flex;
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    min-height: 320px;
}

.hero-banner-image {
    flex: 1.3;
    background: url('/ChatGPT Image Dec 8, 2025, 06_13_51 PM.png') center/cover;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.hero-banner-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 25, 57, 0.7);
    pointer-events: none;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-banner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-logo-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hero-logo-text {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero-banner-subtitle {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}


.hero-login-panel {
    flex: 1;
    background: #0d1127;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-welcome-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-play-now {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 28px 0;
}

.hero-hop-in {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 28px 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    letter-spacing: 0.5px;
}

.hero-signup-btn {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    border: none;
    border-radius: 16px;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.hero-signup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px 16px 0 0;
}

.hero-signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #FFED4E 0%, #FFB84D 100%);
}

.hero-or-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 20px 0;
}

.hero-social-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
    max-width: 380px;
}

.hero-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(30, 42, 58, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.hero-social-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(30, 42, 58, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.hero-social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hero-dashboard-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 380px;
    margin-top: 20px;
}

.hero-dashboard-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 380px;
    height: 50px;
    background: linear-gradient(to bottom, #1576e2 0%, #1165c9 50%, #0d54b0 100%);
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 800;
    color: white;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 3px 0 #0a3d7a,
        0 8px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.1s ease;
    overflow: visible;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.hero-dashboard-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, 
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.35) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 70%,
        transparent 100%);
    border-radius: 15px;
    pointer-events: none;
}

.hero-dashboard-btn:hover {
    transform: translateY(1px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 0 #0a3d7a,
        0 7px 18px rgba(0, 0, 0, 0.5);
}

.hero-dashboard-btn:active {
    transform: translateY(3px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0px 0 #0a3d7a,
        0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero-wallet-btn {
    background: linear-gradient(to bottom, #ffbd00 0%, #e6a800 50%, #cc9300 100%) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 3px 0 #996f00,
        0 8px 20px rgba(255, 189, 0, 0.5) !important;
}

.hero-wallet-btn:hover {
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 0 #996f00,
        0 7px 18px rgba(255, 189, 0, 0.5) !important;
}

.hero-wallet-btn:active {
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0px 0 #996f00,
        0 5px 15px rgba(255, 189, 0, 0.5) !important;
}

.hero-dashboard-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.widget-card {
    width: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.widget-card:hover {
    transform: translateY(-4px);
}

.wallet-widget {
    border: 3px solid #02031c;
}

.friends-widget {
    border: 3px solid #02031c;
}

.widget-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.widget-overlay-values {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 80px);
}

.currency-badge {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.currency-badge:last-child {
    margin-bottom: 0;
}

.currency-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff !important;
    flex-shrink: 0;
}

.dmc-icon {
    background: #73dd2a;
    border: 2px solid #5cb920;
    color: #ffffff !important;
}

.gc-icon {
    background: #ffd700;
    border: 2px solid #e8c04e;
    color: #ffffff !important;
}

.currency-label {
    font-size: 9px;
    font-weight: 600;
    color: #ffffff !important;
    flex: 1;
}

.currency-value {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
}

.widget-footer {
    background: #02031c;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.widget-footer svg {
    color: #ffffff;
    flex-shrink: 0;
}

.widget-footer span {
    font-size: 16px;
    font-weight: 600;
}

.widget-stats {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.stat-number {
    font-size: 14px;
    font-weight: 500;
}

/* Search Section */
.search-section {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 80px;
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.search-input {
    width: 100%;
    background: #090d1d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px 14px 48px;
    color: #ffffff;
    font-size: 15px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-section-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-left {
    flex: 1;
    max-width: 600px;
}

.hero-right {
    flex: 1;
    max-width: 600px;
}

/* Hero Cards */
.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hero-card {
    background: rgba(26, 44, 56, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    border-color: #00e701;
    box-shadow: 0 8px 24px rgba(0, 231, 1, 0.2);
}

.hero-card-image {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2c38, #1a2c38);
    overflow: hidden;
}

.hero-card-image.gold-coins {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
}

.hero-card-image.diamond-cash {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 231, 1, 0.1));
}

.hero-card-image .card-icon {
    font-size: 64px;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
}

.hero-card-info {
    padding: 16px;
    background: rgba(26, 44, 56, 0.8);
}

.hero-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.hero-card-players {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8b96a5;
}

/* Deathmatch Logo for Hero */
.hero-logo {
    display: flex;
    align-items: baseline;
    margin-bottom: 24px;
}

.hero-logo .logo-main {
    font-family: 'Brush Script MT', cursive;
    font-size: 48px;
    color: #ffffff;
    font-weight: normal;
    letter-spacing: 0.5px;
}

.hero-logo .logo-sub {
    font-family: Arial, sans-serif;
    font-size: 24px;
    color: #ffffff;
    margin-left: 3px;
    font-weight: 500;
}

/* Hero Title */
.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

/* Hero Actions */
.hero-actions {
    margin-bottom: 32px;
}

.hero-btn {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 20px 48px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.primary-btn {
    background: #0d6efd;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.4);
}

.primary-btn:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.6);
}

.primary-btn:disabled {
    background: rgba(26, 44, 56, 0.4);
    color: #4a5568;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Social Login Section */
.social-login-section {
    margin-top: 32px;
}

.social-login-text {
    font-size: 14px;
    color: #8b96a5;
    margin-bottom: 16px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-icon {
    width: 48px;
    height: 48px;
    background: rgba(26, 44, 56, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: rgba(26, 44, 56, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Currency Switcher in Hero */
.currency-switcher-hero {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.currency-switcher-hero .currency-switch-btn {
    flex: 1;
    padding: 18px 28px;
    background: rgba(26, 44, 56, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #8b96a5;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.currency-switcher-hero .currency-switch-btn:hover {
    background: rgba(26, 44, 56, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.currency-switcher-hero .currency-switch-btn.active {
    background: #00e701;
    border-color: #00e701;
    color: #000;
    box-shadow: 0 4px 16px rgba(0, 231, 1, 0.3);
}

.currency-switcher-hero .currency-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.currency-switcher-hero .gc-icon {
    background: #ffd700;
    color: #000;
}

.currency-switcher-hero .dc-icon {
    background: #00e701;
    color: #000;
}

/* Game Controls in Hero */
.game-controls-hero {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Sliders in Hero Section */
.hero-left .slider-container {
    width: 100%;
    max-width: 100%;
}

.hero-left .slider-wrapper {
    width: 100%;
}

/* Join Button in Hero */
.join-game-btn-hero {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.3px;
    height: 60px;
    padding: 0 48px;
    border: none;
    background: linear-gradient(180deg, #00ff00 0%, #00e701 100%);
    color: #000;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 231, 1, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-game-btn-hero:hover {
    background: linear-gradient(180deg, #00ff1a 0%, #00ff00 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 231, 1, 0.6);
}

.join-game-btn-hero:disabled {
    background: rgba(26, 44, 56, 0.4);
    color: #4a5568;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Hero Widget (Wallet, Friends, etc) */
.hero-widget {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-bottom: 4px solid rgba(0, 0, 0, 0.5);
    margin-bottom: 24px;
    background: transparent;
}

.hero-widget:hover {
    transform: scale(1.05);
}

.hero-widget:last-child {
    margin-bottom: 0;
}

/* Wallet in Hero */
.wallet-balance-hero {
    height: 210px;
    background: #7a8c5e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin: 0;
}

.balance-rows {
    width: 100%;
    max-width: 200px;
}

.balance-item-hero {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-item-hero:last-child {
    margin-bottom: 0;
}

.balance-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.currency-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.currency-icon.dc-icon {
    background: #73dd2a;
    border: 2px solid #5cb920;
}

.currency-icon.gc-icon {
    background: #ffd700;
    border: 2px solid #e8c04e;
}

.balance-label-hero {
    font-size: 11px;
    color: #2d3d1d;
    font-weight: 600;
}

.balance-amount-hero {
    font-size: 14px;
    font-weight: bold;
    color: #1a2a0a;
}

/* Friends in Hero */
.friends-content-hero {
    height: 210px;
    background: #262522;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.no-friends-hero {
    text-align: center;
    color: #8b96a5;
}

.no-friends-icon-hero {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
}

.no-friends-hero p {
    margin: 0;
    font-size: 14px;
}

.friends-list-hero {
    width: 100%;
}

.friend-item-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #262522;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.friend-item-hero:hover {
    background: #302e2b;
}

.friend-item-hero:last-child {
    margin-bottom: 0;
}

.friend-name-hero {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.friend-status-hero {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6c757d;
}

.friend-status-hero.online {
    background: #00e701;
    box-shadow: 0 0 8px rgba(0, 231, 1, 0.5);
}

.friend-status-hero.offline {
    background: #6c757d;
}

/* Widget Button */
/* Widget bottom section */
.hero-widget-content {
    background: #2e2c2a;
    padding: 1.25rem;
}

.hero-widget-header {
    font-size: 19px;
    font-weight: 600;
    color: white;
    margin: 0 0 0.5rem 0;
}

.hero-widget-description {
    color: #b8b8b8;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.widget-btn {
    display: none;
}

/* Leaderboard in Hero Widget - Compact Retro Style */
.hero-widget .leaderboard {
    background: transparent;
    border: none;
}

.hero-widget .leaderboard .header {
    display: grid;
    grid-template-columns: 45px 1fr 90px 70px;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(122, 140, 94, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    margin-bottom: 6px;
    border-radius: 4px;
}

.hero-widget .leaderboard .header-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-widget .leaderboard .row {
    display: grid;
    grid-template-columns: 45px 1fr 90px 70px;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    transition: background 0.15s ease-out;
    border-radius: 4px;
}

.hero-widget .leaderboard .row:hover {
    background: rgba(122, 140, 94, 0.1);
}

.hero-widget .leaderboard .row:last-child {
    border-bottom: none;
}

.hero-widget .leaderboard .rank {
    color: #d4d4d4;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Top 3 ranks in widget - row:nth-child counts from data rows, not header */
.hero-widget .leaderboard .row:nth-child(1) .rank {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    font-weight: 800;
    border: 1px solid #ffed4e;
}

.hero-widget .leaderboard .row:nth-child(2) .rank {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #000000;
    font-weight: 800;
    border: 1px solid #e8e8e8;
}

.hero-widget .leaderboard .row:nth-child(3) .rank {
    background: linear-gradient(135deg, #cd7f32 0%, #e89a5a 100%);
    color: #000000;
    font-weight: 800;
    border: 1px solid #e89a5a;
}

.hero-widget .leaderboard .name {
    color: #e5e1dc;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-widget .leaderboard .earnings {
    color: #00e701;
    font-size: 13px;
    font-weight: 700;
}

.hero-widget .leaderboard .win-rate {
    color: #d4d4d4;
    font-size: 13px;
    font-weight: 600;
}

/* Search Bar Section */
.search-bar-section {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    max-width: 1200px;
}

.search-dropdown {
    flex-shrink: 0;
}

.dropdown-btn {
    padding: 14px 24px;
    background: rgba(26, 44, 56, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-btn:hover {
    background: rgba(26, 44, 56, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    font-size: 18px;
    color: #8b96a5;
}

.search-input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    background: rgba(26, 44, 56, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: #8b96a5;
}

.search-input:focus {
    background: rgba(26, 44, 56, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Originals Section - Game Cards */
.originals-section {
}

/* Games and Leaderboard Side by Side */
.games-leaderboard-row {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 80px;
}

.originals-section-compact {
    flex: 1;
}

.trending-section-compact {
    flex: 1;
}

.originals-games-vertical {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
}

.originals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.originals-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
}

.originals-games-container {
    overflow: hidden;
    position: relative;
}

.originals-games-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.originals-games-scroll::-webkit-scrollbar {
    display: none;
}

.game-card {
    flex: 0 0 auto;
    width: 167px;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(138, 80, 255, 0.2);
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #1a1d29 0%, #2d1b4e 100%);
}

.game-card:hover {
    border-color: rgba(138, 80, 255, 0.5);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(138, 80, 255, 0.2);
}

.game-card-disabled {
    cursor: not-allowed;
}

.game-card-disabled:hover {
    border-color: transparent;
}

.game-card-disabled .game-card-image {
    filter: grayscale(70%) brightness(0.7);
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.coming-soon-overlay span {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.game-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Trending Section - Game Cards */
.trending-section {
    margin-top: 60px;
}

.section-header-large {
    margin-bottom: 24px;
}

.section-header-large h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.section-icon {
    font-size: 24px;
}

/* Games Grid */
.games-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -60px;
    padding: 0 60px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 231, 1, 0.3) rgba(255, 255, 255, 0.05);
}

.games-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.games-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.games-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0, 231, 1, 0.3);
    border-radius: 4px;
}

.games-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 231, 1, 0.5);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
}

/* Game Card */
.game-card {
    background: #1a2c38;
    border: 1px solid #2a3c48;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
}

.game-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a2c38, #1a2c38);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mode-icon {
    font-size: 48px;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
}

.game-card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #1a2c38;
}

.game-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mode-bet {
    font-size: 12px;
    color: #8b96a5;
    font-weight: 500;
}

.game-card-players {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #8b96a5;
}

.player-count-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #00e701;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Large Leaderboard Section - Enhanced Retro Style */
.leaderboard-large {
    background: #1a1939;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: none;
    max-height: 250px;
}

/* Leaderboard Header */
.leaderboard-header {
    display: grid;
    grid-template-columns: 70px 1fr 130px 100px;
    gap: 16px;
    padding: 8px 20px;
    background: #2d2853 !important;
    border-bottom: 3px solid #6D5FED;
    align-items: center;
}

/* Leaderboard Header Columns */
.leaderboard-col {
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

/* Leaderboard Rows */
.leaderboard-row {
    display: grid !important;
    grid-template-columns: 70px 1fr 130px 100px !important;
    gap: 16px;
    padding: 16px 20px !important;
    background: transparent;
    border-bottom: 1px solid #252244;
    align-items: center !important;
    transition: background-color 0.2s ease;
    position: relative;
    height: auto !important;
}

/* Alternating Row Colors */
.leaderboard-row:nth-child(even) {
    background: transparent;
}

/* Hover Effects */
.leaderboard-row:hover {
    background: rgba(45, 40, 83, 0.3);
    transform: none;
    border-color: #252244;
}

.leaderboard-row:nth-child(even):hover {
    background: rgba(45, 40, 83, 0.3);
    transform: none;
    border-color: #252244;
}

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

/* Row Column Text Styles */
.leaderboard-row .leaderboard-col {
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    line-height: 1;
}

/* Rank Column - With Badge Styling */
.leaderboard-row .rank-col {
    justify-content: center !important;
}

.rank-col {
    color: #9ca3af !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    text-align: center !important;
}

/* Top 3 Rank Badges - Gold, Silver, Bronze */
/* First row is nth-child(2) because header is nth-child(1) */
.leaderboard-row:nth-child(2) .rank-col {
    color: #ffd700 !important;
    font-weight: 700 !important;
}

.leaderboard-row:nth-child(3) .rank-col {
    color: #c0c0c0 !important;
    font-weight: 700 !important;
}

.leaderboard-row:nth-child(4) .rank-col {
    color: #cd7f32 !important;
    font-weight: 700 !important;
}

/* Player Name Column */
.name-col {
    color: #d1d5db !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1 !important;
}

/* Earnings Column */
.earnings-col {
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    gap: 8px !important;
    line-height: 1 !important;
}

.earnings-col img,
.leaderboard-row img,
.leaderboard-large img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

/* GC Coin Icon - Match Recent Games Style */
.gc-coin-icon {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
    object-fit: contain;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* GC Value Text */
.gc-value {
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* Win Rate Column */
.winrate-col {
    color: #9ca3af !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-variant-numeric: tabular-nums;
    line-height: 1 !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-section {
        padding: 60px 40px;
    }

    .hero-section-inner {
        gap: 60px;
        flex-direction: column;
        align-items: center;
    }

    .hero-left,
    .hero-right {
        max-width: 100%;
    }

    .homepage-content {
        padding: 0;
    }

    .leaderboard-section-spacing {
        padding: 0 40px 50px;
        margin: 0 auto 0;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 70px 1fr 130px 100px;
        padding: 16px;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        padding: 50px 30px;
    }

    .hero-section-inner {
        flex-direction: column;
        align-items: center;
    }

    .homepage-content {
        padding: 0;
    }

    .leaderboard-section-spacing {
        padding: 0 30px 40px;
        margin: 0 auto 0;
    }

    .hero-left {
        max-width: 600px;
        width: 100%;
    }

    .hero-right {
        width: 100%;
        max-width: 600px;
    }

    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }

    .hero-section-inner {
        flex-direction: column;
        align-items: center;
    }

    .homepage-content {
        padding: 0;
    }

    .leaderboard-section-spacing {
        padding: 0 20px 30px;
        margin: 0 auto 0;
    }

    .hero-logo .logo-main {
        font-size: 36px;
    }

    .hero-logo .logo-sub {
        font-size: 18px;
    }

    .hero-title {
        font-size: 28px;
    }

    /* Leaderboard Mobile Adjustments */
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 50px 1fr 100px 80px;
        padding: 12px 16px;
        gap: 10px;
    }

    .rank-col {
        font-size: 13px !important;
    }

    .name-col {
        font-size: 13px !important;
    }

    .earnings-col,
    .winrate-col {
        font-size: 13px !important;
    }

    .gc-coin-icon {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .leaderboard-col {
        font-size: 11px;
    }

    /* Hero Widget Leaderboard Mobile */
    .hero-widget .leaderboard .header,
    .hero-widget .leaderboard .row {
        grid-template-columns: 40px 1fr 80px 60px;
        padding: 10px;
        gap: 8px;
    }

    .hero-widget .leaderboard .rank {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .hero-widget .leaderboard .name,
    .hero-widget .leaderboard .earnings,
    .hero-widget .leaderboard .win-rate {
        font-size: 12px;
    }
}

.homepage-center {
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(30px);
    border: 3px solid;
    border-image: linear-gradient(45deg, #00d9ff, #00e701, #7c3aed, #00d9ff) 1;
    border-radius: 0;
    padding: 60px 40px;
    box-shadow: 
        0 0 60px rgba(0, 217, 255, 0.4),
        0 0 120px rgba(0, 231, 1, 0.2),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.homepage-center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 4px,
            rgba(0, 217, 255, 0.08) 4px,
            rgba(0, 217, 255, 0.08) 8px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 4px,
            rgba(0, 231, 1, 0.08) 4px,
            rgba(0, 231, 1, 0.08) 8px
        );
    pointer-events: none;
    z-index: 0;
}

.homepage-center > * {
    position: relative;
    z-index: 1;
    gap: var(--spacing-lg);
    box-sizing: border-box;
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: 600px;
}

/* Removed hover effect for center panel */

/* Center Logo */
.center-logo {
    display: flex;
    align-items: baseline;
    margin-bottom: var(--spacing-md);
}

.center-logo .logo-main {
    font-family: 'Brush Script MT', cursive;
    font-size: 36px;
    color: #ffffff;
    font-weight: normal;
    letter-spacing: 0.5px;
}

.center-logo .logo-sub {
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: #ffffff;
    margin-left: 3px;
    font-weight: 500;
}

/* === Global Styles === */
:root {
  /* Colors */
  --color-bg: #213743;
  --color-card: #0f2e16;
  --color-header: #1a2c38;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #8A9BB3;
  --color-success: #00e701;
  --color-error: #FF1744;
  --color-divider: #2E3D55;

  /* Spacing */
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;

  /* Radius */
  --radius-md: 8px;

  /* Font */
  --font-family: 'Inter', 'Roboto', sans-serif;
}

/* === Panel === */
.dashboard-section {
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(0, 217, 255, 0.3);
  box-shadow: 
      0 0 30px rgba(0, 217, 255, 0.2),
      inset 0 0 20px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 13px;
  width: 260px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.dashboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(0, 217, 255, 0.05) 3px,
            rgba(0, 217, 255, 0.05) 6px
        );
    pointer-events: none;
    z-index: 0;
}

.dashboard-section > * {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    overflow: visible;
  box-sizing: border-box;
  align-self: stretch;
  justify-self: stretch;
}

.dashboard-section .widget-controls,
.dashboard-section .friends-content,
.dashboard-section .section-button,
.dashboard-section .wallet-balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dashboard-section .leaderboard-grid {
    display: grid;
}

/* === Header === */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 0;
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: none;
  background: var(--color-header);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: calc(-1 * var(--spacing-md)) calc(-1 * var(--spacing-md)) 0 calc(-1 * var(--spacing-md));
}

.section-header h3 {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #00d9ff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header h3::before {
  content: none;
  display: inline-block;
}

/* Hide all other header elements except title and close button */
.section-header .friends-info,
.section-header .wallet-actions,
.section-header .refresh-btn,
.section-header .friends-count {
  display: none;
}

.live-indicator {
  display: none;
}

/* Dropdown */
.widget-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  gap: 16px;
}

.widget-dropdown {
  background: var(--color-card);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text-primary);
  font-size: 12px;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.widget-dropdown::after {
  content: '▼';
  font-size: 8px;
  color: var(--color-text-secondary);
}

.refresh-icon {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
  font-size: 14px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-icon:hover {
  color: var(--color-text-primary);
}

/* Minimize button - X close button */
.minimize-btn {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
  font-size: 14px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.minimize-btn:hover {
  color: var(--color-text-primary);
}

/* Center panel minimize placement */
.homepage-center .minimize-btn.center {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
}

/* Minimized state: collapse inner content, keep header row visible */
.dashboard-section.minimized .leaderboard-grid,
.dashboard-section.minimized .leaderboard-list,
.dashboard-section.minimized .friends-content,
.dashboard-section.minimized .section-button,
.dashboard-section.minimized .wallet-balance,
.dashboard-section.minimized .wallet-buttons,
.dashboard-section.minimized .leaderboard-content {
    display: none !important;
}

.dashboard-section.minimized {
    padding-bottom: 16px;
}

.homepage-center.minimized .username-input,
.homepage-center.minimized .slider-container,
.homepage-center.minimized .join-game-btn,
.homepage-center.minimized .game-stats,
.homepage-center.minimized .game-mode-buttons {
    display: none !important;
}

.homepage-center.minimized {
    min-height: 64px;
}

/* === Empty State Area === */
.empty-widget {
  background: var(--color-card);
  border-radius: var(--radius-md);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 12px;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: 0;
  padding: var(--spacing-md);
}

/* === Earnings Chart === */
.earnings-chart {
  background: var(--color-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
  padding: var(--spacing-md);
  margin-bottom: 6px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.chart-title {
  font-size: 12px;
  color: var(--color-text-primary);
  font-weight: 500;
}

.chart-period {
  font-size: 10px;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--color-divider);
}

.chart-container {
  height: 60px;
  width: 100%;
  position: relative;
}

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

.chart-line {
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px rgba(0, 231, 1, 0.3));
}

.chart-area {
  stroke: none;
}

/* === Button Styling === */
.section-button,
.join-game-btn,
.username-save-btn,
.pre-login-btn {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border: none;
    background: #00e701;
    color: #000;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 231, 1, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    width: auto;
}

.section-button:hover,
.join-game-btn:hover,
.username-save-btn:hover,
.pre-login-btn.signup-btn:hover {
    background: #00d400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 231, 1, 0.4);
}

.pre-login-btn.login-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: none;
}

.pre-login-btn.login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

/* === Stats Section === */
.leaderboard-grid {
  background: var(--color-card);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
  margin-bottom: 0;
}

.leaderboard-stat {
  text-align: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 0;
}

.leaderboard-stat .stat-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.leaderboard-stat .stat-number {
  font-size: 14px;
  font-weight: bold;
  color: var(--color-success);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}


/* Make Losses stat red */
.leaderboard-stat:nth-child(4) .stat-number {
  color: var(--color-error);
}

.leaderboard-stat:nth-child(4) .stat-icon {
  background: var(--color-error);
}

.leaderboard-stat:nth-child(4) .stat-number::after {
  background: var(--color-error);
}

.leaderboard-list {
    margin-bottom: 24px;
}

.no-data {
    color: #666;
    font-size: 12px;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

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

.rank {
    color: #ccc;
    font-size: 14px;
}

.amount {
    color: #ffd700;
    font-weight: 600;
    font-size: 14px;
}

/* Friends - Stake Style */
.friends-info {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #7a8499;
    align-items: center;
    flex-wrap: nowrap;
}

.refresh-btn {
    cursor: pointer;
    transition: color 0.2s;
}

.refresh-btn:hover {
    color: #b8c5d1;
}

.friends-content {
    margin-bottom: 16px;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-divider);
    padding: var(--spacing-md);
}

.no-friends {
    text-align: center;
    color: #7a8499;
}

.no-friends-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #4a5568;
}

/* Username Input */
.username-input {
    display: flex;
    align-items: center;
    background: var(--color-card);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    gap: var(--spacing-md);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.username-input:focus-within {
    border-color: #00e701;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(0, 231, 1, 0.1);
}

.username-icon {
    font-size: 20px;
    color: #00e701;
    filter: drop-shadow(0 0 8px rgba(0, 231, 1, 0.3));
}

.username-input input {
    flex: 1;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 500;
    outline: none;
}

.username-input input::placeholder {
    color: var(--color-text-secondary);
    font-weight: 400;
}

.username-save-btn {
    background: linear-gradient(135deg, #00e701, #00e701);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    color: #000;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

.username-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.4);
}

/* Grid placement for homepage widgets (approximate to red boxes) */
.live-stats-section { grid-column: 3 / span 4; grid-row: 2 / span 3; }
/* Old grid layout removed - using new unified layout */

/* Make widgets fit their content. The center "Play" panel spans a tall area. */
.live-stats-section,
.leaderboard-section,
.friends-section,
.wallet-section {
    width: 100%;
    height: auto;
    min-height: auto;
}

/* Bet Options */
.bet-options {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px;
    background: linear-gradient(135deg, #1a1a23 0%, #262631 100%);
    border-radius: 12px;
    border: 1px solid #3a3a45;
}

.bet-option {
    flex: 1;
    background: transparent;
    border: 2px solid transparent;
    color: #ccc;
    padding: 16px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bet-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s;
}

.bet-option:hover::before {
    left: 100%;
}

.bet-option.active {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border-color: #ffd700;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.bet-option:hover:not(.active) {
    border-color: #ffd700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

/* Slider Styles - New Look */
.slider-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.slider-label {
    display: flex;
    align-items: center;
      justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
      width: 100%;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.slider-wrapper {
    position: relative;
    background: var(--color-card);
    border: 1px solid #555555;
    border-radius: var(--radius-md);
    padding: 18px 16px 14px;
    --thumb-size: 22px; /* keep in sync with slider thumb */
    --edge-offset: calc(var(--thumb-size) / 2 + 12px); /* stronger squish for tighter alignment */
}

.bet-slider,
.time-slider {
    width: calc(100% - (var(--edge-offset) * 2));
    margin-left: var(--edge-offset);
    margin-right: var(--edge-offset);
    height: 10px;
    border-radius: 6px;
    background: transparent; /* track drawn on pseudo track */
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding: 0;
}

/* Explicit track styling to avoid browser default offsets */
.bet-slider::-webkit-slider-runnable-track,
.time-slider::-webkit-slider-runnable-track {
    height: 10px;
    background: #555555;
    border-radius: 6px;
    border: 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.bet-slider::-moz-range-track,
.time-slider::-moz-range-track {
    height: 10px;
    background: #555555;
    border-radius: 6px;
    border: 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.bet-slider::-webkit-slider-thumb,
.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--thumb-size);
    height: var(--thumb-size);
    border-radius: 6px;
    background: #314451;
    border: 2px solid #00e701;
    box-shadow: 0 4px 12px rgba(0, 231, 1, 0.25);
    margin-top: -6px;
}

.bet-slider::-moz-range-thumb,
.time-slider::-moz-range-thumb {
    width: var(--thumb-size);
    height: var(--thumb-size);
    border-radius: 6px;
    background: #314451;
    border: 2px solid #00e701;
    box-shadow: 0 4px 12px rgba(0, 231, 1, 0.25);
    margin-top: -6px;
}

.slider-ticks {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-left: var(--edge-offset);
    padding-right: var(--edge-offset);
}

.slider-tick { height: 16px; position: relative; flex: 0 0 auto; }

.slider-tick::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 8px; background: var(--color-divider);
    border-radius: 1px;
}

.slider-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
    padding-left: var(--edge-offset);
    padding-right: var(--edge-offset);
}

.slider-value {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 600;
    flex: 0 0 auto;
    min-width: 40px;
}

.slider-value.active {
    color: #00e701;
}

/* Nudge edge labels 5px toward their ticks */
.slider-values .slider-value:first-child { transform: translateX(-18px); }
.slider-values .slider-value:last-child { transform: translateX(18px); }

.current-value {
    margin-top: 10px;
    display: inline-block;
    background: var(--color-card);
    color: #00e701;
    padding: 6px 10px;
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
}

/* Game Mode Buttons */
.game-mode-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.game-mode-btn {
    flex: 1;
    background: #314451;
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.game-mode-btn:hover {
    background: #3a4f5d;
    border-color: #555;
}

/* Game Stats */
.game-stats {
    display: flex;
    gap: 40px;
    text-align: center;
    justify-content: space-around;
    width: 100%;
}

.stat-item {
    flex: 1;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

/* Affiliate Button */
.affiliate-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: none;
    color: #000;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
    max-width: 400px;
}

.affiliate-btn:hover {
    transform: translateY(-2px);
}

/* Wallet Section - Standard Widget Style */
.wallet-section {
    cursor: pointer;
}

.wallet-actions {
    display: flex;
    gap: 12px;
    font-size: 11px;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.wallet-action {
    color: #7a8499;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}

.wallet-action:hover {
    color: #b8c5d1;
}

.wallet-balance {
    text-align: center;
    margin: 16px 0;
    padding: var(--spacing-md);
    background: var(--color-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-divider);
}

.balance-amount {
    font-size: 20px;
    font-weight: 600;
    color: #b8c5d1;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.balance-gc {
    font-size: 12px;
    color: #b8c5d1;
    margin-bottom: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.balance-dc {
    font-size: 12px;
    color: #b8c5d1;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Currency icons in wallet balance */
.balance-gc .currency-icon,
.balance-dc .currency-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
    margin-left: 4px;
}

.balance-gc .currency-icon.gc-icon {
    background: #ffd700;
}

.balance-dc .currency-icon.dc-icon {
    background: #00e701;
}

.wallet-single-button {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding: 0 16px;
}

/* Leaderboard Section */
.leaderboard-content {
    margin-bottom: 16px;
}

.leaderboard-list {
    background: var(--color-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-divider);
    padding: 0;
    overflow: hidden;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--color-divider);
    background: var(--color-card);
    min-height: 36px;
}

.leaderboard-item:nth-child(even) {
    background: var(--color-bg);
}

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

/* Rank Badges */
.rank-badge {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #00d4aa 0%, #00a085 100%);
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.4);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #00b894 0%, #008f7a 100%);
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.4);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #00a085 0%, #006b5a 100%);
    box-shadow: 0 2px 8px rgba(0, 160, 133, 0.4);
}

.rank-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
}

/* Player Identity */
.player-info {
    flex: 1;
    min-width: 0;
}

.player-identity {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hidden-icon {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.hidden-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-primary);
}

/* Player Stats */
.player-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
}

.stat-value {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.stat-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.stat-icon {
    width: 16px;
    height: 16px;
    background: #00e701;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
    margin-left: 4px;
}

/* DC icons for live stats */
.leaderboard-stat .stat-icon {
    width: 14px;
    height: 14px;
    font-size: 7px;
    margin-left: 4px;
    background: #00e701;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

/* Wallet icons - match Live Stats styling */
.wallet-icon {
    width: 14px;
    height: 14px;
    background: #00e701;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 700;
    color: #000;
    margin-left: 4px;
    flex-shrink: 0;
}

.balance-gc .wallet-icon {
    background: #ffd700;
}

.balance-dc .wallet-icon {
    background: #00e701;
}

/* No data message */
.no-data {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 12px;
    padding: 20px;
    font-style: italic;
}

/* Wallet Modal */
#walletModal {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 320px;
    background: #213743;
    border-radius: 12px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#walletModal.hidden {
    display: none;
}

#walletModal:has(#bundlesView:not(.hidden)),
#walletModal:has(#paymentView:not(.hidden)),
#walletModal:has(#redeemView:not(.hidden)),
#walletModal:has(#dailyBonusView:not(.hidden)) {
    width: 500px;
}

.wallet-modal-content {
    width: 100%;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.wallet-modal-header {
    background: #1a2c38;
    padding: 16px 20px;
    border-bottom: 1px solid #2a3943;
}

/* Modal Views */
.modal-view {
    display: block;
    padding: 20px;
}

.modal-view.hidden {
    display: none;
}

/* Bundles Styling */
.bundles-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 0 4px;
    position: relative;
}

.bundles-back-btn {
    background: transparent;
    border: 1px solid #2a3943;
    color: #8A9BB3;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.bundles-back-btn:hover {
    border-color: #00e701;
    color: #00e701;
}

.bundles-back-btn.hidden {
    display: none;
}

.bundles-header p {
    color: #8A9BB3;
    font-size: 11px;
    margin: 0;
    opacity: 0.8;
    line-height: 1.2;
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding: 0 8px;
}

.bundle-card {
    background: #1a2c38;
    border: 1px solid #2a3943;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
    min-width: 0;
    min-height: 160px;
}

.bundle-card:hover { /* hover disabled */ }

.bundle-bonus {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 2px;
}

.bonus-icon {
    width: 16px;
    height: 16px;
    background: #00e701;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #000;
    flex-shrink: 0;
}

.bonus-icon.disabled {
    background: #4a5568;
    opacity: 0.5;
}

.bundle-bonus span {
    color: #00e701;
    font-size: 10px;
    font-weight: 500;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

.bundle-coin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 2px 0;
}

.coin-icon {
    width: 56px;
    height: 56px;
    background: url('../gold-coin.png') center/contain no-repeat;
    transition: transform 0.2s ease;
    margin-bottom: 6px;
    filter: brightness(1.1);
}

.coin-icon-small {
    transform: scale(0.9);
}

.coin-icon-medium {
    transform: scale(1.1);
}

.coin-icon-large {
    transform: scale(1.3);
}

.coin-amount {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.coin-label {
    font-size: 12px;
    color: #8A9BB3;
    line-height: 1.2;
    opacity: 0.9;
}

.bundle-price-btn {
    width: 100%;
    background: #00e701;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: auto;
    height: 32px;
    line-height: 1;
}

.bundle-price-btn:hover { /* hover disabled */ }

.bundles-footer {
    text-align: center;
    color: #8A9BB3;
    font-size: 9px;
    margin-top: 6px;
    opacity: 0.6;
    padding: 0 6px;
}

.bundles-footer p {
    margin: 0;
    line-height: 1;
}

/* Payment View Styling */
.payment-header {
    padding: 16px 20px;
    border-bottom: 1px solid #2a3943;
}

.payment-back-btn {
    background: transparent;
    border: 1px solid #2a3943;
    color: #8A9BB3;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-back-btn:hover {
    border-color: #00e701;
    color: #00e701;
}

.payment-content {
    padding: 20px;
}

.bundle-summary h3 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.bundle-items {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.bundle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a2c38;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #2a3943;
}

.bundle-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #000;
}

.bundle-icon.gc-icon {
    background: #ffd700;
}

.bundle-icon.dc-icon {
    background: #00e701;
}

.bundle-amount {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.bundle-label {
    font-size: 12px;
    color: #8A9BB3;
}

.payment-disclaimer {
    margin-bottom: 20px;
}

.payment-disclaimer p {
    color: #8A9BB3;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.payment-methods {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-method {
    flex: 1;
    background: #1a2c38;
    border: 1px solid #2a3943;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.payment-method.active {
    border-color: #00e701;
    background: #0f2e16;
}

.payment-method.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.payment-method span {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.payment-method.disabled span {
    color: #8A9BB3;
}

.disabled-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 12px;
}

.payment-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a2c38;
    border: 1px dashed #2a3943;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
}

.alert-icon {
    color: #0066ff;
    font-size: 14px;
}

.payment-alert span {
    color: #fff;
    font-size: 12px;
}

.payment-proceed-btn {
    width: 100%;
    background: #0066ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-proceed-btn:hover { /* hover disabled */ }

/* Redeem View Styling */
.redeem-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: transparent;
    border: 1px dashed #4a5a6a;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

.redeem-alert .alert-icon {
    color: #4a9eff;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.redeem-alert span {
    color: #b8c5d1;
    font-size: 11px;
    line-height: 1.3;
}

.redeem-currency {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 16px;
}

.redeem-currency .currency-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #000;
}

.redeem-currency .currency-icon.dc-icon {
    background: #00e701;
}

.redeem-currency .currency-details {
    flex: 1;
}

.redeem-currency .currency-abbr {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.redeem-currency .currency-name {
    font-size: 10px;
    color: #6a7a8a;
}

.redeem-currency .currency-value {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.redeem-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 11px;
    color: #b8c5d1;
    font-weight: 400;
    margin-bottom: 2px;
}

.input-group {
    display: flex;
    gap: 0;
    position: relative;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: #1a2c38;
    height: 36px;
    box-sizing: border-box;
    align-items: center;
}

.input-group:focus-within {
    border-color: #4a9eff;
    box-shadow: 0 0 0 1px #4a9eff;
}

.input-group input {
    flex: 1;
    background: transparent !important;
    border: none;
    border-radius: 3px 0 0 3px;
    padding: 8px 12px;
    padding-right: 50px;
    color: #fff !important;
    font-size: 13px;
    -moz-appearance: textfield;
    appearance: none;
    height: 100%;
    box-sizing: border-box;
}

.input-group input::-webkit-outer-spin-button,
.input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-group input:focus {
    outline: none;
    background: transparent !important;
    color: #fff !important;
}

.input-group input::placeholder {
    color: #6a7a8a !important;
}

.max-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: transparent;
    border: none;
    border-radius: 0 3px 3px 0;
    color: #b8c5d1;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.max-btn:hover {
    background: transparent !important;
    color: #b8c5d1 !important;
    transform: none !important;
}



.copy-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6a7a8a;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
    transition: none;
}

.copy-btn:hover {
    color: #6a7a8a;
}

.crypto-select {
    background: #1a2c38;
    border: none;
    border-radius: 4px;
    padding: 10px 12px;
}

.crypto-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crypto-icon {
    font-size: 18px;
    color: #f7931a;
}

.crypto-details .crypto-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.crypto-details .crypto-full {
    font-size: 10px;
    color: #6a7a8a;
    line-height: 1.3;
    margin-top: 2px;
}

.estimated-amount {
    background: #1a2c38 !important;
    border: none;
    border-radius: 4px;
    padding: 10px 12px;
    color: #fff !important;
    font-size: 13px;
    width: 100%;
}

.estimated-amount:focus {
    outline: none;
    background: #1a2c38 !important;
    color: #fff !important;
}

.redeem-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    color: #6a7a8a;
    line-height: 1.4;
    margin-top: 4px;
}

.redeem-info span:first-child {
    display: flex;
    align-items: center;
    gap: 4px;
}

.redeem-info span:first-child::before {
    content: '⚠';
    color: #00e701;
    font-size: 11px;
}

.redeem-info .fee-info {
    color: #6a7a8a;
}

.redeem-info .fee-info::before {
    content: '⚠';
    color: #00e701;
    font-size: 11px;
    margin-right: 4px;
}

.redeem-btn {
    width: 100%;
    background: #0066ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 11px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.redeem-btn:hover { /* hover disabled */ }

/* Daily Bonus View Styling */
.daily-bonus-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 300px;
}

.daily-bonus-message {
    background: #1a2c38;
    border-radius: 4px;
    padding: 12px 16px;
    text-align: center;
}

.daily-bonus-message p {
    color: #b8c5d1;
    font-size: 13px;
    margin: 0;
    line-height: 1.3;
}

.daily-bonus-amount {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.daily-bonus-amount label {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.bonus-display {
    background: #1a2c38;
    border-radius: 4px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
}

.bonus-coin-icon {
    width: 24px;
    height: 24px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    flex-shrink: 0;
    border: none;
}

.bonus-amount {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.claim-bonus-btn {
    width: 100%;
    background: #0066ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
    min-height: 44px;
}

.claim-bonus-btn:hover { /* hover disabled */ }

.claim-bonus-btn:disabled {
    background: #4a5568;
    cursor: not-allowed;
    transform: none;
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #2a3943;
    background: #1a2c38;
}

.wallet-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-icon {
    font-size: 18px;
}

.wallet-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Breadcrumb parts */
.breadcrumb-dim { color: #8aa0b0; font-weight: 500; }
.breadcrumb-sep { color: #8aa0b0; font-weight: 500; }
.breadcrumb-current { color: #ffffff; font-weight: 600; }

.wallet-close-btn {
    background: none;
    border: none;
    color: #8A9BB3;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.wallet-close-btn:hover { /* hover disabled */ }

.wallet-currencies {
    padding: 16px;
    background: transparent;
}

.currency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
    color: #8A9BB3;
    font-weight: 400;
}

.currency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.currency-item:hover { /* hover disabled */ }

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

.currency-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.gc-icon {
    background: #ffd700;
}

.dc-icon {
    background: #00e701;
}

.currency-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.currency-abbr {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.currency-name {
    font-size: 10px;
    color: #8A9BB3;
}

.currency-value {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.wallet-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    background: transparent;
    border-top: 1px solid #2a3943;
}

.wallet-action-btn {
    width: 100% !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    border-radius: 3px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #2a3943 !important;
    color: #fff !important;
    border: none !important;
    margin: 0 !important;
    height: 32px !important;
}

.wallet-action-btn:hover { /* hover disabled */ }

.wallet-action-btn.primary-btn {
    background: #0066ff !important;
    color: #fff !important;
    border: none !important;
}

.wallet-action-btn.primary-btn:hover { /* hover disabled */ }

.wallet-action-btn.secondary-btn {
    background: #2a3943 !important;
    color: #fff !important;
    border: none !important;
}

.wallet-action-btn.secondary-btn:hover { /* hover disabled */ }


/* Appearance Modal */
.modal.hidden { display: none; }

/* Global hover overrides removed as per request to restore hovers */

/* Homepage layout for wallet positioning */
.homepage-layout {
    position: relative;
}
.modal h2 { margin-top: 0; margin-bottom: 16px; }
.appearance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.appearance-group { display: flex; flex-direction: column; gap: 8px; }
.appearance-group label { font-size: 12px; color: #a8b2c8; text-transform: uppercase; letter-spacing: 0.5px; }
.modal-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 8px; }

/* Removed avatar-preview styling - no longer needed */

