/* ===== Header mobile: [menu][logo] ... [Masuk][Daftar] + teks berjalan di bawah banner ===== */
@media screen and (max-width: 1080px) {
    .header-mobile .header-mobile__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
    }
    .header-mobile .header-mobile__top .mobile-left {
        display: flex;
        align-items: center;
        min-width: 0;
    }
    .header-mobile .header-mobile__top .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        margin-right: 10px;
        font-size: 24px;
        color: #fff;
        cursor: pointer;
        flex-shrink: 0;
    }
    .header-mobile .header-mobile__top .mobile-left .mobile-logo {
        width: auto;
        max-width: none;
    }
    .header-mobile .header-mobile__top .mobile-left .mobile-logo img {
        width: auto;
        max-width: 150px;
        height: 34px;
        object-fit: contain;
    }
    .header-mobile .header-mobile__top .mobile-button {
        margin-left: 8px;
        flex-shrink: 0;
    }
    .header-mobile .header-mobile__top .mobile-button .mobile-btn {
        display: inline-block;
        padding: 9px 14px;
        margin: 0 0 0 6px;
        border-radius: 5px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        text-align: center;
        line-height: 1.1;
        color: #1a1a1a;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    }
    .header-mobile .header-mobile__top .mobile-button .mobile-btn--masuk {
        background: linear-gradient(180deg, #f2f2f2 0%, #b9b9b9 55%, #8f8f8f 100%);
        border: 1px solid #d9d9d9;
    }
    .header-mobile .header-mobile__top .mobile-button .mobile-btn--daftar {
        background: linear-gradient(180deg, var(--accent-1, var(--accent-1, #f6d56a)) 0%, var(--accent-2, #d4a017) 55%, var(--accent-3, #a87b0b) 100%);
        border: 1px solid var(--accent-border, #e8c45a);
    }
}
@media screen and (max-width: 380px) {
    .header-mobile .header-mobile__top .mobile-left .mobile-logo img {
        max-width: 105px;
        height: 28px;
    }
    .header-mobile .header-mobile__top .mobile-button .mobile-btn {
        padding: 8px 9px;
        font-size: 11px;
    }
}

.info-marquee {
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--secondary-color, #f5b800);
    color: var(--secondary-text, #111);
    overflow: hidden;
}
.info-marquee .info-marquee__label {
    flex-shrink: 0;
    padding: 6px 10px 6px 14px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}
.info-marquee .info-marquee__text {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
    color: inherit;
}


/* ===== Footer bawah: Beranda | Daftar/Deposit | Promosi | Live Chat (warna ikut tema) ===== */
.footer-nav {
    display: none;
}
@media screen and (max-width: 1080px) {
    .footer-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 997;
        padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
        border-radius: 18px 18px 0 0;
        border: 1px solid rgba(255, 255, 255, .85);
        border-bottom: 0;
        background: var(--header-color, #8D0105);
        background: color-mix(in srgb, var(--header-color, #8D0105) 55%, transparent);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, .25);
    }
    .footer-nav .footer-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 3px 8px;
        position: relative;
        color: #fff;
        text-align: center;
        text-decoration: none;
    }
    .footer-nav .footer-nav__item svg {
        width: 26px;
        height: 26px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.6;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .footer-nav .footer-nav__item span {
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
        text-transform: uppercase;
        white-space: nowrap;
    }
    .footer-nav .footer-nav__item {
        opacity: .8;
    }
    .footer-nav .footer-nav__item.active {
        opacity: 1;
    }
    .footer-nav .footer-nav__item.active::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -2px;
        width: 24px;
        height: 2px;
        margin-left: -12px;
        border-radius: 2px;
        background: #fff;
    }
    body {
        padding-bottom: 78px;
    }
}
@media screen and (max-width: 380px) {
    .footer-nav .footer-nav__item svg { width: 26px; height: 26px; }
    .footer-nav .footer-nav__item span { font-size: 11px; }
}


/* ===== Menu kategori (tombol geser) + logo provider bulat di home - warna ikut tema, efek kilau ===== */
.home .home__cats {
    --c: var(--header-color, #8D0105);
    --c-dark: color-mix(in srgb, var(--c) 40%, #000);
    --c-light: color-mix(in srgb, var(--c) 45%, #fff);
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, var(--c-dark) 0%, var(--c) 100%);
}
.home .home__cats .menu-pills,
.home .home__cats .menu-providers {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.home .home__cats .menu-pills::-webkit-scrollbar,
.home .home__cats .menu-providers::-webkit-scrollbar {
    display: none;
}
.home .home__cats .menu-pills {
    gap: 10px;
    padding: 10px 12px 6px;
}
.home .home__cats .menu-pill {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    min-width: 92px;
    padding: 9px 18px;
    border: 1px solid var(--c-light);
    border-radius: 8px;
    background: linear-gradient(90deg, var(--c-dark) 0%, var(--c) 100%);
    box-shadow: 0 0 8px color-mix(in srgb, var(--c-light) 45%, transparent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
}
/* kilau menyapu tombol */
.home .home__cats .menu-pill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
    transform: translateX(-160%) skewX(-20deg);
    animation: cats-shine 3.4s ease-in-out infinite;
    pointer-events: none;
}
.home .home__cats .menu-pill:nth-child(2)::after { animation-delay: .25s; }
.home .home__cats .menu-pill:nth-child(3)::after { animation-delay: .5s; }
.home .home__cats .menu-pill:nth-child(4)::after { animation-delay: .75s; }
.home .home__cats .menu-pill:nth-child(5)::after { animation-delay: 1s; }
.home .home__cats .menu-pill:nth-child(6)::after { animation-delay: 1.25s; }
.home .home__cats .menu-pill:nth-child(7)::after { animation-delay: 1.5s; }
.home .home__cats .menu-pill:nth-child(8)::after { animation-delay: 1.75s; }

.home .home__cats .menu-providers {
    gap: 12px;
    padding: 8px 12px 12px;
}
.home .home__cats .provider-circle {
    position: relative;
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, var(--c-dark) 0%, var(--c-dark) 55%, var(--c) 100%);
    border: 2px solid var(--c-light);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .35), 0 0 8px var(--c-light);
    animation: cats-glow 2.6s ease-in-out infinite;
}
.home .home__cats .provider-circle img {
    width: 66%;
    height: 66%;
    object-fit: contain;
}
/* bintang kecil berkilau di tepi lingkaran */
.home .home__cats .provider-circle::before,
.home .home__cats .provider-circle::after {
    content: "";
    position: absolute;
    background: #fff;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    opacity: 0;
    pointer-events: none;
    animation: cats-twinkle 2.4s ease-in-out infinite;
}
.home .home__cats .provider-circle::before {
    width: 12px;
    height: 12px;
    top: -4px;
    right: 2px;
}
.home .home__cats .provider-circle::after {
    width: 9px;
    height: 9px;
    bottom: 2px;
    left: -3px;
    animation-delay: 1.1s;
}
.home .home__cats .provider-circle:nth-child(2n) { animation-delay: .4s; }
.home .home__cats .provider-circle:nth-child(3n)::before { animation-delay: .7s; }
.home .home__cats .provider-circle:nth-child(2n)::before { animation-delay: 1.4s; }
.home .home__cats .provider-circle:nth-child(3n)::after { animation-delay: 1.9s; }

@keyframes cats-shine {
    0%   { transform: translateX(-160%) skewX(-20deg); }
    45%, 100% { transform: translateX(380%) skewX(-20deg); }
}
@keyframes cats-glow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(0, 0, 0, .35), 0 0 6px var(--c-light); }
    50%      { box-shadow: 0 0 0 3px rgba(0, 0, 0, .35), 0 0 16px var(--c-light); }
}
@keyframes cats-twinkle {
    0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
    50%      { opacity: 1; transform: scale(1) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
    .home .home__cats .menu-pill::after,
    .home .home__cats .provider-circle,
    .home .home__cats .provider-circle::before,
    .home .home__cats .provider-circle::after {
        animation: none;
    }
}


/* ===== Popular Slots (home & halaman popular) - warna ikut tema ===== */
.popg {
    --c: var(--header-color, #8D0105);
    --c-dark: color-mix(in srgb, var(--c) 35%, #000);
    --c-light: color-mix(in srgb, var(--c) 45%, #fff);
    background: var(--c-dark);
    color: #fff;
}
.popg .popg-search {
    position: relative;
    margin: 0;
    padding: 12px 12px 10px;
    background: linear-gradient(180deg, var(--c) 0%, var(--c-dark) 100%);
}
.popg .popg-search i {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 1px;
    color: #777;
    font-size: 15px;
    pointer-events: none;
}
.popg .popg-search input[type="text"] {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 42px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font-size: 15px;
    outline: none;
}
/* Tombol Menu Bonus & LIVEBOLA di bawah search: kiri-kanan, lebar penuh per setengah */
.popg .popg-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 0 0;
    background: var(--c-dark);
}
.popg .popg-menu__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 44px;
    border-radius: 0;
    background: var(--c);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.popg .popg-menu__btn--bonus {
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #ffe600;
    text-transform: uppercase;
}
.popg .popg-menu__btn--bonus i {
    font-size: 16px;
}
.popg .popg-menu__btn--bonus .bw {
    margin-top: -2px;
}
.popg .popg-menu__btn--live {
    border-radius: 8px 0 0 8px;
}
.popg .popg-menu__btn--live img {
    height: 16px;
    width: auto;
}
/* Jarak di bawah tombol hanya kalau tidak ada Permainan Terakhir (bar POPULAR SLOTS langsung menyusul) */
.popg .popg-menu + .popg-head {
    margin-top: 10px;
}
/* Permainan Terakhir: satu baris, geser ke samping */
.popg .popg-last {
    padding: 4px 0 2px;
    background: var(--c-dark);
}
.popg .popg-last h3 {
    margin: 0;
    padding: 13px 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    background: var(--c);
}
.popg .popg-last h3 i {
    margin-right: 4px;
    color: var(--c-light);
}
.popg .popg-last__row {
    display: flex;
    gap: 8px;
    padding: 8px 12px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.popg .popg-last__row::-webkit-scrollbar {
    display: none;
}
/* Permainan Terakhir: ukuran & susunan kartu dibuat sama dengan referensi */
.popg .popg-last__row {
    gap: 4px;
    padding: 20px 2px 10px;
}
.popg .popg-last__row .popg-card {
    flex: 0 0 35%;
    min-width: 0;
    aspect-ratio: auto;
    overflow: visible;
    padding: 0 0 36px;
    border: 1.5px solid var(--c-light);
    border-radius: 8px;
    background: #1e1e1e;
    box-shadow: none;
}
/* Gambar sedikit lebih kecil dari kartu dan naik ke tepi atas */
.popg .popg-last__row .popg-card img {
    display: block;
    width: 82%;
    height: auto;
    aspect-ratio: 1.44 / 1;
    margin: -10px auto 0;
    border-radius: 8px;
}
/* Nama game di bawah gambar */
.popg .popg-last__row .popg-card span {
    position: static;
    padding: 8px 6px 6px;
    background: none;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Bar bawah: kotak bintang (kiri) dan tombol PLAY (kanan) */
.popg .popg-last__row .popg-card::before,
.popg .popg-last__row .popg-card::after {
    position: absolute;
    bottom: 0;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.popg .popg-last__row .popg-card::before {
    content: "\2605";
    left: 0;
    width: 33%;
    background: #3f3f3f;
    font-size: 22px;
    border-bottom-left-radius: 8px;
}
.popg .popg-last__row .popg-card::after {
    content: "PLAY";
    right: 0;
    width: 67%;
    color: #1a1a1a;
    background: linear-gradient(180deg, var(--accent-1, #f6d56a) 0%, var(--accent-2, #d4a017) 55%, var(--accent-3, #a87b0b) 100%);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    border-bottom-right-radius: 8px;
}
.popg .popg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    background: var(--c);
}
.popg .popg-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
}
.popg .popg-head h2 small {
    font-size: 12px;
    font-weight: 600;
    opacity: .8;
}
.popg .popg-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.popg .popg-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: 0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.1;
    color: #1a1a1a;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.popg .popg-btn--cari {
    background: linear-gradient(180deg, #f2f2f2 0%, #b9b9b9 55%, #8f8f8f 100%);
}
.popg .popg-btn--all {
    background: linear-gradient(180deg, var(--accent-1, var(--accent-1, #f6d56a)) 0%, var(--accent-2, #d4a017) 55%, var(--accent-3, #a87b0b) 100%);
}
.popg .popg-banner {
    padding: 12px 12px 0;
}
.popg .popg-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--c-black, #000);
}
.popg .popg-slider .swiper-slide a,
.popg .popg-slider .swiper-slide img {
    display: block;
    width: 100%;
}
.popg .popg-slider .swiper-slide img {
    height: auto;
    object-fit: cover;
}
.popg .popg-slider .popg-pagination {
    bottom: 6px;
}
.popg .popg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
}
.popg .popg-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    border: 2px solid var(--c-light);
    background: var(--c-black, #000);
    box-shadow: 0 0 8px color-mix(in srgb, var(--c-light) 40%, transparent);
    text-decoration: none;
}
.popg .popg-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.popg .popg-card span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 5px 4px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .8) 100%);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popg .popg-empty {
    grid-column: 1 / -1;
    padding: 24px 8px;
    text-align: center;
    opacity: .8;
}
.popg-page .popg {
    min-height: 60vh;
}


/* ===== Sportsbook (beranda) - 2 kolom ===== */
.popg.spb .spb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 14px 12px 16px;
}
.popg.spb .spb-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--c-light) 0%, var(--c) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
    text-decoration: none;
}
.popg.spb .spb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.popg.spb .spb-card .spb-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}


/* ===== Live Casino (beranda): 1 kartu besar + 2 kecil, lalu 3 kolom ===== */
.popg.idn .idn-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.popg.idn .idn-promo {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--accent-1, #ffe27a) 0%, var(--accent-2, var(--accent-2, #f0b400)) 100%);
    color: var(--accent-ink, #3a2600);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    line-height: 1.3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.popg.idn .idn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
}
.popg.idn .idn-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    border-radius: 10px;
    background: var(--c-black, #000);
    text-decoration: none;
}
.popg.idn .idn-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.popg.idn .idn-card--big {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    aspect-ratio: auto;
    border: 2px solid var(--accent-2, #f0b400);
    border-radius: 12px;
}
.popg.idn .idn-tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 10px;
    border-radius: 0 0 0 8px;
    background: var(--accent-2, #f0b400);
    color: var(--accent-ink, #3a2600);
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.3;
}


/* ===== Togel (beranda): banner + provider ===== */
.popg.tgl .tgl-hero {
    padding: 12px 12px 0;
}
.popg.tgl .tgl-hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.popg.tgl .spb-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
}
.popg.tgl .spb-card {
    border-radius: 8px;
}
.popg.tgl .spb-card .spb-ph {
    font-size: 13px;
}
.popg.tgl .spb-card.is-mt .mt-tag {
    font-size: 9px;
    padding: 2px 6px;
}


/* ===== Footer beranda: keunggulan + badge ===== */
.popg.ftr {
    background: var(--c-dark);
    padding: 8px 12px 4px;
}
.popg.ftr .ftr-feat {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 8px;
    padding: 18px 0 8px;
    text-align: center;
}
.popg.ftr .ftr-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 8px;
    border-radius: 50%;
    border: 3px solid var(--c-light);
    background: var(--c);
    color: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-light) 35%, transparent);
}
.popg.ftr .ftr-ico svg {
    width: 56px;
    height: 56px;
}
.popg.ftr .ftr-item b {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.popg.ftr .ftr-item small {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .85);
}
.popg.ftr-badges {
    padding: 4px 12px 18px;
    text-align: center;
    color: #fff;
}
.popg.ftr-badges .ftr-dmca,
.popg.ftr-badges .ftr-lic {
    margin: 10px 0;
}
.popg.ftr-badges .ftr-dmca { text-align: left; }
.popg.ftr-badges .ftr-dmca img { height: 36px; width: auto; }
.popg.ftr-badges .ftr-lic img { height: 28px; width: auto; }
.popg.ftr-badges .ftr-cols {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    margin: 14px 0 10px;
}
.popg.ftr-badges .ftr-label {
    margin-bottom: 8px;
    font-size: 13px;
    opacity: .95;
}
.popg.ftr-badges .ftr-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
}
.popg.ftr-badges .ftr-icons svg {
    height: 26px;
    width: auto;
}
.popg.ftr-badges .ftr-icons--safe svg {
    height: 28px;
}
.popg.ftr-badges .ftr-18 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

/* Global Jackpot (di bawah banner Popular Slots) */
.popg .jpbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 12px 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--c-light, #b04a4a);
    /* Background sama seperti header: warna tema + gambar jaringan (luminosity) */
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--header-color);
    box-shadow: 0 0 8px color-mix(in srgb, var(--c-light, #b04a4a) 40%, transparent);
}
.popg .jpbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("../img/header-bg.jpg") center / cover no-repeat;
    mix-blend-mode: luminosity;
    opacity: .5;
    pointer-events: none;
}
/* Lapisan gelap tipis supaya angka tetap kontras */
.popg .jpbar::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.82) 100%);
    pointer-events: none;
}
.popg .jpbar-ico svg { display: block; width: 28px; height: 28px; }
.popg .jpbar-label { color: #fff; font-size: 14px; line-height: 1.2; }
.popg .jpbar-val {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: .5px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 10px color-mix(in srgb, var(--secondary-color, #f5b800) 60%, transparent);
}
.popg .jpbar-cur {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--secondary-color, #f5b800);
    text-shadow: none;
}

/* Jackpot menempel langsung di bawah banner (satu blok, tanpa celah) */
.popg .popg-banner + .jpbar {
    margin: 0 12px;
    border: 2px solid color-mix(in srgb, var(--secondary-color, #D4AF37) 55%, #000); /* bingkai satu blok bersama banner; sisi atas = garis pemisah */
    box-shadow: none;
    border-radius: 0 0 12px 12px;
}
.popg .popg-banner:has(+ .jpbar) .popg-slider {
    border-radius: 12px 12px 0 0;
    border: 2px solid color-mix(in srgb, var(--secondary-color, #D4AF37) 55%, #000);
    border-bottom: 0;
}

/* Label game: HOT / POPULER / NEW */
.popg .popg-card .popg-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: 10px;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    letter-spacing: .3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.popg .popg-badge--hot { background: #e53935; }
.popg .popg-badge--populer { background: #f59e0b; color: #111; }
.popg .popg-badge--new { background: #2563eb; }

/* Label game di halaman slot/casino */
.slot-game-item .slot-game-img { position: relative; }
.slot-game-item .slot-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: 10px;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    letter-spacing: .3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.slot-badge--hot { background: #e53935; }
.slot-badge--populer { background: #f59e0b; color: #111 !important; }
.slot-badge--new { background: #2563eb; }
.slot-badge--maintenance { background: #475569; color: #fff !important; }
.popg .popg-badge--maintenance { background: #475569; color: #fff; }
/* Provider maintenance: gambar diredupkan + tanda Maintenance di tengah */
.is-mt { position: relative; }
.is-mt img { filter: grayscale(.8) brightness(.55); }
.is-mt .mt-tag {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    max-width: 94%;
    padding: 2px 6px;
    border-radius: 8px;
    background: #475569;
    color: #fff;
    font-style: normal;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .2px;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
    pointer-events: none;
}
.popg.spb .spb-card.is-mt .mt-tag { font-size: 12px; padding: 4px 10px; }
/* Game maintenance: gambar diredupkan, tombol Main Sekarang disembunyikan */
.slot-game-item:has(.slot-badge--maintenance) .slot-game-img img { filter: grayscale(.8) brightness(.55); }
.slot-game-item:has(.slot-badge--maintenance) .slot-game-hover { display: none !important; }
.popg a.popg-card:has(.popg-badge--maintenance) img { filter: grayscale(.8) brightness(.55); }

/* ===== Rapikan banner atas + teks berjalan (HP/tablet) =====
   - hapus garis tepi tema & celah di bawah gambar (img inline)
   - tinggi banner mengikuti rasio gambar (tidak ditarik min-height)
   - label "Info :" dan teks berjalan sejajar, tinggi tetap */
@media screen and (max-width: 1080px) {
    .home .home__slider {
        max-width: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0;
        line-height: 0;
        font-size: 0;
    }
    .home .home__slider .swiper-slide {
        min-height: 0 !important;
        height: auto;
    }
    .home .home__slider .swiper-slide a {
        display: block;
    }
    .home .home__slider .swiper-slide img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1200 / 420;
        object-fit: cover;
    }
    .info-marquee {
        margin: 0;
        height: 34px;
        line-height: 34px;
        border: 0;
    }
    .info-marquee .info-marquee__label {
        padding: 0 8px 0 14px;
        line-height: 34px;
    }
    .info-marquee .info-marquee__text {
        display: block;
        height: 34px;
        line-height: 34px;
        padding: 0;
        margin: 0;
    }
}

/* ===== Popup Login Anggota (warna ikut tema: header / navbar / footer) ===== */
#loginModal.custom-popup .modal-dialog {
    max-width: 420px;
    margin: 60px auto 0;
    padding: 0 10px;
}
#loginModal.custom-popup .modal-dialog .modal-content.lg-card {
    max-width: none;
    padding: 0;
    overflow: hidden;
    background: #fff;
    color: #111;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
}
#loginModal .lg-head {
    position: relative;
    padding: 14px 48px 14px 18px;
    background: var(--header-color);
    color: var(--header-text, #fff);
}
#loginModal .lg-title {
    margin: 0;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--header-text, #fff);
}
#loginModal .lg-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--header-text, #fff);
    font-size: 17px;
    cursor: pointer;
}
#loginModal .lg-body {
    padding: 14px 16px 10px;
    background: #fff;
}
#loginModal .lg-label {
    display: block;
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
}
#loginModal .lg-field {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background: #e6e6e6;
    border: 2px solid transparent;
    border-radius: 8px;
}
#loginModal .lg-field:focus-within {
    border-color: var(--header-color);
    background: #fff;
}
#loginModal .lg-icon {
    flex-shrink: 0;
    width: 36px;
    text-align: center;
    font-size: 15px;
    color: #777;
}
#loginModal .lg-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 8px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: #111;
    box-shadow: none;
}
#loginModal .lg-input::placeholder {
    color: #8a8a8a;
}
#loginModal .lg-eye {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 15px;
    color: #444;
    cursor: pointer;
}
#loginModal .lg-submit {
    display: block;
    width: 100%;
    height: 42px;
    margin-top: 6px;
    border: 0;
    border-radius: 8px;
    background: var(--navbar-color);
    color: var(--navbar-text, #000);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
}
#loginModal .lg-forgot {
    display: block;
    padding: 10px 0 2px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #111;
}
#loginModal .lg-foot {
    padding: 10px 16px 12px;
    background: var(--footer-color);
}
#loginModal .lg-daftar {
    display: block;
    height: 42px;
    line-height: 38px;
    border: 2px solid var(--footer-text, #fff);
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--footer-text, #fff);
    background: transparent;
}

/* ===== Halaman Daftar (warna ikut tema) ===== */
.main-content.rg-page {
    color: var(--page-text, #fff);
    padding: 14px 0 80px !important;
    min-height: 60vh;
}
.rg {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 16px;
}
.rg .rg-title {
    margin: 2px 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--page-text, #fff);
}
.rg .rg-field {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 6px;
    background: #e6e6e6;
    border: 2px solid transparent;
    border-radius: 6px;
}
.rg .rg-field:focus-within {
    background: #fff;
    border-color: var(--header-color);
}
.rg .rg-field.is-ok {
    border-color: #1faa59;
}
.rg .rg-field.is-bad {
    border-color: #d62828;
}
.rg .rg-input {
    flex: 1;
    min-width: 0;
    height: 34px;
    padding: 0 9px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
    color: #111;
    box-shadow: none;
    border-radius: 8px;
}
.rg .rg-input::placeholder {
    color: #6f6f6f;
}
.rg .rg-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
}
.rg .rg-chev {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #444;
    pointer-events: none;
}
.rg .rg-field:has(.rg-select) .rg-status {
    margin-right: 32px;
}
.rg .rg-prefix {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 6px 0 0 6px;
    background: var(--header-color);
    color: var(--header-text, #fff);
    font-size: 13px;
    font-weight: 700;
}
.rg .rg-status {
    flex-shrink: 0;
    min-width: 24px;
    padding-right: 8px;
    text-align: center;
    font-size: 15px;
    line-height: 1;
}
.rg .rg-status .fa-check-circle {
    color: #1faa59;
}
.rg .rg-status .fa-times-circle {
    color: #d62828;
}
.rg .rg-status .fa-spinner {
    color: #777;
}
.rg .rg-eye {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: #444;
    cursor: pointer;
}
.rg .rg-msg {
    min-height: 0;
    margin: 3px 2px 0;
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--page-text, #fff);
    opacity: .75;
}
.rg .rg-msg:empty {
    display: none;
}
.rg .rg-msg.is-ok {
    color: #5be08f;
    opacity: 1;
}
.rg .rg-msg.is-bad {
    color: #ffd24a;
    opacity: 1;
    font-weight: 600;
}
.rg .rg-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
    margin: 6px 2px 0;
    padding: 0;
    list-style: none;
    font-size: 11.5px;
}
.rg .rg-rules li {
    color: var(--page-text, #fff);
    opacity: .7;
}
.rg .rg-rules li::before {
    content: "\25CB";
    display: inline-block;
    width: 18px;
}
.rg .rg-rules li.is-ok {
    color: #5be08f;
    opacity: 1;
    font-weight: 600;
}
.rg .rg-rules li.is-ok::before {
    content: "\2713";
}
.rg .rg-cap {
    display: grid;
    grid-template-columns: 36% minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}
.rg .rg-cap .rg-field {
    min-width: 0;
    box-sizing: border-box;
}
.rg .rg-cap .rg-input {
    width: 100%;
    min-width: 0;
}
.rg .rg-capbox {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    margin-top: 6px;
    border-radius: 8px;
    background: #e6e6e6;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    user-select: none;
}
.rg .rg-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--page-text, #fff);
}
.rg .rg-terms input {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #1faa59;
}
.rg .rg-terms a {
    font-weight: 700;
    text-decoration: underline;
    color: inherit;
}
.rg .rg-submit {
    display: block;
    width: 100%;
    height: 40px;
    margin-top: 14px;
    border: 0;
    border-radius: 8px;
    background: var(--navbar-color);
    color: var(--navbar-text, #000);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
}
.rg .rg-submit:disabled {
    opacity: .6;
}

/* Halaman Daftar: jarak tombol ke footer + teks SEO footer dikecilkan */
.rg-page .rg {
    padding-bottom: 32px;
}
.rg-page .mobile__seo {
    padding: 6px 0 22px;
}
.rg-page .mobile__seo .container {
    padding: 0 16px;
}
.rg-page .mobile__seo h1 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--page-text, #fff);
}
.rg-page .mobile__seo h2 {
    margin: 4px 0 8px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--page-text, #fff);
}
.rg-page .mobile__seo p {
    margin: 0 0 8px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--page-text, #fff);
}
.rg-page .mobile__seo a {
    word-break: break-all;
}


/* ===== Background header: gambar jaringan, warna mengikuti tema (--header-color) =====
   Gambar dibuat grayscale, lalu di-blend 'luminosity' di atas warna tema sehingga
   garis & titik otomatis berwarna sesuai tema yang dipilih (merah, biru, hijau, dll). */
.header {
    position: relative;
}
.header,
.header-mobile {
    overflow: hidden;
    isolation: isolate;
    background-color: var(--header-color);
}
.header::before,
.header-mobile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("../img/header-bg.jpg") center / cover no-repeat;
    mix-blend-mode: luminosity;
    opacity: .75;
    pointer-events: none;
}


