/* ==========================================
   VARIABLES & GLOBAL SPACE THEME
   ========================================== */
:root {
  --bg-space: #020005;
  --primary-red: #ff003c;
  --red-glow: linear-gradient(135deg, #ff003c 0%, #80001a 100%);
  --accent-gold: #ffd700;
  --gold-gradient: linear-gradient(135deg, #ffe57f 0%, #ffb300 50%, #ff8f00 100%);
  --glass-bg: rgba(15, 2, 8, 0.65);
  --glass-border: rgba(255, 0, 60, 0.25);
  --text-gold: #ffe082;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-space);
  color: #ffffff;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================
   SPACE BACKGROUND CANVAS & NEBULA
   ========================================== */
#space-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -2 !important; /* Ditempatkan paling belakang */
  pointer-events: none;
  display: block;
}

.space-nebula {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 0, 60, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(100, 0, 20, 0.25) 0%, transparent 60%);
  z-index: -1 !important; /* Berada tepat di depan canvas tapi di belakang konten */
  pointer-events: none;
  filter: blur(40px);
}

/* ==========================================
   HEADER & NAVBAR
   ========================================== */
.navbar-wrapper {
  background: rgba(5, 0, 8, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-announcement {
  background: var(--red-glow);
  text-align: center;
  font-size: 0.8rem;
  padding: 4px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-navbar { padding: 12px 0; }

.nav-brand a {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(255, 0, 60, 0.8);
}
.nav-brand span { color: var(--accent-gold); }

.search-bar { display: flex; gap: 5px; flex: 0 1 400px; }
.search-bar input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.6);
  color: #fff;
}
.btn-search {
  padding: 8px 16px;
  background: var(--primary-red);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn-nav {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
}
.btn-filled { background: var(--red-glow); color: #fff; box-shadow: 0 0 12px rgba(255,0,60,0.6); }

/* ==========================================
   EFEK LASER BORDER UNTUK TOMBOL LOGIN
   ========================================== */
.btn-laser {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 1px;
  border-radius: 6px;
  overflow: hidden;
  background: rgb(249, 255, 61);
  cursor: pointer;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-login-large {
  flex: 1;
  padding: 14px;
  font-size: 1rem;
  border-radius: 8px;
}

.btn-laser::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    #ff003c 10%,
    #ffd700 25%,
    transparent 35%,
    transparent 60%,
    #ff003c 75%,
    #ffd700 85%,
    transparent 95%
  );
  z-index: -2;
  animation: rotateLaser 2.5s linear infinite;
}

.btn-laser::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, #6f1515 0%, #080003 100%);
  border-radius: 5px;
  z-index: -1;
  transition: background 0.3s ease;
}

@keyframes rotateLaser {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-laser:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 20px rgba(255, 0, 60, 0.6), 0 0 10px rgba(255, 215, 0, 0.4);
  color: #ffd700;
}

/* SUB NAVBAR */
.sub-navbar { background: rgba(2, 0, 5, 0.9); padding: 6px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.tag-container { justify-content: flex-start; gap: 10px; overflow-x: auto; }
.tag-label { color: var(--accent-gold); font-weight: bold; font-size: 0.8rem; white-space: nowrap; }
.tag-list { display: flex; gap: 8px; }
.tag-item {
  background: rgba(255,255,255,0.05);
  color: #ccc;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
}
.tag-item:hover { border-color: var(--primary-red); color: #fff; }

/* ==========================================
   PRODUCT SHOWCASE LAYOUT & GLASS CARDS
   ========================================== */
.main-wrapper { max-width: 1200px; margin: 30px auto; padding: 0 20px; }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 25px;
  border-radius: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.main-image-container {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  box-shadow: 0 0 20px rgba(255, 0, 60, 0.2);
}
.main-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.thumbnail-list { display: flex; gap: 10px; margin-top: 10px; }
.thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
}
.thumb.active { border-color: var(--accent-gold); box-shadow: 0 0 8px var(--accent-gold); }

.product-title { font-size: 1.6rem; color: #fff; margin-bottom: 10px; text-shadow: 0 0 8px rgba(255,255,255,0.2); }
.product-price { font-size: 1.4rem; color: var(--text-gold); font-weight: bold; margin-bottom: 20px; }

.cta-actions { display: flex; gap: 15px; margin-bottom: 25px; }
.btn-glow {
  flex: 1;
  text-align: center;
  padding: 14px;
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
.btn-daftar { background: var(--red-glow); color: #fff; box-shadow: 0 0 15px rgba(255,0,60,0.6); }

/* TAGS GRID IN PRODUCT PANEL */
.tag-section-box { background: rgba(0,0,0,0.4); padding: 15px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.tag-section-box.margin-top { margin-top: 15px; }
.box-label { font-size: 0.75rem; color: var(--accent-gold); font-weight: bold; display: block; margin-bottom: 8px; }
.tags-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.grid-tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.grid-tag:hover, .active-tag { background: var(--primary-red); color: #fff; border-color: var(--primary-red); box-shadow: 0 0 8px var(--primary-red); }

/* BANNER ALERT */
.alert-banner {
  background: var(--gold-gradient);
  color: #000;
  padding: 15px 25px;
  border-radius: 10px;
  margin: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}
.alert-btn {
  background: #000;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
}

/* REVIEWS GRID */
.reviews-section { margin: 40px 0; }
.reviews-section h2 { text-align: center; color: var(--text-gold); margin-bottom: 20px; text-shadow: 0 0 10px rgba(255,215,0,0.3); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}
.stars { color: var(--accent-gold); margin-bottom: 10px; }
.reviewer { font-size: 0.8rem; color: var(--accent-gold); margin-top: 10px; text-align: right; }

/* FAQ ACCORDION */
.faq-section { margin: 40px 0; }
.faq-section h2 { text-align: center; color: var(--text-gold); margin-bottom: 20px; }
.faq-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.faq-title { padding: 15px 20px; cursor: pointer; font-weight: bold; display: flex; justify-content: space-between; }
.faq-title::after { content: '+'; color: var(--accent-gold); }
.faq-content { max-height: 0; overflow: hidden; padding: 0 20px; transition: all 0.3s ease; color: #ccc; }
.faq-card.active .faq-content { max-height: 150px; padding: 15px 20px; }
.faq-card.active .faq-title::after { transform: rotate(45deg); }

footer { background: #020005; border-top: 1px solid var(--glass-border); padding: 40px 0 20px 0; margin-top: 50px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 20px; }
.footer-col h3 { color: var(--text-gold); margin-bottom: 15px; font-size: 1rem; }
.footer-col a { display: block; color: #888; text-decoration: none; margin-bottom: 8px; font-size: 0.85rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; color: #ffee00; font-size: 0.8rem; margin-top: 30px; border-top: 1px solid rgb(236, 11, 11); padding-top: 15px; }

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .alert-banner { flex-direction: column; gap: 10px; text-align: center; }
  .search-bar { display: none; }
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Card / Box Pop-up Glassmorphism */
.modal-card {
  position: relative;
  width: 90%;
  max-width: 440px;
  background: linear-gradient(135deg, rgba(25px, 2, 8, 0.95) 0%, rgba(5, 0, 3, 0.98) 100%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 35px rgba(255, 0, 60, 0.4), 0 0 15px rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Tombol Penutup (X) */
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--primary-red); }

/* Gambar Modal */
.modal-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  margin-bottom: 15px;
  display: block;
}

/* Judul Teks */
.modal-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  text-shadow: 0 0 10px rgba(255, 0, 60, 0.8);
}

/* Container Tombol */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

/* EFEK SHINE UNTUK TOMBOL */
.btn-shine {
  position: relative;
  display: block;
  padding: 12px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 1px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login-modal {
  background: linear-gradient(135deg, #ff003c 0%, #a80018 100%);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 0, 60, 0.5);
}

.btn-daftar-modal {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

/* Sinar Cahaya Berjalan (Shine Effect) */
.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(25deg);
  animation: shineAnimation 3s infinite;
}

@keyframes shineAnimation {
  0% { left: -60%; }
  20% { left: 120%; }
  100% { left: 120%; }
}

.btn-shine:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Teks Subtext Bawah */
.modal-subtext {
  font-size: 0.8rem;
  color: var(--text-gold);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.popup-box {
  width: 100%;
  max-width: 360px;
  background: #080808;
  border: 1px solid #55ff00;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 0 20px rgba(85, 255, 0, 0.2);
}

/* Pembungkus Gambar */
.img-radar-box {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden; /* Menjaga agar sinar tidak melimpah keluar gambar */
  display: block;
}

/* Gambar Utama */
.popup-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Garis Sinar Radar Scan */
.radar-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px; /* Ketebalan garis sinar utama */
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(85, 255, 0, 0.8),
    #55ff00
  );
  box-shadow: 0 4px 15px #55ff00, 0 8px 25px rgba(85, 255, 0, 0.6);
  z-index: 2;
  pointer-events: none; /* Agar gambar di bawahnya tetap bisa diklik */
  animation: scan-image 2s ease-in-out infinite alternate;
}

/* Alternatif Tambahan: Bayangan Lembut di Belakang Sinar Radar */
.radar-line::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px; /* Panjang ekor gradasi sinar */
  background: linear-gradient(to top, rgba(85, 255, 0, 0.25), transparent);
}

/* Animasi Pergerakan Radar dari Atas ke Bawah Gambar */
@keyframes scan-image {
  0% {
    top: -10%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
.statement-box {
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(255, 42, 75, 0.35);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 15px;
  box-shadow: inset 0 0 15px rgba(255, 42, 75, 0.05);
}

.statement-title {
  font-size: 15px;
  font-weight: 800;
  color: #ff2a4b;
  margin-bottom: 12px;
  line-height: 1.4;
  border-bottom: 1px dashed rgba(255, 42, 75, 0.3);
  padding-bottom: 8px;
  letter-spacing: 0.5px;
}

.statement-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin: 14px 0 6px 0;
  display: flex;
  align-items: center;
}

.statement-subtitle::before {
  content: '❖';
  color: #ff2a4b;
  margin-right: 6px;
  font-size: 11px;
}

.statement-box p {
  font-size: 12px;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 10px;
  text-align: justify;
}

.statement-box p:last-child {
  margin-bottom: 0;
}

.statement-box p strong {
  color: #ff2a4b;
}