:root{
  --bg:#05070d;
  --card:rgba(255,255,255,0.05);
  --border:rgba(255,255,255,0.1);
  --text:#e6f1ff;
  --muted:#8aa0c6;
  --neon:#00e5ff;
  --accent:#ff3bff;
}

/* GLOBAL */
*{box-sizing:border-box}
body{
  margin:0;
  font-family:system-ui;
  background:radial-gradient(circle at top,#0a0f1f,#05070d);
  color:var(--text);
}

/* LAYOUT */
header,main,footer{
  max-width:950px;
  margin:auto;
  padding:16px;
}

/* GLASS CARD */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px;
  margin:16px 0;
  backdrop-filter:blur(12px);
  box-shadow:0 0 20px rgba(0,229,255,0.08);
}

/* TITLE */
h1{
  font-size:clamp(1.5rem,3vw,2rem);
  background:linear-gradient(90deg,#00e5ff,#ff3bff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

h2{
  color:#ffbd59;
}

/* NAV */
nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

nav a{
  padding:8px 14px;
  border-radius:8px;
  color: white;
  background:#ffbd59;
  border:1px solid var(--border);
  transition:0.3s;
}

nav a:hover{
  background:var(--neon);
  color:#000;
}

/* TEXT */
p{color:var(--muted); line-height:1.7}
ul{
  color:#ffffff;
}

ul li a{
  color:#ffffff;
}

ul li a:hover{
  color:#00e5ff; /* opsional biar tetap ada efek hover futuristik */
}
/* BADGE */
.badge{
  display:inline-block;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(0,229,255,0.15);
  border:1px solid var(--neon);
  margin-right:6px;
}

/* FOOTER */
footer{
  text-align:center;
  color:var(--muted);
  font-size:14px;
}
.pred-box{
  padding:14px;
  border-radius:12px;
  text-align:center;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.1);
  box-shadow:0 0 10px rgba(0,229,255,0.15);
  transition:0.3s;
}

.pred-box:hover{
  transform:translateY(-3px);
  box-shadow:0 0 20px rgba(255,59,255,0.3);
}

.pred-box div{
  font-size:20px;
  margin-top:6px;
  color:#00e5ff;
  text-shadow:0 0 8px #00e5ff;
  letter-spacing:2px;
}
.header-banner{
  display:flex;
  flex-direction:column;   
  align-items:center;      
  gap:1px;
  margin:16px 0;
}

.header-banner a{
  display:block;
  text-align:center;
}

.header-banner img{
  display:block;
  width:auto;
  max-width:100%;          
  height:auto;
  margin:0 auto;           
}
/* ======== 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%;
}

/* RESPONSIVE */
@media(max-width:600px){
  header,main,footer{padding:10px}
}
 .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;
  }

  .header-banner {
    max-width: 100%;
    background: #333;
  }

  .header-banner img {
    width: 100%;
    height: auto;
    aspect-ratio: 378 / 35;
  }

  .banner-float {
    bottom: 5px;
  }

  .space {
    height: 90px;
  }
  #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: 300px; /* KUNCI DI SINI */
}

/* === IMAGE === */
.popup-box img {
  width: 100%;
  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: 140px;
}
.space-bottom {
  width: 100%;
  height: 120px;
}