/* ===== OVERLAY ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ===== POPUP BOX ===== */
.popup {
  background: #0f172a;
  color: #e5e7eb;
  width: 90%;
  max-width: 420px;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.7);
  animation: popupIn 0.35s ease;
  position: relative;
}

/* ===== ICON ===== */
.popup-icon {
  font-size: 42px;
  margin-bottom: 12px;
  text-align: center;
}

.popup.success .popup-icon {
  color: #22c55e;
}

.popup.error .popup-icon {
  color: #ef4444;
}

.popup.info .popup-icon {
  color: #6366f1;
}

/* ===== TEXT ===== */
.popup h2 {
  margin: 0 0 8px;
  font-size: 22px;
  text-align: center;
  color: #f9fafb;
}

.popup p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #d1d5db;
  text-align: center;
}

/* ===== BUTTON ===== */
.popup-actions {
  display: flex;
  justify-content: center;
}

.popup-actions button {
  padding: 10px 26px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  transition: all 0.25s ease;
}

.popup-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(99,102,241,0.4);
}

/* ===== STATES ===== */
.popup.success { border-left: 4px solid #22c55e; }
.popup.error   { border-left: 4px solid #ef4444; }
.popup.info    { border-left: 4px solid #6366f1; }

/* ===== SHAKE (ERROR) ===== */
.popup.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* ===== ANIMATION ===== */
@keyframes popupIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
  .popup {
    padding: 22px;
  }
}
