:root {
    --primary: #d4af37; /* Gold */
    --secondary: #8b0000; /* Dark Red */
    --accent: #ff0055; /* Neon Pink */
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --glass-bg: rgba(20, 20, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation & Image */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 85% 30%, rgba(255, 0, 85, 0.1) 0%, transparent 40%),
                url('../images/casino_bg.png') center/cover no-repeat;
    filter: brightness(0.4) contrast(1.2);
}

/* Animations Premium */
@keyframes neonPulse {
    0% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.2), inset 0 0 10px rgba(212, 175, 55, 0.1); border-color: rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.5), inset 0 0 20px rgba(212, 175, 55, 0.2); border-color: rgba(212, 175, 55, 0.6); }
    100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.2), inset 0 0 10px rgba(212, 175, 55, 0.1); border-color: rgba(212, 175, 55, 0.3); }
}

@keyframes winFlash {
    0% { background: rgba(52, 199, 89, 0.2); box-shadow: 0 0 50px rgba(52, 199, 89, 0.5); }
    100% { background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 50px rgba(0,0,0,0.8); }
}

/* Utility Classes */
.highlight {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.w-100 { width: 100%; }
.mt-20 { margin-top: 20px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-sm { padding: 8px 15px; font-size: 14px; }

.btn-primary { background: var(--primary); color: #000; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5); background: #e5c158; }

.btn-glow { background: var(--accent); color: #fff; box-shadow: 0 0 20px rgba(255, 0, 85, 0.5); }
.btn-glow:hover { background: #ff1a66; box-shadow: 0 0 30px rgba(255, 0, 85, 0.8); transform: scale(1.05); }

.btn-outline { background: transparent; color: var(--text-main); border: 2px solid var(--glass-border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-discord { background: #5865F2; color: white; }
.btn-discord:hover { background: #4752C4; box-shadow: 0 0 15px rgba(88, 101, 242, 0.5); transform: translateY(-2px); }

.btn-rumble { background: #85c742; color: #000; }
.btn-rumble:hover { background: #6da634; box-shadow: 0 0 15px rgba(133, 199, 66, 0.5); transform: translateY(-2px); }

.btn-full { width: 100%; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--primary); text-decoration: none; text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); }

.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 16px; transition: color 0.3s ease; text-transform: uppercase; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-auth { display: flex; gap: 10px; }

/* User Profile */
.user-profile {
    display: flex; align-items: center; gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 5px 15px;
    border-radius: 30px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}
.user-points { font-weight: bold; font-size: 18px; }
.user-avatar { width: 35px; height: 35px; background: var(--primary); color: #000; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 18px; }
.btn-logout { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; transition: color 0.3s; }
.btn-logout:hover { color: var(--accent); }

/* Mobile Menu */
.mobile-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

.mobile-menu {
    position: fixed; top: 65px; left: 0; width: 100%;
    background: var(--bg-darker);
    padding: 20px;
    display: flex; flex-direction: column; gap: 15px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
    border-bottom: 1px solid var(--glass-border);
}
.mobile-menu.active { transform: translateY(0); }
.mobile-link { color: white; text-decoration: none; font-size: 18px; font-weight: 600; padding: 10px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* Sections */
section { padding: 100px 20px; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-family: var(--font-heading); font-size: 48px; text-transform: uppercase; margin-bottom: 10px; }
.section-subtitle { color: var(--text-muted); font-size: 18px; }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; gap: 50px; }
.hero-content { flex: 1; }
.hero-badge { display: inline-block; padding: 5px 15px; background: rgba(255, 0, 85, 0.1); color: var(--accent); border: 1px solid var(--accent); border-radius: 20px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.hero-title { font-family: var(--font-heading); font-size: 70px; line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; }
.hero-description { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; max-width: 500px; }
.hero-buttons { display: flex; gap: 20px; }

.hero-visual { flex: 1; position: relative; display: flex; justify-content: center; align-items: center; }
.hero-card { padding: 30px; text-align: center; border: 2px solid rgba(212, 175, 55, 0.3); box-shadow: 0 0 30px rgba(212, 175, 55, 0.1); position: relative; z-index: 2; }
.live-indicator { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: #ff0000; color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; display: flex; align-items: center; gap: 8px; }
.pulse-dot { width: 8px; height: 8px; background: white; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.hero-card h3 { color: var(--text-muted); font-size: 16px; text-transform: uppercase; }
.big-win-amount { font-family: var(--font-heading); font-size: 50px; color: var(--primary); font-weight: bold; margin: 10px 0; text-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }

.floating-chip { position: absolute; font-size: 40px; color: var(--primary); opacity: 0.6; animation: float 6s ease-in-out infinite; z-index: 1; }
.chip-1 { top: 10%; left: 10%; animation-delay: 0s; }
.chip-2 { bottom: 20%; right: 10%; font-size: 60px; color: var(--accent); animation-delay: 2s; }
.chip-3 { bottom: -10%; left: 20%; animation-delay: 4s; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Bonus Section */
.bonus-grid { display: grid; gap: 30px; }
.bonus-card { padding: 30px; position: relative; transition: transform 0.3s ease; display: flex; flex-direction: column; align-items: center; text-align: center; }
.bonus-card:hover { transform: translateY(-10px); border-color: rgba(255, 255, 255, 0.2); }
.bonus-card.featured { border: 2px solid var(--accent); box-shadow: 0 0 30px rgba(255, 0, 85, 0.15); }
.featured-tag { position: absolute; top: -15px; background: var(--accent); color: white; padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: bold; text-transform: uppercase; box-shadow: 0 0 10px rgba(255, 0, 85, 0.5); }
.bonus-logo { height: 100px; background: rgba(0,0,0,0.5); border-radius: 10px; display: flex; justify-content: center; align-items: center; margin-bottom: 20px; width: 100%; }
.bonus-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.bonus-details h3 { font-size: 32px; margin-bottom: 15px; color: var(--primary); }
.bonus-offer { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--glass-border); width: 100%; }
.offer-value { font-family: var(--font-heading); font-size: 50px; font-weight: bold; color: white; line-height: 1; }
.offer-plus { font-size: 30px; color: var(--accent); font-weight: bold; }
.offer-spins { font-size: 24px; font-weight: bold; color: var(--primary); }
.bonus-features { list-style: none; margin-bottom: 30px; width: 100%; }
.bonus-features li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.bonus-features li i { color: var(--primary); font-size: 16px; }

/* Bonus Hunt Section */
.bh-container { padding: 40px; }
.bh-stats { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; }
.stat-box { text-align: center; }
.stat-box h4 { color: var(--text-muted); text-transform: uppercase; font-size: 14px; letter-spacing: 1px; margin-bottom: 5px; }
.stat-value { font-family: var(--font-heading); font-size: 36px; font-weight: bold; color: white; }

.bh-progress-container { width: 100%; height: 20px; background: rgba(0,0,0,0.5); border-radius: 10px; border: 1px solid var(--glass-border); overflow: hidden; margin-bottom: 20px; }
.bh-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); box-shadow: 0 0 10px var(--accent); transition: width 1s ease; }

/* Admin Panel */
.bh-admin-panel { background: rgba(255, 255, 255, 0.03); border: 1px dashed var(--primary); border-radius: 10px; padding: 20px; margin-bottom: 30px; }
.bh-admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.bh-admin-header h3 { color: var(--primary); font-size: 18px; }
.bh-admin-form { display: flex; flex-wrap: wrap; gap: 10px; transition: max-height 0.3s ease; overflow: visible; }
.bh-input { padding: 10px 15px; background: rgba(0,0,0,0.6); border: 1px solid var(--glass-border); color: white; border-radius: 8px; flex: 1; min-width: 150px; font-family: var(--font-body); }
.bh-input:focus { outline: none; border-color: var(--accent); }

.bh-table-container { overflow-x: auto; }
.bh-table { width: 100%; border-collapse: collapse; text-align: left; }
.bh-table th, .bh-table td { padding: 15px; border-bottom: 1px solid var(--glass-border); }
.bh-table th { color: var(--primary); font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 1px; font-size: 14px; }
.bh-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.badge { padding: 5px 10px; border-radius: 15px; font-size: 12px; font-weight: bold; text-transform: uppercase; }
.badge-saved { background: rgba(133, 199, 66, 0.2); color: #85c742; border: 1px solid #85c742; }

/* Games / Auth Warning */
.auth-warning { text-align: center; padding: 50px; background: rgba(255,0,85,0.05); border: 2px dashed var(--accent); border-radius: 20px; margin-bottom: 30px; }
.auth-warning i.fa-lock { font-size: 40px; color: var(--accent); margin-bottom: 20px; }
.auth-warning p { font-size: 18px; margin-bottom: 20px; }
.auth-buttons { display: flex; justify-content: center; gap: 20px; }

.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.game-card { 
    text-align: center; 
    padding: 40px 30px; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(145deg, rgba(20,20,25,0.8) 0%, rgba(10,10,15,0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}
.game-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}
.game-card:hover::before {
    left: 200%;
}
.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 20px rgba(212, 175, 55, 0.3);
}
.game-img { font-size: 60px; color: var(--primary); margin-bottom: 20px; text-shadow: 0 0 20px rgba(212, 175, 55, 0.4); transition: transform 0.3s; }
.game-card:hover .game-img { transform: scale(1.1) rotate(5deg); color: #fff; text-shadow: 0 0 30px var(--primary); }
.game-card h3 { font-family: var(--font-heading); font-size: 28px; margin-bottom: 15px; color: #fff; }
.game-card p { color: var(--text-muted); margin-bottom: 20px; min-height: 50px; font-size: 15px; }
.game-price { font-size: 20px; font-weight: bold; margin-bottom: 20px; color: var(--primary); background: rgba(0,0,0,0.7); padding: 10px; border-radius: 10px; border: 1px solid rgba(212,175,55,0.3); box-shadow: inset 0 0 10px rgba(0,0,0,0.5); }

/* Community Section */
.community-box { text-align: center; padding: 60px 40px; border: 2px solid var(--primary); }
.community-box p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; }
.social-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.social-btn { display: flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 10px; text-decoration: none; color: white; font-weight: bold; font-size: 18px; transition: all 0.3s ease; }
.discord { background: #5865F2; }
.discord:hover { background: #4752C4; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4); }
.tiktok { background: #000; border: 1px solid #333; }
.tiktok:hover { border-color: #00f2fe; box-shadow: 0 5px 15px rgba(0, 242, 254, 0.4); transform: translateY(-3px); }
.tiktok i { color: #fe0979; text-shadow: 2px 2px 0px #00f2fe; }
.rumble { background: #85c742; color: #000; }
.rumble:hover { background: #6da634; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(133, 199, 66, 0.4); }

/* Footer */
footer { background: var(--bg-darker); border-top: 1px solid var(--glass-border); padding: 60px 20px 20px; margin-top: 100px; }
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-brand { font-family: var(--font-heading); font-size: 24px; color: var(--text-muted); margin-bottom: 20px; text-align: center; }
.footer-warning { background: rgba(255, 0, 0, 0.1); border: 1px solid rgba(255,0,0,0.3); padding: 20px; border-radius: 10px; text-align: center; margin-bottom: 40px; }
.footer-warning p { color: #ff6b6b; font-size: 14px; margin-bottom: 5px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 14px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding-top: 150px; }
    .hero-description { margin: 0 auto 40px; }
    .hero-buttons { justify-content: center; }
    .nav-links, .nav-auth { display: none; }
    .mobile-toggle { display: block; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 50px; }
    .section-title { font-size: 36px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* Autocomplete */
.autocomplete-wrapper { position: relative; flex: 1; min-width: 200px; }
.autocomplete-suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 999; background: var(--bg-darker); border: 1px solid var(--primary); border-radius: 8px; max-height: 250px; overflow-y: auto; box-shadow: 0 5px 20px rgba(0,0,0,0.8); margin-top: 5px; }
.suggestion-item { padding: 10px 15px; cursor: pointer; color: white; display: flex; flex-direction: column; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.2s; }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: rgba(212, 175, 55, 0.2); }
.suggestion-name { font-weight: bold; font-size: 14px; color: var(--primary); }
.suggestion-provider { font-size: 12px; color: var(--text-muted); }

/* --- GAME DASHBOARD LAYOUT (Style Professionnel Casino) --- */
.game-dashboard {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    align-items: flex-start;
}
.game-sidebar {
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    width: 300px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.game-sidebar h3 {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}
.game-view {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 40px 20px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    animation: neonPulse 4s infinite;
}
.game-view.win-state {
    animation: winFlash 1s ease-out;
}
.game-view-status {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 10;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9), 0 0 20px rgba(212,175,55,0.6);
    width: 100%;
    text-align: center;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.8), transparent);
    padding: 10px 0;
}
.game-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.game-input-group label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}
.game-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.8);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 5px 15px;
    transition: all 0.3s ease;
}
.game-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}
.game-input-icon {
    color: var(--primary);
    font-size: 20px;
    margin-right: 10px;
}
.game-input-wrapper input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    font-family: var(--font-heading);
    font-weight: bold;
    width: 100%;
}
.game-input-wrapper input:focus {
    outline: none;
}
.game-input-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}
.game-btn-half, .game-btn-double {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}
.game-btn-half:hover, .game-btn-double:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}
.game-btn-action {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}
.game-btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}
.game-btn-action:disabled {
    background: #444;
    color: #888;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
.game-controls-secondary {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.game-controls-secondary button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

@media (max-width: 992px) {
    .game-dashboard {
        flex-direction: column-reverse;
    }
    .game-sidebar {
        width: 100%;
    }
}
