/* ==========================================
   GLASS BLUE DISCOUNT POPUP
   ========================================== */
#popup-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 31, 0.75);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.popup-card {
  background: linear-gradient(135deg, rgba(60, 30, 120, 0.55), rgba(30, 15, 70, 0.65));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: #ffffff;
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid rgba(200, 150, 255, 0.35);
  max-width: 420px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 20px 60px rgba(80, 30, 130, 0.5),
              0 0 80px rgba(168, 85, 247, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  animation: popupSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popupSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Decorative glow blobs */
.popup-card::before,
.popup-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.popup-card::before {
  top: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(200, 130, 255, 0.3), transparent 70%);
}
.popup-card::after {
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(130, 80, 255, 0.25), transparent 70%);
}

.popup-content {
  position: relative;
  z-index: 1;
}

/* Icon */
.popup-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(200, 130, 255, 0.3), rgba(120, 60, 200, 0.2));
  border: 1px solid rgba(220, 180, 255, 0.5);
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
  font-size: 1.6rem;
}

/* Title / subtitle */
.popup-title {
  color: #ffffff;
  margin: 0 0 4px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.popup-subtitle {
  color: rgba(220, 180, 255, 0.7);
  font-size: 0.78rem;
  margin: 0 0 18px;
  letter-spacing: 0.5px;
}

/* Deal list */
.popup-deals {
  text-align: left;
  margin-bottom: 20px;
}

.popup-deal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 6px;
  background: rgba(168, 85, 247, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.popup-deal-item:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(200, 130, 255, 0.45);
  transform: translateX(2px);
}

.popup-deal-name {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 500;
}

.popup-deal-discount {
  color: #f0abfc;
  font-weight: 700;
  font-size: 0.72rem;
  background: rgba(200, 130, 255, 0.25);
  border: 1px solid rgba(220, 180, 255, 0.3);
  padding: 3px 10px;
  border-radius: 14px;
  white-space: nowrap;
  margin-left: 10px;
  letter-spacing: 0.3px;
}

/* Close / confirm button */
.popup-btn {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #ffffff;
  border: 1px solid rgba(220, 180, 255, 0.4);
  padding: 12px 32px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  width: 100%;
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  letter-spacing: 0.3px;
  font-family: inherit;
}

.popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(168, 85, 247, 0.65);
  background: linear-gradient(135deg, #c084fc, #8b5cf6);
}

.popup-btn:active {
  transform: translateY(0);
}