/* ===============================
   POPUP & LOADING STYLE - PUSATGROUP
================================ */

:root {
  --bg-dark: #031e16;
  --bg-panel: #063525;
  --highlight: #42c498;
  --text-main: #e5e5e5;
  --radius: 14px;
  --font: 'Poppins', sans-serif;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--text-main);
  background: var(--bg-dark);
}

/* ===============================
   POPUP OVERLAY
================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2000;
}

.popup-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* ===============================
   POPUP BOX
================================ */
.popup-box {
  background: var(--bg-panel);
  border: 2px solid var(--highlight);
  border-radius: var(--radius);
  padding: 32px 25px;
  width: 90%;
  max-width: 460px;
  text-align: center;
  color: var(--text-main);
  box-shadow: 0 0 25px rgba(66, 196, 152, 0.5);
  animation: zoomIn 0.4s ease;
}

.popup-box h2 {
  color: var(--highlight);
  margin-bottom: 15px;
  font-size: 1.3rem;
  text-shadow: 0 0 8px rgba(66,196,152,0.4);
}

.popup-box p {
  color: #b4b4b4;
  line-height: 1.7;
  font-size: 0.96rem;
}

.close-btn {
  margin-top: 22px;
  background: var(--highlight);
  border: none;
  padding: 10px 28px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #031e16;
}
.close-btn:hover {
  transform: scale(1.06);
  background: #00ffb3;
}

/* Zoom animation */
@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===============================
   LOADING ANIMATION
================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Loading bars */
.loading-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 60px;
  margin-bottom: 18px;
}

.loader {
  width: 6px;
  margin-left: 4px;
  height: 35px;
  border-radius: 2px;
  background-color: var(--highlight);
  box-shadow: 0 0 14px rgba(66, 196, 152, 0.6);
}

.l1 { animation: l1 1s 0s infinite ease-in-out; }
.l2 { animation: l1 1s 0.1s infinite ease-in-out; }
.l3 { animation: l1 1s 0.2s infinite ease-in-out; }
.l4 { animation: l1 1s 0.3s infinite ease-in-out; }
.l5 { animation: l1 1s 0.4s infinite ease-in-out; }
.l6 { animation: l1 1s 0.5s infinite ease-in-out; }
.l7 { animation: l1 1s 0.6s infinite ease-in-out; }

@keyframes l1 {
  0%, 100% { height: 35px; opacity: 1; }
  50% { height: 5px; opacity: 0.6; }
}

.loading-overlay p {
  color: var(--highlight);
  text-shadow: 0 0 8px rgba(66, 196, 152, 0.6);
  animation: fadeBlink 1.2s ease-in-out infinite alternate;
  font-size: 1rem;
}

@keyframes fadeBlink {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 600px) {
  .popup-box {
    padding: 25px 18px;
    max-width: 90%;
  }
  .popup-box h2 {
    font-size: 1.1rem;
  }
  .popup-box p {
    font-size: 0.9rem;
  }
  .close-btn {
    padding: 8px 22px;
    font-size: 0.9rem;
  }
}
/* ===============================
   PARTNER BUTTON STYLE
================================ */
.partner-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.partner-btn {
  display: inline-block;
  background: var(--highlight);
  color: #031e16;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(66,196,152,0.4);
}

.partner-btn:hover {
  background: #00ffb3;
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0,255,179,0.7);
}
/* ===============================
   RESPONSIVE MOBILE FIXES
================================ */

/* Pastikan popup overlay cover full viewport di HP */
@media (max-width: 768px) {
  .popup-overlay {
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .popup-box {
    width: 100%;
    max-width: 95%;
    padding: 20px 18px;
    border-radius: 14px;
    font-size: 0.95rem;
  }

  .popup-box h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .popup-box p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .close-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  /* Tombol partner biar gak terlalu rapet di HP */
  .partner-links {
    flex-direction: column;
    gap: 8px;
  }

  .partner-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  /* Loader posisi center dan ukuran lebih kecil */
  .loading-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .loading-bars {
    height: 40px;
    margin-bottom: 14px;
  }

  .loader {
    width: 4px;
    height: 25px;
    margin: 2px;
  }

  .loading-overlay p {
    font-size: 0.85rem;
  }
}

/* Untuk layar ultra kecil (max 400px) biar gak overflow */
@media (max-width: 400px) {
  .popup-box {
    padding: 18px 14px;
  }

  .popup-box h2 {
    font-size: 1rem;
  }

  .popup-box p {
    font-size: 0.85rem;
  }
}
/* Ketika popup aktif, disable scroll body tanpa ngebekuin layout */
body.popup-active {
  overflow: hidden;
  touch-action: none;
}
