* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body::-webkit-scrollbar {
    width: 5px;
}

body::-webkit-scrollbar-thumb {
    background-color: #0ce700;
    outline: 0.1px solid #1be700;
}

body::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(100, 100, 100, 0.3);
    width: 5px;
}

body {
    background: url('../BgRTP.webp') center top / cover fixed no-repeat #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 70px;
}

/* --- 2. HEADER & LAYOUT --- */
.topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2fc800;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 99999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.top-marquee-container {
    width: 50%;
    background: #2fc800;
    color: #000;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
}

.top-banner-container {
    width: 100%;
    max-width: 1000px;
    margin: 80px auto 5px;
    padding: 0 10px;
}

.top-banner-img {
    width: 70%;
    display: block;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.1);
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    gap: 15px;
    padding: 0 15px 15px;
}

/* --- 3. PROVIDER & SEARCH --- */
.provider-container-top {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 15px 5px;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #2fc800 #1f3b1e;
}

.provider-container-top::-webkit-scrollbar {
    height: 5px;
}

.provider-container-top::-webkit-scrollbar-thumb {
    background: #078300;
    border-radius: 4px;
}

.btn-provider-gold {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    width: 110px;
    height: 105px;
    background: linear-gradient(45deg, #677d1e, #bed084, #9fbc1b);
    border-radius: 12px;
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 5px;
}

.btn-provider-gold:hover,
.btn-provider-gold.active {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(27, 234, 8, 0.4);
}

.provider-logo-60 {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 4px;
}

.badge-hot {
    position: absolute;
    top: -8px;
    right: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    animation: pulse 1.5s infinite;
}

.img-hot-active {
    position: absolute;
    top: -25px;
    right: -10px;
    width: 65px;
    z-index: 10;
}

.search-container {
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.search-input {
    width: 100%;
    background: #e2e2e2;
    border: 1px solid #38455a;
    padding: 12px 16px 12px 45px;
    border-radius: 6px;
    color: #000d82;
    font-size: 14px;
    font-weight: 500;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* --- 4. GAME GRID & CARDS --- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.game-card {
    background: #111827;
    border: 1px solid #1aff00;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.game-card:hover {
    transform: scale(1.03);
}

.game-card.hidden {
    display: none !important;
}

.img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ribbon-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(45deg, #ef4444, #b91c1c);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 20px;
    transform: translate(18px, 10px) rotate(45deg);
    width: 90px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.mini-label-eksklusif {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(38, 234, 8, 0.85);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
}

.backdrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    z-index: 5;
}

.img-container:hover .backdrop-overlay {
    opacity: 1;
}

.play-btn {
    background: #2aea08;
    color: #000;
    border: none;
    width: 45px;
    height: 45px;
    padding-left: 5px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(46, 234, 8, 0.69);
}

.card-info-gold {
    background: url('/assets/pelate.jpg');
    padding: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-info-gold p {
    font-size: 12px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rtp-bar-container {
    width: 100%;
    background: #0f172a;
    height: 16px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.rtp-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
    transition: width 0.5s;
}

.rtp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 800;
    color: #fff;
}

/* --- 5. RESPONSIVE & FOOTER --- */
@media (max-width: 480px) {

    .top-marquee-container,
    .top-banner-img {
        width: 100%;
    }
}

@media (max-width: 960px) {
    .top-banner-img {
        width: 80%;
    }
}

@media (min-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (min-width: 992px) {
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.footer-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-size: 11px;
    font-weight: 700;
}

/* --- 6. MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #111827;
    border: 2px solid #2fff00;
    padding: 25px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ff0000;
    font-size: 24px;
    cursor: pointer;
}

.pola-container {
    background: #000;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    font-family: monospace;
    font-size: 14px;
    color: #ffffff;
    border: 1px solid #33553e;
}

.modal-btn {
    background: #ff2828;
    display: inline-block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.btn-login-action {
    background: linear-gradient(180deg, #73ff66 0%, #0acc00 100%);
    color: #000;
    text-decoration: none;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* 📱 FIXED NAVBAR FOOTER (MOBILE BOTTOM NAVIGATION) */
.mobile-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, #73ff66 0%, #0acc00 100%);
    /* Warna Gradasi Kuning Emas */
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99999;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.5);
    border-top: 1px solid #ffe680;
}

.footer-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000000;
    /* Warna ikon & teks gelap pekat */
    font-size: 11px;
    font-weight: 700;
    gap: 2px;
    transition: background 0.2s;
}

.footer-nav-item:active {
    background: rgba(0, 0, 0, 0.05);
}

.footer-nav-icon {
    width: 22px;
    height: 22px;
    fill: #000000;
}