:root {
    --bg-dark: #07070f;
    --bg-card: #111122;
    --bg-card-hover: #16162a;
    --bg-section: #0c0c18;
    --color-gold: #e8b923;
    --color-gold-light: #f5d547;
    --color-neon: #00e5a0;
    --color-neon-purple: #a855f7;
    --color-red: #ef4444;
    --color-white: #f0f0f5;
    --color-muted: #8b8ba3;
    --color-border: rgba(232, 185, 35, 0.12);
    --font-body: 'Outfit', sans-serif;
    --font-display: 'Bebas Neue', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-gold: 0 0 30px rgba(232, 185, 35, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
    /* Legacy aliases for show/resources pages */
    --color-yellow: var(--color-gold);
    --color-green: var(--color-neon);
    --bg-page: var(--bg-dark);
    --color-header: #050508;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s, transform 0.2s;
}

img {
    max-width: 100%;
    display: block;
}

.main-container {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-dark);
}

.section-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 575px) {
    .section-wrap {
        padding: 0 16px;
    }
}

.text-gold {
    color: var(--color-gold);
}

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(90deg, #0a0a14 0%, #12121f 50%, #0a0a14 100%);
    border-bottom: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-muted);
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 575px) {
    .top-bar-inner {
        padding: 6px 16px;
        gap: 6px;
    }
    
    .top-bar-left,
    .top-bar-right {
        gap: 12px;
    }
    
    .top-bar span {
        font-size: 11px;
    }
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar i {
    color: var(--color-gold);
    font-size: 11px;
}

.jackpot-ticker strong {
    color: var(--color-neon);
    font-weight: 700;
}

/* ===== HEADER ===== */
.main-header {
    background: rgba(7, 7, 15, 0.95);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.main-header::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
}

.main-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 575px) {
    .header-container {
        padding: 10px 16px;
        gap: 12px;
    }
}

.logo img {
    height: 44px;
    border-radius: var(--radius-sm);
}

