:root {
    /* Cleaner, more airy dark theme */
    --bg-color: #0f172a;
    /* Slate 900 - very deep blue, not black */
    --card-bg: #1e293b;
    /* Slate 800 - soft contrast */
    --primary-orange: #f97316;
    /* Clean orange */
    --primary-orange-hover: #fb923c;
    /* Lighter, refreshing orange on hover */
    --text-main: #f8fafc;
    /* Crystal white */
    --text-muted: #94a3b8;
    /* Soft slate gray */
    --nav-bg: #0f172a;
    /* Same as bg for seamless integration */
    --border-color: #334155;
    /* Soft border */
    --glow-orange: rgba(249, 115, 22, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    /* Full-Screen Photographic Casino Background */
    background-image:
        /* Deep dark overlay to ensure text remains perfectly readable */
        linear-gradient(to bottom, rgba(15, 23, 42, 0.90), rgba(15, 23, 42, 0.95)),
        /* High-quality casino/roulette reference image (Local WebP) */
        url('./assets/bg-casino.webp');

    background-size: cover;
    background-position: center center;
    background-attachment: fixed;

    color: var(--text-main);
    /* Generous airy padding */
    padding-top: 70px;
    padding-bottom: 80px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    /* Glassmorphism for a refreshing feel */
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header .logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.header .header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Button Base */
.btn {
    padding: 10px 20px;
    border-radius: 50px;
    /* Pill shape for cleaner look */
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: #fff;
    box-shadow: 0 4px 14px var(--glow-orange);
}

.btn-primary:hover {
    background-color: var(--primary-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

/* Layout Utilities */
.container {
    max-width: 1100px;
    /* Slightly narrower for easier reading */
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 150px);
}

/* Cards (Rule 3: Card-based) */
.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    /* Softer radius */
    padding: 30px;
    /* More breathing room */
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    /* Subtle border */
    transition: all 0.3s ease;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

/* Very subtle top highlight for 3D feel without clutter */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(249, 115, 22, 0.3);
}



.card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.card-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Footer (Global) */
.footer {
    padding: 40px 20px 100px;
    /* Extra bottom padding for mobile nav */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Bottom Navigation (Mobile Thumb-Zone - Rule 1) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    /* Glassmorphism */
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 6px;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.nav-item.active,
.nav-item:hover {
    color: var(--primary-orange);
}

.nav-item.active svg {
    transform: translateY(-2px);
    filter: drop-shadow(0 2px 8px var(--glow-orange));
}

/* Desktop optimization */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
        /* No bottom nav on desktop */
    }

    .bottom-nav {
        display: none;
    }

    .card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }

    .header .desktop-nav {
        display: flex;
        gap: 24px;
        align-items: center;
    }

    .header .desktop-nav a {
        color: var(--text-main);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
        font-size: 0.95rem;
    }

    .header .desktop-nav a:hover,
    .header .desktop-nav a.active {
        color: var(--primary-orange);
    }

    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .header .desktop-nav {
        display: none;
    }

    .hero-section {
        padding: 30px 0;
        text-align: center;
    }
}

/* Hero Section */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-inline: auto;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: #1a1c23;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.text-main {
    color: var(--text-main);
}

.text-orange {
    color: var(--primary-orange);
}

.text-muted {
    color: var(--text-muted);
}

.w-full {
    width: 100%;
}

/* Download Cards Styling */
.download-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

@media (min-width: 768px) {
    .download-grid {
        flex-direction: row;
    }
}

.download-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mt-auto {
    margin-top: auto;
}

.icon-24 {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
    fill: currentColor;
    display: inline-block;
}

.icon-list {
    margin-left: 20px;
    color: var(--text-main);
}

.disclaimer-text {
    font-size: 0.8rem;
    margin-top: 8px;
    color: var(--text-muted);
}

/* FAQ Accordion Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background-color: var(--nav-bg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-orange);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--primary-orange);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.faq-item.active .faq-answer {
    max-height: 1500px;
}

.faq-answer p {
    padding: 0 20px 20px;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

.faq-answer>div {
    padding: 0 20px 20px;
}