/* ===== Footer: grid 4/5 kolom + tombol Banking bulat di tengah + menu mengambang Deposit/Withdraw ===== */
.bank-pop, .bank-pop-backdrop { display: none; }
@media screen and (max-width: 1080px) {
    .footer-nav.footer-nav--4 { grid-template-columns: repeat(4, 1fr); }
    .footer-nav.footer-nav--5 { grid-template-columns: repeat(5, 1fr); }
    .footer-nav button.footer-nav__item { background: none; border: 0; font: inherit; cursor: pointer; }
    .footer-nav .footer-nav__bank { position: relative; overflow: visible; }
    .footer-nav .footer-nav__bank.active { box-shadow: none; }
    .footer-nav .footer-nav__bank-circle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 68px;
        height: 68px;
        margin-top: -40px;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(180deg, var(--accent-2, #d4a017) 0%, var(--accent-3, #a87b0b) 100%);
        border: 3px solid #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .45), 0 0 14px color-mix(in srgb, var(--accent-1, #f6d56a) 60%, transparent);
    }
    .footer-nav .footer-nav__bank-circle svg { width: 32px; height: 32px; }
    .footer-nav .footer-nav__bank { opacity: 1; }
    .footer-nav .footer-nav__bank > span { opacity: .8; }
    .footer-nav .footer-nav__bank.active > span { opacity: 1; }
    .footer-nav .footer-nav__bank span { margin-top: 1px; }

    .bank-pop-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 995;
        background: rgba(0, 0, 0, .45);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s;
    }
    .bank-pop-backdrop.open { opacity: 1; pointer-events: auto; }
    .bank-pop {
        display: flex;
        gap: 10px;
        position: fixed;
        left: 50%;
        bottom: calc(122px + env(safe-area-inset-bottom, 0px));
        z-index: 998;
        transform: translate(-50%, 14px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s, transform .2s;
    }
    .bank-pop.open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
    .bank-pop .bank-pop__btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 76px;
        padding: 9px 4px;
        border-radius: 14px;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        text-decoration: none;
        background: var(--header-color, #8D0105);
        background: color-mix(in srgb, var(--header-color, #8D0105) 55%, transparent);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, .85);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, .25);
    }
    .bank-pop .bank-pop__btn i { font-size: 18px; }
}

/* ===== Tulisan "Bonus" 3D bergoyang (mobile/template/bonus_wordmark.php); warna mengikuti tema ===== */
.bw {
    display: inline-block;
    vertical-align: middle;
    overflow: visible;
    --bw-top: var(--accent-1, #f6d56a);
    --bw-bot: var(--accent-2, #d4a017);
    --bw-edge: color-mix(in srgb, var(--header-color, #8d0105) 40%, #000);
}
.bw .bw-s1 { stop-color: var(--bw-top); }
.bw .bw-s2 { stop-color: var(--bw-bot); }
.bw .bw-x { fill: var(--bw-edge); stroke: var(--bw-edge); stroke-width: 5; stroke-linejoin: round; }
.bw .bw-f { stroke: var(--bw-edge); stroke-width: 5; stroke-linejoin: round; paint-order: stroke; }
.bw .bw-l {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: bwWave 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -.2s);
}
@keyframes bwWave {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-4px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
    .bw .bw-l { animation: none; }
}


/* ===== Label game: tab kecil di tepi atas, warna sesuai label ===== */
.popg .popg-card .popg-badge,
.slot-game-item .slot-badge {
    top: 0;
    left: auto;
    right: 7px;
    padding: 1px 6px 2px;
    border-radius: 0 0 7px 7px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-top: 0;
    font-size: 7.5px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .2px;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
/* kartu Permainan Terakhir: gambar naik 10px dan lebarnya 82%, jadi tab disejajarkan dengan gambar */
.popg .popg-last__row .popg-card .popg-badge { top: -10px; right: calc(9% + 6px); }
.popg .popg-badge--hot, .slot-badge--hot { background: linear-gradient(180deg, #ff5a52, #d32f2f); }
.popg .popg-badge--populer, .slot-badge--populer { background: linear-gradient(180deg, #ffc83d, #f59e0b); }
.popg .popg-badge--new, .slot-badge--new { background: linear-gradient(180deg, #4f8bff, #2563eb); }
.popg .popg-badge--maintenance, .slot-badge--maintenance { background: linear-gradient(180deg, #64748b, #475569); }

/* bingkai kartu (halaman beranda/populer/provider) */
.popg a.popg-card:has(.popg-badge--hot) { border-color: #e53935; box-shadow: 0 0 10px rgba(229, 57, 53, .65); }
.popg a.popg-card:has(.popg-badge--populer) { border-color: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, .65); }
.popg a.popg-card:has(.popg-badge--new) { border-color: #2563eb; box-shadow: 0 0 10px rgba(37, 99, 235, .65); }
.popg a.popg-card:has(.popg-badge--maintenance) { border-color: #64748b; box-shadow: 0 0 8px rgba(100, 116, 139, .6); }

/* bingkai gambar (halaman slot/casino) */
.slot-game-item .slot-game-img:has(.slot-badge)::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    pointer-events: none;
}
.slot-game-item .slot-game-img:has(.slot-badge--hot)::after { border-color: #e53935; box-shadow: 0 0 10px rgba(229, 57, 53, .65); }
.slot-game-item .slot-game-img:has(.slot-badge--populer)::after { border-color: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, .65); }
.slot-game-item .slot-game-img:has(.slot-badge--new)::after { border-color: #2563eb; box-shadow: 0 0 10px rgba(37, 99, 235, .65); }
.slot-game-item .slot-game-img:has(.slot-badge--maintenance)::after { border-color: #64748b; box-shadow: 0 0 8px rgba(100, 116, 139, .6); }

/* Popular & Togel (tanpa baris provider): pita gradasi gelap -> terang di atas search, sama seperti area provider di halaman Slot */
.home .home__cats.cats-solo {
    min-height: 16px;
}
