/* =========================================================
   First-time customer prize popup + shop banner
   One-shot entrance + confetti (no infinite loops — perf).
   ========================================================= */

#ftc-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
#ftc-overlay.is-open { opacity: 1; }

.ftc-card {
  position: relative;
  width: min(400px, calc(100vw - 32px));
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 30px 70px -18px rgba(15, 23, 42, 0.35);
  padding: 30px 26px 24px;
  text-align: center;
  overflow: hidden;
  transform: translateY(14px) scale(0.96);
  transition: transform 0.26s cubic-bezier(0.34, 1.45, 0.64, 1);
}
#ftc-overlay.is-open .ftc-card { transform: translateY(0) scale(1); }

.ftc-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(100, 116, 139, 0.7);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ftc-close:hover { background: rgba(15, 23, 42, 0.05); color: rgba(15, 23, 42, 0.9); }

.ftc-gift {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 10px;
  animation: ftcGiftPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
@keyframes ftcGiftPop {
  0%   { transform: scale(0.3) rotate(-12deg); opacity: 0; }
  70%  { transform: scale(1.15) rotate(4deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.ftc-kicker {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(2, 132, 199, 0.92);
  margin: 0 0 8px;
}

.ftc-title {
  font-family: var(--font-display, sans-serif);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 4px;
  background: linear-gradient(135deg, #22BDFF, #8B5CF6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ftc-title-sub {
  display: block;
  font-family: var(--font-body, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(71, 85, 105, 0.92);
  margin-top: 6px;
}

.ftc-copy {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(71, 85, 105, 0.92);
  margin: 12px 0 18px;
}
.ftc-copy strong { color: rgba(15, 23, 42, 0.92); }

.ftc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22BDFF, #0AA1E7);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(34, 189, 255, 0.6);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.ftc-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }

.ftc-later {
  margin-top: 10px;
  background: transparent;
  border: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(100, 116, 139, 0.85);
  cursor: pointer;
}
.ftc-later:hover { color: rgba(15, 23, 42, 0.9); text-decoration: underline; }

/* ── One-shot confetti (14 pieces, forwards fill, no loops) ── */
.ftc-confetti {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 7px;
  height: 11px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  animation: ftcConfetti 1.15s cubic-bezier(0.2, 0.7, 0.4, 1) 0.25s 1 forwards;
}
@keyframes ftcConfetti {
  0%   { opacity: 0; transform: translate(0, 0) rotate(0); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--cx, 0), var(--cy, 130px)) rotate(var(--cr, 260deg)); }
}
.ftc-confetti.c0  { --cx: -130px; --cy:  90px; --cr:  220deg; background: #22BDFF; }
.ftc-confetti.c1  { --cx:  120px; --cy: 110px; --cr: -260deg; background: #8B5CF6; }
.ftc-confetti.c2  { --cx:  -80px; --cy: 140px; --cr:  320deg; background: #F59E0B; }
.ftc-confetti.c3  { --cx:   70px; --cy:  80px; --cr: -200deg; background: #10B981; }
.ftc-confetti.c4  { --cx: -150px; --cy:  40px; --cr:  180deg; background: #F472B6; }
.ftc-confetti.c5  { --cx:  150px; --cy:  60px; --cr: -300deg; background: #22BDFF; }
.ftc-confetti.c6  { --cx:  -40px; --cy: 160px; --cr:  240deg; background: #8B5CF6; }
.ftc-confetti.c7  { --cx:   40px; --cy: 150px; --cr: -220deg; background: #F59E0B; }
.ftc-confetti.c8  { --cx: -110px; --cy: 120px; --cr:  280deg; background: #10B981; animation-delay: 0.32s; }
.ftc-confetti.c9  { --cx:  100px; --cy: 130px; --cr: -240deg; background: #F472B6; animation-delay: 0.3s; }
.ftc-confetti.c10 { --cx:  -60px; --cy:  70px; --cr:  200deg; background: #22BDFF; animation-delay: 0.36s; }
.ftc-confetti.c11 { --cx:   60px; --cy: 100px; --cr: -320deg; background: #8B5CF6; animation-delay: 0.34s; }
.ftc-confetti.c12 { --cx:  -20px; --cy: 120px; --cr:  260deg; background: #F59E0B; animation-delay: 0.4s; }
.ftc-confetti.c13 { --cx:   20px; --cy:  90px; --cr: -180deg; background: #10B981; animation-delay: 0.38s; }

/* ── Shop banner strip ── */
.ftc-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 11px 16px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(34, 189, 255, 0.1), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(34, 189, 255, 0.25);
}
.ftc-banner-gift { font-size: 18px; line-height: 1; }
.ftc-banner-copy { font-size: 13px; color: rgba(51, 65, 85, 0.94); }
.ftc-banner-copy strong { color: rgba(15, 23, 42, 0.94); }

@media (prefers-reduced-motion: reduce) {
  .ftc-gift, .ftc-confetti { animation: none !important; opacity: 1; }
  .ftc-confetti { display: none; }
}
