/* BPP Popup Modal - Frontend Styles */

.bpp-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.bpp-popup-overlay.bpp-visible {
  opacity: 1;
  pointer-events: all;
}
.bpp-popup-overlay.bpp-hiding {
  opacity: 0;
  pointer-events: none;
}

/* Overlay background */
.bpp-popup-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* Box */
.bpp-popup-box {
  background: #ffffff;
  position: relative;
  width: 100%;
  z-index: 1;
  padding: 40px 36px 32px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.bpp-popup-overlay.bpp-visible .bpp-popup-box {
  transform: translateY(0) scale(1);
}

/* Animasi tambahan */
.bpp-anim-zoomIn .bpp-popup-box        { transform: scale(0.7); }
.bpp-anim-zoomIn.bpp-visible .bpp-popup-box { transform: scale(1); }

.bpp-anim-slideDown .bpp-popup-box        { transform: translateY(-60px); opacity: 0; }
.bpp-anim-slideDown.bpp-visible .bpp-popup-box { transform: translateY(0); opacity: 1; }

.bpp-anim-bounceIn .bpp-popup-box { animation: none; }
.bpp-anim-bounceIn.bpp-visible .bpp-popup-box {
  animation: bppBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes bppBounceIn {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.05); opacity: 1; }
  80%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

/* Tombol tutup */
.bpp-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f4f5f7;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  color: #8A94A6;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.bpp-popup-close:hover {
  background: #E53935;
  color: #fff;
}

/* Konten */
.bpp-popup-emoji {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 14px;
  animation: bppFloat 3s ease-in-out infinite;
}
@keyframes bppFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.bpp-popup-title {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0D1B2A;
  margin: 0 0 12px;
  line-height: 1.2;
}

.bpp-popup-desc {
  color: #4A5568;
  line-height: 1.7;
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.bpp-popup-btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}
.bpp-popup-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.bpp-popup-btn:active {
  transform: translateY(0);
}

.bpp-popup-link {
  display: block;
  margin-top: 14px;
  font-size: 0.82rem;
  color: #F5A623;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.bpp-popup-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .bpp-popup-box {
    padding: 32px 20px 24px;
  }
  .bpp-popup-emoji { font-size: 3rem; }
  .bpp-popup-title { font-size: 1.15rem !important; }
}
