:root {
    --smaller-font: 0.7rem;
    --small-font: 0.87rem;
    --normal-font: 1rem;
    --medium-font: 1.1rem;
    --large-font: 1.7rem;
    --x-large-font: 2rem;

    /* TEMA RSLOT7 – MERAH – EMAS – GELAP ELEGAN */
    --bg-color: #f1f1f3;
    --text-first: #111827;
    --text-second: #4b5563;
    
    --first-color: #e11d2f;   /* merah utama */
    --second-color: #fbbf24;  /* emas terang */
    --third-color: #f59e0b;   /* emas orange */
    --fourth-color: #111827;  /* biru gelap / abu gelap */
    --fifth-color: #7f1d1d;   /* merah marun */

    --g1: #e11d2f;  /* gradient merah */
    --g2: #f59e0b;  /* gradient emas */
}

/* GLOBAL */
body {
    background: var(--bg-color) !important;
    color: var(--text-first);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* LOGO (biar kelihatan glow merah emas, mirip banner utama RSLOT7) */
.logo img {
    width: 19rem;
    display: block;
    margin: 1.9rem auto 1rem;
    filter:
        drop-shadow(0 0 8px rgba(0, 0, 0, 0.65))
        drop-shadow(0 0 18px rgba(239, 68, 68, 0.8))
        drop-shadow(0 0 22px rgba(245, 158, 11, 0.9));
}

/* ===================== CARD RTP & GAMBAR ===================== */

.rtp-card {
    background: radial-gradient(circle at top, #4b1b1b 0%, #1b0b0b 55%, #050203 100%);
    padding: 0.7rem;
    text-align: center;
    width: 24rem;
    max-width: 100%;
    height: 100%;
    align-items: center;
    border-radius: 14px;
    margin-bottom: 0.7rem;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(251, 191, 36, 0.9);
    box-shadow:
        0 18px 35px rgba(15, 23, 42, 0.9),
        0 0 26px rgba(239, 68, 68, 0.7),
        0 0 26px rgba(245, 158, 11, 0.7);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rtp-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 22px 45px rgba(15, 23, 42, 0.95),
        0 0 30px rgba(239, 68, 68, 0.85),
        0 0 30px rgba(245, 158, 11, 0.85);
}

.rtp-card-img {
    max-width: 100%;
    width: 29rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    box-shadow:
        0 0 14px rgba(0, 0, 0, 0.95),
        0 0 20px rgba(239, 68, 68, 0.9);
}

/* WRAPPER GAMBAR RTP */
.place-img-rtp {
    width: 100%;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-items: center;
    border-radius: 10px;
    box-shadow:
        inset 0 0 14px rgba(0, 0, 0, 0.9),
        0 0 16px rgba(127, 29, 29, 0.8);
    background: radial-gradient(circle at center, #1f2937 0%, #020617 70%, #000000 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.place-img-rtp:hover {
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow:
        0 0 26px rgba(239, 68, 68, 0.9),
        0 0 18px rgba(245, 158, 11, 0.9);
}

/* TOMBOL PLAY DI ATAS GAMBAR */
.btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    width: 12rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    max-width: 70%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 60%);
    color: #fffbeb;
    letter-spacing: 0.09em;
    box-shadow:
        0 0 14px rgba(0, 0, 0, 0.9),
        0 0 22px rgba(251, 191, 36, 0.95);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.95);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-play:hover {
    background: linear-gradient(135deg, #ffffff 0%, var(--g2) 40%, var(--g1) 100%);
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow:
        0 0 24px rgba(239, 68, 68, 0.95),
        0 0 28px rgba(245, 158, 11, 0.95);
}

/* BADGE TOP/HOT GAME */
.top-game,
.hot-game {
    background-repeat: no-repeat !important;
    position: absolute;
    width: 3rem;
    top: 0rem;
    z-index: 2;
    height: 2.9rem;
    left: 0.4rem;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.95));
}

.top-game {
    background: url('../images/top.gif');
}

.hot-game {
    background: url('../images/hot.gif');
}

/* ICON PROVIDERS DI POJOK GAMBAR BESAR */
.icon-providers {
    position: absolute;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 2.2rem;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 3;
}

.icon-providers img {
    width: 1.9rem;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.95));
}

/* ===================== POLA SLOT & JAM ===================== */

.pola-wrapper {
    background: radial-gradient(circle at top, #3b1111 0%, #111111 50%, #020202 100%);
    padding: 1rem 0.9rem;
    width: 14rem;
    max-width: 100%;
    border-radius: 10px;
    position: relative;
    border: 1px solid rgba(251, 191, 36, 0.9);
    box-shadow:
        0 0 14px rgba(0, 0, 0, 0.9),
        inset 0 0 10px rgba(0, 0, 0, 0.8);
    color: #f9fafb;
    margin-top: 0.4rem;
}

/* HEADER POLA SLOT – AGAR TIDAK TUMPANG TINDIH DENGAN LOGO PROVIDER */
.pola-wrapper h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
    position: relative;
    padding-right: 2.6rem;   /* ruang untuk logo provider di kanan */
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #fed7aa;
}

