/* =========================================
   PUSAT GAME - MODERN DARK UI
   ========================================= */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  background: #0b1020 url('bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
}

/* =========================
   HEADER
   ========================= */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 24px 18px 28px;

  background:
    linear-gradient(
      135deg,
      #6d28d9,
      #7c3aed 45%,
      #9333ea
    ) !important;

  color: white;

  border-radius: 0 0 30px 30px;

  box-shadow:
    0 12px 35px rgba(124, 58, 237, 0.35);
}

.brand-title {
  font-size: 29px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -1px;
}

.brand-sub {
  margin-top: 10px;

  color: rgba(255,255,255,.82);

  font-size: 12px;
  line-height: 1.45;
}

.help-btn {
  border: 1px solid rgba(255,255,255,.25);

  background: rgba(255,255,255,.14);

  color: white;

  padding: 11px 13px;

  border-radius: 14px;

  font-size: 12px;
  font-weight: 800;

  backdrop-filter: blur(10px);
}

/* =========================
   MAIN
   ========================= */

main {
  padding: 22px 15px 30px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h1 {
  margin: 0;

  color: white;

  font-size: 24px;
  font-weight: 900;
}

.game-count {
  margin-top: 5px;

  color: #94a3b8;

  font-size: 12px;
}

/* =========================
   SORT
   ========================= */

.sort-box {
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 16px;

  padding: 14px 16px;

  border: 1px solid #26314a;

  border-radius: 16px;

  background: #151c2f;

  color: #e2e8f0;

  font-size: 13px;
  font-weight: 700;
}

/* =========================
   GAME LIST
   ========================= */

.game-list {
  display: flex;

  flex-direction: column;

  gap: 14px;
}

/* =========================
   GAME CARD
   ========================= */

.game-card {
  display: flex;

  gap: 14px;

  padding: 15px;

  background:
    linear-gradient(
      145deg,
      #151c2f,
      #101728
    ) !important;

  border: 2px solid #facc15 !important;

  border-radius: 23px;

  box-shadow:
    0 10px 30px rgba(0,0,0,.28);

  color: white;
}

.game-card:active {
  transform: scale(.985);
}

/* =========================
   GAME ICON
   ========================= */

.game-icon {
  width: 70px;
  height: 70px;

  min-width: 70px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      #facc15,
      #f59e0b
    );

  color: #111827;

  font-size: 35px;

  overflow: hidden;

  box-shadow:
    0 6px 18px rgba(250,204,21,.22);
}

.game-icon img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* =========================
   GAME INFO
   ========================= */

.game-info {
  min-width: 0;

  flex: 1;
}

.game-info h3 {
  margin: 1px 0 6px;

  color: white;

  font-size: 17px;

  font-weight: 900;
}

.game-info p {
  margin: 0 0 10px;

  color: #94a3b8;

  font-size: 11px;

  line-height: 1.45;
}

/* =========================
   GAME META
   ========================= */

.game-meta {
  display: flex;

  gap: 7px;

  margin-bottom: 10px;

  flex-wrap: wrap;
}

.game-meta span {
  padding: 5px 8px;

  border-radius: 9px;

  background: #202a40;

  color: #cbd5e1;

  font-size: 10px;

  font-weight: 700;
}

/* =========================
   BUTTON
   ========================= */

.game-open-btn {
  width: 100%;

  border: 0;

  padding: 10px;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #facc15,
      #f59e0b
    );

  color: #111827;

  font-size: 12px;

  font-weight: 900;

  box-shadow:
    0 5px 15px rgba(250,204,21,.18);
}

/* =========================
   MESSAGE
   ========================= */

.message {
  padding: 16px;

  border-radius: 16px;

  background: #151c2f;

  border: 1px solid #26314a;

  color: #94a3b8;

  text-align: center;

  font-size: 13px;
}

.hidden {
  display: none !important;
}

/* =========================
   BOTTOM NAV
   ========================= */

.bottom-nav {
  position: fixed;

  left: 10px;
  right: 10px;
  bottom: 10px;

  z-index: 1000;

  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 5px;

  padding: 7px;

  background: rgba(15,23,42,.96);

  border: 1px solid #29354f;

  border-radius: 21px;

  box-shadow:
    0 15px 40px rgba(0,0,0,.45);

  backdrop-filter: blur(15px);
}

