:root{
  --bg:#171a1f;
  --bg2:#1f242c;
  --text:#e9eef6;
  --muted:#a5afbd;
  --accent:#c07cff;
  --card: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.10);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* TOPBAR */
.topbar{
  height:72px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:0 18px;
  background: rgba(20,24,29,.95);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.burger{
  width:46px;height:46px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  display:grid;
  place-items:center;
}
.burger span{
  width:18px;height:2px;background:var(--text);
  position:relative;border-radius:99px;
}
.burger span::before,
.burger span::after{
  content:"";
  position:absolute;left:0;
  width:18px;height:2px;background:var(--text);
  border-radius:99px;
}
.burger span::before{top:-6px}
.burger span::after{top:6px}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.4px;
  font-size:30px;
}
.logo-mark{
  width:22px;height:22px;
  border-radius:8px;
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(192,124,255,.25);
}
.brand-text{
  color:var(--text);
  text-transform:lowercase;
}
.brand-accent{
  color:var(--accent);
}

.footer-brand .logo-img{
  width:95px;
  height:95px;
}

.logo-img{
  width:80px;
  height:80px;
  object-fit:contain;
  border-radius:8px;
}

/* SIDEBAR */
.overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  opacity:0;
  pointer-events:none;
  transition:.2s;
  z-index:20;
}

.overlay.show{
  opacity:1;
  pointer-events:auto; 
}


.sidebar{
  position:fixed;
  top:0;left:0;
  width:320px;
  height:100%;
  background: rgba(20,24,29,.98);
  border-right:1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  transform: translateX(-110%);
  transition:.25s ease;
  z-index:30;
  padding:18px;
}
.sidebar.open{
  transform: translateX(0);
}

.sidebar-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.sidebar-brand{
  font-size:28px;
}

.close{
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  font-size:18px;
}

.menu{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.menu-item{
  text-decoration:none;
  color:var(--text);
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}
.menu-item:hover{
  border-color: rgba(192,124,255,.35);
  background: rgba(192,124,255,.08);
}
.menu-icon{
  width:36px;height:36px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}

/* MAIN */
.container{
  width:min(1200px, calc(100% - 32px));
  margin:18px auto;
}

/* HERO SLIDER */
/* HERO SLIDER */
.hero{
  background: rgba(255,255,255,.02);
  border-radius:18px;
}

.slider{
  position:relative;
  height:380px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}

.slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition: opacity .35s ease;
}

.slide.active{
  opacity:1;
}

.slide-img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.slide.active{
  opacity:1;
}

.slide-inner{
  height:100%;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
  padding:26px;
  align-items:center;
}

.left{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.badge{
  display:inline-block;
  width:max-content;
  padding:18px 22px;
  border-radius:10px;
  background:#d50000;
  color:white;
  font-weight:900;
  font-size:58px;
  letter-spacing:1px;
}
.badge-sub{
  width:max-content;
  padding:8px 12px;
  border-radius:6px;
  background:#d50000;
  color:white;
  font-weight:900;
  font-size:22px;
}

.right{
  display:flex;
  justify-content:flex-end;
}

.pass-card{
  width:min(420px, 100%);
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:14px;
}

.pass-tabs{
  display:flex;
  gap:8px;
  margin-bottom:10px;
}
.tab{
  flex:1;
  text-align:center;
  padding:10px 10px;
  border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  font-weight:800;
  font-size:13px;
  color: var(--muted);
}
.tab.active{
  background: rgba(192,124,255,.18);
  border-color: rgba(192,124,255,.35);
  color: var(--text);
}

.pass-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
}
.pass-list li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 10px;
  border-radius:12px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.06);
  font-size:13px;
}

.pass-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:12px;
  gap:10px;
}
.price{
  font-weight:900;
}
.buy{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.08);
  color:var(--text);
  cursor:pointer;
  font-weight:800;
}

