#nf-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 20, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99998;
  animation: nfFadeIn 0.25s ease;
}
#nf-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

#nf-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: min(520px, 95vw);
  height: 600px;
  overflow: hidden;
  position: relative;
  animation: nfSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#nf-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 32px;
  text-align: center;
  color: #475569;
  font-weight: 700;
  z-index: 99999;
  transition: background 0.2s, transform 0.2s;
}
#nf-close:hover {
  background: #e2e8f0;
  transform: rotate(90deg);
}

#nf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@keyframes nfFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes nfSlideUp { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

#nf-loader {
  position: absolute;
  inset: 0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99990;
}
.nf-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #7c3aed;
  border-radius: 50%;
  animation: nfSpin 0.8s linear infinite;
}
@keyframes nfSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
