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

html {
    height: 100%;
}

:root {
    --gold-primary: #FFD700;
    --gold-dark: #DAA520;
    --gold-light: #FFED4A;
    --black-bg: url(img/bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    --dark-gray: #fbff1d;
    --gray: #2a2a2a;
    --text-light: #ffffff;
    --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.5);
    --gradient-gold: linear-gradient(135deg, #FFD700, #FFA500);
    --gradient-dark: linear-gradient(135deg, #000000, #1a1a1a);
    --card-bg: rgba(26, 26, 26, 0.9);
}

body {
    font-family: 'Prompt', sans-serif;
    background: url(img/bg.jpg) center center / cover no-repeat;
    background-attachment: fixed;
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -2;
    pointer-events: none;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(255, 165, 0, 0.05) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Container for main content */
.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Section */
.header {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0.9) 70%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);    
}

.logo {
    max-width: 160px;
    height: 160px;
    margin: 1rem auto 1.5rem auto;
    border-radius: 50%;
    border: 3px solid var(--gold-primary);
    filter: drop-shadow(0 0 20px var(--gold-primary));
    animation: logoGlow 3s ease-in-out infinite;
    object-fit: cover;
    background: var(--gradient-dark);
    padding: 10px;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.4),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 15px var(--gold-primary)); }
    50% { filter: drop-shadow(0 0 25px var(--gold-light)); }
}

.site-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    position: relative;
}

.site-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

/* Online Counter */
.online-counter {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
    z-index: 10;
}

.online-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 32px;
    border-radius: 30px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(20, 20, 20, 0.9) 50%, 
        rgba(0, 0, 0, 0.95) 100%);
    border: 3px solid var(--gold-primary);
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.5),
        0 0 60px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold-light);
    animation: onlineCounterPulse 3s ease-in-out infinite;
    backdrop-filter: blur(15px);
    position: relative;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.online-box:hover {
    transform: scale(1.08);
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.7),
        0 0 80px rgba(255, 215, 0, 0.4),
        inset 0 0 25px rgba(255, 215, 0, 0.15),
        0 12px 40px rgba(0, 0, 0, 0.4);
}

.online-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Prompt', sans-serif;
}

.online-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
    animation: liveBlink 2s ease-in-out infinite;
}

.online-unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-light);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

#onlineCount {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold-accent);
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.4);
    letter-spacing: 1px;
    animation: numberGlow 2.5s ease-in-out infinite;
}

@keyframes liveBlink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.7; }
}

@keyframes numberGlow {
    0%, 100% { 
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.4);
    }
    50% { 
        text-shadow: 
            0 0 15px rgba(255, 215, 0, 1),
            0 0 30px rgba(255, 215, 0, 0.6),
            0 0 45px rgba(255, 215, 0, 0.3);
    }
}

.online-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--gradient-gold);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.7;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes onlineCounterPulse {
    0%, 100% {
        transform: scale(1.05);
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.5),
            0 0 60px rgba(255, 215, 0, 0.3),
            inset 0 0 20px rgba(255, 215, 0, 0.1),
            0 8px 32px rgba(0, 0, 0, 0.3);
        border-color: var(--gold-primary);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 
            0 0 40px rgba(255, 215, 0, 0.8),
            0 0 80px rgba(255, 215, 0, 0.5),
            inset 0 0 25px rgba(255, 215, 0, 0.2),
            0 12px 40px rgba(0, 0, 0, 0.4);
        border-color: var(--gold-light);
    }
}

.pulse-dot {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, var(--gold-light), var(--gold-primary));
    border-radius: 50%;
    animation: dotPulse 1.5s infinite;
    position: relative;
    box-shadow: 
        0 0 15px var(--gold-primary),
        0 0 30px rgba(255, 215, 0, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gold-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: dotRipple 1.5s infinite;
}

@keyframes dotPulse {
    0% { 
        transform: scale(1); 
        opacity: 1; 
        box-shadow: 
            0 0 15px var(--gold-primary),
            0 0 30px rgba(255, 215, 0, 0.6);
    }
    50% { 
        transform: scale(1.3); 
        opacity: 0.9; 
        box-shadow: 
            0 0 25px var(--gold-primary),
            0 0 50px rgba(255, 215, 0, 0.8),
            0 0 75px rgba(255, 215, 0, 0.4);
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
        box-shadow: 
            0 0 15px var(--gold-primary),
            0 0 30px rgba(255, 215, 0, 0.6);
    }
}

@keyframes dotRipple {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(2); opacity: 0; }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--black-bg);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    border: 2px solid var(--gold-primary);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.7);
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    backdrop-filter: blur(10px);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.btn-primary:hover {
    background: var(--gold-light);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7);
}

.btn-secondary:hover {
    background: var(--gold-primary);
    color: var(--black-bg);
    transform: translateY(-2px) scale(1.02);
}

/* Statistics Section */
.stats-section {
    padding: 0.1rem 0.1rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--gold-primary);
    border-radius: 15px;
    padding: 1.2rem;
    box-shadow: 
        var(--shadow-gold),
        inset 0 0 20px rgba(255, 215, 0, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    opacity: 0.8;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.5);
    border-color: var(--gold-light);
}