/* DOTS */
.dots{
  position:absolute;
  left:50%;
  bottom:12px;
  transform: translateX(-50%);
  display:flex;
  gap:8px;
  z-index:5;
}
.dot{
  width:9px;height:9px;
  border-radius:99px;
  background: rgba(255,255,255,.35);
  border:1px solid rgba(255,255,255,.20);
  cursor:pointer;
  transition:.18s;
}
.dot.active{
  width:22px;
  background: var(--accent);
  border-color: rgba(192,124,255,.55);
}
/* ===== TABS (Game Top Up / Aplikasi Premium) ===== */
.tabs-section{
  margin-top:18px;
  padding: 8px 6px;
}

.tabs-header{
  display:flex;
  align-items:center;
  gap:18px;
}

.tab-btn{
  background: transparent;
  border:none;
  color: rgba(233,238,246,.85);
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  padding: 8px 2px;
  position:relative;
}

.tab-btn:hover{
  color: var(--text);
}

.tab-btn.active{
  color: var(--text);
}

.tabs-line{
  margin-top:10px;
  height:2px;
  width:100%;
  background: rgba(255,255,255,.10);
  position:relative;
  border-radius:99px;
}

.tabs-indicator{
  position:absolute;
  top:0;
  height:2px;
  width: 120px; /* akan diubah otomatis lewat JS */
  left:0;
  background: var(--text);
  border-radius:99px;
  transition: .25s ease;
}

/* content tab */
.tab-content{
  margin-top:14px;
}

.tab-panel{
  display:none;
}

.tab-panel.active{
  display:block;
}

/* dummy konten sementara */
.dummy-box{
  margin-top:10px;
  padding:18px;
  border-radius:16px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  color: var(--muted);
}

/* ===== GRID GAME CARD (seperti gambar) ===== */
.game-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:18px;
  align-items:start;
}

.game-card{
  position:relative;
  display:block;
  text-decoration:none;
  border-radius:22px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  transition: .18s ease;
  height: 210px;
}

.game-card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
}

.game-img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  filter: saturate(1.05);
}

/* strip pink bawah */
.game-footer{
  position:absolute;
  left:0; right:0; bottom:0;
  height:56px;
  background: rgba(255, 135, 160, .65);
  backdrop-filter: blur(2px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0 10px;
}

.game-logo-text{
  font-weight:900;
  letter-spacing:.8px;
  color: rgba(255,255,255,.95);
  font-size:14px;
  text-transform:uppercase;
  text-shadow: 0 10px 18px rgba(0,0,0,.35);
}

/* Card tengah (Magic Chess GOGO) ada teks overlay */
.game-card-center{
  border: 2px solid rgba(255,255,255,.65);
}

.game-center-text{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:6px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35));
}

.game-center-text h3{
  margin:0;
  font-size:18px;
  line-height:1.15;
  font-weight:900;
  color: rgba(255,255,255,.92);
}

.game-center-text p{
  margin:0;
  font-size:13px;
  color: rgba(255,255,255,.70);
}

.mini-icon{
  width:36px;
  height:36px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  font-weight:900;
}

/* Responsive */
@media (max-width: 1200px){
  .game-grid{grid-template-columns: repeat(4, 1fr);}
}

@media (max-width: 820px){
  .game-grid{grid-template-columns: repeat(3, 1fr);}
}

@media (max-width: 520px){
  .game-grid{grid-template-columns: repeat(2, 1fr);}
  .game-card{height: 190px;}
}

/* RESPONSIVE */
@media (max-width: 980px){
  .slide-inner{grid-template-columns:1fr}
  .right{justify-content:flex-start}
  .badge{font-size:44px}
}

/* ===== HOVER BLUR + LOGO + TEXT (seperti gambar) ===== */
.game-card{
  position:relative;
  overflow:hidden;
}

/* overlay awalnya tidak terlihat */
.game-hover{
  position:absolute;
  inset:12px;
  border-radius:18px;
  border: 2px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  opacity:0;
  transform: scale(.98);
  transition: .22s ease;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-end;
  padding:16px;
  gap:10px;
}

