/* =====================================================================
   REDESIGN THEME LAYER — LUXURY BLACK & GOLD
   Lapisan tema (di-load setelah style.css). Aman & reversible:
   cukup hapus <link> redesign.css di header.php untuk kembali.
   ===================================================================== */

:root {
    --gold-1: #efe484;
    --gold-2: #ffc514;
    --gold-3: #c27e1e;
    --gold-grad: linear-gradient(180deg, #efe484 0%, #ffc514 45%, #c27e1e 100%);
    --accent-rgb: 255, 197, 20;
    --btn-on-accent: #1a1200;
    --panel: #20232f;
    --panel-2: #2a2a30;
    --line: rgba(255, 197, 20, .28);
    --ink: #e7e9ef;
    --muted: #7e869e;
    --hot: #ce0e03;
    --hot-2: #ff0849;
}

/* ---------- Dasar ---------- */
body {
    background-color: #16171c !important;
    background-image:
        radial-gradient(1200px 600px at 50% -10%, rgba(var(--accent-rgb), .10), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(var(--accent-rgb), .10), transparent 55%),
        linear-gradient(180deg, #1b1d24 0%, #131319 100%) !important;
    color: var(--ink);
    font-family: 'Poppins', 'Nunito', sans-serif;
}

::selection { background: var(--gold-2); color: #111; }

/* Scrollbar emas */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0d0d10; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
    border-radius: 10px;
}

/* Utility teks emas */
.text-gold, .gold-text {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =====================================================================
   NAVBAR (DESKTOP)
   ===================================================================== */

/* Top bar tipis */
[style*="--tertiary-color"] {
    background: linear-gradient(90deg, #0e0e11, #151519 50%, #0e0e11) !important;
}

/* Baris logo + menu */
.menu-opt a,
.menu-opt div {
    transition: color .25s ease, transform .25s ease;
}
.menu-opt a span { position: relative; }
.menu-opt a:hover { color: var(--gold-2) !important; }
.menu-opt a span::after {
    content: "";
    position: absolute; left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--gold-grad);
    border-radius: 2px;
    transition: width .25s ease;
}
.menu-opt a:hover span::after { width: 100%; }
.menu-opt:hover img { transform: translateY(-2px); }

/* Tombol MASUK (outline emas) */
.login-btn {
    border: 1px solid var(--gold-2) !important;
    color: var(--gold-1) !important;
    background: transparent !important;
    font-weight: 600; letter-spacing: .5px;
}
.login-btn:hover {
    background: var(--gold-grad) !important;
    color: #1a1204 !important;
    box-shadow: 0 6px 18px rgba(232, 194, 90, .35);
}

/* Tombol DAFTAR / KELUAR (emas solid) */
.register-btn {
    background: var(--gold-grad) !important;
    color: #1a1204 !important;
    font-weight: 700; letter-spacing: .5px;
    border: 0 !important;
    box-shadow: 0 6px 16px rgba(232, 194, 90, .28);
}
.register-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(232, 194, 90, .40);
}

.menu-top { transition: color .25s ease; }
.menu-top:hover { color: var(--gold-2) !important; }

/* =====================================================================
   SLIDER / BANNER
   ===================================================================== */
.carousel, .slider .carousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 0 1px var(--line);
}
.slider {
    width: 100%;
    max-width: 1280px;
    margin: 8px auto 0;
    padding: 0 14px;
    box-sizing: border-box;
}
.carousel-inner .item img { border-radius: 16px; }
.carousel-indicators li {
    border-color: var(--gold-2) !important;
    width: 10px; height: 10px; margin: 0 5px;
}
.carousel-indicators li.active {
    background: var(--gold-2) !important;
    box-shadow: 0 0 10px rgba(232, 194, 90, .8);
}
.left.carousel-control, .right.carousel-control {
    background-image: none !important;
    color: var(--gold-2);
}

/* Running text */
.rd-ticker {
    background: linear-gradient(90deg, #101014, #16161b);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 8px 12px;
    padding: 6px 12px;
}
.announcement-container {
    background: linear-gradient(90deg, #101014, #16161b) !important;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-top: 12px !important;
}
.announcement-list li { color: var(--ink) !important; }

/* =====================================================================
   JUDUL SECTION GAME (bar hitam + garis emas)
   ===================================================================== */
[style*="border-left: 2px solid var(--primary-color)"],
[style*="border-left: 2px solid #FFD700"] {
    background: linear-gradient(90deg, #101014, #050506) !important;
    border-left: 3px solid var(--gold-2) !important;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(232, 194, 90, .10);
}
[style*="border-left"] > div > div,
[style*="border-left"] .hot-games-bounce + div {
    letter-spacing: .5px;
}

/* Tombol "Lebih Banyak Game" */
[onclick^="window.location"][style*="border-radius: 25px"] {
    background: var(--gold-grad) !important;
    color: #1a1204 !important;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(232, 194, 90, .25);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
[onclick^="window.location"][style*="border-radius: 25px"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 10px 24px rgba(232, 194, 90, .4);
}

/* =====================================================================
   KARTU GAME (grid desktop <li> & mobile <main> a)
   ===================================================================== */
.background-top ul li,
.main-menu-outer-container main a {
    transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.background-top ul li img,
.main-menu-outer-container main a img {
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
    border: 1px solid rgba(232, 194, 90, .12);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.background-top ul li:hover,
.main-menu-outer-container main a:hover { transform: translateY(-6px); }
.background-top ul li:hover img,
.main-menu-outer-container main a:hover img {
    border-color: var(--gold-2);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .6), 0 0 0 2px rgba(232, 194, 90, .35);
}

/* Panel utama konten */
.background-top > div {
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px var(--line);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer-bg {
    background:
        radial-gradient(800px 300px at 50% 0%, rgba(232, 194, 90, .06), transparent 60%),
        #0a0a0c !important;
    border-top: 1px solid var(--line);
}
.footer-bg ul li > div {
    background: linear-gradient(180deg, #121216, #0c0c0f);
    border: 1px solid var(--line) !important;
    border-radius: 8px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.footer-bg ul li:hover > div {
    transform: translateY(-3px);
    border-color: var(--gold-2) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .5);
}
.footer-bg h1, .footer-bg h2 {
    background: var(--gold-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-bg p { color: var(--muted); }
.footer-bg a.text-primary { color: var(--gold-2) !important; }

/* =====================================================================
   NAVBAR MOBILE + BOTTOM BAR + DRAWER
   ===================================================================== */
#right-column {
    background: linear-gradient(180deg, #111116, #0a0a0d) !important;
    border-right: 1px solid var(--line);
}
#right-column a { transition: color .2s ease; }
#right-column a:hover { color: var(--gold-2) !important; }

/* Bottom nav labels */
[style*="bottom: 0"][style*="--secondary-color"] a div { color: var(--gold-2) !important; }

/* Tombol MASUK/DAFTAR mobile drawer & bar atas mobile */
.submit-mobile {
    transition: all .25s ease;
}
.submit-mobile:hover {
    background: var(--gold-grad) !important;
    color: #1a1204 !important;
    border-color: transparent !important;
}

/* Chip saldo */
.saldoUser { color: var(--gold-2) !important; }

/* =====================================================================
   POPUP
   ===================================================================== */
.popup-home-content {
    background: linear-gradient(180deg, #14141a, #0d0d10) !important;
    border: 1px solid var(--line);
    color: var(--ink);
}
.popup-home-header { border-bottom: 1px solid var(--line) !important; }
.popup-home-close span { color: var(--gold-2) !important; opacity: 1 !important; }

/* =====================================================================
   NAVBAR DESKTOP (header asli + form gaya Paushoki)
   ===================================================================== */
.rd-nav-fixed {
    position: fixed;
    top: 0;
    z-index: 1040;
    width: 100%;
    background: var(--secondary-color, #16171c);
}
.rd-header {
    background:
        radial-gradient(700px 220px at 100% 0%, rgba(var(--accent-rgb), .16), transparent 60%),
        linear-gradient(90deg, #20232f 0%, #1a1c25 60%, #16181f 100%);
    border-bottom: 2px solid var(--line);
}
.rd-header-inner {
    width: 95%; max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; gap: 14px;
    padding: 10px 0; min-height: 76px;
    position: relative;
}
.rd-logo { display: flex; align-items: center; flex-shrink: 0; }
.rd-logo img { height: 72px; width: auto; }
.rd-logo-text {
    color: var(--gold-2); font-weight: 900; font-size: 1.8rem;
    font-family: 'Teko-SemiBold', sans-serif; letter-spacing: 2px;
}

.rd-login {
    display: flex; align-items: center; gap: 8px;
    margin-left: auto; position: relative;
}
.rd-input {
    height: 32px; width: 118px;
    border: 0; outline: none;
    border-radius: 4px;
    background: #e6e6e6;
    color: #222;
    font-size: 13px;
    padding: 0 10px;
}
.rd-input::placeholder { color: #888; }
.rd-input:focus { background: #fff; box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .35); }

.rd-btn-login, .rd-btn-daftar {
    height: 34px; padding: 0 18px; border: 0; border-radius: 6px;
    font-weight: 800; letter-spacing: .6px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; text-decoration: none; text-transform: uppercase;
    white-space: nowrap; position: relative; overflow: hidden;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.rd-btn-login::after, .rd-btn-daftar::after {
    content: '';
    position: absolute; top: 0; left: -70%;
    width: 45%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-20deg);
    animation: btnShine 2.8s ease-in-out infinite;
}
@keyframes btnShine {
    0%   { left: -70%; }
    45%  { left: 130%; }
    100% { left: 130%; }
}
.rd-btn-login {
    background: var(--gold-grad);
    color: var(--btn-on-accent);
    text-shadow: 0 1px 0 rgba(255,255,255,.35);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.55),
        inset 0 -1px 0 rgba(0,0,0,.25),
        0 3px 0 var(--gold-3),
        0 6px 16px rgba(var(--accent-rgb), .42);
}
.rd-btn-login:hover {
    color: var(--btn-on-accent);
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.6),
        0 4px 0 var(--gold-3),
        0 10px 22px rgba(var(--accent-rgb), .55);
}
.rd-btn-login:active { transform: translateY(1px); filter: brightness(.98); }
.rd-btn-daftar {
    background: linear-gradient(180deg, #ff8b4a 0%, #ff4a1c 48%, #c91a00 100%);
    color: #fff;
    text-shadow: 0 1px 1px rgba(80,10,0,.45);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.38),
        inset 0 -1px 0 rgba(90,10,0,.3),
        0 3px 0 #8a1600,
        0 6px 16px rgba(255, 74, 28, .45);
}
.rd-btn-daftar:hover {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.42),
        0 4px 0 #8a1600,
        0 10px 22px rgba(255, 74, 28, .58);
}
.rd-btn-daftar:active { transform: translateY(1px); filter: brightness(.98); }

body.theme-merah .rd-btn-daftar,
body.theme-merah .rd-btn-mobile.rd-btn-daftar,
body.theme-dongker .rd-btn-daftar,
body.theme-dongker .rd-btn-mobile.rd-btn-daftar,
body.theme-abu .rd-btn-daftar,
body.theme-abu .rd-btn-mobile.rd-btn-daftar,
body.theme-merahputih .rd-btn-daftar,
body.theme-merahputih .rd-btn-mobile.rd-btn-daftar {
    background: #fff;
    color: var(--gold-2);
    text-shadow: none;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.6),
        0 3px 0 var(--gold-3),
        0 6px 16px rgba(var(--accent-rgb), .28);
}
body.theme-merah .rd-btn-daftar:hover,
body.theme-dongker .rd-btn-daftar:hover,
body.theme-abu .rd-btn-daftar:hover,
body.theme-merahputih .rd-btn-daftar:hover {
    color: var(--gold-2);
    filter: brightness(1.04);
}

/* Tombol MASUK / DAFTAR di homepage mobile */
.mob-cta {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 14px;
    box-sizing: border-box;
    width: 100%;
}
.rd-btn-mobile {
    flex: 0 1 132px;
    width: 132px;
    max-width: calc(50% - 7px);
    height: 36px;
    margin: 0 !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .8px;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    text-decoration: none;
    line-height: 1;
    overflow: hidden;
}
.rd-btn-mobile.rd-btn-login,
.rd-btn-mobile.rd-btn-daftar {
    height: 36px;
    padding: 0 10px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.4),
        0 2px 8px rgba(var(--accent-rgb), .28);
}
.rd-btn-bank {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--gold-2);
    color: #fff;
    box-shadow: none;
    width: auto;
    flex: 1 1 0;
    max-width: none;
}
.rd-btn-bank img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.rd-btn-bank span {
    font-size: 11px;
    letter-spacing: .5px;
}

/* Tombol MASUK / DAFTAR di drawer mobile */
.rd-btn-drawer {
    width: 50%;
    height: 38px;
    border-radius: 20px !important;
    font-size: 13px;
}

.rd-forgot { position: absolute; top: calc(100% + 4px); right: 0; white-space: nowrap; }
.rd-forgot a { color: #e23744; font-size: 11px; text-decoration: none; }
.rd-forgot a:hover { text-decoration: underline; }

.rd-login-error {
    position: absolute; top: calc(100% + 18px); left: 0;
    color: #ff6b6b; font-size: 12px;
}

.rd-logout-form { display: inline; margin: 0; }

.rd-tools { display: flex; align-items: center; gap: 12px; margin-left: 6px; }
.rd-bell { color: var(--gold-2); font-size: 17px; cursor: pointer; transition: transform .2s; }
.rd-bell:hover { transform: rotate(-15deg) scale(1.1); }
.rd-lang {
    display: flex; align-items: center; gap: 6px; color: #e7e9ef; font-weight: 600;
    font-size: 14px; cursor: pointer; padding: 4px 8px; border: 1px solid var(--line);
    border-radius: 8px; background: rgba(255,255,255,.05);
}

.rd-user { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.rd-user-info .rd-welcome { font-size: 12px; color: var(--muted); }
.rd-user-info .rd-username { font-size: 16px; color: #fff; font-weight: 700; cursor: pointer; }
.rd-saldo { text-align: right; cursor: pointer; }
.rd-saldo > div:first-child { font-size: 12px; color: var(--muted); }
.rd-saldo > div:last-child { font-weight: 800; color: var(--gold-2); }

/* MENU BAR GELAP */
.rd-menu {
    background: linear-gradient(180deg, #2a2a30 0%, #1c1c21 100%);
    border-bottom: 2px solid var(--line);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.03);
}
.rd-menu-inner {
    width: 95%; max-width: 1280px; margin: 0 auto;
    display: flex; align-items: stretch; justify-content: space-between;
}
/* ── KEYFRAMES ── */
@keyframes rdFloatIcon {
    0%, 100% { transform: translateY(0);    }
    40%       { transform: translateY(-5px); }
    60%       { transform: translateY(-2px); }
}
@keyframes rdNavFadeIn {
    from { opacity: 0; transform: translateY(10px) scale(.9); }
    to   { opacity: 1; transform: translateY(0)    scale(1);  }
}
@keyframes rdGlowPulse {
    0%, 100% { transform: scale(.75); opacity: .7; }
    50%       { transform: scale(1.3);  opacity: 0;  }
}
@keyframes rdShimmer {
    0%   { transform: translateX(-140%) skewX(-20deg); opacity: 0; }
    15%  { opacity: .55; }
    100% { transform: translateX(220%)  skewX(-20deg); opacity: 0; }
}

/* ── ITEM ── */
.rd-menu-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; padding: 10px 4px 8px; color: #c8c2b4; text-decoration: none;
    font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-align: center;
    position: relative; overflow: hidden;
    transition: background .28s ease, color .28s ease;
    animation: rdNavFadeIn .4s cubic-bezier(.22,.68,0,1.2) both;
}
.rd-menu-item:nth-child(1)  { animation-delay: .03s }
.rd-menu-item:nth-child(2)  { animation-delay: .07s }
.rd-menu-item:nth-child(3)  { animation-delay: .11s }
.rd-menu-item:nth-child(4)  { animation-delay: .15s }
.rd-menu-item:nth-child(5)  { animation-delay: .19s }
.rd-menu-item:nth-child(6)  { animation-delay: .23s }
.rd-menu-item:nth-child(7)  { animation-delay: .27s }
.rd-menu-item:nth-child(8)  { animation-delay: .31s }
.rd-menu-item:nth-child(9)  { animation-delay: .35s }
.rd-menu-item:nth-child(10) { animation-delay: .39s }

/* ── ICON WRAPPER ── */
.rd-icon-wrap {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
}

/* Spotlight glow (muncul saat hover) */
.rd-icon-wrap::before {
    content: '';
    position: absolute; inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb),.28) 0%, transparent 68%);
    opacity: 0;
    transform: scale(.5);
    transition: opacity .3s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
}
.rd-menu-item:hover .rd-icon-wrap::before {
    opacity: 1; transform: scale(1);
}

/* Pulsing ring (aktif) */
.rd-icon-wrap::after {
    content: '';
    position: absolute; inset: -5px;
    border-radius: 50%;
    border: 1.5px solid rgba(var(--accent-rgb),.65);
    opacity: 0; transform: scale(.7);
}
.rd-menu-item.active .rd-icon-wrap::after {
    animation: rdGlowPulse 2.4s ease-in-out infinite;
}

/* ── ICON IMAGE ── */
.rd-icon-wrap img {
    width: 28px; height: 28px; object-fit: contain; position: relative; z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
    transition: transform .34s cubic-bezier(.34,1.56,.64,1), filter .28s ease;
    transform-origin: bottom center;
}
.rd-menu-item:hover .rd-icon-wrap img {
    transform: translateY(-6px) scale(1.2) rotate(-3deg);
    filter:
        drop-shadow(0 8px 12px rgba(0,0,0,.4))
        drop-shadow(0 0 12px rgba(var(--accent-rgb),.45));
}
.rd-menu-item.active .rd-icon-wrap img {
    animation: rdFloatIcon 2.8s ease-in-out infinite;
    filter:
        drop-shadow(0 3px 6px rgba(0,0,0,.5))
        drop-shadow(0 0 10px rgba(var(--accent-rgb),.5));
}

/* Shimmer sweep saat hover (kilat melintas) */
.rd-menu-item::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.12) 50%, transparent 100%);
    opacity: 0; pointer-events: none;
}
.rd-menu-item:hover::before {
    animation: rdShimmer .55s ease forwards;
}

/* ── LABEL ── */
.rd-nav-label {
    display: block; font-size: 11px; font-weight: 700;
    letter-spacing: .4px;
    transition: letter-spacing .28s ease, color .28s ease;
}
.rd-menu-item:hover .rd-nav-label { letter-spacing: .8px; }

/* ── HOVER / ACTIVE states ── */
.rd-menu-item:hover { color: #fff; background: rgba(var(--accent-rgb),.09); }
.rd-menu-item.active {
    color: var(--btn-on-accent);
    background: var(--gold-grad);
}
.rd-menu-item.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: var(--gold-3);
}
.rd-menu-item.active .rd-icon-wrap::after { border-color: rgba(30,20,0,.5); }

@media (max-width: 992px) {
    .rd-input { width: 100px; }
    .rd-menu-item span { font-size: 11px; }
    .rd-header-inner { flex-wrap: wrap; }
    .rd-user { flex-wrap: wrap; gap: 10px; }
    .rd-menu-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

.only-mobile { display: none; }
.rd-nav-spacer { height: 172px; }
.mob-shell { display: none; }
.mob-topbar {
    height: 50px;
    position: fixed;
    top: 0;
    z-index: 1040;
    background-color: var(--secondary-color);
    width: 100%;
    box-shadow: rgb(0 0 0 / 50%) 0 6px 6px -6px;
}
.mob-bottom-nav {
    background-color: var(--secondary-color);
    position: fixed;
    z-index: 1040;
    bottom: 0;
    width: 100%;
    padding: 8px 0;
    box-shadow: rgb(0 0 0 / 50%) 0 -6px 6px -6px;
}
.auth-page {
    width: min(520px, 92%);
    margin: 0 auto;
    padding: 24px 0 40px;
}
.auth-page h1,
.auth-title {
    margin: 0 auto 16px;
    text-align: center;
    font-family: Teko-SemiBold, sans-serif;
    font-size: 28px;
    color: transparent !important;
    -webkit-background-clip: text;
    background-image:
        radial-gradient(ellipse farthest-corner at right bottom, #FEDB37 0%, #FDB931 8%, #9f7928 30%, #8A6E2F 40%, transparent 80%),
        radial-gradient(ellipse farthest-corner at left top, #e99c05 0%, #f4ae00 8%, #f8bf33 25%, #f8ce19 62.5%, #ffdc02 100%);
}
.auth-page .form-control {
    height: 42px;
    background: #12131a;
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
}
.auth-page label,
.auth-page .auth-label {
    opacity: .66;
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
}
.mb-page {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 0 40px;
}
.mb-page h4 { margin-top: 0; }
.home-slide-img { max-width: 50%; margin: 0 auto; display: block; }
.home-announce { width: 95%; max-width: 1280px; margin: 0 auto; display: flex; padding: 8px 0; background-color: var(--secondary-color); }
.home-announce-icon { width: 24px; margin: 0 8px; }
.footer-bg { position: relative; background-size: cover; width: 100%; background-repeat: no-repeat; background-position: center; padding: 40px 0 20px; color: #F1F2F3; }
.ft-inner { width: 95%; margin: 0 auto; max-width: 1280px; position: relative; z-index: 2; }
.ft-label { font-size: 16px; }
.ft-partners { list-style: none; padding: 15px 0 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; text-align: center; }
.ft-partners > li { display: inline-block; width: 10%; padding: 0 8px 0 0; margin-bottom: 10px; }
.ft-chip { padding: 8px; border: 1px solid var(--primary-color); border-radius: 4px; }
.ft-chip img { width: 80%; }
.ft-copy { width: 95%; margin: 0 auto; max-width: 1280px; position: relative; z-index: 2; }
.ft-legal { font-weight: bold; color: #fff; text-align: center; padding: 35px 20px 15px; position: relative; z-index: 2; }
.ft-legal .cpright-year { font-size: 18px; margin-top: 0; }

/* ── MOBILE: tampilkan chrome HP, sembunyikan desktop ── */
@media (max-width: 768px) {
    .only-mobile { display: block; }
    .only-mobile.mob-cta { display: flex !important; padding: 12px 14px 14px; }
    .rd-ticker {
        margin: 4px 14px 2px;
        padding: 4px 10px;
        border-radius: 8px;
        background: linear-gradient(90deg, #101014, #16161b);
        border: 1px solid var(--line);
    }
    .rd-ticker marquee { font-size: 12px; }
    .main-menu-outer-container {
        padding: 0 6px;
        align-items: center;
    }
    .main-menu-outer-container > main {
        scrollbar-width: none;
        gap: 2px;
    }
    .main-menu-outer-container > main::-webkit-scrollbar {
        display: none;
        height: 0;
    }
    .main-menu-outer-container > main > a:first-child,
    .main-menu-outer-container > main > a:last-child {
        margin-left: 0;
        margin-right: 0;
    }
    .main-menu-outer-container > main > a {
        min-width: 72px !important;
        padding: 6px 4px 8px !important;
    }
    .main-menu-outer-container > main > a > img {
        margin: 4px auto 6px !important;
        width: 28px !important;
        box-shadow: none !important;
        border: 0 !important;
        border-radius: 0 !important;
    }
    .only-desktop { display: none !important; }
    .mob-shell { display: block; }
    .rd-nav-fixed,
    .rd-header,
    .rd-menu { display: none !important; }
    .rd-nav-spacer { height: 50px; }
    body { padding-bottom: 78px; }
    #right-column { width: 86% !important; }
    .mj-wrap {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 4px auto 16px;
    }
    .mj-badge {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: 2;
        height: auto !important;
        width: min(100%, 380px) !important;
        max-width: 100% !important;
        margin: 0 auto 8px !important;
    }
    .mj-track {
        position: relative !important;
        inset: auto !important;
        left: 0 !important;
        width: 100% !important;
        height: 64px !important;
        border-radius: 14px;
        z-index: 1;
    }
    .mj-inner {
        top: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        left: 10px !important;
    }
    .mj-lights { left: 12px; right: 12px; height: 10px; }
    .mj-lights.top { top: 8px; }
    .mj-lights.bot { bottom: 8px; }
    .mj-amount { gap: 8px; border-radius: 10px; }
    .mj-idr, #mega_jackpot_value { font-size: clamp(18px, 6.2vw, 26px) !important; letter-spacing: .5px; }
    .ph-grid.games { grid-template-columns: repeat(3, 1fr); }
    .ph-grid.providers { grid-template-columns: repeat(2, 1fr); }
    .ph-grid.promos { grid-template-columns: 1fr; }
    .ph-head { flex-wrap: wrap; gap: 8px; }
    .ph-wrap { width: 94%; padding-bottom: 20px; }
    .slider { padding: 0 12px; }
    .slider img,
    .carousel-inner > .item > img {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    .ft-partners > li { width: 33.33%; }
    .home-slide-img { max-width: 100% !important; width: 100% !important; }
    .home-announce { width: 100%; }
    .home-announce-icon { width: 20px; }
    .ft-inner, .ft-copy { width: 100%; padding: 0 15px; }
    .ft-label { font-size: 14px; }
    .ft-chip { padding: 4px; }
    .ft-chip img { width: 70%; }
    .ft-legal { padding: 24px 16px 8px; }
    .ft-legal .cpright-year { font-size: 15px; }
    .mb-page { width: 94%; padding: 12px 0 24px; }
    .mb-page .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .mb-page table { min-width: 560px; }
    .auth-page { width: 90%; padding: 12px 0 24px; }
    .dp-page { padding-bottom: 24px; }
    .dp-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
    .welcome-popup { padding: 12px 8px; }
    .welcome-popup-dialog { width: 96vw; padding: 44px 14px 18px; }
    .gp-page { padding: 10px 0 24px !important; }
    .gp-wrap { width: 94% !important; }
    .gp-toolbar { gap: 10px; }
    .gp-prov-title { font-size: 15px !important; }
    .gp-card:hover { transform: none; }
    .gp-hover { display: none; }
    .nav.nav-tabs { display: flex; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 420px) {
    .ph-grid.games { grid-template-columns: repeat(2, 1fr); }
    .gp-game-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .mj-track { height: 60px; }
    .mj-idr, #mega_jackpot_value { font-size: clamp(16px, 5.6vw, 22px); }
}

/* ── TABLET: kurangi ukuran form login ── */
@media (max-width: 900px) and (min-width: 769px) {
    .rd-login { gap: 5px; }
    .rd-input { width: 96px; font-size: 12px; }
    .rd-btn-login, .rd-btn-daftar { padding: 0 12px; font-size: 12px; }
    .rd-logo img { height: 56px; }
    .mj-wrap { height: 170px; }
    .mj-badge { height: 168px; max-width: 46% !important; }
    .mj-track { left: 34%; }
    .mj-inner { top: 22px; right: 16px; bottom: 22px; left: 12px; }
    .mj-lights { left: 14px; }
    .mj-idr, #mega_jackpot_value { font-size: 36px; }
}

/* =====================================================================
   HOMEPAGE SECTIONS — GAYA PAUSHOKI (Game Populer, Rekomendasi, Promo)
   ===================================================================== */
.ph-wrap { width: 95%; max-width: 1280px; margin: 0 auto; padding-bottom: 30px; overflow: visible; }

/* Mega Jackpot */
.mj-wrap {
    position: relative;
    z-index: 1;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    margin: 8px auto 20px;
    overflow: visible;
}
@media (min-width: 769px) {
    .mj-wrap {
        display: block;
        height: 198px;
        margin: 44px auto 32px;
    }
}
.mj-track {
    position: relative;
    width: 100%;
    height: 68px;
    z-index: 10;
    border-radius: 14px;
    background: #3a3a42;
    border: 4px solid var(--mj-border, #d4b45c);
    box-shadow: 0 0 0 1px var(--mj-edge, #5c4a18), 0 0 16px var(--mj-glow, rgba(212, 180, 92, .28));
    overflow: hidden;
    animation: mj-border-glow 2.6s ease-in-out infinite;
}
@media (min-width: 769px) {
    .mj-track {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 185px;
        width: auto;
        height: auto;
        border-radius: 20px;
    }
}
@keyframes mj-border-glow {
    0%, 100% { box-shadow: 0 0 0 1px var(--mj-edge, #5c4a18), 0 0 12px var(--mj-glow, rgba(212, 180, 92, .22)); border-color: var(--mj-border, #d4b45c); }
    50% { box-shadow: 0 0 0 1px var(--mj-edge-hi, #f0d078), 0 0 26px var(--mj-glow-hi, rgba(255, 230, 140, .5)); border-color: var(--mj-border-hi, #f0d78a); }
}
.mj-shine {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}
.mj-shine::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -50%;
    width: 38%;
    height: 160%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 245, 200, 0) 38%,
        rgba(255, 255, 230, .38) 50%,
        rgba(255, 245, 200, 0) 62%,
        transparent 100%
    );
    transform: skewX(-22deg);
    animation: mj-gleam 3.4s ease-in-out infinite;
}
@keyframes mj-gleam {
    0% { left: -55%; }
    100% { left: 125%; }
}
.mj-lights {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    left: 24px;
    right: 22px;
    height: 16px;
    background-image: radial-gradient(circle, var(--mj-light, #fff8d6) 3.2px, var(--mj-light-2, #e8c547) 4.2px, transparent 4.6px);
    background-size: 22px 16px;
    background-repeat: repeat-x;
    background-position: 0 center;
    animation: mj-chase 1.1s linear infinite;
    filter: drop-shadow(0 0 4px var(--mj-light-glow, rgba(255, 230, 140, .65)));
}
.mj-lights.top { top: 14px; }
.mj-lights.bot {
    bottom: 14px;
    animation-name: mj-chase-rev;
    animation-duration: 1.25s;
}
@keyframes mj-chase {
    to { background-position: 22px center; }
}
@keyframes mj-chase-rev {
    to { background-position: -22px center; }
}
.mj-inner {
    position: absolute;
    z-index: 5;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 769px) {
    .mj-inner {
        top: 36px;
        right: 22px;
        bottom: 36px;
        left: 185px;
    }
}
.mj-amount {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 18px;
    background: #0c0c0f;
    border: 2.5px solid var(--mj-border, #d4b45c);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, .55);
}
.mj-amount::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 35%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 245, 200, .18), transparent);
    transform: skewX(-20deg);
    animation: mj-gleam 4.2s ease-in-out infinite;
    animation-delay: 1.1s;
    pointer-events: none;
}
.mj-idr,
#mega_jackpot_value {
    font-family: 'Teko-SemiBold', 'Teko', sans-serif;
    font-size: clamp(16px, 6.2vw, 26px);
    line-height: 1;
    letter-spacing: 1.5px;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--mj-text-a, #b8892a) 0%, var(--mj-text-b, #fff3b0) 42%, var(--mj-text-c, #e8c547) 58%, var(--mj-text-a, #b8892a) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: mj-gold-flow 2.6s linear infinite;
}
@media (min-width: 769px) {
    .mj-idr,
    #mega_jackpot_value {
        font-size: 56px;
        letter-spacing: 1.5px;
    }
}
@keyframes mj-gold-flow {
    to { background-position: 220% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .mj-track, .mj-shine::before, .mj-lights, .mj-amount::after, .mj-idr, #mega_jackpot_value {
        animation: none !important;
    }
    .mj-idr, #mega_jackpot_value {
        -webkit-text-fill-color: var(--mj-text-solid, #e8c547);
        color: var(--mj-text-solid, #e8c547);
        background: none;
    }
}
.mj-badge {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    z-index: 20;
    display: block;
    width: min(96%, 380px);
    height: auto;
    max-width: 100%;
    margin: 0 auto 6px;
    background: none !important;
    pointer-events: none;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5));
}
body.theme-merah {
    --mj-border: #d0242c;
    --mj-border-hi: #ff6b73;
    --mj-glow: rgba(227, 28, 35, .38);
    --mj-glow-hi: rgba(255, 80, 90, .58);
    --mj-edge: #6b1014;
    --mj-edge-hi: #ff8a90;
    --mj-light: #ffe0e0;
    --mj-light-2: #e31c23;
    --mj-light-glow: rgba(255, 70, 80, .75);
    --mj-text-a: #8b1014;
    --mj-text-b: #ffd0d0;
    --mj-text-c: #e31c23;
    --mj-text-solid: #ff6b73;
}
body.theme-merah .mj-badge {
    filter: hue-rotate(-48deg) saturate(1.65) brightness(0.96) drop-shadow(0 8px 14px rgba(80, 0, 0, .55));
}
body.theme-merah .mj-shine::before,
body.theme-merah .mj-amount::after {
    background: linear-gradient(105deg, transparent 0%, rgba(255, 200, 200, 0) 38%, rgba(255, 220, 220, .4) 50%, rgba(255, 200, 200, 0) 62%, transparent 100%);
}
body.theme-dongker {
    --mj-border: #2d6fd1;
    --mj-border-hi: #7eb6ff;
    --mj-glow: rgba(30, 91, 184, .4);
    --mj-glow-hi: rgba(126, 182, 255, .55);
    --mj-edge: #0a2a5c;
    --mj-edge-hi: #7eb6ff;
    --mj-light: #d6e8ff;
    --mj-light-2: #1e5bb8;
    --mj-light-glow: rgba(80, 150, 255, .75);
    --mj-text-a: #0a2a5c;
    --mj-text-b: #d6e8ff;
    --mj-text-c: #4d8fe8;
    --mj-text-solid: #7eb6ff;
    background-color: #070d18 !important;
    background-image:
        radial-gradient(1200px 600px at 50% -10%, rgba(30, 91, 184, .16), transparent 60%),
        linear-gradient(180deg, #0c1528 0%, #070d18 100%) !important;
}
body.theme-dongker .mj-badge {
    filter: hue-rotate(185deg) saturate(1.3) brightness(0.9) drop-shadow(0 8px 14px rgba(0, 20, 60, .55));
}
body.theme-abu {
    --mj-border: #7a93a8;
    --mj-border-hi: #c5d4de;
    --mj-glow: rgba(106, 132, 153, .35);
    --mj-glow-hi: rgba(197, 212, 222, .5);
    --mj-edge: #3d4f5c;
    --mj-edge-hi: #c5d4de;
    --mj-light: #e8eef2;
    --mj-light-2: #6a8499;
    --mj-light-glow: rgba(180, 200, 210, .7);
    --mj-text-a: #3d4f5c;
    --mj-text-b: #e8eef2;
    --mj-text-c: #6a8499;
    --mj-text-solid: #c5d4de;
    background-color: #2c3138 !important;
    background-image:
        radial-gradient(1200px 600px at 50% -10%, rgba(106, 132, 153, .14), transparent 60%),
        linear-gradient(180deg, #343a42 0%, #252a30 100%) !important;
}
body.theme-abu .mj-badge {
    filter: hue-rotate(165deg) saturate(0.45) brightness(1.08) drop-shadow(0 8px 14px rgba(20, 24, 28, .55));
}
body.theme-merahputih {
    --mj-border: #c8102e;
    --mj-border-hi: #ff6b7a;
    --mj-glow: rgba(200, 16, 46, .35);
    --mj-glow-hi: rgba(255, 107, 122, .55);
    --mj-edge: #8e0c20;
    --mj-edge-hi: #ff8a90;
    --mj-light: #ffe0e4;
    --mj-light-2: #c8102e;
    --mj-light-glow: rgba(200, 16, 46, .7);
    --mj-text-a: #8e0c20;
    --mj-text-b: #ffe0e4;
    --mj-text-c: #c8102e;
    --mj-text-solid: #c8102e;
    --ink: #1b1b1b;
    --muted: #5a5a5a;
}
body.theme-merahputih .mj-badge {
    filter: hue-rotate(-48deg) saturate(1.55) brightness(0.97) drop-shadow(0 8px 14px rgba(80, 0, 0, .4));
}
body.theme-merahputih {
    background-color: #f5f2ec !important;
    background-image:
        radial-gradient(1200px 600px at 50% -10%, rgba(200, 16, 46, .08), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f0ebe3 100%) !important;
    color: #1b1b1b;
}
body.theme-merahputih .rd-nav-fixed,
body.theme-merahputih .mob-topbar,
body.theme-merahputih .mob-bottom-nav {
    background: #fff !important;
    background-color: #fff !important;
}
body.theme-merahputih .rd-header {
    background: linear-gradient(180deg, #d01532 0%, #9b0d22 100%);
    border-bottom: 3px solid #fff;
}
body.theme-merahputih .rd-menu {
    background: #fff;
    border-bottom: 2px solid #c8102e;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
body.theme-merahputih .rd-menu-item { color: #3a3a3a; }
body.theme-merahputih .rd-menu-item:hover { color: #c8102e; background: rgba(200, 16, 46, .06); }
body.theme-merahputih .rd-user-info .rd-welcome,
body.theme-merahputih .rd-saldo > div:first-child { color: rgba(255,255,255,.8); }
body.theme-merahputih .rd-username,
body.theme-merahputih .rd-saldo > div:last-child,
body.theme-merahputih .rd-bell,
body.theme-merahputih .rd-lang { color: #fff; }
body.theme-merahputih .rd-lang { border-color: rgba(255,255,255,.45); }
body.theme-merahputih .ph-title { color: #1b1b1b; }
body.theme-merahputih .ph-all { color: #c8102e; }
body.theme-merahputih marquee { color: #1b1b1b !important; }
@media (min-width: 769px) {
    .mj-badge {
        position: absolute;
        left: -4px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        height: 252px;
        max-width: none;
        margin: 0;
    }
}
@media (min-width: 769px) {
    .mj-badge {
        position: absolute;
        left: -4px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        height: 252px;
        max-width: none;
        margin: 0;
    }
}
.ph-section { margin: 26px auto; }
.ph-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ph-title { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: .3px; }
.ph-title small { display: block; height: 3px; width: 46px; background: var(--gold-grad); border-radius: 3px; margin-top: 6px; }
.ph-all { color: var(--gold-2); font-size: 13px; text-decoration: none; font-weight: 600; }
.ph-all:hover { text-decoration: underline; color: var(--gold-2); }

.ph-grid { display: grid; gap: 14px; }
.ph-grid.games { grid-template-columns: repeat(7, 1fr); }
.ph-grid.providers { grid-template-columns: repeat(6, 1fr); }
.ph-grid.promos { grid-template-columns: repeat(3, 1fr); }

/* Kartu game */
.ph-card {
    position: relative; border-radius: 12px; overflow: hidden; cursor: pointer;
    background: linear-gradient(180deg, #20232f, #16171c);
    border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ph-card:hover { transform: translateY(-6px); border-color: var(--gold-2); box-shadow: 0 16px 32px rgba(0, 0, 0, .6); }
.ph-card img.thumb { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.ph-badge-hot {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    background: linear-gradient(180deg, #ff0849, #ce0e03); color: #fff;
    font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 6px;
    box-shadow: 0 3px 8px rgba(206, 14, 3, .5); letter-spacing: .5px;
}
.ph-card-name { padding: 8px 6px; text-align: center; font-size: 12px; color: #dfe2ea; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-hover {
    position: absolute; left: 0; right: 0; top: 0; bottom: 34px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: rgba(10, 10, 14, .74); opacity: 0; transition: opacity .25s ease;
}
.ph-card:hover .ph-hover { opacity: 1; }
.ph-btn { padding: 6px 18px; border-radius: 20px; font-size: 12px; font-weight: 800; text-decoration: none; }
.ph-btn.main { background: var(--gold-grad); color: #2a1c00; }
.ph-btn.demo { background: transparent; border: 1px solid var(--gold-2); color: var(--gold-2); }

/* Kartu provider */
.ph-prov {
    position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 3 / 4;
    background: radial-gradient(circle at 50% 28%, #2a2e3d, #14151b);
    border: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ph-prov:hover { transform: translateY(-6px); border-color: var(--gold-2); box-shadow: 0 16px 32px rgba(0, 0, 0, .6); }
.ph-prov img { width: 72%; max-height: 55%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.ph-prov .name { font-size: 12px; color: #dfe2ea; font-weight: 700; text-align: center; padding: 0 6px; }

/* Kartu promo */
.ph-promo {
    border-radius: 14px; overflow: hidden; cursor: pointer;
    background: #20232f; border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ph-promo:hover { transform: translateY(-4px); border-color: var(--gold-2); box-shadow: 0 16px 32px rgba(0, 0, 0, .6); }
.ph-promo img { width: 100%; display: block; aspect-ratio: 16 / 7; object-fit: cover; }
.ph-promo .cap { padding: 10px 12px; }
.ph-promo .cap .t { font-size: 13px; color: #fff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-promo .cap .d { font-size: 11px; color: var(--muted); margin-top: 4px; }

@media (max-width: 992px) {
    .ph-grid.games { grid-template-columns: repeat(4, 1fr); }
    .ph-grid.providers { grid-template-columns: repeat(3, 1fr); }
    .ph-grid.promos { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   WELCOME POPUP (dibangun via JavaScript)
   ===================================================================== */
body.welcome-popup-open { overflow: hidden; }

.welcome-popup {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    background: rgba(0, 0, 0, .72);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.welcome-popup.is-open {
    opacity: 1;
    visibility: visible;
}
.welcome-popup-dialog {
    position: relative;
    width: min(820px, 96vw);
    max-height: 94vh;
    overflow: auto;
    background: #1a1c20;
    border-radius: 16px;
    padding: 52px 36px 32px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .6);
    color: #fff;
    text-align: center;
}
.welcome-popup-dialog::-webkit-scrollbar { width: 8px; }
.welcome-popup-dialog::-webkit-scrollbar-track { background: transparent; }
.welcome-popup-dialog::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .22);
    border-radius: 8px;
}
.welcome-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    opacity: .92;
}
.welcome-popup-close:hover { opacity: 1; }
.welcome-popup-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.35;
}
.welcome-popup-image-link { display: block; }
.welcome-popup-image {
    width: 100%;
    display: block;
    border-radius: 6px;
    background: #111;
}
.welcome-popup-help {
    margin-top: 22px;
}
.welcome-popup-help p,
.welcome-popup-depo {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
    text-transform: uppercase;
    color: #fff;
}
.welcome-popup-admin {
    display: block;
    margin-top: 8px;
    color: #ffd54a;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
}
a.welcome-popup-admin:hover { color: #ffe27a; }
.welcome-popup-depo { margin-top: 16px; }
.welcome-popup-contacts {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #ffd54a;
    text-transform: uppercase;
}
.welcome-popup-contacts a {
    color: #ffd54a;
    font-weight: 800;
    text-decoration: none;
}
.welcome-popup-contacts a:hover { color: #ffe27a; }
.welcome-popup-ok {
    display: inline-block;
    margin-top: 22px;
    min-width: 110px;
    padding: 10px 36px;
    border: 0;
    border-radius: 10px;
    background: var(--gold-grad);
    color: #1a1204;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(255, 197, 20, .35);
}
.welcome-popup-ok:hover {
    filter: brightness(1.08);
}

@media (max-width: 768px) {
    .welcome-popup { padding: 12px 10px; }
    .welcome-popup-dialog { width: min(760px, 96vw); padding: 42px 16px 22px; border-radius: 12px; }
    .welcome-popup-title { font-size: 15px; margin-bottom: 14px; }
    .welcome-popup-help p,
    .welcome-popup-depo { font-size: 12px; }
    .welcome-popup-admin,
    .welcome-popup-contacts { font-size: 13px; }
    .welcome-popup-ok { min-width: 100px; padding: 9px 30px; font-size: 15px; }
}

/* =====================================================================
   DEPOSIT / BANKING
   ===================================================================== */
.dp-page {
    max-width: 720px;
    margin: 8px auto 40px;
    padding: 0 16px 24px;
}
.dp-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 16px;
}
.dp-kicker {
    margin: 0;
    letter-spacing: .16em;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-2);
}
.dp-head h1 {
    margin: 4px 0 6px;
    font-size: 28px;
    color: #fff;
}
.dp-head p {
    margin: 0;
    max-width: 420px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}
.dp-saldo {
    min-width: 160px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(32, 35, 47, .9);
    text-align: right;
}
.dp-saldo span { display: block; color: var(--muted); font-size: 11px; }
.dp-saldo strong { color: var(--gold-2); font-size: 18px; }
.dp-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.dp-tabs a {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}
.dp-tabs a.is-on {
    color: #1a1204;
    background: var(--gold-grad);
    border-color: transparent;
}
.dp-pending {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 197, 20, .12);
    border: 1px solid rgba(255, 197, 20, .35);
}
.dp-pending p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.dp-pending a { color: var(--gold-2); font-weight: 700; white-space: nowrap; }
.dp-card {
    padding: 18px 18px 16px;
    border-radius: 16px;
    background: rgba(32, 35, 47, .92);
    border: 1px solid var(--line);
}
.dp-card.is-locked { opacity: .72; pointer-events: none; }
.dp-step { display: flex; gap: 14px; margin-bottom: 22px; }
.dp-step-num {
    width: 28px; height: 28px; flex: 0 0 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold-grad);
    color: #1a1204;
    font-weight: 800;
    font-size: 13px;
}
.dp-step-body { flex: 1; min-width: 0; }
.dp-step-body h2 {
    margin: 2px 0 6px;
    font-size: 16px;
    color: #fff;
}
.dp-step-body h2 small { color: var(--muted); font-weight: 500; font-size: 12px; }
.dp-hint, .dp-foot { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.dp-empty {
    padding: 16px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    color: var(--muted);
}
.dp-banks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.dp-bank {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.1);
    background: #181920;
    color: #fff;
    text-align: left;
    cursor: pointer;
}
.dp-bank.is-on {
    border-color: var(--gold-2);
    box-shadow: 0 0 0 1px var(--gold-2);
    background: #201c12;
}
.dp-bank-logo {
    width: 42px; height: 42px; flex: 0 0 42px;
    border-radius: 8px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.dp-bank-logo img { max-width: 36px; max-height: 28px; }
.dp-bank-logo span { color: #333; font-size: 11px; font-weight: 800; }
.dp-bank-meta { min-width: 0; }
.dp-bank-meta strong, .dp-bank-meta small { display: block; }
.dp-bank-meta small {
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dp-copybox {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #12131a;
    border: 1px dashed var(--line);
}
.dp-copybox span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.dp-copybox strong { display: block; margin-top: 2px; font-size: 15px; }
.dp-copybox em { color: var(--muted); font-style: normal; font-size: 13px; }
.dp-copy-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}
.dp-copy-row code {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    background: #0d0e14;
    color: var(--gold-1);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .04em;
}
.dp-bank.is-qris {
    grid-column: 1 / -1;
    border-color: var(--gold-2);
    background: linear-gradient(180deg, rgba(var(--accent-rgb), .16), rgba(0,0,0,.2));
}
.dp-bank.is-qris .dp-bank-logo {
    background: var(--gold-grad);
    color: var(--btn-on-accent);
}
.dp-copy-btn {
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    background: var(--gold-grad);
    color: #1a1204;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.dp-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: #12131a;
}
.dp-amount span { color: var(--muted); font-weight: 700; }
.dp-amount input {
    flex: 1;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    padding: 10px 0;
    outline: none;
    width: 100%;
}
.dp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.dp-chips button {
    border: 1px solid rgba(255,255,255,.14);
    background: #181920;
    color: #e7e9ef;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    cursor: pointer;
}
.dp-chips button.is-on {
    background: var(--gold-grad);
    color: #1a1204;
    border-color: transparent;
}
.dp-upload {
    display: block;
    position: relative;
    min-height: 110px;
    border: 1px dashed rgba(255,197,20,.35);
    border-radius: 12px;
    background: #12131a;
    cursor: pointer;
    overflow: hidden;
}
.dp-upload input { display: none; }
.dp-upload-empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 110px;
    padding: 16px;
    color: var(--muted);
    text-align: center;
}
.dp-upload-empty strong { color: #fff; margin-bottom: 4px; }
.dp-upload img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    background: #0d0e14;
}
.dp-remove {
    margin-top: 8px;
    border: 0;
    background: none;
    color: #ff8a80;
    cursor: pointer;
    font-size: 13px;
}
.dp-error { min-height: 18px; color: #ff8a80; font-size: 13px; margin: 0 0 10px; }
.dp-submit {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 13px 16px;
    background: var(--gold-grad);
    color: #1a1204;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}
.dp-submit:disabled { opacity: .45; cursor: not-allowed; }
.dp-foot { margin: 10px 0 0; text-align: center; }
.qris-wait {
    position: fixed;
    inset: 0;
    z-index: 100060;
    background: rgba(6, 8, 14, .82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.qris-wait[hidden] { display: none !important; }
.qris-wait-card {
    width: min(360px, 94vw);
    background: #12131a;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 18px 18px;
    text-align: center;
    color: #fff;
}
.qris-wait-kicker { margin: 0; color: var(--gold-2); font-size: 11px; letter-spacing: .12em; font-weight: 800; }
.qris-wait-card h2 { margin: 6px 0 4px; font-size: 20px; }
.qris-wait-card img { width: min(240px, 70vw); height: auto; margin: 12px auto; display: block; background: #fff; border-radius: 8px; padding: 8px; }
.qris-wait-status { color: var(--gold-1); font-weight: 700; }
.qris-wait-card a { color: var(--gold-2); }
@media (max-width: 720px) {
    .dp-head, .dp-pending, .dp-copy-row { flex-direction: column; align-items: stretch; }
    .dp-saldo { text-align: left; }
    .dp-banks { grid-template-columns: 1fr; }
    .dp-head h1 { font-size: 24px; }
    .dp-chips { flex-wrap: wrap; }
    .dp-form, .dp-card { padding: 14px; }
}

/* Floating live chat widget (kanan bawah) */
.lc-float {
    position: fixed;
    right: 14px;
    bottom: 18px;
    z-index: 1035;
    width: min(280px, 70vw);
    pointer-events: none;
}
.lc-float > * { pointer-events: auto; }
.lc-float-close {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 2;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.lc-float-hit { display: block; text-decoration: none; }
.lc-float-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
}
.lc-float.has-img .lc-float-hit { line-height: 0; }
.lc-float-card {
    background: linear-gradient(180deg, #1c1408 0%, #0c0c10 100%);
    border: 2px solid var(--gold-2);
    border-radius: 14px;
    padding: 12px 12px 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,.5);
    text-align: center;
}
.lc-float-hours {
    margin: 0 0 8px;
    color: #fff;
    font-size: 11px;
    letter-spacing: .3px;
}
.lc-float-badge {
    font-family: Teko-SemiBold, sans-serif;
    font-size: 30px;
    line-height: .95;
    font-weight: 800;
    color: var(--btn-on-accent);
    background: var(--gold-grad);
    border-radius: 8px;
    padding: 8px 10px 6px;
    animation: lcPulse 1.8s ease-in-out infinite;
}
.lc-float-badge span {
    display: block;
    font-size: 26px;
}
.lc-float-sub {
    margin: 8px 0 0;
    color: #f4e6b5;
    font-size: 9px;
    letter-spacing: .2px;
}
.lc-float-mini {
    display: none;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: var(--gold-grad);
    color: var(--btn-on-accent);
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), .45);
    align-items: center;
    justify-content: center;
}
.lc-float.is-mini {
    width: auto;
}
.lc-float.is-mini .lc-float-hit,
.lc-float.is-mini .lc-float-close { display: none; }
.lc-float.is-mini .lc-float-mini { display: flex; }
.lc-float.is-behind {
    visibility: hidden;
    pointer-events: none;
}
.lc-float.is-loading .lc-float-img { opacity: .7; }
@keyframes lcPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
@media (max-width: 768px) {
    .lc-float {
        right: 8px;
        bottom: 78px;
        width: min(210px, 56vw);
    }
    .lc-float-img { max-height: 170px; }
    .lc-float-badge { font-size: 22px; }
    .lc-float-badge span { font-size: 18px; }
    .lc-float-mini { width: 48px; height: 48px; font-size: 18px; }
}