.stat-label {
    color: var(--gold-primary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: var(--text-light);
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 0 15px var(--gold-primary);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Live Withdrawal Section */
.live-withdrawals {
    padding: 1.8rem 1.2rem;
    background: rgba(0, 0, 0, 0.9);
    margin: 2rem 0;
    border-radius: 20px;
    border: 2px solid var(--gold-primary);
    box-shadow: 
        var(--shadow-gold),
        inset 0 0 30px rgba(255, 215, 0, 0.05);
    backdrop-filter: blur(15px);
    position: relative;
}

.live-withdrawals::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--gradient-gold);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.section-title {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-title::before {
    content: '💸';
    margin-right: 8px;
    font-size: 1.2rem;
}

        .withdrawal-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.8rem;
            position: relative;
            min-height: 200px;
        }

        .withdrawal-card {
            background: rgba(0, 0, 0, 0.8);
            border: 1px solid var(--gold-primary);
            border-radius: 12px;
            padding: 1rem;
            text-align: center;
            box-shadow: 
                0 4px 15px rgba(255, 215, 0, 0.2),
                inset 0 0 15px rgba(255, 215, 0, 0.05);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
            opacity: 1;
            transform: translateY(0) scale(1);
        }

.withdrawal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-gold);
    opacity: 0.6;
}

.withdrawal-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    border-color: var(--gold-light);
}

        .bank-icon {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            margin-bottom: 0.5rem;
            border: 2px solid var(--gold-primary);
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .withdrawal-card:hover .bank-icon {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
        }

.withdrawal-user {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.withdrawal-amount {
    color: var(--gold-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.withdrawal-time {
    color: #ccc;
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
    opacity: 0.8;
}

        .withdrawal-status {
            color: #4CAF50;
            font-size: 0.65rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.3rem;
            font-weight: 600;
            text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
        }

        /* Withdrawal Card Animations */
        .withdrawal-card-enter {
            opacity: 0;
            transform: translateY(20px) scale(0.9);
        }

        .withdrawal-card-exit {
            opacity: 0;
            transform: translateY(-20px) scale(0.9);
        }

        .withdrawal-pulse {
            animation: withdrawalPulse 0.6s ease-out;
        }

        @keyframes withdrawalPulse {
            0% {
                transform: scale(1);
                box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
            }
            100% {
                transform: scale(1);
                box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
            }
        }



/* Games Section */
.games-section {
    padding: 1.5rem 1rem;
    overflow: hidden;
}

/* Slider Container */
.slider-container {
    width: 100%;
    overflow: hidden;
    mask: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

.slide-track {
    display: flex;
    animation: autoSlide 60s linear infinite;
    width: calc(150px * 32); /* 16 cards * 2 for infinite loop */
}

.slide-track:hover {
    animation-play-state: paused;
}

@keyframes autoSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-150px * 16)); /* Move exactly half the width */
    }
}

.game-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    padding: 0.8rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    flex: 0 0 130px;
    margin-right: 20px;
    cursor: pointer;
    min-height: 160px;
}

.game-card::after {
    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;
}

.game-card:hover::after {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--gold-accent);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
    z-index: 10;
}

/* Fire Effect for High Win Rate Games (96.8%+) */
.game-card.fire-effect {
    border: 3px solid #ff4500;
    box-shadow: 
        0 0 30px rgba(255, 69, 0, 0.9),
        0 0 60px rgba(255, 140, 0, 0.7),
        0 0 90px rgba(255, 69, 0, 0.5),
        inset 0 0 30px rgba(255, 69, 0, 0.3);
    animation: fireGlow 2.5s ease-in-out infinite alternate;
    position: relative;
    transform: scale(1.02);
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card.fire-effect::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, 
        #ff0000, #ff4500, #ff6500, #ff8500, #ffa500, 
        #ffff00, #ffa500, #ff8500, #ff6500, #ff4500, #ff0000);
    background-size: 600% 600%;
    border-radius: 18px;
    z-index: -1;
    animation: fireAnimation 3s ease-in-out infinite;
    opacity: 0.8;
}

.game-card.fire-effect::after {
    content: '🔥🔥🔥';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1.2rem;
    animation: fireFlicker 2s ease-in-out infinite;
    z-index: 15;
    text-shadow: 
        0 0 10px rgba(255, 69, 0, 1),
        0 0 20px rgba(255, 140, 0, 0.8),
        0 0 30px rgba(255, 69, 0, 0.6);
    filter: drop-shadow(0 0 5px rgba(255, 69, 0, 0.8));
}

