* {margin:0; padding:0; box-sizing:border-box; font-family:Arial, sans-serif;}

body {
  background: #1e293b;
  min-height:100vh; padding:60px 10px 15px; color:#222; position:relative;
}

.baris-atas {
  position:fixed; top:0; left:0; right:0; z-index:1001;
  background:#ffffff;
  box-shadow:0 2px 5px rgba(0,0,0,0.1);
  padding:8px 15px 8px;
  border-bottom:2px solid #22c55e;
}
.bagian-dalam-atas {display:flex; align-items:center; gap:10px;}

.tombol-menu {
  width:30px; height:30px; border-radius:7px;
  background:transparent; border:none; 
  color:#22c55e;
  font-size:20px; font-weight:900; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  -webkit-tap-highlight-color: transparent;
}

.judul-tetap {
  font-size:24px; font-weight:900; color:#16a34a;
  font-family:'Arial Black', sans-serif;
  letter-spacing:1.5px; text-transform:uppercase;
  line-height:1.2; text-align:left; margin:0;
}

.menu-samping {
  position:fixed; top:0; left:-160px; width:150px;
  background:#ffffff; box-shadow:2px 0 5px rgba(0,0,0,0.1);
  border-right:2px solid #22c55e; z-index:1002;
  padding:10px 6px; transition:left .2s ease;
}
.menu-samping.buka {left:0;}
.menu-samping a {
  display:flex; align-items:center; justify-content:flex-start; white-space:nowrap;
  padding:8px 7px; margin-bottom:6px; background:#22c55e;
  color:#ffffff; text-decoration:none; border-radius:6px; font-size:13px; min-height:36px;
}

.latar-tutup {position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.4); z-index:1000; display:none;}
.latar-tutup.aktif {display:block;}

.wadah-slider {
  max-width:100%; margin:10px auto 25px; overflow:hidden; 
  border-radius:16px; border:2px solid #22c55e; position:relative; height:230px; background: #000;
}
.slider-gerak { width:100%; height:100%; position:relative; }
.gambar-slide { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; display:none; }
.gambar-slide.aktif { display:block; }