.pola-wrapper h4 img {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    max-height: 1.1rem;
    width: auto;
}

/* SUBTITLE */
.pola-wrapper h5 {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-bottom: 0.3rem;
    color: #fef3c7;
}

.pola-wrapper h4 i,
.pola-wrapper h5 i {
    color: var(--second-color);
}

/* JAM WRAPPER */
.jam-wrapper {
    background: radial-gradient(circle at center, #111827 0%, #020617 100%);
    border-radius: 50%;
    padding: 0.6rem;
    box-shadow:
        0 0 12px rgba(245, 158, 11, 0.85),
        0 0 8px rgba(127, 29, 29, 0.8);
}

/* TABEL POLA */
.table-pola {
    max-width: 100%;
    width: 9rem;
}

.table-pola tr td {
    text-align: center;
    font-size: 0.7rem;
    color: #f9fafb;
}

/* ===================== SLIDER HEADER ===================== */

.slider,
.swiper {
    width: 50rem;
    max-width: 100%;
}

.slider {
    padding: 1rem;
}

.slider-img {
    width: 40rem;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    box-shadow:
        0 0 18px rgba(0, 0, 0, 0.65),
        0 0 18px rgba(239, 68, 68, 0.7);
}

.slider-wrapper {
    background: #d4d4d4;
    height: 100%;
    border-bottom: 1px solid rgba(75, 85, 99, 0.35);
}

/* ===================== RUNNING TEXT ===================== */

.running-text {
    background: linear-gradient(90deg, #7f1d1d 0%, #dc2626 30%, #f97316 65%, #facc15 100%);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    color: #fffbeb;
    padding: 0.25rem 0.7rem;
    letter-spacing: 0.1em;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}

/* ===================== BAR ICON PROVIDER ===================== */

.icon-prov {
    background: #111827;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: auto !important;
    box-shadow:
        0 0 12px rgba(0, 0, 0, 0.8),
        inset 0 0 6px rgba(239, 68, 68, 0.5);
}

.icon-card-bg {
    cursor: pointer;
    padding: 0.1rem !important;
    color: var(--text-second);
    transition: transform 0.15s ease, text-shadow 0.15s ease;
}

.icon-card-bg p {
    font-size: 0.73rem;
    font-weight: 700;
    color: #f9fafb;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    text-shadow:
        0 0 4px rgba(239, 68, 68, 0.7),
        0 0 6px rgba(0, 0, 0, 0.85);
}

.icon-card-bg:hover p {
    transform: translateY(-1px);
    text-shadow:
        0 0 8px rgba(239, 68, 68, 0.95),
        0 0 9px rgba(245, 158, 11, 0.95);
}

.img-prov {
    display: block;
    margin-right: auto;
    margin-left: auto;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.9));
}

.item-prov {
    padding: 0 0.5rem;
}

/* ===================== BUTTON LOGIN / DAFTAR ===================== */