.bottom-nav button {
  border: 0;

  background: transparent;

  color: #64748b;

  padding: 9px 3px;

  border-radius: 14px;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 4px;

  font-size: 10px;
}

.bottom-nav button span {
  font-size: 19px;
}

.bottom-nav button b {
  font-size: 9px;
}

.bottom-nav button.active {
  background: #2b1b50;

  color: #c084fc;
}

/* =========================
   MODAL
   ========================= */

.modal {
  position: fixed;

  inset: 0;

  z-index: 2000;

  display: flex;

  align-items: flex-end;

  justify-content: center;

  background: rgba(0,0,0,.65);

  backdrop-filter: blur(5px);
}

.modal.hidden {
  display: none;
}

.modal-card {
  position: relative;

  width: 100%;

  max-width: 520px;

  max-height: 88vh;

  overflow-y: auto;

  padding: 23px 16px 30px;

  background: #111827;

  border-radius: 28px 28px 0 0;

  border-top: 1px solid #334155;

  box-shadow:
    0 -15px 45px rgba(0,0,0,.5);
}

.modal-close {
  position: absolute;

  top: 12px;
  right: 12px;

  width: 36px;
  height: 36px;

  border: 0;

  border-radius: 50%;

  background: #263147;

  color: white;

  font-size: 23px;
}

.modal-card h2 {
  margin: 0 45px 12px 0;

  color: white;

  font-size: 22px;
}

.modal-card h3 {
  color: white;
}

/* =========================
   TASK
   ========================= */

.task-list {
  display: flex;

  flex-direction: column;

  gap: 10px;
}

.task-card {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  padding: 13px;

  background: #151c2f;

  border: 1px solid #29354f;

  border-radius: 17px;
}

.task-info {
  flex: 1;

  min-width: 0;
}

.task-info strong {
  color: white;

  font-size: 14px;
}

.task-info p {
  color: #94a3b8;

  font-size: 11px;

  line-height: 1.4;
}

.task-reward {
  color: #facc15;

  font-size: 11px;

  font-weight: 900;
}

.task-claim-btn {
  border: 0;

  padding: 9px 13px;

  border-radius: 11px;

  background: #facc15;

  color: #111827;

  font-size: 11px;

  font-weight: 900;
}

.task-claim-btn:disabled {
  background: #475569;

  color: #cbd5e1;
}

/* =========================
   TASK GAME
   ========================= */

.task-game-button {
  width: 100%;

  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 9px;

  padding: 14px;

  border: 1px solid #29354f;

  border-radius: 16px;

  background: #151c2f;

  color: white;

  text-align: left;
}

.task-game-button span:first-child {
  width: 42px;
  height: 42px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #2b1b50;

  font-size: 22px;
}

.task-game-button b {
  flex: 1;

  font-size: 14px;
}

.task-game-button span:last-child {
  color: #64748b;

  font-size: 22px;
}

/* =========================
   PROFILE
   ========================= */

.profile-balance {
  padding: 21px;

  margin: 15px 0;

  background:
    linear-gradient(
      135deg,
      #6d28d9,
      #9333ea
    );

  border-radius: 21px;

  color: white;

  box-shadow:
    0 10px 30px rgba(124,58,237,.3);
}

.profile-balance small {
  color: #ddd6fe;

  font-size: 11px;
}

.profile-balance strong {
  display: block;

  margin-top: 5px;

  font-size: 28px;
}

.profile-box {
  padding: 5px 15px;

  background: #151c2f;

  border: 1px solid #29354f;

  border-radius: 18px;
}

.profile-row {
  display: flex;

  justify-content: space-between;

  gap: 15px;

  padding: 14px 0;

  border-bottom: 1px solid #29354f;

  font-size: 12px;
}

.profile-row:last-child {
  border-bottom: 0;
}

.profile-row span {
  color: #94a3b8;
}

.profile-row b {
  color: white;

  text-align: right;

  word-break: break-word;
}

/* =========================
   MINING
   ========================= */

.mining-hero {
  padding: 21px;

  margin: 15px 0;

  background:
    linear-gradient(
      135deg,
      #6d28d9,
      #9333ea
    );

  border-radius: 21px;

  color: white;

  box-shadow:
    0 10px 30px rgba(124,58,237,.3);
}

