/* ===============================
   TOP UP CENTER - IKYYY (V3 CSS)
   =============================== */

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top, #0b0b12, #000000 75%);
  color:white;
  overflow-x:hidden;
}

/* ===============================
   HEADER
   =============================== */
.header{
  padding:15px;
  background: rgba(0,0,0,0.85);
  border-bottom: 2px solid rgba(255,255,255,0.08);
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:sticky;
  top:0;
  z-index:999;
  backdrop-filter: blur(10px);
  gap:10px;
  flex-wrap:wrap;
}

.logo{
  font-weight:bold;
  font-size:16px;
  letter-spacing:1px;
  color:#ffcc00;
  text-shadow: 0 0 15px rgba(255,204,0,0.25);
  white-space:nowrap;
}

.search{
  flex:1;
  min-width:200px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.65);
  color:white;
  outline:none;
  font-size:14px;
  transition:0.2s;
}

.search:focus{
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 18px rgba(255,255,255,0.12);
}

/* ===============================
   SALDO BOX
   =============================== */
.diamond-box{
  display:flex;
  align-items:center;
  gap:10px;
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.15);
  padding:10px 14px;
  border-radius:14px;
  white-space:nowrap;
}

.diamond-box span{
  font-weight:bold;
  font-size:14px;
  color:white;
  text-shadow: 0 0 12px rgba(255,255,255,0.25);
}

/* tombol tambah saldo (pengganti reset) */
.reset{
  border:none;
  border-radius:12px;
  background: linear-gradient(135deg, #00ffff, #0099ff);
  color:black;
  font-weight:bold;
  padding:8px 14px;
  cursor:pointer;
  transition:0.2s;
}

.reset:hover{
  transform:scale(1.05);
  box-shadow: 0 0 15px rgba(0,255,255,0.25);
}

.reset:active{
  transform:scale(0.95);
}

/* ===============================
   CONTAINER
   =============================== */
.container{
  padding:18px;
}

/* ===============================
   BANNER
   =============================== */
.banner{
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius:20px;
  padding:18px;
  box-shadow: 0 0 25px rgba(0,0,0,0.85);
  margin-bottom:18px;
}

.banner h2{
  margin:0;
  font-size:18px;
  color:white;
  text-shadow:0 0 14px rgba(255,255,255,0.25);
}

.banner p{
  margin-top:6px;
  opacity:0.8;
  font-size:13px;
  line-height:1.4;
}

/* ===============================
   GAME MENU SELECT
   =============================== */
.game-select{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:14px;
  margin-top:16px;
}

.game-card{
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:18px;
  padding:16px;
  cursor:pointer;
  transition:0.2s;
  text-align:center;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  user-select:none;
}

.game-card:hover{
  transform:scale(1.03);
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 22px rgba(255,255,255,0.12);
}

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

.game-title{
  font-size:16px;
  font-weight:bold;
  margin-bottom:6px;
  color:white;
  text-shadow:0 0 14px rgba(255,255,255,0.2);
}

/* warna nama game */
.ff{
  color:#00bfff;
  text-shadow: 0 0 12px rgba(0,191,255,0.3);
}

.mlbb{
  color:#00ff66;
  text-shadow: 0 0 12px rgba(0,255,102,0.25);
}

.roblox{
  color:white;
  text-shadow: 0 0 12px rgba(255,255,255,0.25);
}

.pubg{
  color:#ff0000;
  text-shadow: 0 0 15px rgba(255,0,0,0.4);
}

.game-desc{
  font-size:12px;
  opacity:0.75;
}

/* ===============================
   INPUT ID / NICNAME
   =============================== */
.id-box{
  margin-top:15px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.id-box input{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.65);
  color:white;
  outline:none;
  font-size:14px;
  transition:0.2s;
}

.id-box input:focus{
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 15px rgba(255,255,255,0.12);
}

.status-id{
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.65);
  font-size:13px;
  opacity:0.9;
  white-space:nowrap;
  color:white;
}

.selamat{
  font-size:13px;
  opacity:0.8;
  padding-left:6px;
  color:white;
  text-shadow: 0 0 12px rgba(255,255,255,0.2);
}

/* ===============================
   ROBLOX WARNING TEXT (MERAH HITAM BERJALAN)
   =============================== */
.roblox-warning{
  margin-top:10px;
  padding:10px 14px;
  border-radius:14px;
  background: rgba(0,0,0,0.65);
  border:1px solid rgba(255,255,255,0.12);
  font-weight:bold;
  text-align:center;
  letter-spacing:1px;
  font-size:12px;

  background: linear-gradient(90deg, #000000, #ff0000, #000000);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: moveColor 2.5s linear infinite;
}

@keyframes moveColor{
  0%{background-position:0% 50%;}
  100%{background-position:100% 50%;}
}

/* ===============================
   TAB DISCOUNT / NORMAL (FF ONLY)
   =============================== */
.tabs{
  display:flex;
  gap:10px;
  margin-top:18px;
  margin-bottom:15px;
}

.tab{
  flex:1;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color:white;
  font-weight:bold;
  text-align:center;
  cursor:pointer;
  transition:0.2s;
  user-select:none;
}

.tab:hover{
  border-color: rgba(255,255,255,0.35);
}

.tab.active{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
  color:white;
  box-shadow: 0 0 18px rgba(255,255,255,0.12);
}

/* ===============================
   PACK GRID
   =============================== */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap:14px;
}

.card{
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:18px;
  padding:14px;
  box-shadow: 0 0 18px rgba(0,0,0,0.8);
  transition:0.2s;
  position:relative;
  overflow:hidden;
}

.card:hover{
  transform:scale(1.03);
  border-color: rgba(255,255,255,0.35);
}

