@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,500;0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Rajdhani:wght@600;700;800&display=swap');

:root {
    /* Main Palette - Electric Casino Dark Theme (Midnight Plum & Radiant Gold) */
    --bg-page: #0c0616;
    --bg-card: #150927;
    --bg-card-hover: #1e0d37;
    --bg-card-glass: rgba(21, 9, 39, 0.88);
    --bg-header: rgba(12, 6, 22, 0.95);
    --bg-subnav: #1a0a2f;
    --bg-footer: #08030f;
    
    /* Branding Colors */
    --color-primary: #ffb703; /* Radiant Casino Gold */
    --color-primary-hover: #ffc93c;
    --color-primary-dark: #d48b00;
    --color-secondary: #a855f7; /* Neon Violet */
    --color-magenta: #ec4899; /* Radiant Neon Pink */
    --color-cyan: #06b6d4; /* Cyber Cyan */
    --color-success: #10b981; /* Emerald Green */
    --color-danger: #f43f5e; /* Crimson Hot Red */
    --color-warning: #f59e0b;
    
    /* Text Colors */
    --color-white: #ffffff;
    --color-dark: #ffffff;
    --color-heading: #f8fafc;
    --color-muted: #b8a5cf; /* Soft readable lilac-slate */
    --color-text-dim: #7f6a9c;
    
    /* Borders & Glass Accents */
    --border-light: rgba(168, 85, 247, 0.18);
    --border-gold: rgba(255, 183, 3, 0.35);
    --border-hover: rgba(255, 183, 3, 0.6);
    --glass: rgba(255, 255, 255, 0.04);
    
    /* Shadows & Glow Effects */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.65);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.85);
    --glow-gold: 0 0 22px rgba(255, 183, 3, 0.38);
    --glow-purple: 0 0 25px rgba(168, 85, 247, 0.32);
    --glow-magenta: 0 0 25px rgba(236, 72, 153, 0.35);
    --glow-cyan: 0 0 22px rgba(6, 182, 212, 0.35);
    
    /* Typography */
    --font-heading: 'Rajdhani', 'Chakra Petch', sans-serif;
    --font-display: 'Chakra Petch', 'Rajdhani', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-page);
    background-image: 
        radial-gradient(ellipse 90% 50% at 50% -10%, rgba(168, 85, 247, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 70% 40% at 80% 30%, rgba(236, 72, 153, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 70% 40% at 20% 70%, rgba(255, 183, 3, 0.07) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--color-muted);
    font-family: var(--font-body);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-container,
.page-container {
    width: 100%;
    margin: 0;
    background-color: transparent;
    min-height: 100vh;
}

/* Global Banner/Ad Rules */
.banner-wrapper {
    padding: 24px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    max-width: 1280px;
}

.banner-wrapper img {
    max-width: 100%;
    border-radius: 16px;
    display: block;
    box-shadow: var(--shadow-lg), 0 0 25px rgba(255, 183, 3, 0.15);
    border: 1px solid var(--border-gold);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.banner-wrapper img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), var(--glow-gold);
    border-color: var(--color-primary);
}

/* ==========================================================================
   Header - Modern Sleek Casino Navbar
   ========================================================================== */
.main-header {
    background: var(--bg-header);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(10, 4, 18, 0.98);
    border-bottom-color: rgba(255, 183, 3, 0.35);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 10px rgba(255, 183, 3, 0.25));
}

.logo img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 16px rgba(255, 183, 3, 0.6));
}

.desktop-nav {
    display: none;
    background: transparent;
    padding: 0;
    justify-content: center;
    align-items: center;
}

@media (max-width: 767px) {
    .desktop-nav.active {
        display: block;
        width: 100%;
        padding: 20px 0 25px;
        position: absolute;
        top: 100%;
        left: 0;
        background: #140827;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95);
        border-bottom: 2px solid var(--color-primary);
        z-index: 999;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .desktop-nav.active ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        list-style: none;
        margin: 0;
        padding: 0 18px;
        align-items: stretch;
    }

    .desktop-nav.active li {
        width: 100%;
    }

    .desktop-nav.active a {
        font-family: var(--font-heading);
        font-size: 16px;
        font-weight: 700;
        color: var(--color-white);
        text-transform: uppercase;
        letter-spacing: 0.8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(168, 85, 247, 0.2);
        transition: all 0.3s ease;
    }
    
    .desktop-nav.active a:active,
    .desktop-nav.active a:hover {
        background: linear-gradient(90deg, rgba(255, 183, 3, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
        border-color: var(--color-primary);
        color: var(--color-primary);
        transform: translateX(4px);
    }
}

body.no-scroll {
    overflow: hidden;
}

.menu-toggle {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    width: 38px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 183, 3, 0.15);
    border-color: var(--color-primary);
}

.menu-toggle.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--glow-gold);
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
    fill: var(--color-primary);
    transition: all 0.3s ease;
}

.menu-toggle.active svg {
    fill: #0c0616;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login {
    background: rgba(168, 85, 247, 0.12);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-login:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: var(--color-secondary);
    color: #fff;
    box-shadow: var(--glow-purple);
    transform: translateY(-1px);
}

.btn-register {
    background: linear-gradient(135deg, #ffc93c 0%, #ff9500 100%);
    color: #0c0616;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 18px rgba(255, 183, 3, 0.45);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-register:hover {
    background: linear-gradient(135deg, #ffffff 0%, #ffd166 100%);
    color: #0c0616;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 24px rgba(255, 183, 3, 0.65);
}

/* ==========================================================================
   Category Sub-Navbar Bar (Matching reference image)
   ========================================================================== */
.category-subnav {
    background: var(--bg-subnav);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    padding: 8px 15px;
    position: relative;
    z-index: 90;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-subnav::-webkit-scrollbar {
    display: none;
}

.subnav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.subnav-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.subnav-item i {
    font-size: 13px;
    color: var(--color-secondary);
    transition: color 0.25s ease;
}

.subnav-item:hover {
    color: var(--color-white);
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.35);
}

.subnav-item:hover i {
    color: var(--color-primary);
}

.subnav-item.active {
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.2) 0%, rgba(236, 72, 153, 0.15) 100%);
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 14px rgba(255, 183, 3, 0.25);
}