.game-card.fire-effect .game-title {
    color: #fff;
    text-shadow: 
        0 0 5px rgba(255, 69, 0, 0.8),
        1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.game-card.fire-effect .game-percentage {
    color: #ffff00;
    font-weight: 900;
    text-shadow: 
        0 0 15px rgba(255, 255, 0, 0.8),
        0 0 25px rgba(255, 69, 0, 0.6),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: pulseGlow 2.8s ease-in-out infinite;
    font-size: 1.1em;
}

.game-card.fire-effect .percentage-fill {
    background: linear-gradient(90deg, 
        #ff0000, #ff4500, #ff6500, #ff8500, #ffa500, #ffff00);
    background-size: 200% 100%;
    animation: fireBarAnimation 4s ease-in-out infinite;
    box-shadow: 
        0 0 15px rgba(255, 69, 0, 0.8),
        inset 0 0 10px rgba(255, 255, 0, 0.4);
    border-radius: 3px;
}

.game-card.fire-effect .percentage-bar {
    box-shadow: inset 0 0 10px rgba(255, 69, 0, 0.3);
    border: 1px solid rgba(255, 69, 0, 0.5);
}

/* Add fire particles effect */
.game-card.fire-effect:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 40px rgba(255, 69, 0, 1),
        0 0 80px rgba(255, 140, 0, 0.8),
        0 0 120px rgba(255, 69, 0, 0.6);
}

/* Fire sparks animation */
.game-card.fire-effect:before {
    animation: fireAnimation 3s ease-in-out infinite, fireSparks 5s ease-in-out infinite;
}

/* Fire effect for game image */
.game-card.fire-effect img {
    border: 2px solid rgba(255, 69, 0, 0.6);
    box-shadow: 
        0 0 15px rgba(255, 69, 0, 0.8),
        inset 0 0 10px rgba(255, 140, 0, 0.3);
    filter: brightness(1.1) contrast(1.1);
    animation: imageFireGlow 3.2s ease-in-out infinite alternate;
}

@keyframes imageFireGlow {
    0% {
        box-shadow: 
            0 0 15px rgba(255, 69, 0, 0.8),
            inset 0 0 10px rgba(255, 140, 0, 0.3);
        filter: brightness(1.1) contrast(1.1);
    }
    100% {
        box-shadow: 
            0 0 25px rgba(255, 69, 0, 1),
            0 0 35px rgba(255, 140, 0, 0.6),
            inset 0 0 15px rgba(255, 255, 0, 0.4);
        filter: brightness(1.2) contrast(1.2);
    }
}

@keyframes fireGlow {
    0% {
        box-shadow: 
            0 0 30px rgba(255, 69, 0, 0.9),
            0 0 60px rgba(255, 140, 0, 0.7),
            0 0 90px rgba(255, 69, 0, 0.5),
            inset 0 0 30px rgba(255, 69, 0, 0.3);
    }
    100% {
        box-shadow: 
            0 0 40px rgba(255, 69, 0, 1),
            0 0 80px rgba(255, 140, 0, 0.9),
            0 0 120px rgba(255, 69, 0, 0.7),
            inset 0 0 40px rgba(255, 69, 0, 0.4);
    }
}

@keyframes fireAnimation {
    0% {
        background-position: 0% 50%;
        opacity: 0.8;
        transform: scale(1);
    }
    25% {
        background-position: 50% 25%;
        opacity: 0.9;
        transform: scale(1.01);
    }
    50% {
        background-position: 100% 50%;
        opacity: 1;
        transform: scale(1.02);
    }
    75% {
        background-position: 150% 75%;
        opacity: 0.95;
        transform: scale(1.01);
    }
    100% {
        background-position: 200% 50%;
        opacity: 0.8;
        transform: scale(1);
    }
}

@keyframes fireFlicker {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg) brightness(1);
    }
    16.66% {
        opacity: 0.95;
        transform: scale(1.03) rotate(-0.5deg);
        filter: hue-rotate(2deg) brightness(1.05);
    }
    33.33% {
        opacity: 1;
        transform: scale(0.97) rotate(0.5deg);
        filter: hue-rotate(-2deg) brightness(0.95);
    }
    50% {
        opacity: 0.98;
        transform: scale(1.05) rotate(-0.3deg);
        filter: hue-rotate(3deg) brightness(1.1);
    }
    66.66% {
        opacity: 1;
        transform: scale(0.99) rotate(0.3deg);
        filter: hue-rotate(-1deg) brightness(0.98);
    }
    83.33% {
        opacity: 0.97;
        transform: scale(1.02) rotate(-0.2deg);
        filter: hue-rotate(1deg) brightness(1.03);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg) brightness(1);
    }
}

@keyframes pulseGlow {
    0% {
        text-shadow: 
            0 0 15px rgba(255, 255, 0, 0.8),
            0 0 25px rgba(255, 69, 0, 0.6),
            0 0 35px rgba(255, 140, 0, 0.4);
        transform: scale(1);
    }
    25% {
        text-shadow: 
            0 0 20px rgba(255, 255, 0, 0.9),
            0 0 30px rgba(255, 69, 0, 0.7),
            0 0 40px rgba(255, 140, 0, 0.5);
        transform: scale(1.02);
    }
    50% {
        text-shadow: 
            0 0 25px rgba(255, 255, 0, 1),
            0 0 35px rgba(255, 69, 0, 0.8),
            0 0 45px rgba(255, 140, 0, 0.6);
        transform: scale(1.05);
    }
    75% {
        text-shadow: 
            0 0 20px rgba(255, 255, 0, 0.9),
            0 0 30px rgba(255, 69, 0, 0.7),
            0 0 40px rgba(255, 140, 0, 0.5);
        transform: scale(1.02);
    }
    100% {
        text-shadow: 
            0 0 15px rgba(255, 255, 0, 0.8),
            0 0 25px rgba(255, 69, 0, 0.6),
            0 0 35px rgba(255, 140, 0, 0.4);
        transform: scale(1);
    }
}

