/* ============================================================
   POPUP WELCOME (data.php → POPUP_ENABLED)
   ============================================================ */
.popup-welcome {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(3, 10, 46, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: popupFadeIn .35s ease;
    padding: 16px;
    overflow-y: auto;
}

@keyframes popupFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.popup-welcome .popup-card {
    background: linear-gradient(160deg, var(--c-primary, #0a1849) 0%, var(--c-primary-dark, #030a2e) 100%);
    border: 2px solid var(--c-accent, #ffd700);
    border-radius: 16px;
    padding: 22px 22px 18px;
    width: min(640px, 95vw);
    text-align: center;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, .55),
        0 0 30px rgba(255, 215, 0, .25);
    animation: popupZoomIn .4s cubic-bezier(.18, 1.2, .35, 1);
}

@keyframes popupZoomIn {
    from { transform: scale(.85); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.popup-welcome .popup-logo {
    margin-bottom: 14px;
}
.popup-welcome .popup-logo img {
    max-width: 60%;
    height: auto;
    object-fit: contain;
}

.popup-welcome .popup-banner {
    margin-bottom: 16px;
}
.popup-welcome .popup-banner img {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.popup-welcome .popup-title {
    color: var(--c-accent, #ffd700);
    font-size: clamp(14px, 1.6vw, 18px);
    font-weight: 700;
    line-height: 1.4;
    margin: 4px 6px 16px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}

.popup-welcome .popup-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.popup-welcome .popup-btn {
    flex: 1;
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all .25s ease;
    border: 2px solid transparent;
}

.popup-welcome .popup-btn-login {
    background: linear-gradient(135deg, var(--c-primary-light, #1e3a8a), var(--c-primary, #0a1849));
    color: #ffffff;
    border-color: var(--c-primary-light, #1e3a8a);
}
.popup-welcome .popup-btn-login:hover {
    background: linear-gradient(135deg, var(--c-primary, #0a1849), var(--c-primary-light, #1e3a8a));
    border-color: var(--c-accent, #ffd700);
    box-shadow: 0 0 16px rgba(30, 58, 138, .6);
    transform: translateY(-2px);
}

.popup-welcome .popup-btn-register {
    background: linear-gradient(180deg, var(--c-accent, #ffd700), var(--c-accent-dark, #b8a000));
    color: var(--c-primary-dark, #030a2e);
    border-color: var(--c-accent, #ffd700);
}
.popup-welcome .popup-btn-register:hover {
    background: linear-gradient(180deg, var(--c-accent-light, #ffe066), var(--c-accent, #ffd700));
    border-color: var(--c-accent-dark, #b8a000);
    box-shadow: 0 0 16px rgba(255, 215, 0, .6);
    transform: translateY(-2px);
}

.popup-welcome .popup-footer {
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
    letter-spacing: .5px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 215, 0, .2);
}

@media (max-width: 600px) {
    .popup-welcome .popup-card { padding: 16px 14px; }
    .popup-welcome .popup-actions { gap: 10px; }
    .popup-welcome .popup-btn { padding: 10px 12px; font-size: 13px; }
}

body:has(.popup-welcome) {
    overflow: hidden;
}

.site-header {
    background-color: var(--c-primary-dark, #030a2e) !important;
}

.login-links-container a.register-button {
    background: linear-gradient(180deg, var(--c-accent, #ffd700), var(--c-accent-dark, #b8a000)) !important;
    color: var(--c-primary-dark, #030a2e) !important;
    border: 1px solid var(--c-accent-light, #ffe066) !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35) !important;
    transition: all .25s ease !important;
}

.login-links-container a.login-button {
    background: linear-gradient(135deg, var(--c-primary, #0a1849), var(--c-primary-light, #1e3a8a)) !important;
    color: #ffffff !important;
    border: 1px solid var(--c-primary-light, #1e3a8a) !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35) !important;
    transition: all .25s ease !important;
}

.login-links-container a.login-button:hover {
    background: linear-gradient(135deg, var(--c-primary-light, #1e3a8a), var(--c-primary, #0a1849)) !important;
    border-color: var(--c-accent, #ffd700) !important;
    box-shadow: 0 0 14px rgba(30, 58, 138, .55) !important;
}

.login-links-container a.register-button:hover {
    background: linear-gradient(180deg, var(--c-accent-light, #ffe066), var(--c-accent, #ffd700)) !important;
    border-color: var(--c-accent-dark, #b8a000) !important;
    box-shadow: 0 0 14px rgba(255, 215, 0, .55) !important;
}

.home-progressive-jackpot .jackpot-border-container {
    border: 3px dotted var(--c-accent, #ffd700) !important;
}

.home-progressive-jackpot .jackpot-container {
    background-image: linear-gradient(135deg, var(--c-primary, #0a1849), var(--c-primary-light, #1e3a8a)) !important;
}

.home-progressive-jackpot .jackpot-currency {
    color: var(--c-accent, #ffd700) !important;
}

.site-footer .contact-list>li a i {
    background-color: var(--c-accent, #ffd700) !important;
}

.site-footer .contact-list>li a {
    background-color: var(--c-primary-dark, #030a2e) !important;

}

.popular-game-title-container .container-content {
    border: 1px solid var(--c-primary, #0a1849) !important;
}

.popular-game-title-container .container-title span {
    background-color: var(--c-primary, #0a1849) !important;
}

.popular-game-title-container .container-content .game-list .game-item {
    color: var(--c-accent, #ffd700) !important;
}

element {}

/* =========================
FINAL THEME
Base Navy  var(--c-primary, #0a1849)
Border Navy var(--c-primary-light, #1e3a8a)
Dark Gold  var(--c-accent, #ffd700) (glow + accents)
Gold Deep  var(--c-accent-dark, #b8a000)
========================= */

:root {
    --navy: var(--c-primary, #0a1849);
    --navy2: var(--c-primary-dark, #030a2e);
    --navy3: var(--c-primary-dark, #030a2e);

    --borderNavy: var(--c-primary-light, #1e3a8a);
    /* NEW border color */
    --gold: var(--c-accent, #ffd700);
    /* glow + accent */
    --goldDeep: var(--c-accent-dark, #b8a000);
    --goldText: var(--c-accent-light, #ffe066);
}

/* border animation (navy flow) */
@keyframes borderFlow {
    0% {
        background-position: 0 50%
    }

    100% {
        background-position: 200% 50%
    }
}

/* glow (gold) on text */
@keyframes glowGold {

    0%,
    100% {
        text-shadow:
            0 0 6px rgba(201, 162, 39, .65),
            0 0 12px rgba(201, 162, 39, .40);
        color: var(--goldText);
    }

    50% {
        text-shadow: 0 0 3px rgba(201, 162, 39, .35);
        color: var(--gold);
    }
}

/* shine tipis (ringan) */
@keyframes goldShine {
    0% {
        transform: translateX(-130%) skewX(-18deg);
        opacity: 0;
    }

    15% {
        opacity: .22;
    }

    55% {
        opacity: .10;
    }

    100% {
        transform: translateX(130%) skewX(-18deg);
        opacity: 0;
    }
}

/* =========================
MAIN MENU (NAVY BASE + BORDER var(--c-primary-light, #1e3a8a))
========================= */

#main_menu_outer_container main a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 85px;
    padding: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2px;

    text-decoration: none;
    color: var(--goldText);

    border: 2px solid transparent;
    border-radius: 10px;

    z-index: 10;
    transition: transform .25s ease, filter .25s ease;

    position: relative;
    overflow: hidden;
    will-change: transform;
    backface-visibility: hidden;

    /* NAVY base + BORDER NAVY animated */
    background:
        linear-gradient(180deg, var(--navy) 0%, var(--navy2) 60%, var(--navy3) 100%) padding-box,
        linear-gradient(120deg,
            var(--borderNavy),
            rgba(31, 58, 95, .75),
            var(--borderNavy),
            rgba(31, 58, 95, .55),
            var(--borderNavy)) border-box;

    background-size: 200% 100%;
    background-origin: border-box;
    background-clip: padding-box, border-box;

    animation: borderFlow .95s linear infinite;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .10),
        0 8px 18px rgba(0, 0, 0, .35);
}

#main_menu_outer_container main a:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.06);
}

#main_menu_outer_container main a:active {
    transform: translateY(0) scale(.99);
}

/* ICON */
#main_menu_outer_container main a img {
    width: 26px;
    height: 26px;
    margin-bottom: 5px;

    /* tetap ada nuansa gold halus */
    filter:
        drop-shadow(0 0 7px rgba(201, 162, 39, .32)) saturate(1.08) brightness(1.08);
}

/* SHINE (ringan) */
#main_menu_outer_container main a::before {
    content: "";
    position: absolute;
    top: -25%;
    left: 0;
    width: 58%;
    height: 150%;
    pointer-events: none;
    opacity: 0;
    z-index: 1;

    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(201, 162, 39, .18) 45%,
            rgba(255, 255, 255, 0) 100%);
    animation: goldShine 4.2s ease-in-out infinite;
}

/* EMBLEM (angpao/lentera) */
#main_menu_outer_container main a::after {
    content: "✨";
    position: absolute;
    top: 6px;
    right: 7px;
    font-size: 12px;
    line-height: 1;
    opacity: .95;
    pointer-events: none;
    z-index: 2;

    text-shadow:
        0 0 6px rgba(201, 162, 39, .35),
        0 0 10px rgba(166, 124, 0, .22);
}

#main_menu_outer_container main a:nth-child(even)::after {
    content: "🌙";
    opacity: .9;
}

/* pastiin teks & isi di atas shine/emblem */
#main_menu_outer_container main a>* {
    position: relative;
    z-index: 3;
}

/* glow stagger */
#main_menu_outer_container main a:nth-child(1) {
    animation: borderFlow .95s linear infinite, glowGold 2.2s ease-in-out infinite;
    animation-delay: 0s, 0s;
}

#main_menu_outer_container main a:nth-child(2) {
    animation: borderFlow .95s linear infinite, glowGold 2.2s ease-in-out infinite;
    animation-delay: 0s, .2s;
}

#main_menu_outer_container main a:nth-child(3) {
    animation: borderFlow .95s linear infinite, glowGold 2.2s ease-in-out infinite;
    animation-delay: 0s, .4s;
}

#main_menu_outer_container main a:nth-child(4) {
    animation: borderFlow .95s linear infinite, glowGold 2.2s ease-in-out infinite;
    animation-delay: 0s, .6s;
}

#main_menu_outer_container main a:nth-child(5) {
    animation: borderFlow .95s linear infinite, glowGold 2.2s ease-in-out infinite;
    animation-delay: 0s, .8s;
}

#main_menu_outer_container main a:nth-child(6) {
    animation: borderFlow .95s linear infinite, glowGold 2.2s ease-in-out infinite;
    animation-delay: 0s, 1s;
}

#main_menu_outer_container main a:nth-child(7) {
    animation: borderFlow .95s linear infinite, glowGold 2.2s ease-in-out infinite;
    animation-delay: 0s, 1.2s;
}

#main_menu_outer_container main a:nth-child(8) {
    animation: borderFlow .95s linear infinite, glowGold 2.2s ease-in-out infinite;
    animation-delay: 0s, 1.4s;
}

#main_menu_outer_container main a:nth-child(9) {
    animation: borderFlow .95s linear infinite, glowGold 2.2s ease-in-out infinite;
    animation-delay: 0s, 1.6s;
}

#main_menu_outer_container main a:nth-child(10) {
    animation: borderFlow .95s linear infinite, glowGold 2.2s ease-in-out infinite;
    animation-delay: 0s, 1.8s;
}

#main_menu_outer_container main a:nth-child(11) {
    animation: borderFlow .95s linear infinite, glowGold 2.2s ease-in-out infinite;
    animation-delay: 0s, 2s;
}

/* =========================
JACKPOT BUTTONS (MOBILE) - tetap gold
========================= */

@keyframes GoldFlow {
    0% {
        background-position: 0 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0 50%
    }
}

@media(max-width:768px) {
    div[data-section="jackpot"] {
        position: relative;
        padding-bottom: 100px;
    }

    div[data-section="jackpot"] .jackpot-btn {
        position: absolute;
        width: 47%;
        padding: 10px 0;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: .3px;

        background: linear-gradient(120deg,
                #7f5f00 0%,
                var(--goldDeep) 35%,
                var(--gold) 55%,
                var(--goldDeep) 75%,
                #7f5f00 100%);
        background-size: 200% 100%;
        animation: GoldFlow 2.2s ease-in-out infinite;

        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .22),
            inset 0 0 0 2px rgba(201, 162, 39, .35),
            0 0 6px rgba(166, 124, 0, .35),
            0 0 14px rgba(201, 162, 39, .25);

        color: var(--goldText);
        text-shadow:
            0 1px 1px rgba(0, 0, 0, .55),
            0 0 4px rgba(201, 162, 39, .28);

        border-radius: 30px;
        cursor: pointer;
        text-align: center;
        z-index: 9;

        overflow: hidden;
        will-change: transform;
    }

    /* emblem imlek di tombol */
    div[data-section="jackpot"] .jackpot-btn::before {
        content: "✨";
        position: absolute;
        top: 7px;
        right: 10px;
        font-size: 14px;
        line-height: 1;
        opacity: .95;
        pointer-events: none;

        text-shadow:
            0 0 6px rgba(201, 162, 39, .30),
            0 0 10px rgba(166, 124, 0, .20);
    }

    div[data-section="jackpot"] .jackpot-btn:nth-child(even)::before {
        content: "🌙";
        opacity: .9;
    }

    .jackpot-btn.btn-1 {
        left: 2%;
        bottom: 60px
    }

    .jackpot-btn.btn-2 {
        right: 2%;
        bottom: 60px
    }

    .jackpot-btn.btn-3 {
        left: 2%;
        bottom: 10px
    }

    .jackpot-btn.btn-4 {
        right: 2%;
        bottom: 10px
    }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {

    #main_menu_outer_container main a,
    #main_menu_outer_container main a::before,
    div[data-section="jackpot"] .jackpot-btn {
        animation: none !important;
        transition: none !important;
    }
}

.opn {
    position: fixed;
    bottom: 30px;
    left: 16px;
    width: 70px;
    height: 70px;
    z-index: 100;
    cursor: pointer
}

.cls {
    position: fixed;
    bottom: 30px;
    left: 16px;
    width: 70px;
    height: 70px;
    z-index: 100;
    cursor: pointer
}

.rtpbutton {
    position: fixed;
    bottom: 150px;
    left: 16px;
    width: 70px;
    height: 70px;
    z-index: 100
}

.telegrambutton {
    position: fixed;
    bottom: 260px;
    left: 16px;
    width: 70px;
    height: 70px;
    z-index: 100
}

.wabutton {
    position: fixed;
    bottom: 350px;
    left: 16px;
    width: 70px;
    height: 70px;
    z-index: 100
}

.apkbutton {
    position: fixed;
    bottom: 260px;
    left: 16px;
    width: 70px;
    height: 70px;
    z-index: 100
}

.rtpmobile {
    display: none
}

.telegrammobile {
    display: none
}

.wamobile {
    display: none
}

.apkmobile {
    display: none
}

@media(max-width:480px) {
    .rtpmobile {
        position: fixed;
        bottom: 130px;
        left: 13px;
        z-index: 9;
        width: 65px;
        height: 65px;
        display: block
    }

    .apkmobile {
        position: fixed;
        bottom: 210px;
        left: 20px;
        z-index: 9;
        width: 40px;
        height: 40px;
        display: block
    }

    .telegrammobile {
        position: fixed;
        bottom: 210px;
        left: 25px;
        z-index: 9;
        width: 40px;
        height: 40px;
        display: block
    }

    .wamobile {
        position: fixed;
        bottom: 270px;
        left: 25px;
        z-index: 9;
        width: 40px;
        height: 40px;
        display: block
    }

    .rtpbutton {
        display: none
    }

    .wabutton {
        display: none
    }

    .telegrambutton {
        display: none
    }

    .apkbutton {
        display: none
    }

    .opn {
        position: fixed;
        bottom: 30px;
        left: 16px;
        width: 40px;
        height: 40px;
        z-index: 100;
        cursor: pointer
    }

    .cls {
        position: fixed;
        bottom: 70px;
        left: 20px;
        width: 40px;
        height: 40px;
        z-index: 100;
        cursor: pointer
    }
}

/* ============================================================
   LOGO — ukuran tampil diatur dari data.php
   --logo-w : lebar tampil (pixel)
   --logo-h : tinggi tampil (pixel)
   ============================================================ */
.site-header .logo {
    width: calc(var(--logo-w, 300) * 1px) !important;
    height: auto !important;
    max-width: 100% !important;
    padding-top: 0 !important;
    aspect-ratio: var(--logo-w, 300) / var(--logo-h, 150) !important;
    margin: 15px auto !important;
    display: block !important;
    background: none !important;
}

.site-header .logo > img,
.site-header .logo > picture {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
}


/* ============================================================
   HOVER & STATE OVERRIDE — pakai warna dari data.php
   Semua hover, focus, active mengikuti --c-accent
   ============================================================ */

/* Link & teks hover */
a:hover,
a:focus,
.menu-link:hover,
.footer-links a:hover,
.contact-list a:hover,
.social-media-list a:hover {
    color: var(--c-accent, #ffd700) !important;
    transition: color .25s ease;
}

a {
    transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}

/* Tombol Masuk / Daftar / CTA */
.login-button,
.register-button,
.btn-login,
.btn-register,
.btn-primary {
    transition: all .25s ease !important;
}

.login-button:hover,
.btn-login:hover {
    background: var(--c-accent-light, #ffe066) !important;
    color: var(--c-primary-dark, #030a2e) !important;
    border-color: var(--c-accent, #ffd700) !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, .35) !important;
}

.register-button:hover,
.btn-register:hover {
    background: var(--c-accent, #ffd700) !important;
    color: var(--c-primary-dark, #030a2e) !important;
    border-color: var(--c-accent-dark, #b8a000) !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, .45) !important;
}

/* Navbar item hover */
.top-menu li:hover,
.top-menu li:hover > a,
.top-menu a:hover {
    color: var(--c-accent, #ffd700) !important;
}

/* Game card hover */
.game-list li:hover,
.game-list a:hover,
.slide-item:hover {
    filter: brightness(1.15) drop-shadow(0 0 8px var(--c-accent-light, #ffe066));
    transition: filter .3s ease;
}

/* Border highlight saat hover */
.provider-slide .slide-item:hover,
.banner-group-vertical .slide-item:hover {
    outline: 2px solid var(--c-accent, #ffd700);
    outline-offset: 2px;
}

/* Footer link hover */
footer a:hover {
    color: var(--c-accent, #ffd700) !important;
    text-decoration: none;
}

/* Scrollbar pakai warna tema */
::-webkit-scrollbar-thumb {
    background: var(--c-primary-light, #1e3a8a) !important;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--c-accent, #ffd700) !important;
}
::-webkit-scrollbar-track {
    background: var(--c-primary-dark, #030a2e) !important;
}

/* Selection text */
::selection {
    background: var(--c-accent, #ffd700);
    color: var(--c-primary-dark, #030a2e);
}


/* ============================================================
   BACKGROUND BODY & SECTION — pakai warna primary dark
   ============================================================ */

body {
    background-color: var(--c-primary-dark, #030a2e) !important;
}

.home-info-container,
.popular-game-title-container,
.sports-platform-container,
.site-footer,
.footer-description-section,
.footer-sitemap-section,
.footer-featured-product-section,
[class*="home-"],
[class*="footer-"] {
    background-color: transparent !important;
}

/* Tekstur ungu di background container -> primary */
.lottery-result-container {
    background: linear-gradient(135deg, var(--c-primary, #0a1849), var(--c-primary-dark, #030a2e)) !important;
    border: 1px solid var(--c-accent, #ffd700) !important;
}

.lottery-result-title {
    background: var(--c-accent, #ffd700) !important;
    color: var(--c-primary-dark, #030a2e) !important;
}

/* Title section accent border */
.popular-game-title-container .container-title,
[class*="title-container"] .container-title {
    color: var(--c-accent, #ffd700) !important;
}

/* Tombol tab provider */
.game-list a[data-maintenance-status],
.provider-tab,
.tab-providers a {
    transition: all .25s ease;
}

.game-list a[data-maintenance-status]:hover,
.provider-tab:hover,
.tab-providers a:hover,
.tab-providers a.active,
.tab-providers li.active a {
    border-color: var(--c-accent, #ffd700) !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, .4) !important;
}

/* Footer warna teks */
.site-footer {
    color: #d8e0ff;
}

.site-footer h4 {
    color: var(--c-accent, #ffd700) !important;
}

.site-footer hr,
.footer-separator {
    border-color: var(--c-primary-light, #1e3a8a) !important;
}

/* Popup modal background */
.modal-content,
.modal-body {
    background-color: var(--c-primary, #0a1849) !important;
    color: #fff !important;
}

.modal-header {
    background-color: var(--c-primary-dark, #030a2e) !important;
    color: var(--c-accent, #ffd700) !important;
    border-bottom-color: var(--c-accent-dark, #b8a000) !important;
}


/* ============================================================
   FOOTER & SECTION BAWAH — full themed
   ============================================================ */

.site-footer {
    background-color: var(--c-primary-dark, #030a2e) !important;
    background-image: linear-gradient(180deg,
        var(--c-primary, #0a1849) 0%,
        var(--c-primary-dark, #030a2e) 100%) !important;
    color: #d8e0ff !important;
    border-top: 3px solid var(--c-accent, #ffd700);
}

.site-footer h4,
.site-footer h3,
.footer-description-section h4 {
    color: var(--c-accent, #ffd700) !important;
}

.site-footer a {
    color: #d8e0ff !important;
    transition: color .25s ease;
}

.site-footer a:hover {
    color: var(--c-accent, #ffd700) !important;
}

.site-footer .footer-links li,
.site-footer .contact-list li {
    color: #d8e0ff !important;
}

.site-footer .site-description {
    color: #cbd3f0 !important;
}

.site-footer .site-description h1 {
    color: var(--c-accent, #ffd700) !important;
}

.footer-separator,
.site-footer hr {
    border-color: var(--c-primary-light, #1e3a8a) !important;
    opacity: 0.5;
}

.site-info-description,
.site-info-img-header,
.footer-featured-product-section {
    color: #d8e0ff !important;
}

.site-info-img-header div {
    color: var(--c-accent, #ffd700) !important;
}

/* Powered-by logo container */
.powered-by-logo {
    filter: brightness(.9) contrast(1.1);
}

/* Final: container terakhir di body */
.home-info-container,
.home-info-container *:not(.lottery-result-title) {
    background-color: transparent !important;
}

/* Pastikan teks di section atas readable */
.home-info-container {
    color: #fff;
}

/* Bilah pemberitahuan */
.announcement-container {
    background: linear-gradient(135deg, var(--c-primary, #0a1849), var(--c-primary-light, #1e3a8a)) !important;
    border: 1px solid var(--c-accent, #ffd700) !important;
    color: #fff !important;
}

.announcement-container [data-section="title"] {
    color: var(--c-accent, #ffd700) !important;
}

.announcement-list li {
    color: #fff !important;
}


/* ============================================================
   MOBILE RESPONSIVE OVERRIDE
   Breakpoints: 768px (tablet), 600px (mobile besar), 480px (mobile)
   ============================================================ */

/* ===== UNIVERSAL ===== */
@media (max-width: 768px) {
    html, body { overflow-x: hidden !important; }

    .container,
    .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .row {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }

    img, picture, video {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ===== HEADER ===== */
@media (max-width: 768px) {
    .site-header { padding: 8px 12px !important; }

    .site-header .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .site-header .col-sm-3,
    .site-header .col-md-3,
    .site-header .col-sm-9,
    .site-header .col-md-9 {
        width: auto !important;
        float: none !important;
        padding: 0 !important;
    }
    .site-header .logo {
        width: 120px !important;
        margin: 5px auto !important;
        padding-top: 0 !important;
        aspect-ratio: var(--logo-w, 300) / var(--logo-h, 150) !important;
    }
    .site-header .logo > img {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
    }
    .login-panel {
        display: flex !important;
        gap: 8px !important;
    }
    .login-links-container a.login-button,
    .login-links-container a.register-button {
        padding: 8px 12px !important;
        font-size: 12px !important;
        letter-spacing: .2px !important;
    }
}

/* ===== NAVBAR MENU ===== */
@media (max-width: 768px) {
    .menu-slide {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .menu-slide::-webkit-scrollbar { display: none; }

    .top-menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 6px !important;
        min-width: max-content !important;
    }
    .top-menu li {
        flex: 0 0 auto !important;
        min-width: 70px !important;
        padding: 6px 4px !important;
    }
    .top-menu li a {
        font-size: 9px !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }
    .top-menu li img {
        width: 22px !important;
        height: 22px !important;
        margin-bottom: 3px !important;
    }
    .left_trigger, .right_trigger { display: none !important; }
}

/* ===== BANNER SLIDER ===== */
@media (max-width: 768px) {
    .banner { padding: 0 8px !important; }
    .nav-btn.main-prev, .nav-btn.main-next { display: none !important; }
    .banner-img {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }
    .vertical-wrapper { width: 100% !important; }
    .banner-group-vertical {
        flex-direction: column !important;
        gap: 6px !important;
    }
}

/* ===== ANNOUNCEMENT / PEMBERITAHUAN ===== */
@media (max-width: 768px) {
    .announcement-container {
        flex-direction: column !important;
        gap: 4px !important;
        padding: 10px !important;
        text-align: center;
    }
    .announcement-container [data-section="title"] {
        font-size: 13px !important;
        margin-bottom: 4px;
    }
    .announcement-container [data-section="announcements"] {
        max-height: 60px;
        overflow: hidden;
        font-size: 11px !important;
        line-height: 1.4;
    }
    .announcement-list { padding-left: 0 !important; }
    .announcement-list li {
        font-size: 11px !important;
        line-height: 1.4;
    }
    .announcement-container [data-section="date"] {
        font-size: 10px !important;
        opacity: .8;
    }
}

/* ===== JACKPOT + LOTTERY (stack vertical) ===== */
@media (max-width: 768px) {
    .home-inner-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    [data-section="jackpot"],
    [data-section="lottery"] {
        width: 100% !important;
    }

    .home-progressive-jackpot { padding: 8px !important; }
    .home-progressive-jackpot .outer-container,
    .home-progressive-jackpot .inner-container,
    .home-progressive-jackpot .border-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    .home-progressive-jackpot .jackpot-play-section { display: none !important; }
    .home-progressive-jackpot .jackpot-container {
        width: 100% !important;
        padding: 8px !important;
    }
    #progressive_jackpot { font-size: 22px !important; }
    .jackpot-currency { font-size: 12px !important; }

    .lottery-result-container {
        padding: 10px !important;
        text-align: center;
    }
    .lottery-result-title { font-size: 13px !important; }
    .lottery-result {
        flex-direction: column !important;
        gap: 6px !important;
        align-items: center !important;
    }
    .lottery-result img { width: 30px !important; height: 30px !important; }
    .lottery-numbers { gap: 4px !important; }
    .lottery-numbers span { transform: scale(.85); }
    .lottery-date { font-size: 11px !important; }
}

/* ===== JACKPOT BUTTON LIST (telegram, event, dll) ===== */
@media (max-width: 768px) {
    .jackpot-btn-container {
        flex-direction: column !important;
        gap: 6px !important;
        padding: 0 8px !important;
    }
    .jackpot-btn {
        width: 100% !important;
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
}

/* ===== GAME POPULAR & PROVIDER ===== */
@media (max-width: 768px) {
    .popular-game-title-container .container-content { padding: 8px !important; }
    .popular-game-title-container .container-title {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }
    .game-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        padding: 6px !important;
    }
    .game-list li,
    .game-list .game-item {
        width: 100% !important;
        margin: 0 !important;
    }
    .game-list img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 8px;
    }
    .game-list .game-item-name,
    .game-list .game-item-text {
        font-size: 11px !important;
        line-height: 1.3 !important;
        padding: 4px !important;
        text-align: center;
    }
}

/* ===== VIDEO SLOTS / TAB PROVIDERS ===== */
@media (max-width: 768px) {
    .tab-providers,
    .nav-tabs {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        scrollbar-width: none;
    }
    .tab-providers::-webkit-scrollbar,
    .nav-tabs::-webkit-scrollbar { display: none; }
    .tab-providers li,
    .nav-tabs li {
        flex: 0 0 auto !important;
        margin-right: 6px !important;
    }
}

/* ===== FOOTER ===== */
@media (max-width: 768px) {
    .site-footer { padding: 16px 8px !important; }
    .footer-description-section h4,
    .footer-description-section h1 {
        font-size: 16px !important;
        text-align: center;
    }
    .footer-description-section .site-description {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
    .footer-sitemap-section {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
    .footer-sitemap-section > div h4 {
        font-size: 13px !important;
        margin-bottom: 6px;
    }
    .footer-sitemap-section ul { padding-left: 0; list-style: none; }
    .footer-sitemap-section li { font-size: 12px !important; margin-bottom: 4px; }
    .footer-featured-product-section {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .footer-featured-product-section .col-md-3 {
        width: 100% !important;
        padding: 4px !important;
    }
    .powered-by-logo { height: 24px !important; width: auto !important; }
}

/* ===== MOBILE KECIL (480px) ===== */
@media (max-width: 480px) {
    .site-header .logo { width: 90px !important; }
    .login-links-container a.login-button,
    .login-links-container a.register-button {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    .top-menu li { min-width: 60px !important; }
    .top-menu li a { font-size: 8px !important; }
    .game-list { grid-template-columns: repeat(2, 1fr) !important; }
    .footer-sitemap-section { grid-template-columns: 1fr !important; }
    #progressive_jackpot { font-size: 18px !important; }
}


/* ============================================================
   MOBILE FIX — KOMPREHENSIF
   Override final biar tampilan mobile rapi
   ============================================================ */

@media (max-width: 768px) {

    /* ===== UNIVERSAL ===== */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    body * { max-width: 100% !important; }

    .container, .container-fluid {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin: 0 !important;
    }
    .row { margin: 0 !important; }
    .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6,
    .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12,
    .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
    .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        float: none !important;
        padding: 0 !important;
    }

    /* ===== TOPBAR (icon + login/daftar) ===== */
    .topbar-container {
        padding: 6px 8px !important;
        background: var(--c-primary-dark, #030a2e) !important;
    }
    .topbar-container > .container,
    .topbar-container .row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }
    .topbar-left-container,
    .topbar-right-container {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        width: auto !important;
    }
    .topbar-left-section {
        display: flex !important;
        gap: 6px !important;
        align-items: center !important;
    }
    .topbar-item {
        display: inline-flex !important;
        align-items: center !important;
        padding: 4px !important;
        margin: 0 !important;
    }
    .topbar-item [data-icon] {
        width: 22px !important;
        height: 22px !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        display: inline-block !important;
    }
    .topbar-item .language-selector-trigger img,
    .topbar-item .flag {
        width: 22px !important;
        height: 22px !important;
    }
    .topbar-item span:not(.live-chat) { display: none !important; }
    .topbar-item .live-chat { display: inline-flex !important; align-items: center; }

    /* ===== LOGIN PANEL / MASUK DAFTAR ===== */
    .login-panel {
        display: flex !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }
    .login-panel-item {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }
    .login-links-container a.login-button,
    .login-links-container a.register-button,
    .login-button,
    .register-button {
        padding: 6px 14px !important;
        font-size: 11px !important;
        letter-spacing: .3px !important;
        border-radius: 20px !important;
        min-width: 60px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    /* ===== SITE HEADER (logo) ===== */
    .site-header {
        padding: 10px 8px !important;
        background: var(--c-primary-dark, #030a2e) !important;
    }
    .site-header .container,
    .site-header .row {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .site-header .logo {
        width: 140px !important;
        padding-top: 0 !important;
        aspect-ratio: var(--logo-w, 300) / var(--logo-h, 150) !important;
        background: none !important;
        margin: 0 auto !important;
    }
    .site-header .logo > img,
    .site-header .logo > picture {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        object-fit: contain !important;
    }

    /* ===== NAVBAR MENU (Hot Games, Slots, dll) ===== */
    .menu-slide {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 4px !important;
    }
    .menu-slide::-webkit-scrollbar { display: none !important; }
    .top-menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        padding: 6px 0 !important;
        margin: 0 !important;
        min-width: max-content !important;
        background: none !important;
        --separator-src: none !important;
    }
    .top-menu li {
        flex: 0 0 auto !important;
        min-width: 72px !important;
        max-width: 80px !important;
        padding: 4px !important;
        margin: 0 !important;
        background: none !important;
    }
    .top-menu li::before,
    .top-menu li::after { display: none !important; }
    .top-menu li a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important;
        font-size: 9px !important;
        line-height: 1.15 !important;
        text-align: center !important;
        white-space: normal !important;
        padding: 4px !important;
        color: #fff !important;
    }
    .top-menu li img {
        width: 26px !important;
        height: 26px !important;
        margin: 0 0 2px 0 !important;
    }
    .left_trigger, .right_trigger { display: none !important; }

    /* ===== BANNER SLIDER ===== */
    .banner {
        padding: 8px !important;
        margin: 0 !important;
    }
    .nav-btn.main-prev, .nav-btn.main-next,
    .nav-btn.sub-up, .nav-btn.sub-down {
        display: none !important;
    }
    #banner_carousel, .banner-carousel {
        width: 100% !important;
    }
    .vertical-wrapper {
        width: 100% !important;
        margin-bottom: 8px !important;
    }
    .banner-group-vertical {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .slide-item {
        width: 100% !important;
        margin: 0 !important;
    }
    .banner-img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        border-radius: 8px !important;
        display: block !important;
    }

    /* ===== ANNOUNCEMENT ===== */
    .announcement-container {
        flex-direction: column !important;
        gap: 6px !important;
        padding: 10px 12px !important;
        text-align: center !important;
    }
    .announcement-container > div { width: 100% !important; }
    .announcement-list {
        padding: 0 !important;
        margin: 0 !important;
        max-height: 60px;
        overflow: hidden;
    }
    .announcement-list li {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    /* ===== JACKPOT + LOTTERY ===== */
    .home-inner-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    [data-section="jackpot"], [data-section="lottery"] {
        width: 100% !important;
    }
    .home-progressive-jackpot .jackpot-play-section { display: none !important; }
    #progressive_jackpot { font-size: 22px !important; }

    /* ===== JACKPOT BUTTONS ===== */
    .jackpot-btn-container {
        flex-direction: column !important;
        gap: 6px !important;
        padding: 0 !important;
    }
    .jackpot-btn {
        width: 100% !important;
        font-size: 12px !important;
        padding: 10px !important;
    }

    /* ===== GAME GRID ===== */
    .game-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        padding: 6px !important;
    }
    .game-list li, .game-list .game-item {
        width: 100% !important;
        margin: 0 !important;
        flex: none !important;
    }
    .game-list img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }
    .game-list .game-item-name,
    .game-list .game-item-text {
        font-size: 11px !important;
        line-height: 1.2 !important;
        padding: 4px !important;
        text-align: center !important;
    }

    /* ===== FOOTER ===== */
    .site-footer { padding: 16px 8px !important; }
    .footer-description-section h4,
    .footer-description-section h1 {
        font-size: 15px !important;
        text-align: center !important;
        line-height: 1.4 !important;
    }
    .site-description {
        font-size: 12px !important;
        line-height: 1.55 !important;
        text-align: justify !important;
    }
    .footer-sitemap-section {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
    .footer-sitemap-section > div { padding: 0 !important; }
    .footer-sitemap-section ul { padding: 0 !important; list-style: none !important; }
    .footer-sitemap-section li {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }
    .footer-featured-product-section {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* ===== MOBILE KECIL ===== */
@media (max-width: 480px) {
    .site-header .logo { width: 110px !important; }
    .login-links-container a.login-button,
    .login-links-container a.register-button {
        padding: 5px 10px !important;
        font-size: 10px !important;
        min-width: 55px !important;
    }
    .top-menu li {
        min-width: 62px !important;
        max-width: 70px !important;
    }
    .top-menu li a { font-size: 8px !important; }
    .game-list { grid-template-columns: repeat(2, 1fr) !important; }
    .footer-sitemap-section { grid-template-columns: 1fr !important; }
}

/* ===== MOBILE SUPER KECIL ===== */
@media (max-width: 360px) {
    .topbar-item [data-icon] { width: 18px !important; height: 18px !important; }
    .login-links-container a.login-button,
    .login-links-container a.register-button {
        padding: 4px 8px !important;
        font-size: 9px !important;
    }
}


/* ============================================================
   MOBILE FIX v2 — BANNER CAROUSEL HARD RESET
   ============================================================ */

@media (max-width: 768px) {

    /* === Banner section: tampilkan SATU banner per baris, full width === */
    .banner {
        padding: 6px !important;
        margin: 0 !important;
    }

    .banner-carousel,
    #banner_carousel {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        gap: 8px !important;
    }

    .banner-carousel > *,
    #banner_carousel > * {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
    }

    /* Setiap vertical-wrapper = 1 baris penuh */
    .banner-carousel .vertical-wrapper,
    #banner_carousel .vertical-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        border: none !important;
    }

    /* Grup vertical (sub banner) = stack vertikal */
    .banner-group-vertical,
    .vertical-wrapper .banner-group-vertical {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Setiap slide-item = full width */
    .slide-item,
    .vertical-wrapper .slide-item,
    .banner-group-vertical .slide-item,
    .banner-carousel .slide-item {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
        position: static !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        background: none !important;
    }

    /* Anchor di dalam slide-item full block */
    .slide-item > a,
    .slide-item a {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Gambar banner = full width responsive */
    .banner-img,
    .slide-item img,
    .vertical-wrapper img,
    .banner-carousel img,
    img.banner-img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        border-radius: 6px !important;
        object-fit: cover !important;
    }

    /* Hilangkan tombol nav banner */
    .nav-btn,
    .nav-btn.main-prev,
    .nav-btn.main-next,
    .nav-btn.sub-up,
    .nav-btn.sub-down {
        display: none !important;
    }

    /* Hilangkan yellow separator line yang muncul tiap section
       (kalau emang separator-nya pake border-bottom dari --c-accent) */
    .vertical-wrapper::before,
    .vertical-wrapper::after,
    .banner-group-vertical::before,
    .banner-group-vertical::after {
        display: none !important;
    }

    /* Override outline kuning yang bikin garis horizontal */
    .provider-slide .slide-item:hover,
    .banner-group-vertical .slide-item:hover {
        outline: none !important;
    }
}

/* ===== MOBILE KECIL — banner radius lebih kecil ===== */
@media (max-width: 480px) {
    .banner { padding: 4px !important; }
    .banner-carousel { gap: 6px !important; }
    .banner-group-vertical { gap: 6px !important; }
    .banner-img { border-radius: 4px !important; }
}


/* ============================================================
   HAMBURGER MENU (mobile only)
   Desktop: navbar normal open
   Mobile (≤768px): navbar collapsed → slide-out sidebar
   ============================================================ */

/* Tombol hamburger — default hidden */
.mobile-hamburger {
    display: none;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.mobile-hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--c-accent, #ffd700);
    margin: 5px auto;
    border-radius: 2px;
    transition: all .3s ease;
}
.mobile-hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-hamburger.is-open span:nth-child(2) {
    opacity: 0;
}
.mobile-hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Overlay default hidden */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    transition: opacity .3s ease;
}

/* ===== MOBILE: hamburger aktif ===== */
@media (max-width: 768px) {
    /* Header relative biar hamburger absolute jalan */
    .site-header .col-sm-3,
    .site-header .col-md-3 {
        position: relative !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 60px !important;
    }

    /* Logo center di mobile */
    .site-header .logo {
        margin: 0 auto !important;
    }

    /* Tombol hamburger muncul */
    .mobile-hamburger {
        display: block !important;
    }

    /* Sembunyiin chevron trigger (tombol scroll horizontal lama) */
    .left_trigger, .right_trigger {
        display: none !important;
    }

    /* === Menu slide jadi sidebar === */
    .site-header .col-sm-9,
    .site-header .col-md-9 {
        position: fixed !important;
        top: 0 !important;
        right: -85% !important;
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: var(--c-primary-dark, #030a2e) !important;
        border-left: 2px solid var(--c-accent, #ffd700) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 999 !important;
        transition: right .3s ease !important;
        padding: 60px 0 20px !important;
        box-shadow: -4px 0 20px rgba(0, 0, 0, .5) !important;
    }

    body.mobile-menu-open .site-header .col-sm-9,
    body.mobile-menu-open .site-header .col-md-9 {
        right: 0 !important;
    }

    body.mobile-menu-open .mobile-menu-overlay {
        display: block !important;
        opacity: 1 !important;
    }

    body.mobile-menu-open {
        overflow: hidden !important;
    }

    /* Menu items jadi stacked vertical */
    .menu-slide {
        overflow: visible !important;
        padding: 0 !important;
    }
    .top-menu {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 0 !important;
        background: none !important;
        --separator-src: none !important;
    }
    .top-menu li {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 215, 0, .15) !important;
    }
    .top-menu li::before,
    .top-menu li::after { display: none !important; }
    .top-menu li a {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
        text-align: left !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        color: #fff !important;
        text-transform: uppercase !important;
    }
    .top-menu li a:hover {
        background: var(--c-primary, #0a1849) !important;
        color: var(--c-accent, #ffd700) !important;
    }
    .top-menu li img {
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
        flex: 0 0 24px !important;
    }
    /* Submenu sembunyiin di mobile (game-list child) */
    .top-menu li .game-list {
        display: none !important;
    }
}


/* ============================================================
   MOBILE BOTTOM FIXED NAV (desktop hidden, mobile only)
   ============================================================ */

.mobile-bottom-nav {
    display: none;  /* default hidden — desktop sembunyi */
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        background: var(--c-primary-dark, #030a2e);
        border-top: 2px solid var(--c-accent, #ffd700);
        padding: 6px 4px 8px;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, .5);
    }
    .mobile-bottom-nav a {
        flex: 1;
        max-width: 80px;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 4px 2px;
        color: #b8c0d9;
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .3px;
        text-decoration: none;
        transition: color .25s ease;
    }
    .mobile-bottom-nav a:hover,
    .mobile-bottom-nav a.active {
        color: var(--c-accent, #ffd700) !important;
    }
    .mobile-bottom-nav a img {
        width: 30px !important;
        height: 30px !important;
        margin: 0 !important;
        filter: brightness(1.15);
    }
    .mobile-bottom-nav a.center {
        transform: scale(1.1);
    }
    .mobile-bottom-nav a.center img {
        width: 36px !important;
        height: 36px !important;
    }
    .mobile-bottom-nav span {
        line-height: 1.1;
        white-space: nowrap;
    }

    /* body padding biar konten gak ketutup bottom nav */
    body {
        padding-bottom: 60px !important;
    }
}


/* ============================================================
   FINAL MOBILE FIX
   - Hamburger di topbar (visible & clickable)
   - MASUK/DAFTAR pindah di bawah slider
   - Banner sizing untuk mobile
   ============================================================ */

/* Topbar relative biar hamburger absolute jalan */
.topbar-container { position: relative; }

/* Hamburger button — default hidden di desktop */
.mobile-hamburger {
    display: none;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: var(--c-primary-dark, #030a2e);
    border: 2px solid var(--c-accent, #ffd700);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}
.mobile-hamburger span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--c-accent, #ffd700);
    margin: 3px auto;
    border-radius: 2px;
    transition: all .3s ease;
}
.mobile-hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-hamburger.is-open span:nth-child(2) { opacity: 0; }
.mobile-hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile CTA — default hidden */
.mobile-cta-container {
    display: none;
}

/* ===== MOBILE (≤768px) ===== */
@media (max-width: 768px) {

    /* Hamburger AKTIF — visible & clickable */
    .mobile-hamburger {
        display: flex !important;
    }

    /* Sembunyiin MASUK/DAFTAR di topbar */
    .topbar-right-container .login-panel,
    .topbar-container .login-panel {
        display: none !important;
    }

    /* Topbar lebih kompak biar ada room buat hamburger */
    .topbar-container {
        padding-right: 60px !important;
    }
    .topbar-container .row {
        justify-content: flex-start !important;
    }

    /* Mobile CTA muncul di bawah slider */
    .mobile-cta-container {
        display: flex !important;
        gap: 8px;
        padding: 10px 8px;
        background: var(--c-primary-dark, #030a2e);
    }
    .mobile-cta-login,
    .mobile-cta-register {
        flex: 1;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 800;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-decoration: none;
        border-radius: 10px;
        border: 2px solid;
        transition: all .25s ease;
    }
    .mobile-cta-login {
        background: linear-gradient(135deg, var(--c-primary-light, #1e3a8a), var(--c-primary, #0a1849));
        color: #fff;
        border-color: var(--c-primary-light, #1e3a8a);
    }
    .mobile-cta-register {
        background: linear-gradient(180deg, var(--c-accent, #ffd700), var(--c-accent-dark, #b8a000));
        color: var(--c-primary-dark, #030a2e);
        border-color: var(--c-accent, #ffd700);
    }
    .mobile-cta-login:active,
    .mobile-cta-register:active {
        transform: scale(.97);
    }

    /* === Banner sizing mobile === */
    .banner {
        padding: 8px !important;
    }
    .banner-img,
    .slide-item img,
    .banner-carousel img {
        width: 100% !important;
        height: auto !important;
        max-height: 220px !important;       /* batasi tinggi banner */
        object-fit: cover !important;
        border-radius: 8px !important;
        display: block !important;
    }

    .banner-group-vertical .banner-img,
    .banner-group-vertical .slide-item img {
        max-height: 140px !important;        /* sub banner lebih kecil */
    }
}


/* ============================================================
   FIX FINAL — hamburger icon + banner force show
   ============================================================ */

/* HAMBURGER — fix display jadi inline-block (bukan flex) */
.mobile-hamburger {
    display: none;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: var(--c-primary-dark, #030a2e);
    border: 2px solid var(--c-accent, #ffd700);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px 0 !important;
    z-index: 1001;
    box-sizing: border-box;
    line-height: 0;
}
.mobile-hamburger span {
    display: block !important;
    width: 22px;
    height: 3px;
    background: var(--c-accent, #ffd700) !important;
    margin: 4px auto !important;
    border-radius: 2px;
    transition: all .3s ease;
}
.mobile-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-hamburger.is-open span:nth-child(2) { opacity: 0; }
.mobile-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .mobile-hamburger {
        display: inline-block !important;
    }

    /* FORCE banner content tampil (override slick-not-initialized hidden) */
    .banner-carousel,
    #banner_carousel,
    .banner-carousel:not(.slick-initialized) {
        display: block !important;
    }
    .banner-carousel:not(.slick-initialized) > .vertical-wrapper,
    .banner-carousel > .vertical-wrapper,
    .vertical-wrapper {
        display: block !important;
        width: 100% !important;
        margin-bottom: 8px !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .banner-carousel:not(.slick-initialized) > .vertical-wrapper:not(:first-child) {
        display: block !important;   /* override sembunyi */
    }
    .banner-group-vertical:not(.slick-initialized) > .slide-item:not(:first-child),
    .banner-group-vertical:not(.slick-initialized) > a:not(:first-child) {
        display: block !important;
    }
    .banner-group-vertical {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .slide-item, .slide-item a {
        display: block !important;
        width: 100% !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .banner-img,
    img.banner-img,
    .slide-item img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        max-width: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        aspect-ratio: 1920 / 588 !important;
    }

    /* Banner section padding */
    .banner {
        padding: 8px !important;
        background: var(--c-primary-dark, #030a2e) !important;
        position: relative !important;
    }
}


/* ============================================================
   MOBILE BANNER — section terpisah dari slick desktop
   Desktop: pake .banner (slick) — mobile-banner-section hidden
   Mobile : sembunyiin .banner — mobile-banner-section muncul
   ============================================================ */

.mobile-banner-section {
    display: none;  /* default hidden di desktop */
}

@media (max-width: 768px) {
    /* SEMBUNYIIN banner desktop (slick) */
    .banner,
    div.banner[style*="position"] {
        display: none !important;
    }

    /* TAMPILKAN mobile banner — HORIZONTAL SLIDER (swipe kiri/kanan) */
    .mobile-banner-section {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        padding: 8px 0 !important;
        background: var(--c-primary-dark, #030a2e);
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;     /* Firefox */
        scroll-snap-stop: always !important;
    }
    .mobile-banner-section::-webkit-scrollbar { display: none; }  /* Chrome/Safari */

    .mobile-banner-item {
        display: block !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        line-height: 0;
        padding: 0 8px !important;
        box-sizing: border-box !important;
    }
    .mobile-banner-item img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1920 / 588 !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
        max-width: 100% !important;
        border-radius: 8px !important;
    }
}


/* ============================================================
   MOBILE TOPBAR FINAL — logo center, no icons, hamburger kanan
   ============================================================ */

.mobile-topbar-logo {
    display: none;  /* desktop hidden */
}

@media (max-width: 768px) {
    /* Sembunyiin SEMUA isi topbar lama (icon, search, dll) */
    .topbar-container .container,
    .topbar-container > .row,
    .topbar-container .topbar-left-container,
    .topbar-container .topbar-right-container,
    .topbar-container .topbar-left-section,
    .topbar-container .topbar-item {
        display: none !important;
    }

    /* Sembunyiin .site-header (logo lama) */
    .site-header {
        display: none !important;
    }

    /* Topbar jadi container utama */
    .topbar-container {
        position: relative !important;
        background: var(--c-primary-dark, #030a2e) !important;
        padding: 8px 60px 8px 12px !important;
        min-height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-bottom: 2px solid var(--c-accent, #ffd700) !important;
    }

    /* Logo muncul di topbar */
    .mobile-topbar-logo {
        display: block !important;
        line-height: 0;
        max-width: calc(100% - 70px);
    }
    .mobile-topbar-logo img {
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 50px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    /* Hamburger tetap di kanan */
    .mobile-hamburger {
        display: inline-block !important;
    }
}


/* ============================================================
   JACKPOT BOX MOBILE FIX — ukuran proporsional
   ============================================================ */

@media (max-width: 768px) {
    .home-progressive-jackpot {
        padding: 6px !important;
        margin: 0 !important;
        transform: scale(.95);
        transform-origin: center;
    }
    .home-progressive-jackpot .outer-container {
        padding: 6px !important;
        width: 100% !important;
    }
    .home-progressive-jackpot .inner-container {
        padding: 4px !important;
        width: 100% !important;
    }
    .home-progressive-jackpot .border-container {
        padding: 8px 16px !important;
        border-width: 2px !important;
        min-height: auto !important;
    }
    .home-progressive-jackpot .jackpot-container {
        padding: 6px !important;
        min-height: auto !important;
    }
    .home-progressive-jackpot .jackpot-inner-container {
        padding: 4px !important;
    }
    .home-progressive-jackpot .jackpot-border-container {
        padding: 6px 14px !important;
        border-width: 2px !important;
    }
    .home-progressive-jackpot .jackpot-currency {
        font-size: 14px !important;
    }
    #progressive_jackpot {
        font-size: 18px !important;
        letter-spacing: 1px !important;
    }
}

@media (max-width: 480px) {
    .home-progressive-jackpot { transform: scale(.92); }
    #progressive_jackpot { font-size: 16px !important; }
    .home-progressive-jackpot .jackpot-currency { font-size: 12px !important; }
}


/* ============================================================
   MOBILE COMPACT — section bawah jackpot
   ============================================================ */

@media (max-width: 768px) {

    /* ===== PEMBERITAHUAN ===== */
    .announcement-container {
        padding: 8px 12px !important;
        margin: 8px !important;
        border-radius: 8px !important;
    }
    .announcement-container [data-section="title"] {
        font-size: 12px !important;
        margin-bottom: 2px !important;
    }
    .announcement-container [data-section="title"] i {
        width: 18px !important;
        height: 18px !important;
    }
    .announcement-list,
    .announcement-list li {
        font-size: 10px !important;
        line-height: 1.3 !important;
    }
    .announcement-container [data-section="date"] {
        font-size: 9px !important;
        opacity: .7;
    }

    /* ===== JACKPOT PROGRESSIVE (lebih kompak lagi) ===== */
    .home-progressive-jackpot {
        padding: 4px 8px !important;
        transform: scale(.88) !important;
        transform-origin: center !important;
        margin: -8px 0 !important;
    }

    /* ===== JACKPOT BUTTONS (Event / Telegram) ===== */
    .jackpot-btn-container,
    [class*="jackpot-btn"] {
        padding: 0 8px !important;
    }
    .jackpot-btn {
        font-size: 11px !important;
        padding: 7px 14px !important;
        min-height: 32px !important;
        border-radius: 16px !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
    }

    /* ===== NEX4D POOLS ===== */
    .lottery-result-container {
        padding: 6px 10px !important;
        margin: 8px !important;
        border-radius: 8px !important;
    }
    .lottery-result-title {
        font-size: 12px !important;
        padding: 4px 8px !important;
        margin-bottom: 4px !important;
    }
    .lottery-result {
        gap: 4px !important;
        padding: 4px 0 !important;
    }
    .lottery-result img {
        width: 22px !important;
        height: 22px !important;
    }
    .lottery-numbers {
        gap: 2px !important;
    }
    .lottery-numbers span {
        transform: scale(.75) !important;
    }
    .lottery-date {
        font-size: 9px !important;
        padding-top: 2px !important;
    }

    /* ===== GAME POPULER & SECTION TITLES ===== */
    .popular-game-title-container {
        padding: 8px !important;
        margin: 0 !important;
    }
    .popular-game-title-container .container-title {
        font-size: 12px !important;
        padding: 4px 10px !important;
    }
    .popular-game-title-container .container-content {
        padding: 6px !important;
    }

    /* Hilangkan gap besar antar section */
    .home-info-container > .container > .row {
        gap: 0 !important;
    }
    .home-info-container > .container > .row > .col-md-12 {
        margin-bottom: 4px !important;
    }
}

@media (max-width: 480px) {
    .home-progressive-jackpot {
        transform: scale(.85) !important;
        margin: -12px 0 !important;
    }
    #progressive_jackpot { font-size: 14px !important; }
    .jackpot-btn { font-size: 10px !important; padding: 6px 10px !important; }
}


/* ============================================================
   MOBILE GAME POPULER FIX
   Target .popular-game-list (bukan .game-list submenu)
   ============================================================ */

@media (max-width: 768px) {

    /* Popular game container & title */
    .popular-game-title-container {
        margin: 8px 0 !important;
    }
    .popular-game-title-container .container-title {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }
    .popular-game-title-container .container-title span {
        font-size: 12px !important;
        padding: 4px 12px !important;
    }
    .popular-game-title-container .container-content {
        padding: 8px !important;
        margin: 0 !important;
    }

    /* THE FIX: popular-game-list grid 3 kolom */
    .popular-game-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 0 !important;
        width: 100% !important;
        list-style: none !important;
    }

    /* Tiap game item = 1 kolom */
    .popular-game-list .game-item,
    .popular-game-list > div,
    .popular-game-list > li {
        width: 100% !important;
        margin: 0 !important;
        flex: none !important;
        float: none !important;
        padding: 0 !important;
    }

    /* Game wrapper (foto + nama) */
    .popular-game-list .game-wrapper,
    .game-item .game-wrapper {
        width: 100% !important;
        padding: 0 !important;
    }

    /* Image */
    .popular-game-list img,
    .popular-game-list picture img,
    .game-item img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        display: block !important;
        margin: 0 !important;
    }

    /* Game name */
    .popular-game-list .game-item-name,
    .popular-game-list .game-item-text,
    .game-item .game-name,
    .game-item-text,
    .game-item-name {
        font-size: 10px !important;
        line-height: 1.2 !important;
        padding: 4px 2px !important;
        text-align: center !important;
        color: var(--c-accent, #ffd700) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Hide tombol overlay yang kepenuhan */
    .popular-game-list .game-item .background,
    .popular-game-list .game-item .foreground {
        position: relative !important;
    }

    /* Popular games section background */
    .popular-games {
        padding: 8px !important;
        background-size: cover !important;
    }
    .popular-games [data-section="left"] {
        width: 100% !important;
        padding: 0 !important;
    }
    .popular-games [data-section="right"] {
        width: 100% !important;
        padding: 0 !important;
    }
    .popular-games .section-title {
        font-size: 13px !important;
        padding: 8px !important;
        text-align: center !important;
    }

    /* Hide winners ticker di mobile (terlalu kompleks) — atau bikin compact */
    .jackpot-winners,
    .winners-ticker-container {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .popular-game-list {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    .popular-game-list .game-item-name { font-size: 9px !important; }
}

@media (max-width: 360px) {
    .popular-game-list { grid-template-columns: repeat(2, 1fr) !important; }
}


/* ============================================================
   MOBILE — CATEGORY BAR + GAME POPULER STYLE
   ⚠️  100% mobile-only (≤768px), desktop UNTOUCHED
   ============================================================ */

.mobile-category-bar { display: none; }

@media (max-width: 768px) {
    /* Horizontal scroll category bar */
    .mobile-category-bar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 4px !important;
        padding: 12px 8px 10px !important;
        background: var(--c-primary-dark, #030a2e);
        border-top: 2px solid var(--c-accent, #ffd700);
        border-bottom: 1px solid rgba(255, 215, 0, .15);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }
    .mobile-category-bar::-webkit-scrollbar { display: none; }

    .mobile-category-bar a {
        flex: 0 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        min-width: 80px !important;
        padding: 8px 6px !important;
        color: #fff !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        letter-spacing: .3px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        scroll-snap-align: start;
    }
    .mobile-category-bar a img {
        width: 30px !important;
        height: 30px !important;
        filter: brightness(1.15);
    }
    .mobile-category-bar a:hover,
    .mobile-category-bar a:active {
        color: var(--c-accent, #ffd700) !important;
    }

    /* === GAME POPULER tag dengan corner triangle (kuning) === */
    .popular-game-title-container .container-title {
        position: relative;
        display: inline-block !important;
        background: var(--c-accent, #ffd700) !important;
        color: var(--c-primary-dark, #030a2e) !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        font-size: 12px !important;
        padding: 6px 24px 6px 14px !important;
        margin: 12px 0 0 8px !important;
        clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
        letter-spacing: .8px !important;
    }
    .popular-game-title-container .container-title span {
        background: none !important;
        color: inherit !important;
        padding: 0 !important;
        font-size: inherit !important;
    }
    .popular-game-title-container .container-content {
        padding: 6px 6px 10px !important;
        margin: 0 !important;
        border: none !important;
    }

    /* === GAME GRID 4 KOLOM (mobile) === */
    .popular-game-list,
    .popular-game-title-container .game-list {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        padding: 0 !important;
        list-style: none !important;
    }
    .popular-game-list > *,
    .popular-game-title-container .game-list > * {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        flex: none !important;
    }
    .popular-game-list img,
    .popular-game-title-container .game-list img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        border-radius: 6px !important;
        display: block !important;
    }
    .popular-game-list .game-item-name,
    .popular-game-list .game-item-text,
    .popular-game-title-container .game-list .game-item,
    .popular-game-list .game-name {
        font-size: 9px !important;
        line-height: 1.2 !important;
        padding: 3px 1px 0 !important;
        color: #fff !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-weight: 600 !important;
    }
}

@media (max-width: 480px) {
    .popular-game-list,
    .popular-game-title-container .game-list {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 360px) {
    .popular-game-list,
    .popular-game-title-container .game-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


/* ============================================================
   MOBILE FIX — Hilangkan title duplikat & rapiin Video Slots
   ⚠️  MOBILE ONLY, desktop UNTOUCHED
   ============================================================ */

@media (max-width: 768px) {

    /* === Hide h4 title (duplicate dgn h1 di bawahnya) === */
    .footer-description-section h4 {
        display: none !important;
    }

    /* === Pertahankan h1 yang ada di site-description (SEO penting) === */
    .footer-description-section .site-description h1 {
        display: block !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
        text-align: center !important;
        margin-bottom: 12px !important;
        color: var(--c-accent, #ffd700) !important;
    }

    /* === Site description text === */
    .footer-description-section .site-description {
        padding: 12px 8px !important;
        font-size: 12px !important;
        line-height: 1.55 !important;
        text-align: justify !important;
        color: #d8e0ff !important;
    }

    /* === Video Slots Popular section — sederhanain === */
    .popular-games {
        padding: 8px !important;
        background: var(--c-primary-dark, #030a2e) !important;
        background-image: none !important;
        background-size: 0 !important;
    }
    .popular-games > div {
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin-bottom: 8px !important;
    }
    .popular-games .section-title {
        font-size: 13px !important;
        padding: 6px 10px !important;
        text-align: left !important;
        color: var(--c-accent, #ffd700) !important;
        background: var(--c-primary, #0a1849) !important;
        border-radius: 6px;
        margin-bottom: 8px !important;
    }
    .popular-games .section-title i {
        width: 18px !important;
        height: 18px !important;
    }

    /* Video Slots provider tabs scrollable */
    .popular-games [data-section="right"] .nav-tabs,
    .popular-games .tab-providers {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none;
    }
    .popular-games .nav-tabs::-webkit-scrollbar,
    .popular-games .tab-providers::-webkit-scrollbar { display: none; }

    /* Video Slots game grid 3 col mobile */
    .popular-games .game-list,
    .popular-games .popular-game-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    .popular-games .game-list img,
    .popular-games .popular-game-list img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        border-radius: 6px !important;
    }
    .popular-games .game-item-name,
    .popular-games .game-item-text {
        font-size: 9px !important;
        padding: 3px 1px !important;
        text-align: center !important;
        color: #fff !important;
    }
}


/* ============================================================
   MOBILE — Hide Video Slots Popular section
   (terlalu kompleks, gak sesuai mobile)
   ============================================================ */

@media (max-width: 768px) {
    .popular-games,
    .popular-games-container {
        display: none !important;
    }

    /* Pastikan h4 footer hidden juga (jaga-jaga) */
    .footer-description-section h4,
    .site-footer h4.footer-title-duplicate {
        display: none !important;
    }
}


/* ============================================================
   MOBILE — Hide jackpot-btn (Grup TG, Event, RTP, TG Admin)
   ============================================================ */

@media (max-width: 768px) {
    .jackpot-btn,
    .jackpot-btn-container,
    [class*="jackpot-btn"] {
        display: none !important;
    }
}


/* ============================================================
   MOBILE — Rapatin gap antar section
   ============================================================ */

@media (max-width: 768px) {
    /* Hilangin space kosong dari section jackpot/lottery */
    .home-inner-container {
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    [data-section="jackpot"],
    [data-section="lottery"] {
        padding: 0 !important;
        margin: 0 !important;
    }
    /* Section yang isinya cuma button hidden → kasih min-height 0 */
    [data-section="jackpot"] > a {
        display: block;
        margin: 0 !important;
    }
    /* Row & col padding rapatin */
    .home-info-container .row,
    .home-info-container .col-md-12 {
        margin: 0 !important;
        padding: 0 !important;
    }
    .home-info-container {
        padding: 0 !important;
    }
}


/* ============================================================
   MOBILE — Footer sitemap rapi + hide section bawah
   ============================================================ */

@media (max-width: 768px) {

    /* === FOOTER SITEMAP — grid 2 kolom rapi === */
    .footer-sitemap-section {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px 12px !important;
        padding: 16px 12px !important;
        background: var(--c-primary-dark, #030a2e);
        border-top: 1px solid rgba(255, 215, 0, .15);
    }
    .footer-sitemap-section > div {
        padding: 0 !important;
        margin: 0 !important;
    }
    .footer-sitemap-section h4 {
        color: var(--c-accent, #ffd700) !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: .5px !important;
        margin: 0 0 8px 0 !important;
        padding-bottom: 6px !important;
        border-bottom: 1px solid rgba(255, 215, 0, .25) !important;
    }
    .footer-sitemap-section ul,
    .footer-sitemap-section .footer-links,
    .footer-sitemap-section .contact-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .footer-sitemap-section li {
        margin: 0 0 4px 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    .footer-sitemap-section li a {
        color: #c8d0e8 !important;
        font-size: 11px !important;
        line-height: 1.5 !important;
        text-decoration: none !important;
        padding: 2px 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .footer-sitemap-section li a:hover {
        color: var(--c-accent, #ffd700) !important;
    }
    /* contact list icon */
    .footer-sitemap-section .contact-list li a i {
        display: inline-flex !important;
        width: 16px !important;
        height: 16px !important;
    }
    .footer-sitemap-section .contact-list li a i img {
        width: 100% !important;
        height: 100% !important;
    }

    /* === HIDE: Komunitas + section di bawahnya === */
    /* Komunitas — empty section, hide */
    .footer-sitemap-section > div:has(.social-media-list) {
        display: none !important;
    }
    /* Alternative selector fallback (browser tanpa :has) */
    .footer-sitemap-section .social-media-list {
        display: none !important;
    }

    /* Featured product section (powered-by logos / kotak provider) */
    .footer-featured-product-section,
    .footer-featured-product-section + *,
    footer .row.footer-featured-product-section {
        display: none !important;
    }

    /* Footer separator setelah sitemap hide juga biar gak nempel */
    .site-footer hr.footer-separator + hr.footer-separator {
        display: none !important;
    }
}


/* ============================================================
   MOBILE — Hide Platform Penyedia Layanan section
   ============================================================ */

@media (max-width: 768px) {
    .footer-section-title,
    .provider-container,
    .footer-section-title + .provider-container,
    [class*="provider-container"] {
        display: none !important;
    }
}


/* ============================================================
   MOBILE — Hide provider-section (Platform Penyedia Layanan)
   Sisakan copyright aja
   ============================================================ */

@media (max-width: 768px) {
    .provider-section,
    .footer-section-title,
    .provider-container {
        display: none !important;
    }

    /* Style copyright biar rapi */
    .copyright {
        text-align: center !important;
        padding: 12px !important;
        font-size: 11px !important;
        color: var(--c-accent, #ffd700) !important;
        background: var(--c-primary-dark, #030a2e) !important;
        border-top: 1px solid rgba(255, 215, 0, .2);
        margin: 0 !important;
    }
}


/* ============================================================
   MOBILE — Footer copyright section: cuma copyright doang
   Hide: sertifikasi, tanggung jawab, browser support, dst
   ============================================================ */

@media (max-width: 768px) {
    /* Hide semua child di footer-copyright-section kecuali .copyright */
    .footer-copyright-section .footer-section-title,
    .footer-copyright-section .hover-list,
    .footer-copyright-section .supported-browser-container,
    .footer-copyright-section .powered-by-link,
    .footer-copyright-section .powered-by-logo {
        display: none !important;
    }

    /* Hilangkan wrapper div yg cuma jadi container kosong */
    .footer-copyright-section > .col-md-12 > div:not(.copyright) {
        display: none !important;
    }
}


/* ============================================================
   MOBILE — Besarin angka jackpot
   ============================================================ */

@media (max-width: 768px) {
    #progressive_jackpot {
        font-size: 30px !important;
        letter-spacing: 2px !important;
        font-weight: 800 !important;
    }
    .jackpot-currency {
        font-size: 20px !important;
        font-weight: 800 !important;
    }
}

@media (max-width: 480px) {
    #progressive_jackpot {
        font-size: 26px !important;
        letter-spacing: 1.5px !important;
    }
    .jackpot-currency {
        font-size: 18px !important;
    }
}

@media (max-width: 360px) {
    #progressive_jackpot {
        font-size: 22px !important;
        letter-spacing: 1px !important;
    }
    .jackpot-currency {
        font-size: 16px !important;
    }
}


/* ============================================================
   POPUP WELCOME — MOBILE RESPONSIVE POLISH
   ============================================================ */

@media (max-width: 768px) {
    .popup-welcome {
        padding: 10px !important;
        align-items: center !important;
    }
    .popup-welcome .popup-card {
        width: 95vw !important;
        max-width: 420px !important;
        padding: 14px 14px 12px !important;
        max-height: 92vh !important;
        overflow-y: auto !important;
    }
    .popup-welcome .popup-logo {
        margin-bottom: 10px !important;
    }
    .popup-welcome .popup-logo img {
        max-width: 50% !important;
        max-height: 50px !important;
    }
    .popup-welcome .popup-banner {
        margin-bottom: 10px !important;
    }
    .popup-welcome .popup-banner img {
        border-radius: 10px !important;
        max-width: 280px !important;
    }
    .popup-welcome .popup-title {
        font-size: 13px !important;
        line-height: 1.35 !important;
        margin: 2px 4px 12px !important;
    }
    .popup-welcome .popup-actions {
        gap: 8px !important;
        margin-bottom: 10px !important;
    }
    .popup-welcome .popup-btn {
        padding: 11px 10px !important;
        font-size: 13px !important;
        letter-spacing: .5px !important;
    }
    .popup-welcome .popup-footer {
        font-size: 9px !important;
        padding-top: 8px !important;
    }
}

@media (max-width: 480px) {
    .popup-welcome .popup-card {
        padding: 12px 10px 10px !important;
    }
    .popup-welcome .popup-logo img {
        max-height: 40px !important;
    }
    .popup-welcome .popup-banner img {
        max-width: 240px !important;
    }
    .popup-welcome .popup-title {
        font-size: 12px !important;
    }
    .popup-welcome .popup-btn {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }
}

/* Pastikan body gak scroll saat popup aktif (anti-bleed) */
body:has(#popupCenter) {
    overflow: hidden !important;
}
