* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #FFD700;
    --primary-purple: #8B5CF6;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(20, 20, 40, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --neon-glow: 0 0 20px rgba(255, 215, 0, 0.5);
    --shadow-neon: 0 20px 40px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 50%, #0a0a0a 100%);
    color: white;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120,119,198,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,119,198,0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120,219,255,0.3) 0%, transparent 50%);
    z-index: -1;
    animation: bgShift 20s ease infinite;
}

@keyframes bgShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-gold);
    text-shadow: var(--neon-glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-gold);
    text-shadow: var(--neon-glow);
}

.balance-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.balance {
    background: var(--glass-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-weight: 700;
}

.balance-amount {
    color: var(--primary-gold);
    font-size: 1.2rem;
    font-family: 'Orbitron', monospace;
}

.btn-deposit {
    background: linear-gradient(45deg, var(--primary-gold), #FFA500);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-neon);
}

.btn-deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-gold), #FFA500, var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-gold);
    text-shadow: var(--neon-glow);
}

.stat span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-play {
    background: linear-gradient(45deg, var(--primary-gold), #FFA500);
    color: #000;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-neon);
    font-family: 'Orbitron', monospace;
}

.btn-play:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.7);
}

/* Games Section */
.games-section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, var(--primary-gold), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-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;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: var(--neon-glow), var(--shadow-neon);
}

.game-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.game-icon {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-gold), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    flex: 1;
}

.jackpot {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Game Previews */
.game-preview {
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* SLOT MACHINE */
.slot-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.slot-reels {
    display: flex;
    gap: 0.5rem;
}

.reel {
    width: 60px;
    height: 120px;
    overflow: hidden;
    border: 2px solid var(--primary-gold);
    border-radius: 10px;
    background: #111;
    position: relative;
}

.reel .symbol {
    display: block;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 2rem;
    transition: all 0.1s ease;
}

.symbol.cherry { color: #ff4757; }
.symbol.lemon { color: #ffa502; }
.symbol.orange { color: #ff6348; }
.symbol.plum { color: #9b59b6; }
.symbol.bell { color: #f1c40f; }
.symbol.bar { color: #e74c3c; }
.symbol.seven { color: #e74c3c; font-weight: bold; font-size: 2.5rem; }

/* ROULETTE */
.roulette-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.roulette-wheel {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(
        #ff0000 0deg 9.73deg, #ff6600 9.73deg 19.46deg,
        #ffcc00 19.46deg 29.19deg, #00ff00 29.19deg 38.92deg,
        #00ccff 38.92deg 48.65deg, #6600ff 48.65deg 58.38deg,
        #cc00ff 58.38deg 68.11deg, #ff0066 68.11deg 77.84deg,
        #ff0000 77.84deg 87.57deg, #ff6600 87.57deg 97.3deg,
        #ffcc00 97.3deg 107.03deg, #00ff00 107.03deg 116.76deg,
        #00ccff 116.76deg 126.49deg, #6600ff 126.49deg 136.22deg,
        #cc00ff 136.22deg 145.95deg, #ff0066 145.95deg 155.68deg
    );
    border: 8px solid var(--primary-gold);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5), var(--neon-glow);
    animation: spin 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite paused;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ball {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-gold);
    border-radius: 50%;
    top: 20px;
    right: 20px;
    box-shadow: var(--neon-glow);
}

/* BLACKJACK */
.blackjack-preview {
    padding: 1rem;
}

.blackjack-table {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.dealer-hand, .player-hand {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    min-height: 50px;
}

.card {
    width: 40px;
    height: 60px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.blackjack-score {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
}

/* CRASH */
.crash-preview {
    position: relative;
    background: #000;
}

.crash-graph {
    height: 100%;
    position: relative;
    background: linear-gradient(180deg, #000 0%, #111 100%);
}

.crash-multiplier {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-gold);
    text-shadow: var(--neon-glow);
    z-index: 2;
}

.crash-status {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    color: #4ade80;
}

/* Game Controls */
.game-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bet-input, .multiplier-input, .bet-select {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: white;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 1rem;
}

.bet-input:focus, .multiplier-input:focus, .bet-select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: var(--neon-glow);
}

.btn-spin, .btn-action, .btn-place, .btn-cashout {
    background: linear-gradient(45deg, var(--primary-gold), #FFA500);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
}

.btn-spin:hover, .btn-action:hover, .btn-place:hover, .btn-cashout:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

.btn-action.hidden, .btn-place.hidden, .btn-cashout.hidden {
    display: none;
}

.bj-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 80px;
    padding: 0.75rem;
}

/* Tournament Section */
.tournament-section {
    padding: 100px 0;
    background: rgba(139, 92, 246, 0.1);
}

.tournament-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.tournament-prize {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-gold), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.tournament-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.timer-item {
    text-align: center;
}

.timer-item span:first-child {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-gold), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--glass-bg);
    margin-bottom: 0.5rem;
    border-radius: 10px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--card-bg);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    border: 1px solid var(--primary-gold);
    position: relative;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-gold);
}

.deposit-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.deposit-btn {
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-gold));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deposit-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--neon-glow);
}

.btn-deposit-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .bj-controls {
        flex-direction: column;
    }
    
    .tournament-timer {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}