@keyframes fireBarAnimation {
    0% {
        background-position: 0% 50%;
        filter: brightness(1) saturate(1);
    }
    16.66% {
        background-position: 20% 40%;
        filter: brightness(1.05) saturate(1.1);
    }
    33.33% {
        background-position: 40% 60%;
        filter: brightness(1.1) saturate(1.2);
    }
    50% {
        background-position: 60% 30%;
        filter: brightness(1.15) saturate(1.3);
    }
    66.66% {
        background-position: 80% 70%;
        filter: brightness(1.1) saturate(1.2);
    }
    83.33% {
        background-position: 100% 45%;
        filter: brightness(1.05) saturate(1.1);
    }
    100% {
        background-position: 120% 50%;
        filter: brightness(1) saturate(1);
    }
}

@keyframes fireSparks {
    0% {
        opacity: 0.8;
        transform: scale(1);
        filter: blur(0px) brightness(1);
    }
    12.5% {
        opacity: 0.85;
        transform: scale(1.005);
        filter: blur(0.2px) brightness(1.02);
    }
    25% {
        opacity: 0.95;
        transform: scale(1.01);
        filter: blur(0px) brightness(1.05);
    }
    37.5% {
        opacity: 1;
        transform: scale(1.015);
        filter: blur(0.1px) brightness(1.08);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
        filter: blur(0px) brightness(1.1);
    }
    62.5% {
        opacity: 0.95;
        transform: scale(1.015);
        filter: blur(0.1px) brightness(1.08);
    }
    75% {
        opacity: 1;
        transform: scale(1.01);
        filter: blur(0px) brightness(1.05);
    }
    87.5% {
        opacity: 0.85;
        transform: scale(1.005);
        filter: blur(0.2px) brightness(1.02);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
        filter: blur(0px) brightness(1);
    }
}

.game-card img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    object-fit: cover;
    border: 2px solid var(--gold-primary);
}

.game-title {
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-percentage {
    color: var(--gold-accent);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.percentage-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.percentage-fill {
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-accent));
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
    position: relative;
}

.percentage-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Charts Section */
.charts-section {
    padding: 2rem 1rem;
}

/* Quick Stats Grid */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.quick-stat-card {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--gold-primary);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.quick-stat-card::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 ease;
}

.quick-stat-card:hover::before {
    left: 100%;
}

.quick-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border-color: var(--gold-light);
}

.quick-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.quick-stat-label {
    font-size: 0.9rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.quick-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.quick-stat-unit {
    font-size: 0.8rem;
    color: var(--gold-primary);
    opacity: 0.8;
}

/* Chart Container */
.chart-container {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--gold-primary);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        var(--shadow-gold),
        inset 0 0 30px rgba(255, 215, 0, 0.05);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-title {
    font-size: 1.2rem;
    color: var(--gold-primary);
    margin: 0;
    font-weight: 600;
}

.chart-wrapper {
    position: relative;
    margin: 1.5rem 0;
}

.chart-summary {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--gold-primary);
    font-size: 0.9rem;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.legend-color.deposit {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.legend-color.withdraw {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.chart-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--gradient-gold);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.2;
}

.chart-controls {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.chart-btn {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.chart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    transition: left 0.3s ease;
    z-index: -1;
}

.chart-btn:hover::before,
.chart-btn.active::before {
    left: 0;
}

.chart-btn:hover,
.chart-btn.active {
    color: var(--black-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

#statsChart {
    max-height: 300px;
}

/* Promotions Section */
.promotions-section {
    padding: 1.5rem 1rem;
}

.promo-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        var(--shadow-gold),
        0 0 40px rgba(255, 215, 0, 0.3);
    border: 3px solid var(--gold-primary);
    margin-bottom: 2rem;
    position: relative;
}

.promo-main::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-gold);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.7;
    animation: promoGlow 3s ease-in-out infinite;
}

@keyframes promoGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.promo-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.promo-main:hover img {
    transform: scale(1.02);
}

.custom-promo-banner {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.promo-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 165, 0, 0.1) 0%, transparent 50%);
}

.promo-logo {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold-primary);
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 10px var(--gold-primary);
}

.floating-coins {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.coin-float {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: coinBounce 3s ease-in-out infinite;
}

@keyframes coinBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-15px) rotate(180deg); opacity: 1; }
}

.coin-float:nth-child(1) { top: 40px; left: 20px; animation-delay: 0s; }
.coin-float:nth-child(2) { top: 30px; left: 60px; animation-delay: 0.5s; }
.coin-float:nth-child(3) { top: 50px; right: 60px; animation-delay: 1s; }
.coin-float:nth-child(4) { top: 35px; right: 20px; animation-delay: 1.5s; }

.promo-girl {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 100px;
    height: 150px;
}

.girl-silhouette {
    width: 80px;
    height: 120px;
    background: linear-gradient(45deg, #FF6B9D, #FF8E8E);
    border-radius: 40px 40px 20px 20px;
    position: relative;
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.5);
}

.girl-silhouette::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.cards-hand {
    color: var(--gold-primary);
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 0 8px var(--gold-primary);
    animation: cardsGlow 2s ease-in-out infinite;
}

@keyframes cardsGlow {
    0%, 100% { text-shadow: 0 0 8px var(--gold-primary); }
    50% { text-shadow: 0 0 15px var(--gold-primary), 0 0 20px var(--gold-light); }
}

