body {
  font-family: "Poppins", system-ui, sans-serif;
  background: linear-gradient(135deg, #f8f9fc, #eef1f8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #111;
  margin: 0;
  overflow: hidden;
  text-align: center;
  padding: 20px;
}

img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 10px;
}

h1 {
  font-size: 27px;
  font-weight: 700;
  color: #1806bd;
  margin-bottom: 6px;
}

h2 {
  font-size: 20px;
  color: #666;
  margin-bottom: 25px;
}

.btn-primary {
  background: linear-gradient(90deg, #007bff, #00b4d8);
  color: white;
  padding: 15px 34px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.25);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.35);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 28px 22px;
  text-align: center;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal-backdrop.show {
  display: flex;
}

.modal-backdrop.show .modal-panel {
  transform: translateY(0);
  opacity: 1;
}

input[type="email"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  margin-top: 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="email"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
  outline: none;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.btn-cancel {
  background: #f1f1f1;
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn-cancel:hover {
  background: #e2e2e2;
}

/* Success card */
.success {
  display: none;
  text-align: center;
  background: white;
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  max-width: 420px;
  animation: fadeInUp 0.6s ease both;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #00b4d8, #007bff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 40px;
  animation: popIn 0.5s ease;
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}

.success h3 {
  color: #0b5ed7;
  font-size: 22px;
  margin-bottom: 10px;
}

.success p {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

/* Dim or hide background when success message is shown */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* Slight fade of main content when success shows */
body:has(.success-overlay) .main-content {
  opacity: 0.25;
  pointer-events: none;
}

/* Optional smooth fade-in */
.success-overlay .success {
  animation: fadeInUp 0.5s ease both;
}


.close-btn {
  background: linear-gradient(90deg, #007bff, #00b4d8);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 25px;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.25);
  transition: all 0.3s ease;
}

.close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.35);
}

@keyframes popIn {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔹 Mobile optimization */
@media (max-width: 480px) {
  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .modal-panel {
    padding: 24px 18px;
  }

  input[type="email"] {
    font-size: 14px;
    padding: 12px 14px;
  }

  .btn-primary,
  .btn-cancel {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* error box */
.error-box {
  margin-top: 12px;
  color: #b00020;
  font-weight: 600;
}