:root {
    --bg-dark: #2A0000;
    --bg-main: #5C0000;
    --gold: #FFD700;
    --gold-dark: #B8860B;
    --gold-glow: rgba(255, 215, 0, 0.6);
    --text-main: #FFFFFF;
    --text-muted: #FFD1D1;
    --font-family: 'Outfit', sans-serif;
    --red-glow: rgba(255, 0, 0, 0.4);
}

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

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

/* Layer 4: Delicate transitions & Animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(42, 0, 0, 0.95) 0%, rgba(42, 0, 0, 0) 100%);
    backdrop-filter: blur(5px);
}

.logo-link {
    display: flex;
    align-items: center;
}

/* Mobile Large Touch Targets */
.login-btn {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 24px;
    border: 2px solid var(--gold);
    background: rgba(42, 0, 0, 0.5);
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 0 10px var(--gold-glow);
}

.login-btn:hover {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--gold-glow);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 100px 24px 60px;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: url('../assets/caishen.jpeg') center/cover no-repeat;
    animation: slowPan 25s infinite alternate ease-in-out;
}

@keyframes slowPan {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.15) translate(-2%, 2%); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(42, 0, 0, 0.1) 0%, rgba(42, 0, 0, 0.5) 40%, rgba(42, 0, 0, 0.95) 100%);
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
    padding-top: 20px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(184, 134, 11, 0.2));
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--gold-glow);
}

.hero h1 {
    font-size: 60px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.text-gold {
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow), 0 0 40px var(--gold-glow);
}

.text-red {
    color: #FF3333;
    text-shadow: 0 0 20px var(--red-glow);
}