.promo-main-text {
    position: absolute;
    bottom: 100px;
    left: 20px;
    color: var(--gold-primary);
    font-size: 22px;
    font-weight: bold;
    text-shadow: 0 0 10px var(--gold-primary);
}

.promo-bonus-text {
    position: absolute;
    bottom: 65px;
    left: 20px;
    color: var(--gold-primary);
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 15px var(--gold-primary);
    animation: bonusGlow 2s ease-in-out infinite;
}

@keyframes bonusGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.promo-condition {
    position: absolute;
    bottom: 35px;
    left: 20px;
    color: var(--text-light);
    font-size: 11px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.promo-cta {
    position: absolute;
    bottom: 10px;
    right: 20px;
    background: var(--gradient-gold);
    color: var(--black-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    animation: ctaPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
    50% { transform: scale(1.1); box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); }
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.promo-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        var(--shadow-gold),
        0 0 20px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid var(--gold-primary);
    position: relative;
    background: rgba(0, 0, 0, 0.8);
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--gradient-gold);
    border-radius: 15px;
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.5);
}

.promo-card:hover::before {
    opacity: 0.6;
}

.promo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.promo-card:hover .promo-image {
    transform: scale(1.05);
}

/* Winner Ticker */
.winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--gradient-dark);
    border-top: 2px solid var(--gold-primary);
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 15px rgba(255, 215, 0, 0.4);
}

.ticker-content {
    white-space: nowrap;
    overflow: hidden;
}

.ticker-text {
    display: inline-block;
    animation: tickerScroll 45s linear infinite;
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.winner-item {
    display: inline-block;
    margin-right: 40px;
    padding: 4px 12px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 15px;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* Mobile Bottom Padding */
body {
    padding-bottom: 60px;
    position: relative;
}

/* Floating Elements */
.floating-sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.sparkle {
    position: absolute;
    color: var(--gold-primary);
    font-size: 12px;
    animation: sparkleFloat 6s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes sparkleFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.3; 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 1; 
    }
}

.sparkle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 40%; right: 15%; animation-delay: 1s; }
.sparkle:nth-child(3) { top: 60%; left: 20%; animation-delay: 2s; }
.sparkle:nth-child(4) { top: 80%; right: 10%; animation-delay: 3s; }
.sparkle:nth-child(5) { top: 30%; left: 50%; animation-delay: 4s; }

/* Improved Section Spacing */
.main-container > section {
    margin-bottom: 2rem;
}

/* Responsive Design */

