body {
    font-family: 'Poppins', sans-serif;
    background-color: #036d41;
    margin: 0;
    color: #fff;
    background-image: url("https://object-d001-cloud.akucloud.com/banner/image/duniabet/DUNIABET%20-%20Update%20Web%20Background_A.webp");
    background-attachment: fixed;
    background-position: top;
    background-size: cover;
}

/* === LOGIN BUTTON === */
.login-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999;
    display: flex;
    gap: 10px;
}
.login-buttons a {
    background: #00ffff;
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: auto
    font-weight: bold;
}
.login-buttons a:hover {
    background: #00cccc;
}

.provider-section {
    padding: 8px 0;
    margin-bottom: 8px;
    border-radius: 10px;
    background: transparent;
    box-shadow: 0 0 15px cyan;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: visible;
}

.main-wrapper {
    max-width: 1500px;
    margin: 20px auto;
    padding: 10px;
}

.auth-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btn-auth {
    flex: 1 1 200px;
    padding: 20px 0;
    text-align: center;
    color: #00ffff;
    background-color: #111;
    border: 2px solid #00ffff;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 0 14px #00ffff88;
    text-decoration: none;
    transition: 0.3s;
}

.btn-auth:hover {
    background-color: #00ffff;
    color: #000;
    box-shadow: 0 0 22px #00ffff;
}

.provider-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 10px 5px;
}

.provider-container {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 10px;
}

.provider-card {
    width: 190px;
    height: 80px;
    background: #111;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
}

.provider-card:hover {
    border: 2px solid #3b3a3a;
    box-shadow: 0 0 10px #00ffff;
}

.provider-card img {
    max-height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px cyan);
}

.provider-name {
    font-size: 13px;
    margin-top: 5px;
}

.info-box {
    background-color: #000;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.9);
    margin-bottom: 20px;
}

.info-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.search-input {
    width: 250px;
    border-radius: 6px;
    border: none;
    padding: 10px;
    background-color: #fff;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    font-size: 14px;
}

@media (max-width: 768px) {
    .info-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .search-input {
        width: 100%;
    }
}

/* --- MODIFIED BAGIAN INI UNTUK 5 kolom di desktop, 2 di mobile --- */
.rtp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px;
}

@media (max-width: 768px) {
    .rtp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ---------------------------------------------------------------- */

.game-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00ffff;
    border-radius: 10px;
    color: #fff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    transform: scale(1);
    z-index: 0;
    will-change: transform;
}

.game-card:hover {
    transform: scale(1.08);
    z-index: 2;
    box-shadow: 0 0 30px #00ffff88;
}

.game-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

.btn-main-now {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #00ffff;
    color: #000;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 0 15px #00ffff;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 10;
}

.game-card:hover .btn-main-now {
    opacity: 1;
    pointer-events: auto;
}

.btn-main-now-gif {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 52%;
    max-height: 35%;
    height: auto;
    display: none;
    z-index: 5;
    border-radius: 6px;
}

.game-card:hover .btn-main-now-gif {
    display: block;
}

.badge-akurat {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 70px;
    z-index: 5;
}

.game-card:hover .badge-akurat {
    display: block;
}

.pola-box {
    background: rgba(0,0,0,0.5);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: white;
}

.pola-box strong {
    color: #00ffff;
    display: block;
    margin-bottom: 6px;
}

#snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    border-radius: 6px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 20px;
    bottom: 20px;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
}

#snackbar.show {
    visibility: visible;
    opacity: 1;
    bottom: 40px;
}

.sidebar-hubungi {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 999;
}

.rtp-bar-fill {
  box-sizing: border-box;
  min-width: 0;
}

.rtp-bar {
  position: relative;
  background: #333; /* abu-abu gelap sebagai background bar */
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
  height: 22px;
  border: 1px solid #888;
}

.rtp-bar-fill {
  height: 100%;
  width: 0%;
  transition: width 0.6s ease-in-out;
}

.rtp-bar-text {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

/* Warna bar berdasarkan RTP */
.rtp-merah {
  background-color: #ff4c4c !important;
}

.rtp-kuning {
  background-color: #ffd700 !important;
}

.rtp-hijau {
  background-color: #00cc66 !important;
}