.card:active{
  transform:scale(0.96);
}

.tag{
  position:absolute;
  top:10px;
  right:10px;
  padding:5px 10px;
  border-radius:12px;
  font-size:11px;
  font-weight:bold;
  background: rgba(0,0,0,0.65);
  border:1px solid rgba(255,255,255,0.15);
  color:white;
}

.pack-name{
  font-weight:bold;
  font-size:15px;
  margin-bottom:6px;
  color:white;
}

.pack-dm{
  font-size:18px;
  font-weight:bold;
  color:white;
  text-shadow:0 0 15px rgba(255,255,255,0.25);
  margin-bottom:8px;
}

.pack-price{
  opacity:0.85;
  font-size:13px;
  margin-bottom:12px;
  color:white;
}

/* tombol pilih paket */
.btn{
  width:100%;
  padding:11px;
  border:none;
  border-radius:14px;
  background: linear-gradient(135deg, #ffffff, #bbbbbb);
  font-weight:bold;
  cursor:pointer;
  transition:0.2s;
  color:black;
}

.btn:hover{
  transform:scale(1.03);
}

.btn:active{
  transform:scale(0.95);
}

/* ===============================
   PAYMENT METHODS
   =============================== */
.method-box{
  margin-top:18px;
  padding:14px;
  border-radius:18px;
  background: rgba(0,0,0,0.55);
  border:1px solid rgba(255,255,255,0.10);
}

.method-box h3{
  margin-bottom:10px;
  font-size:15px;
  color:white;
  text-shadow:0 0 12px rgba(255,255,255,0.2);
}

.methods{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap:10px;
}

.method{
  padding:12px;
  border-radius:14px;
  background: rgba(0,0,0,0.75);
  border:1px solid rgba(255,255,255,0.12);
  text-align:center;
  font-weight:bold;
  cursor:pointer;
  transition:0.2s;
  user-select:none;
  font-size:13px;
  color:white;
}

.method:hover{
  transform:scale(1.02);
  border-color: rgba(255,255,255,0.35);
}

.method.active{
  border-color: rgba(255,255,255,0.75);
  box-shadow: 0 0 18px rgba(255,255,255,0.15);
  color:white;
}

/* ===============================
   PAYMENT BAR
   =============================== */
.payment-bar{
  margin-top:18px;
  padding:14px;
  border-radius:18px;
  background: rgba(0,0,0,0.75);
  border:1px solid rgba(255,255,255,0.12);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.pay-info{
  font-size:13px;
  opacity:0.9;
  line-height:1.4;
  color:white;
}

.btn-pay{
  padding:12px 16px;
  border:none;
  border-radius:14px;
  background: linear-gradient(135deg, #00ffff, #0099ff);
  font-weight:bold;
  cursor:pointer;
  color:black;
  min-width:150px;
  transition:0.2s;
}

.btn-pay:hover{
  transform:scale(1.04);
}

.btn-pay:active{
  transform:scale(0.95);
}

.btn-pay:disabled{
  opacity:0.35;
  cursor:not-allowed;
}

/* ===============================
   HISTORY
   =============================== */
.history{
  margin-top:18px;
  padding:14px;
  border-radius:18px;
  background: rgba(0,0,0,0.55);
  border:1px solid rgba(255,255,255,0.10);
}

.history h3{
  margin-bottom:10px;
  color:white;
  text-shadow:0 0 12px rgba(255,255,255,0.15);
}

.history-list{
  max-height:220px;
  overflow:auto;
  font-size:13px;
  opacity:0.9;
  color:white;
}

.history-item{
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}

/* ===============================
   POPUP
   =============================== */
.popup-bg{
  position:fixed;
  top:0; left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.85);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.popup{
  width:88%;
  max-width:360px;
  background: #07070f;
  border-radius:20px;
  padding:20px;
  text-align:center;
  border:2px solid rgba(255,255,255,0.15);
  box-shadow:0 0 25px rgba(0,0,0,0.9);
}

.loading{
  width:55px;
  height:55px;
  border-radius:50%;
  border:5px solid rgba(255,255,255,0.15);
  border-top:5px solid white;
  margin:15px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin{
  0%{transform:rotate(0deg);}
  100%{transform:rotate(360deg);}
}

.success{
  font-size:50px;
  color:white;
  display:none;
  margin:10px 0;
  text-shadow:0 0 20px rgba(255,255,255,0.25);
}

.popup-title{
  font-size:18px;
  font-weight:bold;
  margin-bottom:6px;
  color:white;
}

.popup-text{
  opacity:0.85;
  font-size:13px;
  margin-bottom:14px;
  line-height:1.4;
  white-space:pre-line;
  color:white;
}

.btn-close{
  display:none;
  padding:12px;
  border-radius:14px;
  background: linear-gradient(135deg, #ffffff, #bbbbbb);
  font-weight:bold;
  cursor:pointer;
  color:black;
  user-select:none;
  transition:0.2s;
}

.btn-close:hover{
  transform:scale(1.04);
}

.btn-close:active{
  transform:scale(0.95);
}

/* ===============================
   BACK BUTTON
   =============================== */
.btn-back{
  display:none;
  margin-bottom:12px;
  padding:10px 14px;
  border:none;
  border-radius:14px;
  background: rgba(0,0,0,0.65);
  border:1px solid rgba(255,255,255,0.15);
  color:white;
  font-weight:bold;
  cursor:pointer;
  transition:0.2s;
}

.btn-back:hover{
  border-color: rgba(255,255,255,0.4);
  transform:scale(1.03);
}

.btn-back:active{
  transform:scale(0.95);
}

/* ===============================
   ANIMATION FADE
   =============================== */
@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(15px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