.menu-utama {
  display:flex; justify-content:space-between; gap:8px; 
  margin-bottom:20px; padding:0 5px; max-width:360px; margin-left:auto; margin-right:auto;
}
.menu-utama-btn {
  flex:1; background:#22c55e; border:2px solid #16a34a; border-radius:12px;
  padding:0; text-align:center; text-decoration:none; color:#111;
  display:flex; flex-direction:column; align-items:center; justify-content:space-between;
  overflow:hidden; height:95px; -webkit-tap-highlight-color: transparent;
}
.menu-utama-btn .ikon { width:100%; height:65px; object-fit:cover; background:#ffffff; flex-shrink:0; }
.menu-utama-btn .label { font-size:11px; font-weight:bold; padding:5px 2px; color:#ffffff; width:100%; text-align:center; background:#22c55e; }

.judul-bagian {font-size:16px; font-weight:bold; margin-bottom:12px; padding-left:6px; color:#4ade80;}

.grid-game {
  display:grid; grid-template-columns:repeat(2,1fr); gap:10px; 
  margin-bottom:20px; padding:0 5px; max-width:340px; margin-left:auto; margin-right:auto;
}
.kotak-game {
  background:#ffffff; border-radius:12px; border:2px solid #22c55e; 
  text-decoration:none; display:flex; flex-direction:column; overflow:hidden; min-height:110px;
}
.kotak-game .icon-game { width: 100%; height: 80px; object-fit: cover; background: #ffffff; }
.kotak-game .nama-game { font-size:12px; font-weight:bold; color:#16a34a; padding:6px 4px; background:#f0fdf4; text-align:center; }

.grid-lain {
  display:grid; grid-template-columns:repeat(3,1fr); gap:8px; 
  margin-bottom:18px; padding:0 5px; max-width:340px; margin-left:auto; margin-right:auto;
}
.kotak-lain {
  background:#ffffff; border-radius:10px; border:2px solid #22c55e; 
  text-decoration:none; display:flex; flex-direction:column; overflow:hidden; min-height:90px;
}
.kotak-lain .ikon { width:100%; height:55px; object-fit:cover; background:#fde68a; }
.kotak-lain .nama-lain { font-size:11px; font-weight:bold; color:#92400e; padding:6px 2px; background:#fef3c7; text-align:center; }

/* FOOTER UTAMA */
.footer-utama { background: #0f172a; color: #ffffff; padding: 35px 20px 20px; margin-top: 50px; border-top: 2px solid #22c55e; }
.footer-konten { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; }
.footer-logo { font-size: 22px; font-weight: 900; color: #22c55e; margin-bottom: 12px; }
.footer-deskripsi { font-size: 11.5px; color: #cbd5e1; line-height: 1.6; margin-bottom: 16px; }
.footer-sosmed { display: flex; gap: 10px; }
.sosmed-btn { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #ffffff; }
.sosmed-btn svg { width: 20px; height: 20px; }
.sosmed-btn.whatsapp { background: #25d366; }
.sosmed-btn.telegram { background: #0088cc; }

/* EFEK BERCAHAYA UNTUK JUDUL KOLOM FOOTER */
.footer-kolom h3.judul-bercahaya {
  color: #00f2fe;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
  text-transform: uppercase;
  text-shadow: 0 0 5px #00f2fe, 0 0 10px #00f2fe, 0 0 15px #00f2fe;
  animation: pendarCahaya 1.8s infinite alternate;
}

@keyframes pendarCahaya {
  from {
    text-shadow: 0 0 3px #00f2fe, 0 0 6px #00f2fe, 0 0 9px #00f2fe;
  }
  to {
    text-shadow: 0 0 6px #00f2fe, 0 0 12px #00f2fe, 0 0 18px #00f2fe, 0 0 24px #00f2fe;
  }
}

.footer-kolom ul { list-style: none; }
.footer-kolom ul li { margin-bottom: 8px; }
.footer-kolom ul li a { color: #f8fafc; text-decoration: none; font-size: 12.5px; }
.footer-bawah { max-width: 1000px; margin: 30px auto 0; padding-top: 15px; border-top: 1px solid #334155; font-size: 11px; color: #94a3b8; }

.tombol-melayang {
  position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px;
  background: #22c55e; color: #ffffff; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); z-index: 9999; cursor: pointer;
}

/* MODAL CHAT POP-UP (PERBAIKAN FULL SCROLL HP DAN CHROME) */
.chat-modal-latar { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 10000; display: none; }
.chat-modal-box {
  position: fixed; bottom: 80px; right: 20px; width: 330px; max-width: 90%;
  background: #ffffff; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 10001; display: none; flex-direction: column; overflow: hidden;
  height: 450px; max-height: 75vh;
}
.chat-modal-box.aktif, .chat-modal-latar.aktif { display: flex; }

.chat-header { background: #0f172a; color: #ffffff; padding: 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #22c55e; flex-shrink: 0; }
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 36px; height: 36px; background: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.chat-header h4 { margin: 0; font-size: 14px; font-weight: bold; }
.chat-header p { margin: 0; font-size: 11px; opacity: 0.8; }
.btn-tutup-chat { background: transparent; border: none; color: #ffffff; font-size: 16px; cursor: pointer; }

/* AREA BUBBLE CHAT FIX MACET SCROLL KE ATAS */
/* AREA BUBBLE CHAT FIX MACET SCROLL KHUSUS APLIKASI WEBVIEW */
.chat-body {
  padding: 15px; 
  background: #f8fafc; 
  flex: 1;
  height: 100%;
  overflow-y: scroll !important; 
  display: block;
  
  /* PENTING UNTUK APLIKASI ANDROID (APPILIX/WEBVIEW) */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  touch-action: pan-y !important;
  will-change: scroll-position;
}

.pesan-bot p { background: #e2e8f0; color: #1e293b; padding: 10px 14px; border-radius: 12px 12px 12px 2px; font-size: 12.5px; line-height: 1.4; margin: 0; }
.waktu-chat { font-size: 10px; color: #94a3b8; margin-top: 4px; display: block; }

.chat-faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; margin-bottom: 10px; }
.chat-faq-item { display: flex; flex-direction: column; align-items: flex-end; width: 100%; }

.btn-opsi-chat {
  border: 1.5px solid #2563eb; color: #2563eb; background: #ffffff;
  padding: 8px 12px; border-radius: 14px; font-size: 11.5px; font-weight: 600;
  text-align: right; cursor: pointer; line-height: 1.3; width: auto; max-width: 90%;
  -webkit-tap-highlight-color: transparent; transition: all 0.2s ease;
}
.btn-opsi-chat.aktif { background: #2563eb; color: #ffffff; }

.chat-jawaban-box {
  display: none; background: #e2e8f0; color: #0f172a;
  padding: 10px 12px; border-radius: 12px 2px 12px 12px;
  font-size: 11.5px; line-height: 1.4; margin-top: 5px;
  width: auto; max-width: 90%; text-align: left;
}

.btn-wa-direct { border-color: #22c55e; color: #16a34a; background: #f0fdf4; margin-top: 5px; text-decoration: none; }

.chat-footer { padding: 10px 12px; background: #ffffff; border-top: 1px solid #e2e8f0; display: flex; gap: 8px; flex-shrink: 0; }
.input-chat { flex: 1; border: 1.5px solid #cbd5e1; border-radius: 20px; padding: 8px 14px; font-size: 12px; outline: none; }
.btn-kirim-chat { background: #22c55e; color: #ffffff; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 12px; }

@media (max-width: 768px) {
  .footer-konten { grid-template-columns: 1fr; gap: 20px; }
}