/* ==================================
   VARIABLES & SETUP
================================== */
:root {
    /* Colors */
    --primary: #D4AF37;
    --primary-dark: #AA8C2C;
    --bg-main: #0B0F19;
    --bg-sec: #131B2E;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(212, 175, 55, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Specs */
    --radius: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==================================
   TYPOGRAPHY & UTILITIES
================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), #FFF5D1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-secondary {
    background-color: var(--bg-sec);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* ==================================
   GLASS & COMPONENTS
================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1);
}

.gold-border {
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-main);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
}

.btn-ghost:hover {
    color: var(--primary);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Ripple effect added via JS */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* ==================================
   HEADER
================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.auth-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* ==================================
   HERO
================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    padding: 24px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Background Effects */
.particles-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: float var(--d) infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, rgba(11,15,25,0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.top-left { top: -200px; left: -200px; }
.bottom-right { bottom: -200px; right: -200px; }

/* ==================================
   GAMES SECTION
================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.game-img-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.game-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ==================================
   FEATURES SECTION
================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    text-align: center;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==================================
   VIP SECTION
================================== */
.vip-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    background: linear-gradient(135deg, rgba(212,175,55,0.05), rgba(19,27,46,0.8));
    position: relative;
    overflow: hidden;
}

.vip-content {
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.vip-content h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.vip-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.vip-perks {
    margin-bottom: 32px;
}

.vip-perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
}

.vip-perks svg {
    width: 20px;
    height: 20px;
}

.vip-image {
    width: 300px;
    position: relative;
    z-index: 2;
}

.floating {
    animation: float-slow 4s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ==================================
   PROMOTIONS
================================== */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.promo-card {
    padding: 30px;
    position: relative;
}

.promo-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: var(--bg-main);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.promo-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.promo-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    min-height: 48px;
}

.promo-img-placeholder {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.countdown {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.time-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px;
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.time-box span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

/* ==================================
   LIVE WINNERS TICKER
================================== */
.winners-ticker {
    background: var(--bg-sec);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.border-y {
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ticker-track {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 30px;
}

.ticker-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.ticker-amount {
    color: #4ade80; /* Green win color */
    font-weight: 700;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); } /* -50% because we clone items in JS */
}

/* ==================================
   TESTIMONIALS
================================== */
.testimo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimo-card {
    padding: 30px;
}

.stars {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimo-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-main);
}

/* ==================================
   FOOTER
================================== */
.footer {
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 20px 0;
    max-width: 300px;
}

.socials {
    display: flex;
    gap: 16px;
}

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.socials a:hover {
    background: var(--primary);
    color: var(--bg-main);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==================================
   ANIMATIONS & RESPONSIVE
================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .vip-banner { flex-direction: column; text-align: center; }
    .vip-perks li { justify-content: center; }
    .vip-image { margin-top: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-main);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
    }
    .nav-links.active { left: 0; }
    .auth-group .btn { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
}