/* Overlay */
#hpnpro-overlay{
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  padding: 18px;
}

/* Popup Card */
#hpnpro-popup{
  width: 100%;
  max-width: 720px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.7);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: all 220ms ease;
  position: relative;
}

/* Show animation */
#hpnpro-popup.hpnpro-show{
  transform: translateY(0) scale(1);
  opacity: 1;
}
#hpnpro-popup.hpnpro-hide{
  transform: translateY(10px) scale(0.98);
  opacity: 0;
}

/* Close */
#hpnpro-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  background: rgba(0,0,0,0.06);
  transition: 160ms ease;
}
#hpnpro-close:hover{
  background: rgba(0,0,0,0.12);
}

/* Header */
.hpnpro-header{
  padding: 22px 22px 10px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hpnpro-badge{
  width: fit-content;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  color: #0b5cff;
  background: rgba(11,92,255,0.10);
  padding: 6px 10px;
  border-radius: 999px;
}
#hpnpro-title{
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  color: #111827;
}

/* Text */
#hpnpro-text{
  padding: 0 22px 16px 22px;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #334155;
}

/* Video */
#hpnpro-video{
  padding: 0 22px 16px 22px;
}
.hpnpro-video-frame{
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(0,0,0,0.06);
}
.hpnpro-video-frame iframe{
  width: 100%;
  height: 320px;
  display: block;
}
.hpnpro-video-frame video{
  width: 100%;
  height: auto;
  display: block;
}

/* Actions */
#hpnpro-actions{
  padding: 0 22px 18px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hpnpro-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: 150ms ease;
  border: 1px solid transparent;
}

/* Primary button */
.hpnpro-btn.primary{
  background: #0b5cff;
  color: #fff;
}
.hpnpro-btn.primary:hover{
  filter: brightness(0.92);
}

/* Secondary button */
.hpnpro-btn.ghost{
  background: rgba(15,23,42,0.06);
  color: #0f172a;
  border-color: rgba(15,23,42,0.10);
}
.hpnpro-btn.ghost:hover{
  background: rgba(15,23,42,0.10);
}

/* Footer */
.hpnpro-footer{
  padding: 14px 22px;
  background: rgba(15,23,42,0.04);
  color: #64748b;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 640px){
  #hpnpro-title{ font-size: 20px; }
  .hpnpro-video-frame iframe{ height: 220px; }
}