/* Mobile First - Base styles for mobile devices */
@media (max-width: 480px) {
    .main-container {
        max-width: 100%;
        padding: 0 0.75rem;
    }

    /* Header Optimizations */
    .header {
        padding: 1.5rem 0.75rem;
    }

    .logo {
        max-width: 120px;
        height: 120px;
        margin: 0.75rem auto 1rem auto;
    }

    .site-title {
        font-size: 1.6rem;
        letter-spacing: 1px;
        margin-bottom: 0.75rem;
    }

    /* Online Counter Mobile */
    .online-box {
        padding: 10px 20px;
        font-size: 0.85rem;
        transform: scale(1);
        flex-direction: row;
        gap: 6px;
        text-align: center;
    }

    .online-text {
        flex-direction: row;
        gap: 6px;
        align-items: center;
    }

    #onlineCount {
        font-size: 1rem;
        font-weight: 700;
    }
    
    .online-unit {
        font-size: 0.8rem;
    }
    
    .online-label {
        font-size: 0.75rem;
    }

    /* Action Buttons Mobile */
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin: 1.5rem 0;
    }

    .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 1.1rem;
        min-width: auto;
        min-height: 50px;
        border-radius: 25px;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
        transition: all 0.3s ease;
        border: 2px solid var(--gold-primary);
    }
    
    .btn:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    }

    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .stat-card {
        padding: 0.8rem 0.3rem;
        text-align: center;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
        min-height: 85px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        word-wrap: break-word;
    }

    .stat-label {
        font-size: 0.65rem;
        margin-bottom: 0.4rem;
        font-weight: 500;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stat-value {
        font-size: 0.9rem;
        font-weight: 700;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-spacing: -1px;
        letter-spacing: -0.5px;
    }

    /* Withdrawals Mobile */
    .live-withdrawals {
        padding: 1.2rem 0.75rem;
        margin: 1.5rem 0;
    }

    .withdrawal-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        min-height: 150px;
    }

    .withdrawal-card {
        padding: 1.2rem 1rem;
        border-radius: 15px;
        min-height: 120px;
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .bank-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 0.5rem;
    }

    .withdrawal-user {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
        font-weight: 500;
    }

    .withdrawal-amount {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.3rem;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }

    .withdrawal-time {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
        opacity: 0.8;
    }
    
    .withdrawal-status {
        font-size: 0.75rem;
        font-weight: 600;
    }

    /* Games Slider Mobile */
    .games-section {
        padding: 1rem 0;
        margin: 0 -0.75rem;
    }
    
    .slide-track {
        width: calc(110px * 32);
        animation: autoSlideMobile 60s linear infinite;
    }
    
    @keyframes autoSlideMobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-110px * 16)); }
    }
    
    .game-card {
        flex: 0 0 90px;
        margin-right: 12px;
        min-height: 130px;
        padding: 0.5rem;
    }
    
    /* Fire effect mobile adjustments */
    .game-card.fire-effect {
        transform: scale(1.01);
    }
    
    .game-card.fire-effect::after {
        content: '🔥🔥';
        font-size: 0.8rem;
        top: -3px;
        right: -3px;
    }
    
    .game-card.fire-effect .game-percentage {
        font-size: 0.9em;
    }
    
    .game-card img {
        width: 35px;
        height: 35px;
        margin-bottom: 0.4rem;
    }
    
    .game-title {
        font-size: 0.6rem;
        height: 1.8rem;
        line-height: 1.1;
    }
    
    .game-percentage {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .percentage-bar {
        height: 4px;
    }

    /* Charts Mobile */
    .charts-section {
        padding: 1.5rem 0.75rem;
    }

    /* Quick Stats Mobile */
    .quick-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .quick-stat-card {
        padding: 1rem 0.75rem;
        border-radius: 12px;
        min-height: 100px;
    }

    .quick-stat-icon {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    .quick-stat-label {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }

    .quick-stat-value {
        font-size: 1.3rem;
        margin-bottom: 0.1rem;
    }

    .quick-stat-unit {
        font-size: 0.7rem;
    }

    /* Chart Container Mobile */
    .chart-container {
        padding: 1.2rem;
        border-radius: 15px;
    }

    .chart-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .chart-title {
        font-size: 1rem;
        text-align: center;
    }

    .chart-controls {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .chart-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        flex: 1;
        min-width: 80px;
        min-height: 44px;
        border-radius: 20px;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
    }
    
    .chart-btn:active {
        transform: scale(0.98);
    }

    .chart-wrapper {
        margin: 1rem 0;
    }

    #statsChart {
        max-height: 220px;
    }

    .chart-summary {
        font-size: 0.8rem;
        padding: 0.75rem;
        margin: 1rem 0;
    }

    .chart-legend {
        gap: 1rem;
        margin-top: 0.75rem;
    }

    .legend-item {
        font-size: 0.8rem;
    }

    .legend-color {
        width: 12px;
        height: 12px;
    }

    /* Promotions Mobile */
    .promotions-section {
        padding: 1rem 0.75rem;
    }

    .promo-main {
        margin-bottom: 1.5rem;
        border-radius: 15px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .promo-card {
        border-radius: 12px;
    }

    /* Winner Ticker Mobile */
    .winner-ticker {
        padding: 6px 0;
    }

    .ticker-text {
        font-size: 0.8rem;
    }

    .winner-item {
        padding: 3px 10px;
        margin-right: 30px;
        font-size: 0.8rem;
    }

    /* Bottom padding for mobile */
    body {
        padding-bottom: 50px;
    }
}

/* Small Mobile to Large Mobile */
@media (min-width: 481px) and (max-width: 768px) {
    .main-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .header {
        padding: 1.75rem 1rem;
    }

    .logo {
        max-width: 140px;
        height: 140px;
    }

    .site-title {
        font-size: 1.9rem;
    }

    .online-box {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .stat-card {
        padding: 0.9rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .withdrawal-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .slide-track {
        width: calc(130px * 32);
        animation: autoSlideTablet 60s linear infinite;
    }
    
    @keyframes autoSlideTablet {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-130px * 16)); }
    }
    
    .game-card {
        flex: 0 0 110px;
        margin-right: 18px;
        min-height: 150px;
        padding: 0.7rem;
    }
    
    .game-card img {
        width: 45px;
        height: 45px;
    }
    
    .game-title {
        font-size: 0.7rem;
        height: 2.1rem;
    }
    
    .game-percentage {
        font-size: 0.95rem;
    }

    .chart-controls {
        gap: 0.6rem;
    }

    .chart-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

/* Tablet Portrait and Small Desktop */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-container {
        max-width: 90%;
        padding: 0 1.5rem;
    }

    .header {
        padding: 2rem 1.5rem;
    }

    .logo {
        max-width: 150px;
        height: 150px;
    }

    .site-title {
        font-size: 2rem;
    }

    .online-box {
        padding: 15px 30px;
        font-size: 1.05rem;
    }

    .action-buttons {
        gap: 1.2rem;
    }

    .btn {
        padding: 13px 24px;
        font-size: 1rem;
        min-width: 200px;
    }

    .stats-grid {
        gap: 1rem;
    }

    .stat-card {
        padding: 1.1rem;
    }

    .withdrawal-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.9rem;
    }

    .games-section {
        padding: 1.5rem 1rem;
    }

    .slide-track {
        width: calc(140px * 32);
    }
    
    .game-card {
        flex: 0 0 120px;
        margin-right: 18px;
        min-height: 155px;
        padding: 0.8rem;
    }
    
    .game-card img {
        width: 48px;
        height: 48px;
    }

    .chart-container {
        padding: 2.2rem;
    }

    .chart-controls {
        gap: 1rem;
        margin-bottom: 2.2rem;
    }

    .chart-btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    #statsChart {
        max-height: 350px;
    }

    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Large Desktop */