/* blur saat hover */
.game-card:hover .game-img,
.game-card.active .game-img{
  filter: blur(6px) brightness(.75) saturate(1.05);
  transform: scale(1.04);
  transition: .22s ease;
}

/* munculkan overlay */
.game-card:hover .game-hover,
.game-card.active .game-hover{
  opacity:1;
  transform: scale(1);
}

/* logo shop */
.shop-logo{
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%, -60%);
  width:60px;
  height:60px;
  object-fit:contain;
  opacity:.95;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}

/* text bawah kiri */
.game-hover-text h3{
  margin:0;
  font-size:20px;
  font-weight:900;
  color: rgba(255,255,255,.95);
}

.game-hover-text p{
  margin:0;
  font-size:14px;
  color: rgba(255,255,255,.75);
}

/* biar footer pink tidak ganggu overlay */
.game-card:hover .game-footer,
.game-card.active .game-footer{
  opacity:0;
  transform: translateY(8px);
  transition: .22s ease;
}
/* ===== FOOTER (seperti gambar) ===== */
.footer{
  margin-top: 60px;
  background: rgba(20,24,29,.95);
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-wrap{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 24px;
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 26px;
  align-items:start;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  font-size:56px;
  letter-spacing:.3px;
}

.footer-desc{
  margin: 14px 0 0;
  max-width: 520px;
  color: rgba(233,238,246,.85);
  font-size:18px;
  line-height:1.6;
}

.footer-right{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  justify-items:start;
}

.footer-col h4{
  margin: 10px 0 14px;
  font-size:16px;
  letter-spacing:.4px;
  color: rgba(233,238,246,.95);
}

.footer-col a{
  display:block;
  text-decoration:none;
  color: rgba(233,238,246,.88);
  font-size:18px;
  padding: 10px 0;
}

.footer-col a:hover{
  color: var(--accent);
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #1f2226;
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    font-size: 18px;
}

.social a:hover {
    background: #818cf8;
}

.help-title{
  margin-top: 6px !important;
}

.help-btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 14px 18px !important;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-weight:800;
  width: 220px;
}

.help-btn:hover{
  background: rgba(255,255,255,.10);
}

.lock{
  opacity:.9;
}

.footer-line{
  margin-top: 28px;
  height:1px;
  background: rgba(255,255,255,.10);
}

.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 26px;
  padding-top: 18px;
  color: rgba(233,238,246,.85);
  font-size:20px;
}

.footer-link{
  color: var(--accent);
  text-decoration:none;
  font-weight:700;
}

.footer-link:hover{
  text-decoration:underline;
}

/* responsive footer */
@media (max-width: 980px){
  .footer-grid{
    grid-template-columns: 1fr;
  }
  .footer-brand{
    font-size:44px;
  }
  .footer-desc{
    font-size:16px;
  }
  .footer-right{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px){
  .footer-right{
    grid-template-columns: 1fr;
  }
  .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
    font-size:16px;
  }
}

/* ===== POPUP SUKSES PEMBAYARAN ===== */
.pay-success-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.pay-success-box{
  width: min(420px, calc(100% - 30px));
  background: #22262c;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}

.pay-success-box h3{
  margin: 12px 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.pay-success-box p{
  margin: 0;
  opacity: .8;
  font-size: 13px;
}

/* Animasi centang */
.checkmark-circle{
  width: 88px;
  height: 88px;
  margin: 0 auto;
}

.checkmark{
  width: 88px;
  height: 88px;
  display: block;
}

.checkmark-circle-bg{
  stroke: #22c55e;
  stroke-width: 3;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: circleStroke .55s ease forwards;
}

.checkmark-check{
  stroke: #22c55e;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkStroke .35s .45s ease forwards;
}

@keyframes circleStroke{
  to{ stroke-dashoffset: 0; }
}

@keyframes checkStroke{
  to{ stroke-dashoffset: 0; }
}
