.game-card, .popup-content {
  box-shadow: 0 0 15px rgba(0, 0, 0, .2);
}
.nav-menu, .popup-content button {
  transition: background-color .3s;
}
.bar, .nav-menu {
  white-space: nowrap;
}

/* ====== Global ====== */
body {
  max-width: 1140px;
  font-family: Roboto, sans-serif;
  background-color: #000000;         /* hitam utama */
  color: #fff;
  margin: auto;
  padding: 10px;
}

/* ====== Header ====== */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}
.header img.logo {
  max-width: 150px;
  margin-bottom: 20px;
}
.header img.banner {
  max-width: 100%;
  margin-bottom: 20px;
  border-radius: 10px;
}
.logo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.rtp-update {
  text-align: right;
  font-size: .85em;
  color: #FFD700;                    /* kuning */
}

/* ====== Buttons & Links ====== */
.header .buttons a, .nav-menu {
  color: #fff;
  text-decoration: none;
  text-align: center;
}
.header .buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  margin: 0 auto 20px;
}
.header .buttons a {
  background-color: #FFD700;         /* tombol kuning */
  color: #000;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 700;
  border: 2px solid #FFD700;
}
.header .buttons a:hover {
  background-color: #000;
  color: #FFD700;
}

/* tombol daftar & tombol search sama-sama kuning */
.header .buttons a.daftar, .header .search button {
  background-color: #FFD700;
  color: #000;
  border: 2px solid #FFD700;
}

/* ====== Search ====== */
.header .search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: 100%;
  margin: 0 auto 20px;
}
.header .search input {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #FFD700;        /* aksen kuning */
  width: 100%;
  background-color: #111;
  color: #fff;
}
.header .search button, .nav-menu {
  padding: 10px 20px;
  font-weight: 700;
}
.header .search button {
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}
.header .search button:hover {
  background-color: #000;
  color: #FFD700;
}

/* ====== Provider Pills ====== */
.nav-wrapper {
  border: 12px solid #111111;        /* frame gelap */
  overflow-x: auto;
  max-width: 100%;
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: #FFD700 #111111;
  border-radius: 10px;
}
.nav-container {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: 10px;
  background-color: #111111;         /* strip gelap */
  width: max-content;
}
.nav-menu {
  margin: 5px 0;
  border-radius: 20px;
  background-color: #000000;
  border: 2px solid #FFD700;         /* outline kuning */
  color: #fff;
}
.nav-menu:hover {
  background-color: #FFD700;         /* hover kuning */
  color: #000;
}
.nav-wrapper::-webkit-scrollbar {
  height: 8px;
}
.nav-wrapper::-webkit-scrollbar-track {
  background: #111111;
}
.nav-wrapper::-webkit-scrollbar-thumb {
  background-color: #000000;
  border-radius: 10px;
  border: 2px solid #111111;
}
.nav-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: #FFD700;         /* hover kuning */
}

/* ====== Grid Cards ====== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.game-card {
  background: #000000;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #FFD700;         /* border kuning seperti contoh */
}
.game-card img {
  width: 100%;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.game-title {
  background: #000000;               /* strip judul hitam */
  min-height: 24px;
  font-size: .7em;
  font-weight: 700;
  padding: 5px;
  color: #FFD700;                    /* teks judul kuning */
  text-transform: uppercase;
  text-align: center;
  align-content: center;
  border-bottom: 2px solid #FFD700;  /* garis bawah kuning */
}

/* ====== Progress ====== */
.progress-bar-container {
  background: #222222;
  border-radius: 8px;
  overflow: hidden;
  margin: 10px 0;
  position: relative;
  border: 1px solid #FFD700;         /* outline kuning */
}
.progress-bar {
  height: 18px;
  text-align: right;
  padding-right: 10px;
  color: transparent;
  line-height: 18px;
  border-radius: 8px 0 0 8px;
  font-size: .9em;
  width: 0;
  transition: width 1s ease-in-out;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
  animation: 1s linear infinite moveBackground;
}
@keyframes moveBackground {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}
.bar-chart .bar, .pola-slot-table .pola-result .success, .progress-bar.green {
  background-color: #4caf50;
}
.progress-bar.orange {
  background-color: #ff9800;
}
.pola-slot-table .pola-result .fail, .progress-bar.red {
  background-color: #f44336;
}
.progress-bar-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;                        /* teks % putih */
  font-weight: 700;
  font-size: .85em;
}

/* ====== Info di Card ====== */
.game-info {
  min-height: 114px;
  background: #111111;               /* panel gelap */
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  border: 1px solid #FFD700;         /* outline kuning */
}
.game-info p, .pola-slot {
  margin: 5px 0;
  font-size: .8em;
}
.gacor-time {
  color: #FFD700;                    /* teks jam kuning */
  font-weight: 700;
}