.subnav-item.active i {
    color: var(--color-primary);
}

/* ==========================================================================
   Running Announcement Ticker (Loudspeaker marquee)
   ========================================================================== */
.live-ticker-wrap {
    background: rgba(18, 7, 33, 0.85);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    padding: 7px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1280px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--color-muted);
    overflow: hidden;
}

.ticker-badge {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
}

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

.ticker-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marqueeScroll 32s linear infinite;
    padding-left: 100%;
    font-size: 12.5px;
}

.ticker-marquee:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-marquee span {
    margin-right: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ticker-marquee strong {
    color: var(--color-primary);
}

/* ==========================================================================
   Trust Strip - Banking, E-Wallets, QRIS, & Security Badges
   ========================================================================== */
.trust-strip {
    background: rgba(14, 6, 26, 0.75);
    border-top: 1px solid rgba(168, 85, 247, 0.12);
    border-bottom: 1px solid rgba(168, 85, 247, 0.12);
    padding: 14px 15px;
    margin: 10px 0 25px;
}

.trust-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.18);
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.trust-item i {
    color: var(--color-primary);
    font-size: 14px;
}

.trust-item:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ==========================================================================
   Footer - 4 Columns Rich Indonesian Casino Portal
   ========================================================================== */
.main-footer {
    background-color: var(--bg-footer);
    border-top: 2px solid rgba(255, 183, 3, 0.4);
    padding: 55px 20px 85px; /* extra bottom padding for mobile sticky bar */
    margin-top: 55px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.main-footer::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 183, 3, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    padding-bottom: 40px;
}

.footer-brand .footer-logo {
    height: 42px;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(255, 183, 3, 0.25));
}

.footer-desc {
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.65;
    margin: 0 0 18px 0;
    max-width: 380px;
}

.footer-trust-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.trust-tag {
    font-size: 11px;
    font-weight: 700;
    color: #ffd97d;
    background: rgba(255, 183, 3, 0.08);
    border: 1px solid rgba(255, 183, 3, 0.25);
    padding: 5px 11px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.trust-tag i {
    color: var(--color-primary);
}

.footer-col h4 {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 20px;
    margin: 0 0 18px 0;
    font-weight: 700;
    letter-spacing: 0.8px;
    position: relative;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary) 0%, transparent 100%);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-col a {
    color: var(--color-muted);
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-col a i {
    font-size: 10px;
    color: var(--color-secondary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-col a:hover i {
    transform: translateX(3px);
    color: var(--color-primary);
}

.contact-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-white);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 10px var(--color-success);
    display: inline-block;
}

.contact-email {
    font-size: 13px;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px 0;
}

.contact-email i {
    color: var(--color-primary);
    font-size: 13px;
}

.footer-payments-mini {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pay-chip {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 5px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pay-chip i {
    color: var(--color-primary);
    font-size: 10px;
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(168, 85, 247, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-copyright {
    color: var(--color-muted);
    font-size: 13px;
    letter-spacing: 0.5px;
}

.footer-copyright strong {
    color: var(--color-white);
}

.footer-security-badges {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge-age {
    font-size: 11px;
    font-weight: 900;
    color: #ff4757;
    border: 1.5px solid #ff4757;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.4);
}

.badge-item {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-item i {
    color: var(--color-primary);
    font-size: 11px;
}

/* ==========================================================================
   Mobile Sticky Quick Action Bottom Bar
   ========================================================================== */
.mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(14, 6, 26, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 183, 3, 0.35);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: space-around;
    align-items: center;
    padding: 6px 4px 8px;
}

.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex: 1;
    text-align: center;
    transition: color 0.25s ease;
}

.mob-nav-item i {
    font-size: 17px;
    color: var(--color-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

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

.mob-nav-item:hover i,
.mob-nav-item.active i {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.mob-nav-register {
    flex: 1.2;
    background: linear-gradient(135deg, #ffc93c 0%, #ff9500 100%);
    color: #0c0616 !important;
    padding: 8px 6px;
    border-radius: 20px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 183, 3, 0.5);
    transform: translateY(-4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.mob-nav-register i {
    color: #0c0616 !important;
    font-size: 16px;
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    .main-footer {
        padding-bottom: 45px;
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 768px) {
    .header-container {
        padding: 14px 20px;
    }

    .logo img {
        height: 46px;
    }

    .menu-toggle {
        display: none;
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        padding: 0;
        background: transparent;
        border: none;
    }

    .desktop-nav ul {
        display: flex;
        justify-content: center;
        gap: 32px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .desktop-nav a {
        font-family: var(--font-heading);
        font-size: 15px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.88);
        text-transform: uppercase;
        letter-spacing: 1px;
        display: flex;
        align-items: center;
        gap: 6px;
        position: relative;
        padding: 6px 0;
    }

    .desktop-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--color-primary);
        transition: width 0.3s ease;
        box-shadow: var(--glow-gold);
    }

    .desktop-nav a:hover {
        color: var(--color-primary);
    }
    
    .desktop-nav a:hover::after {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 992px) {
    .main-footer {
        padding: 65px 20px 45px;
        margin-top: 65px;
    }

    .footer-grid {
        grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
        gap: 40px;
    }
}
