:root {
    /* --- PALET GOLD LUXURY --- */
    --primary: #d4af37;        /* Gold Metallic */
    --primary-light: #f9e297;  /* Soft Gold untuk Hover */
    --primary-dark: #aa841e;   /* Bronze Gold */
    --bg-body: #0a0a0a;        /* Pitch Black */
    --bg-card: #161a1d;        /* Dark Grey/Charcoal */
    --bg-header: #111111;      /* Solid Black */
    --bg-announce: #1c1c1c;    /* Deep Grey */
    --text: #ffffff;
}

* { margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}
body { 
    background: var(--bg-body); 
    color: var(--text); 
    font-family: sans-serif; 
    line-height: 1.5; 
    overflow-x: hidden; 
}
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 10px; 
}
/* START Sticky Wrapper */
.sticky-top-wrapper { 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    width: 100%; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
}
.main-header { 
    background: #000000;
    padding: 10px 0;
    border-bottom: 2px solid var(--primary);
}
.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.brand-logo img { 
    height: 85px;
    width: 100px; 
}
.auth-btns { 
    display: flex; 
    gap: 8px; 
}
.btn-login { 
    color: #fff; 
    text-decoration: none; 
    font-weight: 800; 
    font-size: 13px; 
    padding: 8px; 
}
.btn-register { 
    background: var(--primary); 
    color: #000; 
    padding: 9px 14px; 
    border-radius: 16px; 
    font-weight: 800; 
    text-decoration: none; 
    font-size: 12px; 
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); 
    text-transform: uppercase; 
}
.announcement-bar { 
    background: var(--bg-announce); 
    padding: 8px 0; 
}
.announce-flex { 
    display: flex; 
    align-items: center; 
}
.date-time { 
    white-space: nowrap; 
    padding-right: 12px; 
    color: #ffffff; 
    font-size: 11px; 
    font-weight: 700; 
    border-right: 1px solid #444; 
}
.running-text { 
    width: 100%; 
    padding-left: 10px; 
    font-size: 12px; 
    color: #bbb; 
}
/* END Sticky Wrapper */

/* Slider & Grid */
.mySwiper { 
    width: 100%; 
    margin: 0 !important; 
    line-height: 0; 
}
.swiper-slide img { 
    width: 100%; 
    display: block; 
}

.provider-nav { 
    background: var(--bg-body); 
    padding: 15px 0; 
    border-bottom: 1px solid #222;
    width: 100%;
    overflow: hidden; 
}
.nav-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto; 
    padding: 10px 15px;
    cursor: grab; 
    user-select: none; 
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.nav-scroll:active { 
    cursor: grabbing; 
}
.nav-scroll::-webkit-scrollbar { 
    display: none; 
}
.nav-item { 
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    background: var(--bg-card); 
    border: 1px solid #333; 
    color: #888; 
    padding: 10px; 
    border-radius: 12px; 
    min-width: 90px; 
    flex-shrink: 0; 
    height: 80px; 
    cursor: pointer; 
    transition: 0.3s;
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .nav-scroll { 
        padding: 0 calc((100% - 1200px) / 2 + 15px); 
    }
}

.nav-logo {
    width: 45px; 
    height: 40px; 
    object-fit: contain;
    margin-bottom: 6px; 
    filter: grayscale(100%) brightness(0.8); 
    transition: 0.3s;
}

.nav-item.active .nav-logo {
    filter: grayscale(0%) brightness(1) sepia(0) saturate(1) hue-rotate(0deg); 
    transform: scale(1.15); 
}

.nav-text {
    font-size: 7px; 
    font-weight: 900;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-item.active .nav-text { 
    color: #ffffff; 
}

.section-box { 
    margin: 20px 0; 
}
.section-title { 
    font-size: 14px; 
    margin-bottom: 15px; 
    border-left: 4px solid var(--primary); 
    padding-left: 10px; 
    font-weight: 800; 
    text-transform: uppercase; 
}
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.title-wrapper {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
    background: transparent;
}

.search-box {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0 10px;
    height: 35px;
    width: 180px; 
    transition: 0.3s ease;
}

.search-box:focus-within { border-color: var(--primary); width: 180px; }

.search-box input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 11px;
    outline: none;
    padding-left: 5px;
}