.btn-credit {
    background: linear-gradient(180deg, #fee2e2 0%, #ef4444 30%, #b91c1c 70%, #3f0a0a 100%);
    padding: 0.6rem;
    color: #ffffff !important;
    border: none;
    font-weight: 800;
    border-right: 1px solid rgba(15, 23, 42, 0.35);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.btn-credit:hover {
    background: linear-gradient(180deg, #fffbeb 0%, #f97316 35%, #f59e0b 80%);
}

/* ===================== NAV BOTTOM ===================== */

.nav-bottom {
    position: fixed;
    bottom: 0;
    display: flex;
    z-index: 11;
    overflow: hidden;
    width: 100%;
    border-top: 3px solid var(--second-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.75);
    background: #111827;
}

.item-nav-bottom {
    background: linear-gradient(180deg, #fee2e2 0%, #ef4444 30%, #b91c1c 80%);
    color: #fffbeb;
    font-weight: 800;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-right: 1px solid rgba(15, 23, 42, 0.6);
}

.item-nav-bottom:last-child {
    border-right: none;
}

.item-nav-bottom:hover {
    background: linear-gradient(180deg, #fffbeb 0%, #f97316 35%, #facc15 80%);
    cursor: pointer;
}

.item-nav-bottom p {
    margin: 0;
    padding: 0;
}

/* BUTTON SCROLL-UP */
.btn-up {
    display: none;
    position: fixed;
    bottom: 3.8rem;
    right: 0;
    z-index: 99;
    font-size: 0.9rem;
}

/* ===================== PERSENTASE RTP BAR ===================== */

.percent {
    height: 19px;
    margin-top: 10px !important;
    display: flex;
    overflow: hidden;
    font-size: .75rem;
    background-color: #111827;
    position: relative;
    z-index: 1;
    border-radius: 6px;
    width: 100%;
    margin: 0 auto;
    box-shadow:
        inset 0 0 8px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.9);
}

.percent p {
    z-index: 15;
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 13px;
    top: -15px;
    font-weight: 800;
    transform: translateY(14px);
    color: #fffbeb;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
}

.percent-bar {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, .20) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, .20) 50%,
        rgba(255, 255, 255, .20) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    transition: width .6s ease;
    -webkit-animation: progress-bar-stripes 2s linear infinite;
    animation: progress-bar-stripes 1s linear infinite;
    z-index: 10;
}

/* WARNA BAR – selaras indikator: hijau, emas, merah */
.good {
    background-color: #22c55e;  /* hijau terang */
}

.great {
    background-color: #facc15;  /* emas */
}

.bad {
    background-color: #ef4444;  /* merah warning */
}

/* ===================== CONTENT HOME ===================== */

.content-home {
    padding: 1rem;
    margin-bottom: 4rem;
    background: #ffffff;
    color: #111827;
    border-radius: 16px 16px 0 0;
    box-shadow:
        0 0 12px rgba(0, 0, 0, 0.3);
}

/* ===================== CONTAINER WIDTH ===================== */

@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1100px !important;
    }
}
:root {
    --smaller-font: 0.7rem;
    --small-font: 0.87rem;
    --normal-font: 1rem;
    --medium-font: 1.1rem;
    --large-font: 1.7rem;
    --x-large-font: 2rem;

    /* BACKGROUND FULL HITAM */
    --bg-color: #000000;
    --text-first: #ffffff;
    --text-second: #d1d5db;

    /* WARNA GRADIENT TOMBOL (SESUAI RUNNING TEXT) */
    --btn-g1: #7f1d1d;
    --btn-g2: #dc2626;
    --btn-g3: #f97316;
    --btn-g4: #facc15;
}

/* GLOBAL */
body {
    background: var(--bg-color) !important;
    color: var(--text-first);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===================== RUNNING TEXT ===================== */
.running-text {
    background: linear-gradient(90deg,
        var(--btn-g1),
        var(--btn-g2),
        var(--btn-g3),
        var(--btn-g4)
    );
    color: #fff;
    padding: 0.35rem 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

/* ===================== TOMBOL LOGIN / DAFTAR ===================== */
.btn-credit {
    background: linear-gradient(180deg,
        var(--btn-g1),
        var(--btn-g2),
        var(--btn-g3),
        var(--btn-g4)
    );
    padding: 0.6rem;
    color: #ffffff !important;
    border: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.btn-credit:hover {
    background: linear-gradient(180deg,
        var(--btn-g4),
        var(--btn-g3),
        var(--btn-g2)
    );
}

/* ===================== NAV BOTTOM ===================== */
.nav-bottom {
    position: fixed;
    bottom: 0;
    display: flex;
    z-index: 11;
    width: 100%;
    border-top: 3px solid var(--btn-g4);
    background: #000000;
}

.item-nav-bottom {
    background: linear-gradient(180deg,
        var(--btn-g1),
        var(--btn-g2),
        var(--btn-g3)
    );
    color: #ffffff !important;
    text-align: center;
    font-weight: 800;
    padding: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.item-nav-bottom:hover {
    background: linear-gradient(180deg,
        var(--btn-g4),
        var(--btn-g3),
        var(--btn-g2)
    );
}

/* ===================== TOMBOL HOT, PLAY, DLL ===================== */

.btn-play,
.hot-tag,
.hqt,
.play-btn,
.item-card button,
button,
input[type=submit] {
    background: linear-gradient(135deg,
        var(--btn-g1),
        var(--btn-g2),
        var(--btn-g3),
        var(--btn-g4)
    ) !important;

    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
    transition: 0.2s ease-in-out;
}

.btn-play:hover,
button:hover,
input[type=submit]:hover {
    transform: scale(1.04);
    background: linear-gradient(135deg,
        var(--btn-g4),
        var(--btn-g3),
        var(--btn-g2)
    ) !important;
}

/* ===================== CARD BACKGROUND ===================== */
.rtp-card,
.pola-wrapper,
.icon-prov,
.slider-wrapper,
.content-home {
    background: #0a0a0a !important;
    border-color: var(--btn-g2) !important;
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.4);
}

/* ===================== PROVIDER BAR ===================== */
.icon-card-bg p {
    color: #fff !important;
}

.img-prov {
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

/* ===================== RTP BAR ===================== */
.percent {
    background: #1a1a1a !important;
    border: 1px solid #dc2626;
}

.percent-bar.good { background-color: #22c55e !important; }
.percent-bar.great { background-color: #facc15 !important; }
.percent-bar.bad { background-color: #ef4444 !important; }
