#hpm-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#hpm-popup.show {
  opacity: 1;
  pointer-events: auto;
}

.hpm-content {
  padding: 30px;
  border-radius: 12px;
  position: relative;
  text-align: center;
}

/* Fade */
.hpm-content.fade { opacity: 0; transform: scale(.95); }
#hpm-popup.show .hpm-content.fade { opacity: 1; transform: scale(1); }

/* Slide */
.hpm-content.slide { transform: translateY(40px); }
#hpm-popup.show .hpm-content.slide { transform: translateY(0); }

/* Bounce */
.hpm-content.bounce { animation: hpmBounce 0.6s ease; }
@keyframes hpmBounce {
  0% { transform: scale(.8); }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

#hpm-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}
