/* RESET */
*{box-sizing:border-box;margin:0;padding:0}

body{
  font-family:sans-serif;
  background:radial-gradient(circle at top,#3b1400,#020617);
  color:#fff;
}

/* ===== CONTAINER ===== */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 12px;
}

/* ===== PROVIDER PREMIUM ===== */
.provider-wrapper{
  position:relative;
  margin:15px 0;
  padding:12px 40px;

  border-radius:18px;

  background:linear-gradient(135deg,#facc15,#b45309,#78350f);

  box-shadow:
    0 8px 25px rgba(0,0,0,0.4),
    inset 0 0 20px rgba(255,255,255,0.1);
}

/* STRIP DALAM */
.provider-tabs{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:4px;
}

/* HILANGIN SCROLLBAR */
.provider-tabs::-webkit-scrollbar{
  display:none;
}

/* ITEM */
.prov-tab{
  flex:0 0 auto;

  width:70px;
  height:55px;

  border-radius:12px;

  background:linear-gradient(145deg,#A67500,#7a5400);

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;
  transition:.2s;

  border:1px solid rgba(255,215,0,0.5);

  box-shadow:
    inset 0 0 6px rgba(255,255,255,0.2),
    0 3px 8px rgba(0,0,0,0.4);
}

/* HOVER EFFECT */
.prov-tab:hover{
  transform:scale(1.08);
  box-shadow:
    0 0 12px rgba(255,200,0,0.6);
}

/* ACTIVE */
.prov-tab.active{
  border:2px solid #facc15;
  box-shadow:0 0 10px rgba(255,215,0,0.8);
}

/* LOGO */
.prov-tab img{
  max-width:48px;
}

/* ARROW FIX */
.prov-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);

  width:30px;
  height:30px;

  border-radius:50%;

  background:#000;
  color:#facc15;

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;
  z-index:5;

  font-size:16px;
}

.prov-arrow.left{left:8px}
.prov-arrow.right{right:8px}

/* ===== SEARCH ===== */
.search-input{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:none;
  background:linear-gradient(135deg,#facc15,#a16207);
  color:#000;
  font-weight:bold;
}

/* ===== GRID ===== */
.slot-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-top:15px;
}

@media(max-width:1024px){
  .slot-grid{grid-template-columns:repeat(3,1fr);}
}

@media(max-width:600px){
  .slot-grid{grid-template-columns:repeat(2,1fr);}
}

/* ===== CARD ===== */
.slot-card{
  background:#111;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,215,0,0.3);
  transition:.2s;
}

.slot-card:hover{
  transform:translateY(-6px) scale(1.02);
  box-shadow:0 12px 30px rgba(255,200,0,0.4);
}

/* IMAGE */
.img-wrap{
  position:relative;
}

.slot-img{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  display:block;
}

/* BADGE */
.badge{
  position:absolute;
  top:8px;
  left:8px;
  font-size:11px;
  padding:4px 8px;
  border-radius:6px;
  font-weight:bold;
  color:#fff;
}

