: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 DARK – HITAM – EMAS */
    --bg-color: #000000;
    --text-first: #f9fafb;
    --text-second: #cbd5e1;

    --first-color: #f6c453;   /* emas utama */
    --second-color: #f97316;  /* orange aksen */
    --third-color: #b91c1c;   /* merah aksen */
    --fourth-color: #111827;  /* navy gelap */
    --fifth-color: #ffe29f;   /* emas smooth */

    --g1: #f6c453;
    --g2: #f97316;
}

/* GLOBAL */
body {
    background: #000000 !important;
    color: var(--text-first);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* LOGO */
.logo img {
    width: 19rem;
    display: block;
    margin: 1.9rem auto 1rem;
    filter:
        drop-shadow(0 0 14px rgba(0, 0, 0, 0.9))
        drop-shadow(0 0 18px rgba(246, 196, 83, 0.9));
}

/* ===================== CARD RTP & GAMBAR ===================== */

.rtp-card {
    background: radial-gradient(circle at top, #1f2937 0%, #020617 40%, #000000 90%);
    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(246, 196, 83, 0.95);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.9),
        0 0 26px rgba(246, 196, 83, 0.7);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rtp-card:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.9);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.95),
        0 0 32px rgba(249, 115, 22, 0.9);
}

.rtp-card-img {
    max-width: 100%;
    width: 29rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    box-shadow:
        0 0 22px rgba(0, 0, 0, 0.95),
        0 0 18px rgba(0, 0, 0, 0.85);
}

/* 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(15, 23, 42, 0.95),
        0 0 18px rgba(15, 23, 42, 0.8);
    background: radial-gradient(circle at center, #020617 0%, #000000 90%);
    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(246, 196, 83, 0.8),
        0 0 18px rgba(249, 115, 22, 0.7);
}

/* ===================== 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(0, 0, 0, 0.4);

    /* GRADASI ABU-ABU */
    background: linear-gradient(135deg, #ffffff 0%, #e2e2e2 40%, #bfbfbf 80%, #9e9e9e 100%);
    color: #000;
    letter-spacing: 0.09em;
    box-shadow:
        0 0 14px rgba(0, 0, 0, 0.95),
        inset 0 0 6px rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-play:hover {
    background: linear-gradient(135deg, #ffffff 0%, #ededed 40%, #d0d0d0 100%);
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow:
        0 0 18px rgba(255, 255, 255, 1),
        0 0 18px rgba(200, 200, 200, 0.9);
}

/* 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(15, 23, 42, 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, #1f2937 0%, #020617 50%, #000000 90%);
    padding: 1rem 0.9rem;
    width: 14rem;
    max-width: 100%;
    border-radius: 10px;
    position: relative;
    border: 1px solid rgba(246, 196, 83, 0.85);
    box-shadow:
        0 0 14px rgba(0, 0, 0, 0.9),
        inset 0 0 10px rgba(0, 0, 0, 0.75);
    color: var(--text-first);
    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: #fef3c7;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
}

.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: #e5e7eb;
}

.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(250, 204, 21, 0.8),
        0 0 8px rgba(0, 0, 0, 0.9);
}

/* 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 20px rgba(0, 0, 0, 0.95),
        0 0 22px rgba(246, 196, 83, 0.7);
}

.slider-wrapper {
    background: #000000;
    height: 100%;
    border-bottom: 2px solid rgba(246, 196, 83, 0.7);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.95);
}

/* ===================== RUNNING TEXT (TULISAN BERGERAK) ===================== */
/* Sama warna & gradasi dengan tombol LOGIN/DAFTAR */

.running-text {
    background: linear-gradient(90deg, #f7f7f7 0%, #e1e1e1 30%, #c4c4c4 70%, #a3a3a3 100%);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1rem;
    color: #000;
    padding: 0.25rem 0.7rem;
    letter-spacing: 0.1em;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    box-shadow:
        0 0 8px rgba(0,0,0,0.8),
        inset 0 0 4px rgba(255,255,255,0.9);
}

/* ===================== BAR ICON PROVIDER ===================== */

.icon-prov {
    background: #000000;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: auto !important;
    box-shadow:
        0 0 12px rgba(15, 23, 42, 0.8),
        inset 0 0 6px rgba(246, 196, 83, 0.6);
}

.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(0, 0, 0, 0.95),
        0 0 6px rgba(246, 196, 83, 0.9);
}

.icon-card-bg:hover {
    transform: translateY(-1px) scale(1.03);
}

.icon-card-bg:hover p {
    text-shadow:
        0 0 6px rgba(249, 115, 22, 1),
        0 0 8px rgba(246, 196, 83, 1);
}

.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 (HEADER) ===================== */

.btn-credit {
    /* GRADASI ABU-ABU / SILVER */
    background: linear-gradient(180deg, #f7f7f7 0%, #e1e1e1 40%, #c4c4c4 75%, #a3a3a3 100%);
    padding: 0.6rem;
    color: #000 !important;
    border: none;
    font-weight: 800;
    border-right: 1px solid rgba(0, 0, 0, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.7);
    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.8),
        inset 0 0 6px rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    transition: 0.2s ease-in-out;
}

.btn-credit:hover {
    background: linear-gradient(180deg, #ffffff 0%, #ececec 40%, #cfcfcf 80%, #b0b0b0 100%);
    transform: translateY(-2px);
    box-shadow:
        0 0 14px rgba(255, 255, 255, 0.9),
        inset 0 0 6px rgba(0, 0, 0, 0.4);
}

/* ===================== NAV BOTTOM ===================== */

.nav-bottom {
    position: fixed;
    bottom: 0;
    display: flex;
    z-index: 11;
    overflow: hidden;
    width: 100%;
    border-top: 3px solid #d4d4d4;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.95);
    background: #000000;
}

.item-nav-bottom {
    /* GRADASI ABU-ABU / SILVER */
    background: linear-gradient(180deg, #f7f7f7 0%, #e1e1e1 40%, #c4c4c4 80%, #a3a3a3 100%);
    color: #000;
    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(0, 0, 0, 0.35);
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
    transition: 0.2s ease-in-out;
}

.item-nav-bottom:hover {
    background: linear-gradient(180deg, #ffffff 0%, #ececec 40%, #d0d0d0 90%);
    transform: translateY(-2px);
    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 8px rgba(15, 23, 42, 0.8);
}

.percent p {
    z-index: 15;
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 13px;
    top: -15px;
    font-weight: 800;
    transform: translateY(14px);
    color: #fefce8;
    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 */
.good {
    background-color: #22c55e;  /* hijau terang */
}

.great {
    background-color: #fde047;  /* kuning emas */
}

.bad {
    background-color: #ef4444;  /* merah warning */
}

/* ===================== CONTENT HOME ===================== */

.content-home {
    padding: 1rem;
    margin-bottom: 4rem;
    background: radial-gradient(circle at top, #020617 0%, #000000 70%);
    color: #f8fafc;
    border-radius: 16px 16px 0 0;
    box-shadow:
        0 0 18px rgba(0, 0, 0, 0.9),
        0 0 14px rgba(15, 23, 42, 0.8);
}

/* ===================== CONTAINER WIDTH ===================== */

@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1100px !important;
    }
}

/* ============ ANIMASI STRIPES PROGRESS BAR ============ */
@-webkit-keyframes progress-bar-stripes {
    from { background-position: 1rem 0; }
    to   { background-position: 0 0; }
}
@keyframes progress-bar-stripes {
    from { background-position: 1rem 0; }
    to   { background-position: 0 0; }
}
