:root {
    --smaller-font: 0.7rem;
    --small-font: 0.87rem;
    --normal-font: 1rem;
    --medium-font: 1.1rem;
    --large-font: 1.7rem;
    --x-large-font: 2rem;
    
    /* Warna Dasar */
    --bg-color: #0a0a0a;     /* Hitam lebih pekat untuk kesan deep premium */
    --text-first: #fafafa;
    --text-second: #e0e0e0;  /* Abu-abu terang agar lebih soft */
    
    /* Palet Emas Premium */
    --first-color: #dfb23c;  /* Emas terang utama (Terang & Berkilau) */
    --second-color: #c9921e; /* Emas gelap (Deep Gold) */
    --third-color: #333333;  /* Abu-abu gelap */
    --fourth-color: #1A1A1A; /* Hitam pekat transisi */
    --fifth-color: #000000;  /* Hitam murni */
    --g1: #dfb23c;           /* Emas terang */
    --g2: #c9921e;           /* Emas gelap */
}

body {
    background: var(--bg-color);
    color: var(--text-first);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Opsional: font bersih */
}

.logo img {
    width: 19rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.9rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0px 4px 10px rgba(223, 178, 60, 0.2)); /* Kilau pada logo */
}

.rtp-card {
    /* Background hitam elegan dengan border emas halus */
    background: linear-gradient(145deg, var(--fourth-color) 0%, var(--fifth-color) 100%);
    border: 1px solid rgba(223, 178, 60, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8), 0 0 10px rgba(201, 146, 30, 0.1);
    padding: 0.7rem;
    text-align: center;
    width: 24rem;
    max-width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px; /* Lebih membulat sedikit */
    margin-bottom: 0.7rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rtp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(223, 178, 60, 0.3);
    border-color: var(--first-color);
}

.rtp-card-img {
    max-width: 100%;
    width: 29rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 5px;
}

.place-img-rtp {
    width: 100%;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: -9;
    display: flex;
    justify-items: center;
    border-radius: 5px;
    background: #000;
    box-shadow: inset 0px 0px 15px 5px rgba(0, 0, 0, 0.9); /* Bayangan dalam lebih dramatis */
}

.place-img-rtp:hover {
    cursor: pointer;
}

.btn-play {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    border: 1px solid #fff; /* Aksen kilau putih di ujung emas */
    border-radius: 25px; /* Pill shape untuk kesan modern/premium */
    padding: 0.5rem 1rem;
    width: 12rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 70%;
    /* Gradasi metalik */
    background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 50%, var(--g1) 100%);
    background-size: 200% 200%;
    color: var(--fifth-color); /* Teks hitam agar sangat mewah & kontras */
    box-shadow: 0 4px 15px rgba(223, 178, 60, 0.5);
    transition: all 0.4s ease;
}

.btn-play:hover {
    background-position: right center;
    color: var(--fifth-color);
    box-shadow: 0 6px 20px rgba(223, 178, 60, 0.8);
    transform: translate(-50%, -53%) scale(1.05); /* Sedikit membesar saat dihover */
}

.pola-wrapper {
    background: linear-gradient(145deg, #222222 0%, #111111 100%);
    border: 1px solid #333;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    padding: 0.9rem;
    width: 14rem;
    max-width: 100%;
    border-radius: 8px;
}

.pola-wrapper h4 {
    font-size: 0.9rem;
    color: var(--first-color); /* Menonjolkan warna emas pada judul */
}

.pola-wrapper h5 {
    font-size: 0.7rem;
}

.pola-wrapper h4 i, .pola-wrapper h5 i {
    color: var(--first-color);
    text-shadow: 0 0 5px rgba(223, 178, 60, 0.5); /* Glow pada icon */
}

.jam-wrapper {
    background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
    border: 1px solid var(--second-color);
    border-radius: 50%;
    padding: 0.6rem;
    box-shadow: 0 0 8px rgba(201, 146, 30, 0.2);
}

.table-pola {
    max-width: 100%;
    width: 9rem;
}

.table-pola tr td {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-first);
}

.top-game, .hot-game {
    background-repeat: no-repeat !important;
    position: absolute;
    width: 3rem;
    top: -0.5rem; /* Disesuaikan agar sedikit pop-out */
    height: 2.9rem;
    left: -0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.top-game {
    background: url('../images/top.gif');
    background-size: contain;
}

.hot-game {
    background: url('../images/hot.gif');
    background-size: contain;
}

.icon-providers {
    position: absolute;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 2rem;
    top: 1.3rem;
    right: 1.5rem;
    filter: drop-shadow(0 0 3px rgba(255,255,255,0.3));
}

.icon-providers img {
    width: 1.7rem;
}

.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: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.7);
}