.desktop-nav {
    display: none;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

.desktop-nav a {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s;
}

.desktop-nav a:hover {
    color: var(--color-white);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: none;
    align-items: center;
    gap: 10px;
}

.btn-login {
    padding: 9px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
    background: transparent;
}

@media (max-width: 575px) {
    .btn-login {
        padding: 10px 16px;
        font-size: 12px;
    }
}

.btn-login:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-register {
    padding: 9px 20px;
    background: linear-gradient(135deg, var(--color-gold) 0%, #c9970a 100%);
    color: #0a0a0f;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-gold);
}

@media (max-width: 575px) {
    .btn-register {
        padding: 10px 18px;
        font-size: 12px;
    }
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(232, 185, 35, 0.35);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-gold);
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

body.no-scroll {
    overflow: hidden;
}

body.no-scroll .mobile-bottom-bar {
    display: none;
}

/* Mobile nav overlay */
@media (max-width: 991px) {
    .desktop-nav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 86%;
        max-width: 360px;
        height: 100vh;
        height: 100dvh;
        background:
            radial-gradient(ellipse 80% 50% at 0% 0%, rgba(232, 185, 35, 0.10) 0%, transparent 60%),
            linear-gradient(180deg, #0a0a16 0%, #07070f 50%, #050508 100%);
        border-left: 1px solid var(--color-border);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
        z-index: 1001;
        padding: 0;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.35s;
        visibility: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .desktop-nav.active {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
    }

    /* Overlay backdrop */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.72);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Mobile nav header with close button */
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 22px;
        border-bottom: 1px solid var(--color-border);
        background: rgba(7, 7, 15, 0.6);
        position: sticky;
        top: 0;
        z-index: 2;
        backdrop-filter: blur(8px);
    }

    .mobile-nav-logo img {
        height: 40px;
        border-radius: var(--radius-sm);
    }

    .mobile-nav-close {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--color-gold) 0%, #c9970a 100%);
        border: none;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #0a0a0f;
        font-size: 16px;
        font-weight: 700;
        box-shadow: 0 4px 16px rgba(232, 185, 35, 0.35);
        transition: transform 0.2s, box-shadow 0.2s;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-close:active {
        transform: scale(0.92);
    }

    .mobile-nav-close i {
        pointer-events: none;
    }

    /* Nav list container */
    .desktop-nav ul {
        list-style: none;
        margin: 0;
        padding: 24px 22px 28px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        display: flex;
    }

    .desktop-nav.active ul {
        gap: 0;
    }

    .desktop-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .desktop-nav li:last-child {
        border-bottom: none;
    }

    .desktop-nav li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 4px;
        font-size: 16px;
        font-weight: 600;
        color: var(--color-white);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: relative;
    }

    @media (max-width: 575px) {
        .desktop-nav li a {
            padding: 14px 4px;
            font-size: 15px;
        }
    }

    .desktop-nav li a::after {
        content: '\f054';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 11px;
        color: var(--color-gold);
        opacity: 0.7;
    }

    .desktop-nav li a:hover {
        color: var(--color-gold);
        padding-left: 8px;
    }

    .desktop-nav li a::before {
        display: none;
    }

    /* CTA buttons inside mobile nav */
    .mobile-nav-cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 24px 22px 28px;
        border-top: 1px solid var(--color-border);
    }

    .mobile-nav-cta .btn-login,
    .mobile-nav-cta .btn-register {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 14px 18px;
        justify-content: center;
        font-size: 14px;
    }

    .mobile-nav-cta .btn-login {
        border: 1px solid rgba(232, 185, 35, 0.4);
        color: var(--color-white);
    }

    .mobile-nav-cta .btn-login::after,
    .mobile-nav-cta .btn-register::after {
        content: none;
    }

    @media (max-width: 575px) {
        .desktop-nav li a {
            padding: 14px 4px;
            font-size: 15px;
        }
        
        .desktop-nav ul {
            padding: 20px 18px 24px;
        }
        
        .mobile-nav-cta {
            padding: 20px 18px 24px;
        }
    }
}