.offer-box {
    background: rgba(20, 0, 0, 0.6);
    border: 2px solid var(--gold-dark);
    border-radius: 20px;
    padding: 25px 20px;
    margin: 20px 0 35px;
    box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.1), 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.offer-box h2 {
    color: white;
    font-size: 26px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.editorial-copy {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 400;
}

/* Layer 1: Mobile Large Touch Targets */
.primary-btn {
    width: 100%;
    max-width: 340px;
    padding: 22px 32px;
    background: linear-gradient(135deg, #FFE066 0%, #FFD700 50%, #B8860B 100%);
    color: #2A0000;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--gold-glow), inset 0 -4px 10px rgba(0,0,0,0.2), inset 0 4px 10px rgba(255,255,255,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.primary-btn:hover, .primary-btn:active {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.8), inset 0 -4px 10px rgba(0,0,0,0.2), inset 0 4px 10px rgba(255,255,255,0.5);
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
    transform: skewX(-20deg);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Live Jackpot */
.jackpot-container {
    margin: 0 auto 20px;
    padding: 15px;
    background: linear-gradient(180deg, rgba(60, 0, 0, 0.8) 0%, rgba(20, 0, 0, 0.9) 100%);
    border: 2px solid var(--gold);
    border-radius: 16px;
    box-shadow: 0 0 25px var(--gold-glow), inset 0 0 15px rgba(255, 215, 0, 0.2);
}

.jackpot-label {
    color: var(--gold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 700;
}

.jackpot-ticker {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    font-size: 24px;
    font-weight: 800;
}

.ticker-currency {
    color: var(--gold);
    font-size: 28px;
    margin-right: 5px;
    text-shadow: 0 0 10px var(--gold-glow);
}

.ticker-separator {
    color: var(--gold);
    font-size: 24px;
    padding: 0 2px;
}

.ticker-digit {
    background: linear-gradient(180deg, #5C0000 0%, #2A0000 100%);
    border: 1px solid var(--gold);
    border-radius: 6px;
    padding: 6px 8px;
    min-width: 28px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8), inset 0 2px 0 rgba(255,255,255,0.2);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    position: relative;
    transform-style: preserve-3d;
    perspective: 100px;
}

.ticker-digit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.8);
    box-shadow: 0 1px 0 rgba(255,255,255,0.2);
}

.flip-anim {
    animation: flipDigit 0.4s ease-in-out;
}

@keyframes flipDigit {
    0% { transform: rotateX(80deg); opacity: 0.5; background: #800000; }
    100% { transform: rotateX(0deg); opacity: 1; background: linear-gradient(180deg, #5C0000 0%, #2A0000 100%); }
}

/* Winners Marquee */
.winners-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    padding: 12px 0;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    z-index: 20;
}

.marquee-content {
    display: inline-flex;
    animation: marqueeScroll 300s linear infinite;
}

.marquee-content span {
    color: #fff;
    font-size: 15px;
    margin-right: 50px;
}

.marquee-content em {
    color: var(--gold);
    font-style: normal;
    font-weight: 700;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Features */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 60px 24px;
    background: linear-gradient(to bottom, var(--bg-dark), #150000);
}

.feature-card {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    padding: 30px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.08);
}

.feature-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--gold);
    margin-bottom: 12px;
    font-size: 22px;
    text-transform: uppercase;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Providers Marquee */
.providers-section {
    padding: 40px 0;
    background: #1A0000;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.providers-label {
    color: var(--gold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 25px;
    font-weight: 700;
}

.providers-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.providers-marquee::before, .providers-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
}

.providers-marquee::before {
    left: 0;
    background: linear-gradient(to right, #1A0000, transparent);
}

.providers-marquee::after {
    right: 0;
    background: linear-gradient(to left, #1A0000, transparent);
}

.providers-track {
    display: inline-flex;
    align-items: center;
    animation: providersScroll 60s linear infinite;
}

.provider-logo {
    height: 45px;
    width: auto;
    margin: 0 35px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.6);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.provider-logo:hover {
    filter: brightness(1) sepia(1) hue-rotate(-30deg) saturate(5) opacity(1); /* Gold tint effect */
    transform: scale(1.1);
}

/* Trust Banner */
.trust-banner {
    padding: 60px 24px;
    background: linear-gradient(180deg, #150000 0%, #0A0000 100%);
    display: flex;
    justify-content: center;
}

.trust-content {
    display: flex;
    align-items: center;
    background: rgba(42, 0, 0, 0.8);
    border: 2px solid var(--gold-dark);
    padding: 30px 40px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(255, 215, 0, 0.1);
    max-width: 850px;
    width: 100%;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.trust-content::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,215,0,0.15), transparent);
    transform: skewX(-25deg);
    animation: shimmerTrust 5s infinite;
}

.trust-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px var(--gold-glow);
}

.trust-icon svg {
    width: 40px;
    height: 40px;
    stroke: #2A0000;
}

.trust-text h2 {
    color: var(--gold);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.trust-text p {
    color: #fff;
    font-size: 17px;
    opacity: 0.95;
}

.trust-text strong {
    color: var(--gold);
    font-weight: 800;
}

/* Footer */
.footer {
    padding: 60px 24px 40px;
    background-color: #0A0000;
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.compliance-logos {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.age-limit {
    width: 50px;
    height: 50px;
    border: 2px solid #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: #666;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: #AAA;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.disclaimer {
    color: #555;
    font-size: 13px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Floating Particles (Coins) */
.particle {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, #FFD700, #B8860B);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,215,0,0.5), inset -2px -2px 5px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    animation: floatCoins infinite linear;
    z-index: 1;
}

@keyframes floatCoins {
    0% { transform: translateY(100vh) rotate(0deg) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-20vh) rotate(360deg) scale(1.2); opacity: 0; }
}

/* Fixed Mobile CTA */
.fixed-mobile-cta {
    display: none;
}

@media (max-width: 767px) {
    .fixed-mobile-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 16px;
        background: rgba(20, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        z-index: 9999;
        border-top: 1px solid rgba(255, 215, 0, 0.3);
        box-shadow: 0 -10px 30px rgba(0,0,0,0.8);
    }
    
    .fixed-mobile-cta .primary-btn {
        width: 100%;
        max-width: none;
        padding: 18px 16px;
        font-size: 20px;
        margin: 0;
    }

    body {
        padding-bottom: 85px; 
    }

    .winners-marquee {
        bottom: 85px; 
    }

    .hero h1 {
        font-size: 60px;
        margin-bottom: 0px;
    }
    
    .hero-content {
        padding-top: 20px;
        padding-bottom: 120px; 
    }

    .login-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .jackpot-ticker {
        gap: 1px;
    }

    .ticker-digit {
        min-width: 20px;
        padding: 4px 6px;
        font-size: 20px;
    }

    .ticker-currency, .ticker-separator {
        font-size: 20px;
        margin-right: 1px;
        padding: 0;
    }
    
    .offer-box {
        padding: 20px 15px;
    }

    .trust-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 80px;
    }
    
    .jackpot-ticker {
        font-size: 48px;
    }
    
    .ticker-digit {
        min-width: 40px;
        padding: 8px 10px;
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px;
        margin: 0 auto;
    }
}
