/* Coupon alert modal — 独立文件，在 body 末尾加载，避免被 Tailwind CDN 覆盖 */
.coupon-alert {
  position: fixed !important;
  inset: 0 !important;
  z-index: 4000 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 0;
  box-sizing: border-box;
}

.coupon-alert[hidden] {
  display: none !important;
}

.coupon-alert.is-open {
  display: flex !important;
}

.coupon-alert__mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 20, 0.82);
  backdrop-filter: blur(4px);
}

.coupon-alert__panel {
  position: relative;
  width: min(100%, 420px);
  padding: 28px 22px 22px;
  border-radius: 28px;
  border: 2px solid rgba(251, 191, 36, 0.55);
  background: linear-gradient(165deg, #2a1038 0%, #1a0f2e 45%, #120a22 100%);
  box-shadow: 0 24px 80px rgba(255, 61, 113, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}

.coupon-alert__countdown {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.coupon-alert__burst {
  width: 110px;
  height: 110px;
  margin: 0 auto 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, #ffe566, #ff8a00 55%, #ff3d71 100%);
  clip-path: polygon(
    50% 0%, 61% 18%, 82% 12%, 78% 34%, 100% 40%, 82% 55%,
    92% 78%, 68% 70%, 50% 88%, 32% 70%, 8% 78%, 18% 55%,
    0% 40%, 22% 34%, 18% 12%, 39% 18%
  );
  box-shadow: 0 12px 32px rgba(255, 120, 0, 0.5);
}

.coupon-alert__burst-tag {
  font-size: 11px;
  font-weight: 700;
}

.coupon-alert__burst-amount {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.coupon-alert__title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

.coupon-alert__text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.coupon-alert__expire {
  margin: 6px 0 0;
  font-size: 12px;
  color: #fbbf24;
}

.coupon-alert__actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.coupon-alert__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.coupon-alert__btn--primary {
  background: linear-gradient(135deg, #ff5f8f, #ff3d71);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 61, 113, 0.4);
}

.coupon-alert__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

body.coupon-alert-open {
  overflow: hidden;
}