@media (min-width: 992px) {
    .desktop-nav {
        display: block;
    }

    .desktop-nav .mobile-nav-header,
    .desktop-nav .mobile-nav-cta {
        display: none;
    }

    .desktop-nav ul {
        display: flex;
        list-style: none;
        gap: 28px;
        padding: 0;
        margin: 0;
    }

    .header-actions {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .logo img {
        height: 52px;
    }
}

/* ===== HERO ===== */
.hero-section {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(168, 85, 247, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0, 229, 160, 0.08) 0%, transparent 50%),
        linear-gradient(160deg, #0a0a18 0%, #12122a 40%, #0d0d1a 100%);
}

@media (max-width: 575px) {
    .hero-section {
        min-height: 500px;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e8b923' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 575px) {
    .hero-inner {
        padding: 40px 16px 60px;
        gap: 30px;
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(232, 185, 35, 0.1);
    border: 1px solid rgba(232, 185, 35, 0.25);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

@media (max-width: 575px) {
    .hero-tag {
        padding: 5px 12px;
        font-size: 11px;
        margin-bottom: 16px;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--color-white);
}

@media (max-width: 575px) {
    .hero-title {
        font-size: clamp(32px, 10vw, 48px);
        margin-bottom: 16px;
    }
}

.hero-highlight {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-neon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    color: var(--color-muted);
    max-width: 480px;
    margin-bottom: 30px;
    line-height: 1.7;
}

@media (max-width: 575px) {
    .hero-desc {
        font-size: 14px;
        margin-bottom: 24px;
        line-height: 1.6;
    }
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

@media (max-width: 575px) {
    .hero-btns {
        gap: 10px;
        margin-bottom: 24px;
    }
}

.btn-hero-primary,
.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

@media (max-width: 575px) {
    .btn-hero-primary,
    .btn-hero-outline {
        padding: 12px 20px;
        font-size: 13px;
        gap: 8px;
    }
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, #c9970a 100%);
    color: #0a0a0f;
    box-shadow: var(--shadow-gold);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(232, 185, 35, 0.4);
}

.btn-hero-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

.btn-hero-outline:hover {
    border-color: var(--color-neon);
    color: var(--color-neon);
    transform: translateY(-3px);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-avatars {
    display: flex;
}

.trust-avatars .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-neon-purple), var(--color-gold));
    border: 2px solid var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-left: -8px;
}

.trust-avatars .avatar:first-child {
    margin-left: 0;
}

.hero-trust p {
    font-size: 13px;
    color: var(--color-muted);
}

.hero-trust strong {
    color: var(--color-neon);
}

@media (max-width: 575px) {
    .hero-trust {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .trust-avatars .avatar {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .hero-trust p {
        font-size: 12px;
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-card);
}

.hero-brand-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

@media (max-width: 575px) {
    .hero-brand-img {
        width: 150px;
        height: 150px;
    }
}

.hero-card-glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(232, 185, 35, 0.2), rgba(168, 85, 247, 0.1));
    z-index: -1;
    filter: blur(20px);
}

@media (min-width: 768px) {
    .hero-btns {
        flex-direction: row;
    }

    .hero-inner {
        grid-template-columns: 1.1fr 0.9fr;
        padding: 80px 20px 100px;
    }
}

/* ===== FOOTER ===== */
.main-footer {
    background: linear-gradient(180deg, #0a0a14 0%, #050508 100%);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 0;
}

@media (max-width: 575px) {
    .main-footer {
        padding: 40px 0 0;
    }
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 575px) {
    .footer-grid {
        gap: 28px;
        padding-bottom: 30px;
    }
}

.footer-logo {
    height: 44px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 16px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--color-gold);
    color: #0a0a0f;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 1px;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 14px;
    color: var(--color-muted);
}

.footer-col a:hover {
    color: var(--color-white);
    padding-left: 4px;
}

.footer-col p {
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col p i {
    color: var(--color-gold);
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.payment-icons span {
    padding: 4px 10px;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-muted);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    text-align: center;
}

.footer-copy {
    font-size: 13px;
    color: var(--color-muted);
}

.footer-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-badges span {
    font-size: 12px;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-badges i {
    color: var(--color-gold);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

/* ===== MOBILE BOTTOM BAR ===== */
.mobile-bottom-bar {
    display: none;
}

@media (max-width: 991px) {
    body {
        padding-bottom: 70px;
    }
    
    .mobile-bottom-bar {
        display: flex;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(7, 7, 15, 0.98);
        backdrop-filter: blur(10px);
        padding: 12px 16px;
        z-index: 1000;
        gap: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    body.no-scroll .mobile-bottom-bar {
        display: none !important;
    }

    body.no-scroll {
        padding-bottom: 0 !important;
    }
    
    .mobile-btn-login, .mobile-btn-register {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        border-radius: var(--radius-sm);
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s;
    }
    
    .mobile-btn-login {
        border: 1px solid rgba(232, 185, 35, 0.5);
        color: var(--color-gold);
        background: transparent;
    }
    
    .mobile-btn-login:hover {
        background: rgba(232, 185, 35, 0.1);
        border-color: var(--color-gold);
    }
    
    .mobile-btn-register {
        background: linear-gradient(135deg, var(--color-gold) 0%, #c9970a 100%);
        color: #0a0a0f;
        border: 1px solid transparent;
        box-shadow: 0 4px 15px rgba(232, 185, 35, 0.25);
    }
    
    .mobile-btn-register:hover {
        box-shadow: 0 6px 20px rgba(232, 185, 35, 0.4);
        transform: translateY(-2px);
    }
}

@media (max-width: 575px) {
    body {
        padding-bottom: 64px;
    }
    
    .mobile-bottom-bar {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .mobile-btn-login, .mobile-btn-register {
        height: 40px;
        font-size: 12px;
    }
}