.mining-hero small {
  color: #ddd6fe;

  font-size: 11px;
}

.mining-hero strong {
  display: block;

  margin-top: 5px;

  font-size: 28px;
}

.mining-hero p {
  margin: 10px 0 0;

  font-size: 12px;

  color: rgba(255,255,255,.85);

  line-height: 1.5;
}

.mining-levelbar {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10px;

  margin: 14px 0;
}

.mining-levelbar .lv-box {
  padding: 14px;

  background: #151c2f;

  border: 1px solid #29354f;

  border-radius: 16px;

  text-align: center;
}

.mining-levelbar .lv-box small {
  display: block;

  color: #94a3b8;

  font-size: 10px;
}

.mining-levelbar .lv-box b {
  display: block;

  margin-top: 5px;

  color: #facc15;

  font-size: 20px;
}

.mining-tiers {
  background: #151c2f;

  border: 1px solid #29354f;

  border-radius: 16px;

  overflow: hidden;

  margin-bottom: 14px;
}

.mining-tiers .tier {
  display: flex;

  justify-content: space-between;

  padding: 12px 14px;

  font-size: 12px;

  border-bottom: 1px solid #29354f;
}

.mining-tiers .tier:last-child {
  border-bottom: 0;
}

.mining-tiers .tier.active {
  background: #2b1b50;
}

.mining-tiers .tier b {
  color: #facc15;
}

.mining-claim-btn {
  width: 100%;

  border: 0;

  padding: 15px;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #facc15,
      #f59e0b
    );

  color: #111827;

  font-size: 15px;

  font-weight: 900;

  box-shadow:
    0 5px 15px rgba(250,204,21,.18);
}

.mining-claim-btn:disabled {
  background: #475569;

  color: #cbd5e1;

  box-shadow: none;
}

/* =========================
   APK
   ========================= */

.apk-btn {
  display: none !important;
}

/* =========================
   VIEW
   ========================= */

.view {
  padding-bottom: 10px;
}

/* =========================
   TOMBOL NOMINAL
   ========================= */

.nominal-btn.active {
  border-color: #facc15;
  background: #2b1b50;
}

/* =========================
   TOMBOL METODE (DANA / OVO / dll)
   ========================= */

#metodeList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.metode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 10px 6px;

  border: 1.5px solid #29354f;
  border-radius: 14px;

  background: linear-gradient(160deg, #1a2338, #141b2c);

  color: #cbd5e1;

  font-size: 11px;
  font-weight: 800;

  transition: all .15s ease;
}

.metode-btn::before {
  content: "";
  width: 34px;
  height: 34px;

  border-radius: 10px;

  background: #334155;

  color: white;

  font-size: 15px;
  font-weight: 900;

  display: flex;
  align-items: center;
  justify-content: center;
}

.metode-btn[data-metode="DANA"]::before {
  content: "D";
  background: linear-gradient(135deg, #118eea, #0b6fc2);
}

.metode-btn[data-metode="OVO"]::before {
  content: "O";
  background: linear-gradient(135deg, #4c2a8a, #6d28d9);
}

.metode-btn[data-metode="GoPay"]::before {
  content: "G";
  background: linear-gradient(135deg, #00adef, #00a651);
}

.metode-btn[data-metode="BRI"]::before {
  content: "BRI";
  font-size: 11px;
  background: linear-gradient(135deg, #00529c, #003d75);
}

.metode-btn[data-metode="BCA"]::before {
  content: "BCA";
  font-size: 11px;
  background: linear-gradient(135deg, #0060af, #00457d);
}

.metode-btn[data-metode="Mandiri"]::before {
  content: "M";
  background: linear-gradient(135deg, #f7b500, #d99a00);
  color: #1a1a1a;
}

.metode-btn.active {
  border-color: #facc15;
  background: linear-gradient(160deg, #2b1b50, #1e1438);
  color: #fff;
  box-shadow: 0 6px 18px rgba(250, 204, 21, .22);
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 360px) {

  .brand-title {
    font-size: 25px;
  }

  .game-card {
    padding: 12px;
  }

  .game-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
  }

  .game-info h3 {
    font-size: 15px;
  }

}