 :root{--bg:#0b0b0b;--fg:#f2f2f2;--muted:#b9b9b9;--card:#121212;--accent:#d4af37}
    *{box-sizing:border-box}
    body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial;line-height:1.6;background:var(--bg);color:var(--fg)}
    a{color:var(--accent);text-decoration:none}
    a:hover{text-decoration:underline}
    header,main,footer{max-width:1000px;margin:auto;padding:16px}
    header h1{font-size:clamp(1.25rem,2.5vw,1.75rem);margin:.25em 0}
    .card{background:var(--card);border-radius:1px;padding:16px;margin:16px 0}
    .muted{color:var(--muted)}
    .center{text-align:center}
    img{max-width:100%;height:auto;border-radius:1px;}
    table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
    th,td{border:1px solid #222;padding:8px;text-align:center}
    th{background:#161616}
    iframe{width:100%;border:0;border-radius:12px}
    ul{padding-left:18px}
    blockquote{border-left:4px solid var(--accent);padding-left:12px;margin:16px 0;color:var(--muted)}
    .badge{display:inline-block;background:#1b1b1b;border:1px solid #222;border-radius:999px;padding:4px 10px;margin-right:6px}

   
    nav.card{padding:0;background:#fdd326;overflow:hidden}
    nav.card a{
      display:block;
      width:100%;
      padding:14px 12px;
      margin:0;
      background:#fdd326;
      color:#111;
      font-weight:600;
      border-bottom:1px solid rgba(0,0,0,.15);
      border-radius:0;
      text-decoration:none
    }
    nav.card a:last-child{border-bottom:none}
    nav.card a:hover{background:#ffa733;color:#000;text-decoration:none}
  

  
    table{background:#ffffff;color:#000000}
    table th{background:#fdd326;color:#000000}
    table td{background:#ffffff;color:#000000}
/* ======== UMUM ======== */
.tampil {
  display: block;
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
  border: 2px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
}

.tampil img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ======== FLOATING (FIX UTAMA) ======== */
.floating-top,
.floating-bottom {
  position: fixed;
  z-index: 9999;
  width: 35%; /* desktop ikut contoh orang */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.floating-top { top: 0; }
.floating-bottom { bottom: 0; }

/* 🔥 KUNCI: pakai aspect-ratio biar kayak AMP */
.floating-top img,
.floating-bottom img {
  width: 100%;
  height: auto;
  aspect-ratio: 378 / 31;
  display: block;
}

/* ======== BANNER FLOAT BIASA ======== */
.banner-float {
  position: fixed;
  width: 100%;
  text-align: center;
  bottom: 0;
  z-index: 9999;
}

.banner-float img {
  width: 728px;
  max-width: 100%;
  height: auto;
}

/* ======== BANNER LAIN ======== */
.banner1 img {
  display: inline-block;
  width: 100%;
}

.headerbanner {
  text-align: center;
  background: #000;
  max-width: 728px;
  margin: 0 auto;
}

/* 🔥 samain sistem dengan floating */
.headerbanner img {
  width: 100%;
  height: auto;
  aspect-ratio: 378 / 31;
  display: block;
}

.banner-top img {
  width: 728px;
  max-width: 100%;
  height: auto;
}

/* ======== RESPONSIVE HP (FIX TOTAL) ======== */
@media (max-width: 768px) {

  .floating-top,
  .floating-bottom {
    width: 100%;       /* full layar */
    left: 0;
    transform: none;
  }

  .floating-top img,
  .floating-bottom img {
    width: 100%;
    height: auto;
    aspect-ratio: 378 / 35; /* tetap tipis & proporsional */
  }

  .tampil {
    border-width: 1px;
  }

  .headerbanner {
    max-width: 100%;
    background: #333;
  }

  .headerbanner img {
    width: 100%;
    height: auto;
    aspect-ratio: 378 / 35;
  }

  .banner-float {
    bottom: 5px;
  }

  .space {
    height: 90px;
  }
}    
  
  
.last-update {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

    @media (max-width:1000px){
      table th, table td{padding:7px;font-size:14px}
    }

    @media (max-width:768px){
      table th, table td{padding:6px;font-size:13.5px}


    }

    @media (max-width:600px){
      table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
      table th, table td{padding:6px;font-size:13px;white-space:nowrap}
    }

    @media (max-width:320px){
      table th, table td{padding:5px;font-size:12px}
  }




@media (max-width:1000px){
   header,main,footer{
    max-width:100%;
    padding:5px;
  }

  .card{
    padding:5px;
  }
}

@media (min-width: 1001px){
  nav.card{
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    gap: 1px;
    padding: 8px 12px;
  }

  nav.card a{
    width: auto;               
    display: inline-block;
    padding: 8px 14px;
    border-bottom: none;       
    border-radius: 1px;
  }
}

@media (max-width:600px){
  #dtTable{
    display: table;         
    width: 100%;
    min-width: 100%;        
    margin: 0 auto;         
  }
}
#histats-wrap{
  width:100% !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  margin:20px auto !important;
  clear:both !important;
}

/* Tangkap elemen Histats hasil inject */
#histats-wrap iframe,
#histats-wrap img,
#histats-wrap a{
  display:block !important;
  margin:0 auto !important;
}
.contact-box {
  max-width: 420px;
  margin: 10px auto;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-left: 4px solid #c80000;
  text-align: center;
  color: #000;
}

.contact-box p {
  margin: 0;
  font-size: 14px;
  color: #000;
}

.contact-box a {
  color: #000;
  font-weight: 600;
}
#popup-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.7);
  z-index: 9999;
}

.popup-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2px;
  background: transparent;
  border-radius: 5px;
  width: auto;
  max-width: 420px; /* KUNCI DI SINI */
}

/* === IMAGE === */
.popup-box img {
  width: 80%;
  height: auto;
  display: block;
}

.popup-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #FFD700; /* kuning */
  color: #000; /* X hitam */
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.2s;
}

.popup-close:hover {
  transform: scale(1.1);
  background: #ffeb3b;
}

/* === MOBILE === */
@media screen and (max-width: 700px) {
  .popup-box {
    width: 45%;
  }
}
.space-top {
  width: 100%;
  height: 120px;
}
.space-bottom {
  width: 100%;
  height: 180px;
}
.contact-box {
  max-width: 420px;
  margin: 10px auto;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-left: 4px solid #c80000;
  text-align: center;
  color: #000;
}

.contact-box p {
  margin: 0;
  font-size: 14px;
  color: #000;
}

.contact-box a {
  color: #000;
  font-weight: 600;
}