:root {
    --primary: #800000;    /* Deep Red */
    --primary-light: #a52a2a;
    --gold: #FFD700;       /* Gold */
    --gold-dim: #C5A000;
    --dark: #0f172a;       /* Deep Slate */
    --darker: #020617;     /* Almost Black */
    --card-bg: rgba(30, 41, 59, 0.7); /* Glassy Card */
    --card-border: rgba(255, 215, 0, 0.2);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --header-h: 70px;
}

/* === Global Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--darker);
    /* Subtle premium background texture */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(128, 0, 0, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 215, 0, 0.05), transparent 25%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Utility Classes === */
.text-gold { color: var(--gold); }
.text-accent { color: var(--primary-light); }
.text-gradient {
    background: linear-gradient(to right, #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.w-full { width: 100%; }
.bg-darker { background-color: rgba(0,0,0,0.3); }

/* === Header & Nav === */
header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: var(--header-h);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}
.logo img { height: 40px; border-radius: 8px; border: 1px solid var(--gold); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links a:hover { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

/* === Buttons === */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #500000);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.6);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: #000;
    font-weight: 800;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: #000;
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-h);
    background: url('logo.jpg') no-repeat center/cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2,6,23,0.8), rgba(2,6,23,0.95));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}
.btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* === Games Grid (Glassmorphism) === */
.section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--gold); }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}
.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: var(--gold);
}
.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.game-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.game-info h3 { color: var(--gold); margin-bottom: 0.5rem; }
.game-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; }
.game-info .play-btn {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.game-card:hover .play-btn {
    background: var(--gold);
    color: black;
}

/* === Skeleton Loader (Optimization) === */
.skeleton { pointer-events: none; }
.skeleton-img { height: 180px; background: rgba(255,255,255,0.05); position: relative; overflow: hidden; }
.skeleton-info { padding: 1.5rem; }
.skeleton-title { height: 24px; width: 60%; background: rgba(255,255,255,0.05); margin-bottom: 10px; border-radius: 4px; }
.skeleton-text { height: 16px; width: 90%; background: rgba(255,255,255,0.05); margin-bottom: 6px; border-radius: 4px; }
.skeleton-btn { height: 40px; width: 100%; background: rgba(255,255,255,0.05); margin-top: 20px; border-radius: 6px; }

/* Shimmer Animation */
.skeleton-img::after, .skeleton-title::after, .skeleton-text::after, .skeleton-btn::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255,255,255, 0) 0, rgba(255,255,255, 0.05) 20%, rgba(255,255,255, 0.1) 60%, rgba(255,255,255, 0));
    animation: shimmer 2s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* === How It Works === */
.vip-promo {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold);
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 1rem;
}
.link-gold { color: var(--gold); text-decoration: none; font-weight: bold; margin-left: 5px; }
.steps-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.step { background: var(--card-bg); padding: 2rem; border-radius: 12px; text-align: center; border: 1px solid var(--card-border); }
.step-icon {
    width: 60px; height: 60px; background: var(--gold); color: #000;
    border-radius: 50%; font-size: 1.5rem; font-weight: bold;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
}

/* === Rules (Grid Layout) === */
.rules-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.rule-card {
    background: var(--card-bg); padding: 1.5rem;
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.05);
}
.rule-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.rule-num { color: var(--gold); font-family: monospace; font-size: 1.2rem; opacity: 0.8; }
.rule-card h3 { font-size: 1.1rem; }
.rule-card p { font-size: 0.9rem; color: var(--text-muted); }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-method {
    display: flex; align-items: center; gap: 1rem;
    background: var(--card-bg); padding: 1.5rem;
    border-radius: 12px; text-decoration: none; color: white;
    border: 1px solid var(--card-border); transition: 0.3s;
}
.contact-method:hover { background: rgba(255,255,255,0.05); border-color: var(--gold); }
.icon-wrapper { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.contact-method span { margin-left: auto; font-size: 0.8rem; color: var(--gold); }

.contact-form-wrapper {
    background: var(--card-bg); padding: 2rem;
    border-radius: 16px; border: 1px solid var(--card-border);
}
.input-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
input, textarea, select {
    width: 100%; padding: 0.8rem; background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    color: white; margin-bottom: 1rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); }

/* === Footer === */
footer {
    background: #000; padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.1); margin-top: 4rem;
}
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; font-weight: bold; font-size: 1.2rem; }
.footer-logo img { height: 30px; }
.footer-links h4 { color: var(--gold); margin-bottom: 1.5rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: white; }
.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 2rem; display: flex; justify-content: space-between; 
    font-size: 0.9rem; color: var(--text-muted);
}

/* === Mobile Menu === */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; }
.mobile-menu-btn span {
    display: block; width: 25px; height: 3px; 
    background: white; margin: 5px 0; transition: 0.3s;
}
.mobile-menu {
    position: fixed; top: var(--header-h); right: -100%;
    width: 100%; height: calc(100vh - var(--header-h));
    background: rgba(2, 6, 23, 0.98); backdrop-filter: blur(10px);
    transition: 0.3s; z-index: 999; padding: 2rem;
}
.mobile-menu.active { right: 0; }
.mobile-nav-links { list-style: none; text-align: center; }
.mobile-nav-links a { 
    display: block; font-size: 1.5rem; padding: 1rem; 
    color: white; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* === Animations === */
.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* === Modals (Shared Styles) === */
.modal, .deposit-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    z-index: 2000; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.modal.show, .deposit-modal.show { opacity: 1; }
.modal-content, .deposit-modal-content {
    background: #1e293b; border: 1px solid var(--gold);
    padding: 2rem; border-radius: 12px; width: 90%; max-width: 500px;
    position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.close-btn, .deposit-close-btn {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer;
}
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.payment-option {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem; border-radius: 8px; cursor: pointer; color: white;
}
.payment-option:hover, .payment-option.active { border-color: var(--gold); background: rgba(255, 215, 0, 0.1); }
.payment-logo img { height: 40px; display: block; margin: 0 auto 0.5rem; }

.tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.5rem; }
.tab-btn {
    flex: 1; background: none; border: none; color: var(--text-muted);
    padding: 1rem; cursor: pointer; font-weight: 600;
}
.tab-btn.active { color: var(--gold); border-bottom: 2px solid var(--gold); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp 0.3s; }
.results {
    background: rgba(0,0,0,0.3); padding: 1rem;
    border-radius: 8px; margin-top: 1rem;
}
.result-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.highlight { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 0.5rem; margin-top: 0.5rem; color: var(--gold); font-size: 1.1rem; }

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

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .contact-grid, .footer-content { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
}

/* Testimonials */
.testimonials-container { position: relative; margin-top: 2rem; }
.testimonials-scroll {
    display: flex; overflow-x: auto; gap: 1.5rem; 
    padding: 1rem 0 2rem; scrollbar-width: none;
}
.testimonial {
    min-width: 300px; background: var(--card-bg); padding: 2rem;
    border-radius: 12px; border: 1px solid var(--card-border);
}
.stars { color: var(--gold); margin-bottom: 1rem; }
.scroll-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: var(--gold); border: none; width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; z-index: 10;
}
.scroll-btn.left { left: -20px; }
.scroll-btn.right { right: -20px; }
@media(max-width: 768px) { .scroll-btn { display: none; } }