@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

.overlay {
  font-family: "Poppins", sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px) brightness(0.8);
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.popup {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  padding: 50px 40px 40px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 30px rgba(211, 47, 47, 0.1) inset;
  text-align: center;
  max-width: 560px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.1s;
}

.popup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, #d32f2f 0%, #e53935 50%, #b71c1c 100%);
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup h2 {
  margin-top: 0;
  color: #d32f2f;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  display: inline-block;
}

.popup h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #d32f2f, #e53935);
  border-radius: 3px;
}

.popup p {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.popup strong {
  color: #d32f2f;
  font-weight: 700;
  background: linear-gradient(transparent 70%, rgba(211, 47, 47, 0.15) 70%);
  padding: 0 2px;
}

.popup .highlight {
  display: inline-block;
  background: linear-gradient(
    135deg,
    rgba(211, 47, 47, 0.1) 0%,
    rgba(211, 47, 47, 0.05) 100%
  );
  padding: 15px 25px;
  border-radius: 12px;
  margin: 20px 0;
  border: 1px dashed rgba(211, 47, 47, 0.3);
  font-size: 1.3rem;
  font-weight: 700;
  color: #d32f2f;
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: #777;
  cursor: pointer;
  font-weight: 300;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-btn:hover {
  color: #d32f2f;
  background: rgba(211, 47, 47, 0.1);
  transform: rotate(90deg) scale(1.1);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 15px;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 5px 20px rgba(211, 47, 47, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}

.cta-btn:hover::before {
  left: 100%;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #d32f2f;
  opacity: 0;
}

@media (max-width: 600px) {
  .popup {
    padding: 40px 25px 30px;
    max-width: 95%;
  }

  .popup h2 {
    font-size: 1.8rem;
  }

  .popup p {
    font-size: 1.05rem;
  }

  .popup .highlight {
    font-size: 1.15rem;
    padding: 12px 20px;
  }

  .close-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
    top: 12px;
    right: 12px;
  }

  .cta-btn {
    padding: 14px 28px;
    font-size: 1rem;
  }
}
