: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 SILATSLOT DARK – ORANGE – CYAN – EMAS */
    --bg-color: #000000;
    --text-first: #f5f5f5;
    --text-second: #cbd5e1;
    
    --first-color: #f97316;   /* orange utama */
    --second-color: #06b6d4;  /* cyan */
    --third-color: #fbbf24;   /* emas */
    --fourth-color: #0f172a;  /* navy gelap */
    --fifth-color: #eab308;   /* gold smooth */

    --g1: #f97316;
    --g2: #06b6d4;
}

/* 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 12px rgba(6, 182, 212, 0.7))
        drop-shadow(0 0 18px rgba(249, 115, 22, 0.7));
}

/* ===================== CARD RTP & GAMBAR ===================== */

.rtp-card {
    background: radial-gradient(circle at top, #0f172a 0%, #000000 80%);
    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(6, 182, 212, 0.85);
    box-shadow:
        0 14px 30px rgba(6, 182, 212, 0.25),
        0 0 22px rgba(249, 115, 22, 0.4);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rtp-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 20px 45px rgba(6, 182, 212, 0.45),
        0 0 30px rgba(249, 115, 22, 0.55);
}

.rtp-card-img {
    max-width: 100%;
    width: 29rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    box-shadow:
        0 0 18px rgba(0, 0, 0, 0.9),
        0 0 18px rgba(6, 182, 212, 0.6);
}

/* 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 12px rgba(15, 23, 42, 0.95),
        0 0 16px rgba(6, 182, 212, 0.4);
    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 25px rgba(6, 182, 212, 0.7),
        0 0 16px rgba(249, 115, 22, 0.5);
}

/* 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.1);
    background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 60%);
    color: #fefce8;
    letter-spacing: 0.09em;
    box-shadow:
        0 0 14px rgba(15, 23, 42, 0.9),
        0 0 22px rgba(251, 191, 36, 0.9);
    text-shadow: 0 0 4px rgba(15, 23, 42, 0.95);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-play:hover {
    background: linear-gradient(135deg, var(--g2) 0%, var(--g1) 50%, #ffffff 100%);
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow:
        0 0 20px rgba(6, 182, 212, 0.9),
        0 0 25px rgba(249, 115, 22, 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, #0f172a 0%, #000000 90%);
    padding: 1rem 0.9rem;
    width: 14rem;
    max-width: 100%;
    border-radius: 10px;
    position: relative;
    border: 1px solid rgba(6, 182, 212, 0.75);
    box-shadow:
        0 0 14px rgba(0, 0, 0, 0.8),
        inset 0 0 10px rgba(0, 0, 0, 0.7);
    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;
}

.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;
}

.pola-wrapper h4 i,
.pola-wrapper h5 i {
    color: var(--second-color);
}

/* JAM WRAPPER */
.jam-wrapper {
    background: radial-gradient(circle at center, #0f172a 0%, #000000 100%);
    border-radius: 50%;
    padding: 0.6rem;
    box-shadow:
        0 0 12px rgba(249, 115, 22, 0.5),
        0 0 8px rgba(6, 182, 212, 0.45);
}

/* TABEL POLA */
.table-pola {
    max-width: 100%;
    width: 9rem;
}

.table-pola tr td {
    text-align: center;
    font-size: 0.7rem;
    color: #ffffff;
}

/* ===================== 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(6, 182, 212, 0.5),
        0 0 18px rgba(249, 115, 22, 0.4);
}

.slider-wrapper {
    background: #000000;
    height: 100%;
    border-bottom: 1px solid rgba(249, 115, 22, 0.45);
}

/* ===================== RUNNING TEXT ===================== */

.running-text {
    background: linear-gradient(90deg, var(--g1) 0%, var(--g2) 60%);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    color: #fefce8;
    padding: 0.25rem 0.7rem;
    letter-spacing: 0.1em;
    text-shadow: 0 0 4px rgba(15, 23, 42, 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(6, 182, 212, 0.4),
        inset 0 0 6px rgba(249, 115, 22, 0.3);
}

.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: #f8fafc;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    text-shadow:
        0 0 4px rgba(6, 182, 212, 0.6),
        0 0 6px rgba(0, 0, 0, 0.85);
}

.icon-card-bg:hover p {
    transform: translateY(-1px);
    text-shadow:
        0 0 6px rgba(6, 182, 212, 0.9),
        0 0 8px rgba(249, 115, 22, 0.8);
}

.img-prov {
    display: block;
    margin-right: auto;
    margin-left: auto;
    filter: drop-shadow(0 0 8px rgba(15, 23, 42, 0.75));
}

.item-prov {
    padding: 0 0.5rem;
}

/* ===================== BUTTON LOGIN / DAFTAR ===================== */

.btn-credit {
    background: linear-gradient(0deg, var(--g1) 0%, var(--g2) 100%);
    padding: 0.6rem;
    color: #ffffff !important;
    border: none;
    font-weight: 800;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.85);
}

.btn-credit:hover {
    background: linear-gradient(0deg, var(--g2) 0%, var(--g1) 100%);
}

/* ===================== NAV BOTTOM ===================== */

.nav-bottom {
    position: fixed;
    bottom: 0;
    display: flex;
    z-index: 11;
    overflow: hidden;
    width: 100%;
    border-top: 3px solid var(--third-color);
    box-shadow: 0 -4px 12px rgba(249, 115, 22, 0.45);
    background: #000000;
}

.item-nav-bottom {
    background: linear-gradient(180deg, #f97316 0%, #c2410c 100%);
    color: #fefce8;
    font-weight: 800;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.item-nav-bottom:hover {
    background: linear-gradient(180deg, #06b6d4 0%, #0ea5e9 100%);
    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: #0f172a;
    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(6, 182, 212, 0.5);
}

.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: #06b6d4;  /* cyan */
}

.bad {
    background-color: #ef4444;  /* merah warning */
}

/* ===================== CONTENT HOME ===================== */

.content-home {
    padding: 1rem;
    margin-bottom: 4rem;
    background: #000000;
    color: #f8fafc;
    border-radius: 16px 16px 0 0;
    box-shadow:
        0 0 18px rgba(6, 182, 212, 0.25),
        0 0 12px rgba(249, 115, 22, 0.25);
}

/* ===================== CONTAINER WIDTH ===================== */

@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1100px !important;
    }
}

/* ============================================================
   UNIFY BUTTON LOGIN/DAFTAR (btn-credit) & NAV-BOTTOM
   ============================================================ */

.btn-credit,
.nav-bottom .item-nav-bottom {
    background: linear-gradient(180deg, #ffedd5 0%, #f97316 35%, #c2410c 75%, #020617 100%) !important;
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.8rem 0.3rem !important;
    box-shadow:
        0 0 10px rgba(15, 23, 42, 0.9),
        0 0 14px rgba(249, 115, 22, 0.8);
    border: none;
    border-top: 2px solid rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 3px rgba(15, 23, 42, 0.7);
}

.nav-bottom .item-nav-bottom,
.btn-credit {
    border-right: 1px solid rgba(15, 23, 42, 0.5);
}

.nav-bottom .item-nav-bottom:last-child {
    border-right: none;
}

.btn-credit:hover,
.nav-bottom .item-nav-bottom:hover {
    background: linear-gradient(180deg, #fffbeb 0%, #fbbf24 35%, #06b6d4 80%) !important;
    transform: translateY(-1px);
}

.nav-bottom .item-nav-bottom p,
.nav-bottom .item-nav-bottom i {
    color: #ffffff !important;
    text-shadow: 0 0 2px rgba(15, 23, 42, 0.7);
}
