:root {
    --primary: #ffd700;        /* Main Gold */
    --primary-gold: #c6a74c;   /* Footer Gold for links */
    --secondary: #e50000;      /* Red for CTA buttons */
    --accent-orange: #ff9900;  /* Vibrant Orange for Section Tags & Buttons */
    --accent-yellow: #ffb700;  /* Glowing Yellow for Checkmarks & Highlights */
    --bg-dark: #0a0e1a;
    --bg-card: #131b2e;
    --bg-black: #000000;
    --text-light: #ffffff;
    --text-white: #ffffff;
    --text-muted: #b0b8c8;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

html, body { 
    background-color: var(--bg-dark); 
    color: var(--text-light); 
    line-height: 1.6; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    overflow-x: hidden; 
}

a { 
    color: var(--primary); 
    text-decoration: none; 
}

a:hover { 
    text-decoration: underline; 
}

/* --------------------------------------------------------------------------
   2. HEADER & DESKTOP NAVIGATION
   -------------------------------------------------------------------------- */
header { 
    background: #000; 
    padding: 15px 20px; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 2px solid var(--primary); 
    width: 100%; 
    box-sizing: border-box; 
}

.logo-nav { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    flex-shrink: 1; 
    min-width: 0; 
}

.logo-img { 
    height: 65px; 
    width: auto; 
    max-width: 100%; 
    display: block; 
    object-fit: contain; 
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 20px;
}

.nav-link {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.header-buttons { 
    display: flex; 
    align-items: center; 
    flex-shrink: 0; 
}

.btn { 
    padding: 10px 20px; 
    border-radius: 5px; 
    font-weight: bold; 
    cursor: pointer; 
    text-align: center; 
    display: inline-block; 
    border: none; 
    font-size: 0.95rem; 
    text-decoration: none !important; 
    white-space: nowrap; 
}

.btn-login { 
    background: transparent; 
    color: var(--primary); 
    border: 1px solid var(--primary); 
    margin-right: 10px; 
}

.btn-register { 
    background: var(--secondary); 
    color: white; 
}

/* --------------------------------------------------------------------------
   3. MOBILE DRAWER NAVIGATION
   -------------------------------------------------------------------------- */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none;
    backdrop-filter: blur(3px);
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #090d16;
    z-index: 1002;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 15px rgba(0,0,0,0.5);
    border-right: 1px solid rgba(255, 215, 0, 0.2);
}

.mobile-drawer.active {
    left: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: #000000;
    border-bottom: 2px solid var(--primary);
}

.drawer-title {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.drawer-content {
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.drawer-link {
    color: var(--text-white);
    padding: 12px 10px;
    font-weight: 600;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.drawer-link i {
    color: var(--primary-gold);
    width: 20px;
    text-align: center;
}

.drawer-link:hover {
    color: var(--primary);
    background: rgba(255, 215, 0, 0.05);
}

.drawer-divider {
    border: none;
    border-top: 1px solid rgba(198, 167, 76, 0.3);
    margin: 15px 0 10px 0;
}

.drawer-link-sub {
    color: var(--text-muted);
    padding: 8px 10px;
    font-size: 0.85rem;
    text-decoration: none !important;
}

.drawer-link-sub:hover {
    color: var(--primary-gold);
}

/* --------------------------------------------------------------------------
   4. HERO & BANNER SECTIONS
   -------------------------------------------------------------------------- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                      url('https://juta8play.com/image/ganjaran-harian-tanpa-had.webp');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 80px 20px;
    text-align: center;
    width: 100%;
    min-height: 300px; 
}

.hero h2 { 
    font-size: 36px; 
    margin-bottom: 20px; 
    color: var(--primary); 
}

.fullwidth-banner-wrapper { 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
}

.banner-section {
    width: 100%;
    background: linear-gradient(135deg, #0f1629 0%, #050b18 100%);
    border-top: 1px solid rgba(255, 153, 0, 0.25);
    border-bottom: 1px solid rgba(255, 153, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.banner-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    min-height: 480px;
}

.banner-section:nth-child(even) .banner-container {
    flex-direction: row-reverse;
}

.banner-image {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 153, 0, 0.3));
}

.banner-content {
    width: 50%;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-tag {
    color: var(--accent-orange);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
}

.banner-title {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.banner-features {
    list-style: none;
    margin-bottom: 25px;
}

.banner-features li {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-features li i {
    color: var(--accent-yellow);
    font-size: 1.1rem;
}

.banner-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-play-now {
    border: 2px solid var(--accent-orange);
    color: var(--accent-yellow) !important;
    background: rgba(255, 153, 0, 0.08);
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    align-self: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(255, 153, 0, 0.3);
    text-decoration: none !important;
}

.btn-play-now:hover {
    background: var(--accent-orange);
    color: #000000 !important;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.8);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. SEO CONTENT, TABLES & FAQ
   -------------------------------------------------------------------------- */
.seo-content-wrapper {
    width: 100%;
    background: linear-gradient(135deg, #0b1120 0%, #040812 100%);
    border-top: 1px solid rgba(255, 153, 0, 0.3);
    padding: 50px 0;
    margin-top: 20px;
}

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

.seo-content h1, .seo-content h2, .seo-content h3 { 
    color: var(--accent-yellow); 
    margin: 25px 0 12px; 
}

.seo-content p { 
    margin-bottom: 15px; 
    color: var(--text-muted); 
    font-size: 0.98rem; 
}

.seo-content ul { 
    margin-left: 20px; 
    margin-bottom: 20px; 
    color: var(--text-muted); 
}

.seo-content ul li { 
    margin-bottom: 8px; 
}

.seo-content a { 
    color: var(--accent-orange); 
    font-weight: 600; 
}

.seo-content a:hover { 
    text-decoration: underline; 
    color: var(--accent-yellow); 
}

.table-container { 
    width: 100%; 
    overflow-x: auto; 
    margin: 25px 0; 
    -webkit-overflow-scrolling: touch; 
    border: 1px solid rgba(255, 153, 0, 0.4); 
    border-radius: 6px; 
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    min-width: 500px; 
}

th, td { 
    border: 1px solid rgba(255, 153, 0, 0.2); 
    padding: 14px; 
    text-align: left; 
}

th { 
    background-color: var(--accent-orange); 
    color: #000; 
    font-weight: 800; 
}

td { 
    color: var(--text-light); 
}

.faq-item { 
    margin-bottom: 15px; 
    border-bottom: 1px solid rgba(255, 153, 0, 0.2); 
    padding-bottom: 12px; 
}

.faq-question { 
    font-weight: bold; 
    cursor: pointer; 
    color: var(--accent-yellow); 
    display: flex; 
    justify-content: space-between; 
    font-size: 1.05rem; 
}

.faq-answer { 
    display: none; 
    margin-top: 10px; 
    color: var(--text-muted); 
}

/* --------------------------------------------------------------------------
   6. STICKY FLOATING UI (MOBILE BOTTOM NAV & CHAT BUTTON)
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
    display: none; /* Hidden on Desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    border-top: 2px solid var(--primary);
    height: 60px;
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.5);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    width: 20%;
    height: 100%;
    transition: color 0.2s;
}

.mobile-bottom-nav .nav-item i { 
    font-size: 1.25rem; 
    margin-bottom: 3px; 
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover { 
    color: var(--primary); 
}

.sticky-chat { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 1000; 
    background: var(--secondary); 
    color: white; 
    padding: 12px 24px; 
    border-radius: 30px; 
    font-weight: bold; 
    font-size: 1rem; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    border: none; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    text-decoration: none; 
    transition: transform 0.2s, background 0.3s; 
}

.sticky-chat:hover { 
    transform: translateY(-3px); 
    background: #b00000; 
    color: white; 
    text-decoration: none; 
}

/* --------------------------------------------------------------------------
   7. FOOTER STYLES
   -------------------------------------------------------------------------- */
footer { 
    background: var(--bg-black); 
    color: var(--text-white); 
    padding-top: 40px; 
    border-top: 1px solid #333; 
    margin-top: auto; 
    position: relative; 
    width: 100%; 
}

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

.footer-content { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
    margin-bottom: 30px; 
}

.footer-column h3 { 
    font-size: 1.1rem; 
    color: var(--text-white); 
    font-weight: bold; 
    margin-bottom: 20px; 
}

.footer-column ul { 
    list-style: none; 
    padding: 0; 
}

.footer-column ul li { 
    margin-bottom: 10px; 
}

.footer-column ul li a { 
    color: var(--primary-gold); 
    font-size: 0.95rem; 
    text-decoration: none; 
    transition: color 0.3s; 
}

.footer-column ul li a:hover { 
    color: var(--primary); 
    text-decoration: underline; 
}

.contact-list li { 
    display: flex; 
    font-size: 0.95rem; 
    margin-bottom: 15px; 
}

.contact-list .label { 
    color: var(--text-white); 
    width: 110px; 
}

.contact-list .value { 
    color: var(--primary-gold); 
    font-weight: bold; 
}

.social-icons { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.social-icons a { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 40px; 
    height: 40px; 
    border: 2px solid var(--primary-gold); 
    border-radius: 5px; 
    color: var(--primary-gold); 
    font-size: 1.3rem; 
    transition: all 0.3s ease; 
}

.social-icons a:hover { 
    color: var(--primary); 
    border-color: var(--primary); 
    background-color: rgba(255, 215, 0, 0.1); 
    transform: scale(1.05); 
}

.footer-container hr { 
    border: none; 
    border-top: 1px solid var(--primary-gold); 
    margin: 20px 0; 
}

.cert-strip { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-around; 
    align-items: center; 
    gap: 20px; 
    padding: 10px 0; 
}

.cert-logo { 
    max-height: 40px; 
    filter: grayscale(1) brightness(1.5) sepia(1) hue-rotate(10deg) saturate(3); 
    opacity: 0.8; 
    transition: opacity 0.3s; 
}

.cert-logo:hover { 
    opacity: 1; 
}

/* Legal Footer Row */
.legal-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-top: 20px; 
    color: #a0aab8; 
    font-size: 0.85rem; 
    gap: 30px;
    width: 100%;
}

.legal-left { 
    max-width: 60%; 
    line-height: 1.5;
}

.legal-left strong { 
    color: var(--text-white); 
    display: block;
    margin-bottom: 4px;
}

.legal-left p { 
    margin-bottom: 0; 
    color: var(--text-muted); 
    font-size: 0.82rem;
}

.legal-icons { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
    flex-shrink: 0; 
}

.legal-icons a { 
    color: #888; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.legal-link {
    color: var(--primary-gold) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(198, 167, 76, 0.3);
    transition: all 0.3s ease;
    font-size: 0.82rem;
    white-space: nowrap;
}

.legal-link:hover {
    color: #ffffff !important;
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.legal-link i {
    font-size: 0.95rem;
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   8. MEDIA QUERIES (RESPONSIVENESS)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 900px) {
    .footer-content { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px; 
    }
    .banner-container, .banner-section:nth-child(even) .banner-container { 
        flex-direction: column; 
    }
    .banner-image, .banner-content { 
        width: 100%; 
    }
    .banner-content { 
        padding: 25px 20px 40px; 
        text-align: center; 
        align-items: center; 
    }
    .banner-features li { 
        justify-content: center; 
    }
    .btn-play-now { 
        align-self: center; 
    }
}

@media (max-width: 768px) {
    .mobile-bottom-nav { 
        display: flex; 
    }
    body { 
        padding-bottom: 60px; /* Prevent bottom menu overlap */
    } 
    .sticky-chat { 
        bottom: 75px; 
        right: 15px; 
        padding: 10px 20px; 
        font-size: 0.9rem; 
    }
}

@media (max-width: 600px) {
    header { 
        padding: 10px 12px; 
    }
    .logo-img { 
        height: 62px; 
    } 
    .btn { 
        padding: 6px 10px; 
        font-size: 0.8rem; 
        border-radius: 4px; 
    }
    .btn-login { 
        margin-right: 4px; 
    }
    .hero { 
        padding: 50px 15px; 
    }
    .hero h2 { 
        font-size: 24px; 
    }
    .seo-content-wrapper { 
        padding: 30px 0; 
    }
    
    .footer-content { 
        grid-template-columns: 1fr; 
        gap: 30px; 
        text-align: center; 
    }
    .contact-list li { 
        justify-content: center; 
    }
    .contact-list .label { 
        width: auto; 
        margin-right: 10px; 
    }
    .social-icons { 
        justify-content: center; 
    }
    .cert-strip { 
        justify-content: center; 
        gap: 15px; 
    }
    .legal-footer { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
    }
    .legal-left { 
        max-width: 100%; 
        margin-bottom: 15px; 
    }
    .legal-icons { 
        flex-direction: column; 
        gap: 10px; 
    }
}

/* Micro Viewport Optimization (Phones under 360px) */
@media (max-width: 360px) {
    .logo-img { 
        height: 26px; 
    }
    .btn { 
        padding: 5px 8px; 
        font-size: 0.75rem; 
    }
}