.search-box i { color: #555; font-size: 12px; }

@media (max-width: 380px) {
    .section-title {
        color: #fff;
        font-size: 14px;
        font-weight: 800;
        margin: 0; 
        display: flex;
        align-items: center;
        line-height: 1;
    }
    .section-title::before {
        content: '';
        width: 4px;
        height: 18px;
        background: var(--primary); /* SUDAH GOLD */
        margin-right: 10px;
        display: inline-block;
    }
    .search-box { width: 110px; }
}

/* Card Styles */
.rtp-card { background: var(--bg-card); border-radius: 10px; overflow: hidden; border: 1px solid #30363d; text-align: center; position: relative; transition: 0.3s; padding-bottom: 0; }
.game-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.rtp-bar-wrapper { background: #000; height: 16px; margin: 8px; border-radius: 10px; position: relative; overflow: hidden; border: 1px solid #111; }
.bar-fill { height: 100%; transition: width 1s ease-in-out; border-radius: 10px; }
.bar-val { position: absolute; width: 100%; top: 0; left: 0; font-size: 9px; font-weight: 900; line-height: 16px; text-shadow: 1px 1px #000; }
.game-name { font-size: 10px; font-weight: bold; padding: 0 5px 5px 5px; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer-container { font-size: 9px; color: var(--primary); margin-bottom: 5px; font-weight: bold; }

.btn-main { 
    width: 100%; 
    background: linear-gradient(180deg, #d4af37 0%, #d4af37 100%); 
    color: #000; 
    border: none; 
    padding: 10px 0; 
    font-size: 11px; 
    font-weight: 900; 
    cursor: pointer; 
    text-transform: uppercase; 
    transition: all 0.3s ease;
    border-top: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.btn-main:hover {
    filter: brightness(1.2);
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.btn-main::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: all 0.5s;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

.btn-play-now { 
    display: block; 
    width: 100%; 
    background: #00ff41; 
    color: #000; 
    text-decoration: none; 
    padding: 12px 0; 
    border-radius: 8px; 
    font-weight: 900; 
    margin-top: 20px; 
    font-size: 13px; 
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); /* SUDAH GOLD */
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-play-now:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    background: #fff; 
}

.viralSwiper { width: 100%; overflow: hidden; padding: 10px 0 20px 0; }
.viralSwiper .swiper-slide { width: 32% !important; }

.viral-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(45deg, #ff0000, #ff8800);
    color: black;
    font-size: 9px;
    padding: 3px 6px;
    border-radius: 5px;
    font-weight: 800;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.viral-badge span { font-size: 6px; opacity: 0.8; margin-bottom: 2px; }
.countdown-val { font-family: monospace; font-size: 10px; }

@media (min-width: 768px) { .viralSwiper .swiper-slide { width: 16% !important; } }

/* Modal AI */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: none; justify-content: center; align-items: center; z-index: 9999; backdrop-filter: blur(5px); }
.modal-content { background: #1c212a; width: 90%; max-width: 350px; border-radius: 15px; border: 2px solid var(--primary); padding: 20px; text-align: center; }
.modal-header-title { color: var(--primary); font-weight: 800; margin-bottom: 15px; font-size: 14px; }
.ai-screen { background: #000; border: 1px solid #333; padding: 15px; border-radius: 10px; font-family: monospace; min-height: 120px; display: flex; flex-direction: column; justify-content: center; }
.scanning-text { color: #fff; font-size: 11px; }
.pola-item { display: flex; justify-content: space-between; color: #fff; font-size: 13px; margin: 5px 0; border-bottom: 1px dashed #333; }
.btn-close-modal { 
    margin-top: 15px; 
    background: transparent; 
    color: #888; 
    border: 1px solid #444; 
    padding: 6px 15px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 10px; 
    font-weight: bold; 
    transition: 0.3s;
}

@media (min-width: 768px) { .game-grid { grid-template-columns: repeat(6, 1fr); } }

/* 1. Kondisi Awal (Ngumpet) */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #d4af37; /* Warna LIMO55 */
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    
    /* Efek Animasi Muncul */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(255, 0, 34, 0.4);
}

/* 2. Kondisi Pas Muncul (Ditambahin lewat JS engine lo) */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #fff;
    transform: scale(1.1);
}

.back-to-top svg {
    stroke: #000; /* Warna panah hitam biar kontras */
}