/* ===========================================
   Fuckd AI - Popup
   =========================================== */

.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
}

.popup-overlay.active {
  display: flex;
  animation: popupOverlayIn 0.3s var(--ease);
}

@keyframes popupOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup-container {
  background:
    linear-gradient(180deg, rgba(255, 46, 146, 0.1), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px 38px 38px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 46, 146, 0.1) inset,
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(255, 46, 146, 0.2);
  animation: popupIn 0.45s var(--ease-out);
  overflow: hidden;
}

.popup-container::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 220px;
  background: var(--gradient-glow);
  pointer-events: none;
  opacity: 0.8;
}

.popup-container > * { position: relative; z-index: 1; }

@keyframes popupIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  z-index: 2;
}
.popup-close:hover { background: rgba(255, 46, 146, 0.15); color: var(--primary); }

.popup-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 15px 35px rgba(255, 46, 146, 0.5);
}

.popup-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}

.popup-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
  line-height: 1.5;
}

.popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 8px 24px rgba(255, 46, 146, 0.4);
  width: 100%;
  margin-bottom: 12px;
}
.popup-cta:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 46, 146, 0.55);
}

.popup-secondary {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.popup-secondary:hover { color: var(--text); }

@media (max-width: 480px) {
  .popup-container { padding: 40px 26px 30px; }
  .popup-title { font-size: 1.35rem; }
  .popup-text { font-size: 0.95rem; }
}