/* ====== Pola table ====== */
.pola-slot {
  min-height: 84px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}
.pola-slot-table {
  width: 100%;
  border-collapse: collapse;
}
.pola-slot-table td {
  padding: 5px;
  text-align: left;
  font-size: .8em;
}
.pola-slot-table .pola-value {
  text-align: right;
  font-weight: 700;
  color: #FFD700;                    /* angka di kanan kuning */
}
.pola-slot-table .pola-result, .popup-content {
  text-align: center;
}
.pola-slot-table .pola-result span {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.pola-unavailable {
  color: #f44;
  font-weight: 700;
}

/* ====== Responsive ====== */
@media screen and (max-width: 1024px) {
  .container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }
  .game-card { padding: 10px; }
  .game-title { font-size: .9em; }
  .progress-bar, .progress-bar-text { font-size: .8em; }
  .progress-bar { height: 16px; }
  .game-info p, .pola-slot { font-size: .75em; }
}
@media screen and (max-width: 768px) {
  .container { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .game-card { padding: 8px; }
  .game-title { font-size: .8em; }
  .progress-bar, .progress-bar-text { font-size: .75em; }
  .progress-bar { height: 14px; }
  .game-info p, .pola-slot { font-size: .7em; }
}

/* ====== Popup ====== */
.popup {
  display: none;
  position: fixed;
  z-index: 9;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, .4);
  justify-content: center;
  align-items: center;
}
.popup-container {
  padding: 20px;
  border: none;
  width: auto;
}
.popup-content {
  background-color: #000000;         /* popup hitam */
  border-radius: 8px;
  padding: 20px;
  max-width: 400px;
  margin: auto;
  border: 2px solid #FFD700;         /* outline kuning */
  color: #fff;
}
.popup-content h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #FFD700;                     /* judul kuning */
}
.popup-content input[type=number] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #FFD700;         /* input outline kuning */
  font-size: 16px;
  box-sizing: border-box;
  background-color: #111111;
  color: #fff;
  transition: border-color .3s;
}
.popup-content button, .popup-content button:hover {
  background-color: #FFD700;         /* tombol kuning */
  color: #000;
}
.popup-content input[type=number]:focus {
  border-color: #FFD700;
  outline: 0;
}
.popup-content button {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 2px solid #FFD700;
  font-size: 16px;
  cursor: pointer;
}

/* ====== Simulation & Bar Chart ====== */
.simulation-result-container {
  margin-top: 20px;
  border-top: 1px solid #222;        /* gelap */
}
.simulation-result-container p {
  font-size: 16px;
  color: #ccc;                        /* teks jadi terang */
  margin: 10px 0;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: 700;
}
.close:focus, .close:hover, .simulasi-button {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.simulasi-button {
  background-color: #FFD700;         /* tombol kuning */
  color: #000;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 700;
  margin-top: 10px;
  display: inline-block;
  border: 2px solid #FFD700;
}
.simulation-result-container {
  text-align: center;
  padding: 20px;
}
.probability-text { font-weight: 700; color: #4caf50; }
.winning-amount-text { font-weight: 700; color: #ff9800; }
.explanation {
  line-height: 1.5;
  margin-top: 20px;
  text-align: left;
  color: #bbb;
  font-size: .9em;
}
.bar-chart {
  margin-top: 20px;
  width: 100%;
  background-color: #111111;         /* bar area gelap */
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 30px;
  border: 1px solid #FFD700;         /* outline kuning */
}
.bar {
  height: 100%;
  color: #000;                        /* teks di bar */
  text-align: right;
  padding-right: 10px;
  line-height: 30px;
  border-radius: 8px 0 0 8px;
  transition: width .4s ease-in-out;
  background: linear-gradient(90deg, #FFD700 0%, #FFC400 100%); /* bar kuning */
}

/* ====== Header strip & Filter ====== */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #111111;         /* panel gelap */
  border-radius: 5px;
  border: 1px solid #FFD700;
}
.running-text {
  flex: 1;
  color: #FFD700;
  font-weight: 700;
  padding-right: 20px;
}
.filter-container {
  position: relative;
  display: inline-block;
  text-align: right;
}
.filter-container select {
  padding: 8px 30px 8px 12px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #FFD700;         /* outline kuning */
  color: #fff;
  cursor: pointer;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background: #111111;               /* dropdown gelap */
}
.filter-container select:hover {
  border-color: #FFD700;
}
.filter-container select:focus {
  border-color: #FFD700;
  box-shadow: 0 0 5px rgba(255, 215, 0, .35);
  outline: 0;
}
.filter-container::after {
  content: '\25BC';
  font-size: 12px;
  color: #FFD700;                     /* ikon panah kuning */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