.badge.gacor{background:#22c55e}
.badge.medium{background:#f59e0b}
.badge.low{background:#ef4444}

/* POLA BUTTON */
.pola-btn{
  position:absolute;
  bottom:8px;
  right:8px;
  background:rgba(0,0,0,0.8);
  color:#fff;
  font-size:10px;
  padding:5px 8px;
  border-radius:8px;
  z-index:5;           /* 🔥 penting */
  border:1px solid rgba(255,255,255,0.2);
  cursor:pointer;
}

/* INFO */
.slot-info{
  background:linear-gradient(180deg,#a16207,#78350f);
  padding:10px;
}

.slot-name{
  font-size:13px;
  font-weight:bold;
}

.slot-provider{
  font-size:11px;
  opacity:0.8;
}

/* RTP */
.rtp-row{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:6px;
}

.rtp-value{
  font-size:12px;
  font-weight:bold;
}

.rtp-bar{
  flex:1;
  height:6px;
  background:#000;
  border-radius:6px;
}

.rtp-fill{
  height:100%;
  border-radius:6px;
}

/* ===== BUTTON MODERN ===== */
.btn-main{
  display:block;
  text-align:center;
  margin-top:10px;
  padding:10px;
  border-radius:12px;

  background:linear-gradient(135deg,#fde047,#f59e0b,#ea580c);
  color:#000;
  font-weight:700;
  font-size:13px;
  letter-spacing:0.3px;

  text-decoration:none; /* ðŸ”¥ HILANGIN GARIS */
  border:none;

  transition:all 0.2s ease;
}

/* HOVER */
.btn-main:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 15px rgba(255,200,0,0.4);
}

/* CLICK */
.btn-main:active{
  transform:scale(0.96);
}


/* ===== LEADERBOARD FINAL FIX ===== */
.leaderboard{
  margin-top:15px;
  padding:14px;
  border-radius:16px;
  background:linear-gradient(135deg,#facc15,#92400e);
}

.leader-title{
  font-weight:700;
  margin-bottom:10px;
  color:#000;
}

/* ðŸ”¥ FIX UTAMA */
.leader-list{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom:6px;
}

.leader-list::-webkit-scrollbar{
  height:6px;
}

.leader-list::-webkit-scrollbar-thumb{
  background:#000;
  border-radius:10px;
}

/* CARD */
.leader-item{
  flex:0 0 auto;
  width:150px;
  background:#020617;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,215,0,0.4);
  transition:.2s;
}

.leader-item:hover{
  transform:translateY(-4px);
}

/* IMAGE */
.leader-img{
  width:100%;
  height:100px;
  object-fit:cover;
}

/* INFO */
.leader-info{
  padding:8px;
}

.leader-name{
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.leader-rtp{
  font-size:11px;
  color:#22c55e;
}

/* ===== HERO TOP 1 ===== */
.leader-hero{
  display:flex;
  gap:12px;
  margin-bottom:12px;
  background:#020617;
  border-radius:14px;
  overflow:hidden;
  border:2px solid gold;
}

.leader-hero img{
  width:120px;
  height:100%;
  object-fit:cover;
}

.leader-hero-info{
  padding:10px;
  flex:1;
}

.leader-hero-name{
  font-weight:bold;
  font-size:14px;
}

.leader-hero-rtp{
  color:#22c55e;
  margin-top:4px;
}

/* BADGE #1 */
.leader-badge{
  position:absolute;
  background:gold;
  color:#000;
  font-size:10px;
  padding:3px 6px;
  border-radius:6px;
  top:6px;
  left:6px;
  font-weight:bold;
}

/* LEADER ITEM UPGRADE */
.leader-item{
  position:relative;
}

.stats-wrapper{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
  margin:20px 0;
}

.stat-box{
  background:linear-gradient(135deg,#facc15,#a16207);
  padding:20px;
  border-radius:16px;
  text-align:center;
  color:#000;
  font-weight:bold;
  box-shadow:0 4px 15px rgba(255,200,0,0.3);
}

.stat-value{
  font-size:22px;
  margin-bottom:5px;
}

.stat-label{
  font-size:11px;
  letter-spacing:1px;
  opacity:0.8;
}

/* MOBILE */
@media(max-width:600px){
  .stats-wrapper{
    grid-template-columns:repeat(2,1fr);
  }
}

/* ===== HEADER RTP ===== */
.header-rtp{
  text-align:center;
  margin:20px 0;
}

/* ðŸ”¥ JUDUL KEDIP EMAS */
.rtp-title{
  font-size:32px;
  font-weight:bold;
  letter-spacing:4px;

  background:linear-gradient(90deg,#facc15,#fef08a,#facc15);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;

  animation:goldBlink 2s infinite;
}

/* ðŸ”¥ ANIMASI KEDIP */
@keyframes goldBlink{
  0%{
    filter:brightness(1);
    text-shadow:0 0 10px rgba(255,215,0,0.6);
  }
  50%{
    filter:brightness(0.4);
    text-shadow:none;
  }
  100%{
    filter:brightness(1);
    text-shadow:0 0 10px rgba(255,215,0,0.6);
  }
}

/* ===== SUB TEXT ===== */
.rtp-sub{
  margin-top:6px;
  font-size:13px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

/* ðŸ”¥ LIVE DOT */
.live-dot{
  width:8px;
  height:8px;
  background:#22c55e;
  border-radius:50%;
  animation:blink 1s infinite;
}

@keyframes blink{
  0%{opacity:1}
  50%{opacity:0.2}
  100%{opacity:1}
}

/* LIVE TEXT */
.live-text{
  color:#22c55e;
  font-weight:bold;
}

/* INFO TEXT */
.rtp-info{
  color:#ccc;
}

/* ===== TOPBAR WRAPPER ===== */
.topbar{
  width:100%;
  display:flex;
  justify-content:center;
  margin-top:10px;
}

/* ===== BOX ===== */
.topbar-inner{
  width:95%;
  max-width:1400px;

  background:linear-gradient(90deg,#facc15,#a16207);
  border-radius:12px;

  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:12px 18px; /* sedikit lebih tinggi */
  box-shadow:0 6px 20px rgba(0,0,0,0.35);
}

/* ===== LEFT AREA ===== */
.topbar-left{
  display:flex;
  align-items:center;
  gap:12px;
}

/* ðŸ”¥ LOGO (LEBIH GEDE) */
.logo-img{
  height:60px;        /* bukan 200 (nanti pecah layout) */
  width:auto;
  object-fit:contain;
}

/* ðŸ”¥ MOBILE */
@media(max-width:600px){
  .logo-img{
    height:48px;
  }
}

/* ðŸ”¥ TEXT RTP SLOT LIVE */
.topbar-sub{
  color:#000;
  font-weight:800;
  letter-spacing:1px;
  border-left:2px solid #000;
  padding-left:10px;
}

/* ðŸ”¥ BUTTON HOME */
.topbar-btn{
  padding:8px 18px;
  border-radius:10px;
  background:#000;
  color:#facc15;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
}



/* ===== BANNER ===== */
.promo-banner{
  max-width:1200px;
  margin:10px auto;
  padding:0 12px;
}

.promo-banner img{
  width:100%;
  border-radius:12px;
  display:block;
}

/* MOBILE */
@media(max-width:600px){
  .brand{
    font-size:16px;
  }

  .topbar-sub{
    display:none;
  }
}

/* ===== HERO DEWA ===== */
.leader-hero{
  display:flex;
  border:2px solid #FFD700;
  gap:14px;
  align-items:center;

  padding:14px;
  border-radius:16px;

  background:linear-gradient(135deg,#020617,#000);
  border:2px solid gold;

  box-shadow:
    0 0 12px rgba(255,215,0,0.3),
    inset 0 0 20px rgba(0,0,0,0.4);

  position:relative;
  overflow:hidden;
}

/* subtle glow bergerak */
.leader-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,0.15),transparent);
  animation:shineHero 4s linear infinite;
}

@keyframes shineHero{
  from{transform:translateX(-100%)}
  to{transform:translateX(100%)}
}

/* IMAGE */
.leader-hero img{
  width:95px;
  height:95px;
  border-radius:12px;
  object-fit:cover;
  flex-shrink:0;
  box-shadow:0 0 10px rgba(255,215,0,0.4);
}

/* INFO */
.leader-hero-info{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* TITLE */
.leader-hero-name{
  font-size:15px;
  font-weight:800;
}

/* RTP */
.leader-hero-rtp{
  color:#22c55e;
  font-weight:700;
}

/* RTP BAR ANIMASI HALUS */
.leader-hero .rtp-fill{
  animation:rtpGrow 1s ease;
}

@keyframes rtpGrow{
  from{width:0}
  to{width:100%}
}

/* BUTTON */
.leader-hero .btn-main{
  margin-top:6px;
  font-size:13px;
  padding:8px;
}

/* ===== MOBILE ===== */
@media(max-width:768px){
  .leader-hero{
    gap:10px;
    padding:10px;
  }

  .leader-hero img{
    width:70px;
    height:70px;
  }

  .leader-hero-name{
    font-size:13px;
  }
}

/* ===== HOT EFFECT ===== */
.slot-card.gacor{
  animation:hotPulse 2s infinite;
}

@keyframes hotPulse{
  0%{box-shadow:0 0 8px #22c55e}
  50%{box-shadow:0 0 18px #22c55e}
  100%{box-shadow:0 0 8px #22c55e}
}

/* MOBILE TAP EFFECT */
@media (hover: none){

  .slot-card:active{
    transform:scale(0.97);
    box-shadow:0 0 10px rgba(255,200,0,0.4);
  }

  .leader-item:active{
    transform:scale(0.95);
  }

}
/* FIX POLA BUTTON */
.img-wrap{
  position:relative;
}

.pola-btn{
  position:absolute;
  bottom:8px;
  right:8px;

  z-index:999; /* 🔥 ini kunci */
  cursor:pointer;

  background:linear-gradient(135deg,#fde047,#f59e0b);
  color:#000;
  padding:4px 8px;
  border-radius:8px;
  font-size:11px;
  font-weight:700;
}

.pola-btn:active{
  transform:scale(0.9);
}
/* OVERLAY */
.pola-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.75);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

/* BOX */
.pola-popup{
  width:95%;
  max-width:400px; /* 🔥 lebih besar */

  background:linear-gradient(135deg,#facc15,#a16207);
  border-radius:20px;
  padding:18px;

  color:#000;
  box-shadow:0 0 25px rgba(255,215,0,0.5);
}

/* HEADER */
/* HEADER FLEX */
.pola-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  position:relative;
}

/* IMAGE */
.pola-img{
  width:50px;
  height:50px;
  border-radius:10px;
  object-fit:cover;
  box-shadow:0 0 10px rgba(255,215,0,0.4);
}

/* TEXT */
.pola-head-text{
  flex:1;
}

/* TITLE */
.pola-title{
  font-weight:900;
  font-size:14px;
}

/* PROVIDER */
.pola-provider{
  font-size:12px;
  font-weight:700;
}

/* CLOSE */
.pola-close{
  position:absolute;
  right:0;
  top:0;
  cursor:pointer;
}

/* BOX SECTION */
.pola-box{
  background:rgba(0,0,0,0.1);
  padding:10px;
  border-radius:12px;
  margin-bottom:12px;
}

.center{
  text-align:center;
}

/* LABEL */
.pola-label{
  font-weight:800;
  margin-bottom:6px;
}

/* ROW */
.pola-row{
  display:flex;
  justify-content:space-between;
  font-size:12px;
  margin-bottom:6px;
}

/* TAG */
.tag{
  background:#111;
  color:#fff;
  padding:2px 6px;
  border-radius:6px;
}

/* JAM */
.jam{
  font-weight:700;
  font-size:14px;
}

/* GRID */
.grid{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:center;
}

.grid-row{
  display:flex;
  gap:6px;
}

.grid-box{
  width:20px;
  height:20px;
  background:#222;
  border-radius:4px;
}

.grid-box.on{
  background:#facc15;
  box-shadow:0 0 10px gold;
}

/* RESULT ICON */
.res span{
  font-size:12px;
  margin-left:2px;
  font-weight:bold;
}

.ok{
  animation:blinkGreen 1.5s infinite;
}

@keyframes blinkGreen{
  0%{opacity:1}
  50%{opacity:.6}
  100%{opacity:1}
}

.bad{
  color:#ef4444; /* merah */
  text-shadow:0 0 6px rgba(239,68,68,0.7);
}

/* MINI BUTTON LEADERBOARD */
.mini-btn{
  margin-top:6px;

  background:linear-gradient(135deg,#fde047,#f59e0b,#ea580c);
  color:#000;

  font-size:11px;
  font-weight:700;
  text-align:center;

  padding:6px;
  border-radius:8px;

  box-shadow:0 2px 6px rgba(0,0,0,0.3);

  transition:.2s;
  animation:btnPulse 2s infinite;
}

@keyframes btnPulse{
  0%{opacity:1}
  50%{opacity:.8}
  100%{opacity:1}
}

.mini-btn:hover{
  transform:scale(1.05);
}

.mini-btn:active{
  transform:scale(0.95);
}

/* MOBILE HERO FIX - TETAP SAMPING */
@media (max-width:768px){

  .leader-hero{
    display:flex;
    flex-direction:row; /* 🔥 tetap samping */
    align-items:center;
    gap:12px;
  }

  .leader-hero img{
    width:130px;   /* 🔥 BESARIN DI SINI */
    height:130px;  /* biar kotak */
    object-fit:cover;
    border-radius:12px;
    box-shadow:0 0 10px rgba(255,215,0,0.4);
  }

  .leader-hero-info{
    flex:1;
  }

}