@media (min-width: 1025px) and (max-width: 1440px) {
    .main-container {
        max-width: 900px;
    }

    .header {
        padding: 2.5rem 1rem;
    }

    .logo {
        max-width: 170px;
        height: 170px;
    }

    .site-title {
        font-size: 2.3rem;
    }

    .online-box {
        padding: 18px 36px;
        font-size: 1.15rem;
    }

    .btn {
        min-width: 220px;
        font-size: 1.1rem;
    }

    .withdrawal-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .slide-track {
        width: calc(160px * 32);
    }
    
    .game-card {
        flex: 0 0 140px;
        margin-right: 22px;
        min-height: 170px;
        padding: 0.9rem;
    }
    
    .game-card img {
        width: 55px;
        height: 55px;
    }

    .game-title {
        font-size: 0.8rem;
        height: 2.6rem;
    }

    .game-percentage {
        font-size: 1.1rem;
    }

    #statsChart {
        max-height: 400px;
    }

    .chart-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1441px) {
    .main-container {
        max-width: 1000px;
    }

    .header {
        padding: 3rem 1rem;
    }

    .logo {
        max-width: 180px;
        height: 180px;
    }

    .site-title {
        font-size: 2.5rem;
    }

    .online-box {
        padding: 20px 40px;
        font-size: 1.2rem;
    }

    .slide-track {
        width: calc(170px * 32);
    }
    
    .game-card {
        flex: 0 0 150px;
        margin-right: 25px;
        min-height: 180px;
        padding: 1rem;
    }
    
    .game-card img {
        width: 60px;
        height: 60px;
    }

    #statsChart {
        max-height: 450px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }

    .btn:active {
        transform: translateY(1px) scale(0.98);
    }

    .game-card:hover {
        transform: none;
        border-color: var(--gold-primary);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    }

    .game-card:active {
        transform: translateY(1px) scale(0.98);
    }

    .stat-card:hover {
        transform: none;
    }

    .stat-card:active {
        transform: translateY(1px) scale(0.98);
    }

    .promo-card:hover {
        transform: none;
    }

    .promo-card:active {
        transform: translateY(1px) scale(0.98);
    }

    .withdrawal-card:hover {
        transform: none;
    }

    .chart-btn:hover {
        transform: none;
    }

    .chart-btn:active {
        transform: translateY(1px) scale(0.98);
    }

    /* Increase touch targets */
    .btn {
        min-height: 44px;
    }

    .chart-btn {
        min-height: 40px;
    }

    .game-card {
        cursor: pointer;
    }
}

/* Touch active states */
.touch-device .game-card.touch-active {
    transform: translateY(1px) scale(0.98);
    border-color: var(--gold-light);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.touch-device .chart-btn.touch-active {
    transform: translateY(1px) scale(0.98);
    background: var(--gradient-gold);
    color: var(--black-bg);
}

.touch-device .btn.touch-active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.touch-device .stat-card.touch-active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.touch-device .promo-card.touch-active,
.touch-device .promo-main.touch-active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

/* Custom CSS variables for mobile viewport units */
:root {
    --vh: 1vh;
}

/* Enhanced Background Responsive Design */

/* Base background with fallbacks */
html {
    background: #1a1a1a; /* Fallback color */
}

body {
    /* Progressive enhancement for background */
    background-color: #1a1a1a; /* Fallback solid color */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url(img/bg.jpg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-image 0.3s ease-in-out;
}

/* Background loading states */
body.bg-loading {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
}

body.bg-loaded {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url(img/bg.jpg);
}

/* Fallback for when background image fails */
body.bg-error {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 25%, #1a1a1a 50%, #2a2a2a 75%, #1a1a1a 100%);
    animation: bgFallbackShimmer 3s ease-in-out infinite;
}

@keyframes bgFallbackShimmer {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

/* Mobile Background Optimizations */
@media (max-width: 768px) {
    body {
        /* Scroll attachment for better mobile performance */
        background-attachment: scroll;
        /* Adjust background position for mobile */
        background-position: center top;
        /* Ensure background covers full height */
        background-size: cover;
        /* Add fallback for older mobile browsers */
        background-image: 
            linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
            url(img/bg.jpg);
    }
    
    /* Optimize animated background for mobile readability */
    .animated-bg {
        opacity: 0.2;
        background: 
            radial-gradient(circle at 30% 40%, rgba(255, 215, 0, 0.03) 0%, transparent 60%),
            radial-gradient(circle at 70% 60%, rgba(255, 165, 0, 0.03) 0%, transparent 60%);
    }
    
    /* Reduce sparkle count on mobile for performance */
    .floating-sparkles .sparkle:nth-child(n+4) {
        display: none;
    }
}

/* Tablet Background Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        background-attachment: fixed;
        background-position: center center;
        background-size: cover;
        /* Slightly more overlay for tablets */
        background-image: 
            linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
            url(img/bg.jpg);
    }
    
    .animated-bg {
        opacity: 0.4;
    }
}

/* Desktop Background Optimizations */
@media (min-width: 1025px) {
    body {
        background-attachment: fixed;
        background-position: center center;
        background-size: cover;
        /* Optimal overlay for desktop */
        background-image: 
            linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
            url(img/bg.jpg);
    }
    
    .animated-bg {
        opacity: 0.6;
    }
}

/* Large Desktop - Ultra Wide */
@media (min-width: 1441px) {
    body {
        /* Ensure background scales properly on ultra-wide */
        background-size: cover;
        background-position: center center;
    }
}