.slider-wrapper {
    background: linear-gradient(0deg, var(--fourth-color) 0%, var(--bg-color) 100%);
    height: 100%;
    border-bottom: 2px solid var(--second-color);
}

.running-text {
    /* Gradasi metalik menyamping */
    background: linear-gradient(90deg, var(--g2) 0%, var(--g1) 50%, var(--g2) 100%);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--fifth-color); /* Hitam untuk tulisan agar mewah */
    padding: 0.3rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.8);
    letter-spacing: 1px;
}

.icon-prov {
    background: linear-gradient(180deg, #1a1a1a 0%, #050505 100%);
    border-bottom: 1px solid var(--third-color);
    display: flex;
    position: relative;
    overflow: auto !important;
}

.icon-card-bg {
    cursor: pointer;
    padding: 0.3rem 0.1rem !important;
    color: var(--text-second);
    transition: all 0.3s ease;
}

.icon-card-bg:hover {
    background: rgba(223, 178, 60, 0.1); /* Highlight emas tipis saat dihover */
}

.icon-card-bg p {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--first-color); /* Tulisan emas */
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    margin-top: 5px;
}

.img-prov {
    display: block;
    margin-right: auto;
    margin-left: auto;
    filter: grayscale(30%); /* Efek elegan */
    transition: filter 0.3s ease;
}

.icon-card-bg:hover .img-prov {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.item-prov {
    padding: 0 0.5rem;
}

.btn-credit {
    background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%);
    padding: 0.6rem;
    color: var(--fifth-color);
    border: none;
    font-weight: 800;
    text-transform: uppercase;
    border-right: 1px solid var(--first-color);
    transition: all 0.3s ease;
}

.btn-credit:hover {
    background: linear-gradient(135deg, var(--g2) 0%, var(--g1) 100%);
    color: var(--fifth-color);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.nav-bottom {
    position: fixed;
    bottom: 0;
    display: flex;
    z-index: 11;
    overflow: hidden;
    width: 100%;
    background: #050505; /* Solid dark background */
    border-top: 2px solid var(--first-color);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.8);
}

.item-nav-bottom {
    background: transparent;
    color: var(--text-second);
    font-weight: bold;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem 0.3rem;
    transition: all 0.3s ease;
    border-right: 1px solid #222;
    flex: 1; /* Biar rapi membagi layar */
}

.item-nav-bottom:hover, .item-nav-bottom.active {
    background: linear-gradient(0deg, rgba(201, 146, 30, 0.2) 0%, transparent 100%);
    color: var(--first-color);
    cursor: pointer;
}

.item-nav-bottom p {
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    margin-top: 3px;
}

.btn-up {
  display: none;
  position: fixed;
  bottom: 4.5rem;
  right: 1rem;
  z-index: 99;
  font-size: 1.2rem;
  background: var(--first-color);
  color: var(--fifth-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

/* Percentage Bar */
.percent{
    height: 19px;
    margin-top: 10px !important;
    display: flex;
    overflow: hidden;
    font-size: .75rem;
    background-color: #222; /* Background gelap agar bar emas lebih menonjol */
    box-shadow: inset 0 0 5px #000;
    position: relative;
    z-index: 1;
    border-radius: 10px;
    width: 100%;
    margin: 0 auto;
}

.percent p{
    z-index: 15;    
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 12px;
    top: -15px;
    font-weight: 800;
    transform: translateY(14px);
    color: #fff; /* Teks putih dengan shadow gelap agar kontras */
    text-shadow: 1px 1px 2px #000;
    letter-spacing: 0.5px;
}

.percent-bar{
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 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;
    animation: progress-bar-stripes 1s linear infinite;
    z-index: 10;
}

/* Kategori Warna Bar Premium */
.good{
    background-color: #dfb23c; /* Emas Terang */
    box-shadow: 0 0 10px rgba(223, 178, 60, 0.6);
}

.great{
    background-color: #c9921e; /* Emas Gelap */
    box-shadow: 0 0 10px rgba(201, 146, 30, 0.6);
}

.bad{
    background-color: #444444; /* Dark Grey untuk sisa bar */
}

.content-home {
    padding: 1.5rem;
    margin-bottom: 5rem;
    background: #0f0f0f; /* Hitam eksklusif */
    color: var(--text-second);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
}

/* Container */
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1100px !important;
    }
}