/* Portrait Orientation Specific */
@media (orientation: portrait) and (max-width: 768px) {
    body {
        background-position: center top;
        background-size: auto 100vh; /* Cover full height on portrait mobile */
    }
}

/* Landscape Orientation Specific */
@media (orientation: landscape) and (max-height: 500px) {
    body {
        background-position: center center;
        background-size: 100vw auto; /* Cover full width on landscape mobile */
        background-attachment: scroll; /* Always scroll on small landscape */
    }
}

/* High DPI Displays - Retina */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        /* Optimize background for high DPI displays */
        background-size: cover;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Support for older browsers without background-attachment: fixed */
@supports not (background-attachment: fixed) {
    body {
        background-attachment: scroll;
    }
}

/* Reduced Motion - Accessibility */
@media (prefers-reduced-motion: reduce) {
    .animated-bg {
        background: rgba(0, 0, 0, 0.2) !important;
    }
    
    body::before {
        background: rgba(0, 0, 0, 0.6) !important;
    }
}

/* Low Bandwidth / Data Saver */
@media (prefers-reduced-data: reduce) {
    body {
        background-image: linear-gradient(135deg, #1a1a1a 0%, #000000 100%) !important;
    }
    
    .animated-bg {
        display: none;
    }
}

/* Very Small Screens */
@media (max-width: 320px) {
    body {
        background-position: center top;
        background-size: 120% auto; /* Slight zoom for very small screens */
        background-attachment: scroll;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
    @media (max-width: 768px) {
        body {
            background-attachment: scroll !important;
            min-height: -webkit-fill-available;
        }
        
        html {
            height: -webkit-fill-available;
        }
    }
}

/* Android Chrome specific fixes */
@media (max-width: 768px) {
    .main-container {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .bank-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .game-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .animated-bg,
    .floating-sparkles,
    .winner-ticker {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .main-container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .slide-track {
        animation: none !important;
    }
    
    .floating-sparkles {
        display: none;
    }
}

/* Landscape orientation optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 1rem;
    }
    
    .logo {
        max-width: 80px;
        height: 80px;
        margin: 0.5rem auto;
    }
    
    .site-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .online-box {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .action-buttons {
        margin: 1rem 0;
    }
    
    .stats-section,
    .live-withdrawals,
    .games-section,
    .charts-section,
    .promotions-section {
        padding: 0.75rem 1rem;
        margin: 1rem 0;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll Effects */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Styles */
.footer {
    background: transparent;
    padding: 1.5rem 1rem;
    text-align: center;
    margin-top: 2rem;
    position: relative;
}

.footer a {
    color: rgba(255, 215, 0, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.3rem 0.5rem;
    opacity: 0.8;
}

.footer a:hover {
    color: var(--gold-primary);
    opacity: 1;
    text-decoration: underline;
}

.footer a:active {
    opacity: 0.9;
}

/* Bank Section Styles */
.bank-section {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.bank-container {
    margin-top: 1.5rem;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.bank-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 12px;
    border: 1px solid var(--gold-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 100px;
    justify-content: center;
}

.bank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.2);
}

.bank-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.bank-card:hover .bank-logo {
    transform: scale(1.1);
    filter: brightness(1.3);
}

.bank-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gold-primary);
    text-align: center;
    line-height: 1.2;
}

/* Bank section responsive styles */
@media (max-width: 768px) {
    .bank-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .bank-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .bank-card {
        padding: 0.8rem 0.5rem;
        min-height: 80px;
    }
    
    .bank-logo {
        width: 40px;
        height: 40px;
    }
    
    .bank-name {
        font-size: 0.7rem;
    }
    
    /* Additional Mobile Optimizations */
    
    /* Improve text readability on mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Better scrolling performance */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px;
    }
    
    /* Improve tap targets */
    .btn, .chart-btn, .game-card, .withdrawal-card, .stat-card, .promo-card {
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
        tap-highlight-color: rgba(255, 215, 0, 0.3);
    }
    
    /* Add haptic feedback simulation */
    .btn:active, .chart-btn:active, .game-card:active, 
    .withdrawal-card:active, .stat-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Optimize animations for mobile */
    .floating-sparkles {
        display: none;
    }
    
    /* Reduce motion for better performance */
    .slide-track {
        animation-duration: 80s;
        will-change: transform;
    }
    
    /* Better spacing for mobile */
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
        font-weight: 700;
        text-align: center;
    }
    
    /* Improve contrast for mobile */
    .online-box {
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid var(--gold-primary);
    }
    
    /* Better mobile layout */
    .main-container {
        padding: 0.5rem;
        margin: 0;
    }
    
    /* Optimize for thumb navigation */
    .action-buttons {
        position: sticky;
        top: 10px;
        z-index: 10;
        background: rgba(0, 0, 0, 0.8);
        padding: 1rem;
        border-radius: 15px;
        margin: 1rem 0;
        backdrop-filter: blur(10px);
    }
    
    /* Footer Mobile */
    .footer {
        padding: 1rem 0.75rem;
        margin-top: 1.5rem;
    }
    
    .footer a {
        font-size: 0.8rem;
        padding: 0.5rem;
        line-height: 1.3;
        opacity: 0.7;
    }
    
    .footer a:active {
        opacity: 0.8;
    }
}
