/*
  DXR Store — Coupon Modal Premium v2
  Multi-step: Follow → Code → WhatsApp → Success
  Enhanced Space/Sci-Fi Dark Pro theme with step indicator, confetti, improved UX
*/

/* ═══════════════════════════════════
   CTA BAR — Coupon Button
   ═══════════════════════════════════ */
.fixed-btn.coupon-btn-cta {
  min-height: 38px;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(99,102,241,0.35);
  backdrop-filter: blur(10px);
  border-radius: 11px;
  color: #818cf8;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(99,102,241,0.08);
  touch-action: manipulation;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
}

.fixed-btn.coupon-btn-cta svg {
  width: 18px; height: 18px;
  stroke: #818cf8;
  flex-shrink: 0;
}

.fixed-btn.coupon-btn-cta:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.55);
  color: #c7d2fe;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99,102,241,0.22);
}

.fixed-btn.coupon-btn-cta:active {
  transform: scale(0.96);
}

/* Subtle shimmer */
.fixed-btn.coupon-btn-cta::before {
  content: "";
  position: absolute;
  inset: -50% -30%;
  background: linear-gradient(120deg, transparent 30%, rgba(99,102,241,0.12) 50%, transparent 70%);
  transform: translateX(-60%) rotate(10deg);
  opacity: 0;
  animation: cpnBtnShimmer 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cpnBtnShimmer {
  0%, 30% { opacity: 0; transform: translateX(-60%) rotate(10deg); }
  40% { opacity: 0.6; }
  60% { opacity: 0.3; transform: translateX(50%) rotate(10deg); }
  80%, 100% { opacity: 0; transform: translateX(60%) rotate(10deg); }
}

@media (max-width: 480px) {
  .fixed-btn.coupon-btn-cta {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11px;
    border-radius: 10px;
  }
}

/* ═══════════════════════════════════
   MODAL — Overlay
   ═══════════════════════════════════ */
.cpn-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  visibility: hidden;
}

.cpn-modal.active {
  pointer-events: auto;
  visibility: visible;
}

.cpn-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(99,102,241,0.06), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(6,182,212,0.05), transparent 50%),
    rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cpn-modal.active .cpn-overlay {
  opacity: 1;
}

/* Floating particles on overlay */
.cpn-overlay::before,
.cpn-overlay::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease 0.2s;
}

.cpn-modal.active .cpn-overlay::before,
.cpn-modal.active .cpn-overlay::after {
  opacity: 1;
}

.cpn-overlay::before {
  width: 300px; height: 300px;
  top: 10%; left: 5%;
  background: radial-gradient(circle, rgba(99,102,241,0.04), transparent 70%);
  animation: cpnParticleFloat 8s ease-in-out infinite;
}

.cpn-overlay::after {
  width: 200px; height: 200px;
  bottom: 15%; right: 10%;
  background: radial-gradient(circle, rgba(99,102,241,0.04), transparent 70%);
  animation: cpnParticleFloat 10s ease-in-out infinite reverse;
}

@keyframes cpnParticleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.1); }
  50% { transform: translate(-20px, 30px) scale(0.9); }
  75% { transform: translate(15px, 15px) scale(1.05); }
}

/* ═══════════════════════════════════
   MODAL — Box
   ═══════════════════════════════════ */
.cpn-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(160deg, rgba(15,18,28,0.98), rgba(8,10,18,0.99));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 24px;
  padding: 36px 28px 28px;
  text-align: center;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92) translateY(16px);
  transition: opacity 0.35s cubic-bezier(0.22,0.61,0.36,1), transform 0.35s cubic-bezier(0.22,0.61,0.36,1);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 0 50px rgba(99,102,241,0.06),
    0 25px 70px rgba(0,0,0,0.6);
}

.cpn-modal.active .cpn-box {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Animated border glow */
.cpn-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(135deg,
    rgba(99,102,241,0.5), rgba(129,140,248,0.3),
    rgba(6,182,212,0.2), rgba(129,140,248,0.3),
    rgba(99,102,241,0.5));
  background-size: 300% 300%;
  animation: cpnBorderGlow 5s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

@keyframes cpnBorderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Stars background */
.cpn-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 22%, rgba(255,255,255,0.18) 60%, transparent 61%),
    radial-gradient(1px 1px at 38% 55%, rgba(255,255,255,0.12) 60%, transparent 61%),
    radial-gradient(1px 1px at 62% 18%, rgba(255,255,255,0.16) 60%, transparent 61%),
    radial-gradient(1px 1px at 78% 68%, rgba(255,255,255,0.10) 60%, transparent 61%),
    radial-gradient(1px 1px at 45% 82%, rgba(255,255,255,0.14) 60%, transparent 61%),
    radial-gradient(1px 1px at 88% 38%, rgba(255,255,255,0.08) 60%, transparent 61%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Close button */
.cpn-close {
  position: absolute;
  top: 14px; left: 14px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

.cpn-close svg { width: 18px; height: 18px; }

.cpn-close:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: #f87171;
  transform: rotate(90deg);
}

/* ═══════════════════════════════════
   STEP PROGRESS INDICATOR (NEW)
   ═══════════════════════════════════ */
.cpn-progress-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.04);
  z-index: 5;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.cpn-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #6366f1, #818cf8, #6366f1);
  background-size: 200% 100%;
  animation: cpnProgressShimmer 2s ease infinite;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

@keyframes cpnProgressShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Step dots indicator */
.cpn-step-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}

.cpn-step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}

.cpn-step-dot.active {
  width: 24px;
  border-radius: 4px;
  background: linear-gradient(90deg, #6366f1, #818cf8);
  box-shadow: 0 0 12px rgba(99,102,241,0.3);
}

.cpn-step-dot.done {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52,211,153,0.3);
}

.cpn-step-dot.done::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #34d399;
}

/* Connecting line between dots */
.cpn-step-line {
  width: 20px; height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px;
  transition: background 0.4s ease;
}

.cpn-step-line.done {
  background: rgba(52,211,153,0.4);
}

/* ═══════════════════════════════════
   STEPS
   ═══════════════════════════════════ */
.cpn-step {
  display: none;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cpn-step.active {
  display: flex;
  animation: cpnStepIn 0.4s cubic-bezier(0.22,0.61,0.36,1);
}

@keyframes cpnStepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Icon */
.cpn-icon-wrap {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 20px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.cpn-icon-wrap svg {
  width: 34px; height: 34px;
  stroke: #818cf8;
  position: relative;
  z-index: 1;
}

.cpn-icon-wrap.success {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.25);
}
.cpn-icon-wrap.success svg { stroke: #34d399; }

.cpn-icon-wrap.celebrate {
  background: rgba(244,114,182,0.1);
  border-color: rgba(244,114,182,0.25);
  animation: cpnCelebrateBounce 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.cpn-icon-wrap.celebrate svg { stroke: #f472b6; }

@keyframes cpnCelebrateBounce {
  0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(3deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.cpn-icon-wrap.blocked {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.25);
  animation: cpnBlockedShake 0.5s ease;
}
.cpn-icon-wrap.blocked svg { stroke: #f87171; }

@keyframes cpnBlockedShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px); }
  30% { transform: translateX(6px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

.cpn-icon-glow {
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 70%);
  animation: cpnIconPulse 2.5s ease-in-out infinite;
}

.cpn-icon-glow.success { background: radial-gradient(circle, rgba(16,185,129,0.15), transparent 70%); }
.cpn-icon-glow.celebrate { background: radial-gradient(circle, rgba(244,114,182,0.2), transparent 70%); }
.cpn-icon-glow.blocked { background: radial-gradient(circle, rgba(239,68,68,0.15), transparent 70%); }

@keyframes cpnIconPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Title */
.cpn-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}

.cpn-title.celebrate-text {
  background: linear-gradient(135deg, #818cf8, #34d399, #f472b6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: cpnGradientText 3s ease infinite;
}

@keyframes cpnGradientText {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

.cpn-title.blocked-text {
  color: #f87171;
}

.cpn-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 0 0 20px;
  line-height: 1.6;
}

/* ═══════════════════════════════════
   INPUTS
   ═══════════════════════════════════ */
.cpn-input-group {
  width: 100%;
  margin-bottom: 14px;
  position: relative;
}

.cpn-input-group.whatsapp {
  position: relative;
}

.cpn-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.25s ease;
  outline: none;
}

.cpn-input::placeholder {
  font-family: 'Cairo', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  color: rgba(255,255,255,0.25);
  text-transform: none;
}

.cpn-input:focus {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.08), 0 0 20px rgba(99,102,241,0.06);
  background: rgba(0,0,0,0.5);
}

/* Input has-value glow */
.cpn-input.has-value {
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 0 12px rgba(99,102,241,0.06);
}

/* Code input icon */
.cpn-code-icon {
  position: absolute;
  top: 50%; right: 14px;
  transform: translateY(-50%);
  color: rgba(99,102,241,0.4);
  pointer-events: none;
  transition: all 0.3s ease;
}

.cpn-input:focus ~ .cpn-code-icon {
  color: rgba(99,102,241,0.7);
  transform: translateY(-50%) scale(1.1);
}

/* WhatsApp input */
.cpn-input.wa-input {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 1px;
  font-size: 17px;
  padding-right: 50px;
  padding-left: 70px;
}

.cpn-input.wa-input:focus {
  border-color: rgba(37,211,102,0.5);
  box-shadow: 0 0 0 4px rgba(37,211,102,0.08), 0 0 20px rgba(37,211,102,0.06);
}

.cpn-wa-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #25D366;
  opacity: 0.7;
  pointer-events: none;
}

/* Country code prefix */
.cpn-country-code {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  direction: ltr;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 2px;
  border-left: 1.5px solid rgba(255,255,255,0.08);
  padding-right: 8px;
}

/* ═══════════════════════════════════
   INSTAGRAM USERNAME INPUT
   ═══════════════════════════════════ */
.cpn-ig-username-group {
  width: 100%;
  margin-bottom: 16px;
  text-align: right;
}

.cpn-ig-username-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  text-align: center;
}

.cpn-ig-username-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.35);
  transition: all 0.3s ease;
  overflow: hidden;
}

.cpn-ig-username-input-wrap.focused {
  border-color: rgba(214,36,159,0.45);
  box-shadow: 0 0 0 4px rgba(214,36,159,0.08), 0 0 20px rgba(214,36,159,0.06);
}

.cpn-ig-at-prefix {
  padding: 0 2px 0 12px;
  color: rgba(214,36,159,0.7);
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: 700;
  pointer-events: none;
  flex-shrink: 0;
  line-height: 1;
}

.cpn-input.cpn-ig-username-input {
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 13px 14px 13px 6px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #fff;
  flex: 1;
  min-width: 0;
}

.cpn-input.cpn-ig-username-input:focus {
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}

.cpn-input.cpn-ig-username-input::placeholder {
  color: rgba(255,255,255,0.2);
  font-weight: 400;
}

/* IG username glow when has value */
.cpn-ig-username-input-wrap:has(.has-value) {
  border-color: rgba(214,36,159,0.3);
  box-shadow: 0 0 12px rgba(214,36,159,0.06);
}

/* Instagram gradient on the @ when input is focused */
.cpn-ig-username-input-wrap.focused .cpn-ig-at-prefix {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════
   MESSAGES
   ═══════════════════════════════════ */
.cpn-msg {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
  animation: cpnMsgIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@keyframes cpnMsgIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cpn-msg.error {
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.2);
}

.cpn-msg.success {
  background: rgba(16,185,129,0.12);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.2);
}

/* Discount badge */
.cpn-discount-badge {
  padding: 8px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: #818cf8;
  position: relative;
  overflow: hidden;
}

/* Shimmer on discount badge */
.cpn-discount-badge::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  animation: cpnBadgeShimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cpnBadgeShimmer {
  0%, 100% { transform: translateX(-100%) rotate(10deg); }
  50% { transform: translateX(100%) rotate(10deg); }
}

.cpn-discount-badge.success {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.25);
  color: #34d399;
  animation: cpnBadgeBounce 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes cpnBadgeBounce {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.cpn-success-phone {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0 0 18px;
  direction: ltr;
}

/* ═══════════════════════════════════
   BUTTONS
   ═══════════════════════════════════ */
.cpn-btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.cpn-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}

.cpn-btn-primary:active:not(:disabled) {
  transform: scale(0.97);
}

.cpn-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cpn-btn-primary.whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.cpn-btn-primary.whatsapp:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

/* Button shimmer */
.cpn-btn-primary::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%) rotate(10deg);
  pointer-events: none;
}

.cpn-btn-primary:hover:not(:disabled)::after {
  animation: cpnBtnHoverShimmer 0.6s ease forwards;
}

@keyframes cpnBtnHoverShimmer {
  to { transform: translateX(100%) rotate(10deg); }
}

.cpn-btn-text { position: relative; z-index: 1; }

.cpn-btn-loader {
  display: inline-flex;
  align-items: center;
}

.cpn-spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cpnSpin 0.7s linear infinite;
}

@keyframes cpnSpin { to { transform: rotate(360deg); } }

.cpn-btn-back {
  margin-top: 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cpn-btn-back:hover {
  color: rgba(255,255,255,0.8);
  transform: translateX(4px);
}

/* WhatsApp CTA */
.cpn-btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.cpn-btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

/* Pulse ring on success WA button */
.cpn-btn-whatsapp.pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid rgba(37,211,102,0.4);
  animation: cpnWaPulse 2s ease-in-out infinite;
}

@keyframes cpnWaPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.03); opacity: 1; }
}

.cpn-cta-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ═══════════════════════════════════
   CONFETTI (CSS-only, NEW)
   ═══════════════════════════════════ */
.cpn-confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}

.cpn-confetti-container.active {
  opacity: 1;
}

.cpn-confetti {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 1px;
  top: -10px;
  animation: cpnConfettiFall linear forwards;
  opacity: 0;
}

.cpn-confetti:nth-child(1)  { left: 10%; background: #6366f1; animation-duration: 2.2s; animation-delay: 0s; }
.cpn-confetti:nth-child(2)  { left: 20%; background: #818cf8; animation-duration: 2.8s; animation-delay: 0.1s; width: 5px; height: 8px; }
.cpn-confetti:nth-child(3)  { left: 30%; background: #34d399; animation-duration: 2.4s; animation-delay: 0.2s; }
.cpn-confetti:nth-child(4)  { left: 40%; background: #f472b6; animation-duration: 2.6s; animation-delay: 0.05s; width: 8px; height: 5px; }
.cpn-confetti:nth-child(5)  { left: 50%; background: #a78bfa; animation-duration: 2.3s; animation-delay: 0.15s; }
.cpn-confetti:nth-child(6)  { left: 60%; background: #06b6d4; animation-duration: 2.7s; animation-delay: 0.25s; width: 5px; height: 8px; }
.cpn-confetti:nth-child(7)  { left: 70%; background: #f472b6; animation-duration: 2.1s; animation-delay: 0.1s; }
.cpn-confetti:nth-child(8)  { left: 80%; background: #818cf8; animation-duration: 2.5s; animation-delay: 0.2s; width: 8px; height: 5px; }
.cpn-confetti:nth-child(9)  { left: 15%; background: #34d399; animation-duration: 2.9s; animation-delay: 0.3s; }
.cpn-confetti:nth-child(10) { left: 85%; background: #6366f1; animation-duration: 2.4s; animation-delay: 0.08s; width: 4px; height: 7px; }
.cpn-confetti:nth-child(11) { left: 45%; background: #06b6d4; animation-duration: 2.6s; animation-delay: 0.18s; }
.cpn-confetti:nth-child(12) { left: 55%; background: #c084fc; animation-duration: 2.3s; animation-delay: 0.12s; width: 7px; height: 4px; }

@keyframes cpnConfettiFall {
  0% { transform: translateY(0) rotate(0deg) scale(0); opacity: 0; }
  10% { opacity: 1; transform: translateY(20px) rotate(45deg) scale(1); }
  50% { opacity: 0.8; }
  100% { transform: translateY(400px) rotate(720deg) scale(0.3); opacity: 0; }
}

/* ═══════════════════════════════════
   STEP 0 — FOLLOW INSTAGRAM
   ═══════════════════════════════════ */
.cpn-follow-logo {
  width: 84px; height: 84px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 2.5px solid transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image:
    linear-gradient(rgba(15,18,28,1), rgba(15,18,28,1)),
    linear-gradient(135deg, #fdf497, #fd5949, #d6249f, #285AEB);
  box-shadow:
    0 0 35px rgba(214,36,159,0.2),
    0 8px 24px rgba(0,0,0,0.4);
  position: relative;
  animation: cpnFollowLogoFloat 3s ease-in-out infinite;
}

@keyframes cpnFollowLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.cpn-follow-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 22px;
}

.cpn-follow-logo::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 26px;
  background: linear-gradient(135deg, #fdf497, #fd5949, #d6249f, #285AEB);
  background-size: 200% 200%;
  z-index: -1;
  opacity: .5;
  animation: cpnFollowRing 3s ease-in-out infinite;
  filter: blur(8px);
}

@keyframes cpnFollowRing {
  0%, 100% { opacity: .3; background-position: 0% 50%; }
  50% { opacity: .6; background-position: 100% 50%; }
}

.cpn-follow-handle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(214,36,159,0.08), rgba(253,89,73,0.08));
  border: 1px solid rgba(214,36,159,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  direction: ltr;
  transition: all 0.3s ease;
}

.cpn-follow-handle:hover {
  border-color: rgba(214,36,159,0.3);
  background: linear-gradient(135deg, rgba(214,36,159,0.12), rgba(253,89,73,0.12));
}

.cpn-follow-handle svg {
  color: #d6249f;
  flex-shrink: 0;
}

.cpn-follow-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
}

.cpn-btn-follow {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #d6249f, #fd5949);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.cpn-btn-follow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(214,36,159,0.35);
}

.cpn-btn-follow:active {
  transform: scale(0.97);
}

.cpn-btn-follow svg {
  flex-shrink: 0;
}

/* Button glow shimmer */
.cpn-btn-follow::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%) rotate(10deg);
  pointer-events: none;
  animation: cpnBtnFollowShimmer 4s ease-in-out infinite;
}

@keyframes cpnBtnFollowShimmer {
  0%, 70% { transform: translateX(-100%) rotate(10deg); }
  100% { transform: translateX(100%) rotate(10deg); }
}

.cpn-btn-follow-cancel {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cpn-btn-follow-cancel:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}

.cpn-follow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cpn-follow-link:hover {
  color: #d6249f;
}

.cpn-follow-link svg {
  flex-shrink: 0;
}

/* ═══════════════════════════════════
   STEP VERIFY — Checking Follow
   ═══════════════════════════════════ */
.cpn-verify-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cpn-verify-ring {
  position: relative;
  width: 90px; height: 90px;
  margin-bottom: 20px;
}

.cpn-verify-spinner {
  width: 100%; height: 100%;
  animation: cpnVerifyRotate 1.8s linear infinite;
}

.cpn-verify-track {
  stroke: rgba(214,36,159,0.12);
}

.cpn-verify-arc {
  stroke: url(#cpnVerifyGrad);
  stroke: #d6249f;
  stroke-dasharray: 180 264;
  stroke-dashoffset: 0;
  animation: cpnVerifyDash 1.8s ease-in-out infinite;
}

@keyframes cpnVerifyRotate {
  to { transform: rotate(360deg); }
}

@keyframes cpnVerifyDash {
  0% { stroke-dasharray: 1 264; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 180 264; stroke-dashoffset: -60; }
  100% { stroke-dasharray: 180 264; stroke-dashoffset: -264; }
}

.cpn-verify-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #d6249f;
  opacity: 0.8;
  animation: cpnVerifyPulse 1.5s ease-in-out infinite;
}

@keyframes cpnVerifyPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.cpn-verify-title {
  font-size: 18px !important;
  background: linear-gradient(135deg, #d6249f, #fd5949);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cpn-verify-progress {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  margin: 16px 0 20px;
  overflow: hidden;
}

.cpn-verify-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, #d6249f, #fd5949, #fdf497);
  transition: width 0.4s ease;
}

.cpn-verify-steps-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cpn-verify-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color 0.3s ease;
}

.cpn-verify-item.active {
  color: rgba(255,255,255,0.85);
}

.cpn-verify-item.done {
  color: #34d399;
}

.cpn-verify-item.fail {
  color: #f87171;
}

.cpn-verify-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.cpn-verify-item.active .cpn-verify-dot {
  background: #d6249f;
  box-shadow: 0 0 8px rgba(214,36,159,0.5);
  animation: cpnDotPulse 1s ease-in-out infinite;
}

.cpn-verify-item.done .cpn-verify-dot {
  background: #34d399;
  box-shadow: 0 0 6px rgba(52,211,153,0.4);
}

.cpn-verify-item.fail .cpn-verify-dot {
  background: #f87171;
  box-shadow: 0 0 6px rgba(248,113,113,0.4);
}

@keyframes cpnDotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* ═══════════════════════════════════
   STEP NOFOLLOW — Warning
   ═══════════════════════════════════ */
.cpn-nofollow-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(239,68,68,0.1);
  border: 2px solid rgba(239,68,68,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #f87171;
  animation: cpnNoFollowShake 0.5s ease;
}

@keyframes cpnNoFollowShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px) rotate(-2deg); }
  30% { transform: translateX(8px) rotate(2deg); }
  45% { transform: translateX(-6px) rotate(-1deg); }
  60% { transform: translateX(6px) rotate(1deg); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(3px); }
}

.cpn-nofollow-title {
  color: #f87171 !important;
}

.cpn-nofollow-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 600;
  margin-top: 14px;
  animation: cpnWarnPulse 2s ease-in-out infinite;
}

.cpn-nofollow-warning svg {
  flex-shrink: 0;
  color: #f87171;
}

@keyframes cpnWarnPulse {
  0%, 100% { border-color: rgba(239,68,68,0.2); }
  50% { border-color: rgba(239,68,68,0.45); }
}

.cpn-btn-follow-ig {
  background: linear-gradient(135deg, #d6249f, #fd5949) !important;
}

.cpn-btn-recheck {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(214,36,159,0.3);
  background: rgba(214,36,159,0.08);
  color: #e879a8;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.cpn-btn-recheck:hover {
  background: rgba(214,36,159,0.15);
  border-color: rgba(214,36,159,0.5);
  color: #f0a0c0;
}

.cpn-btn-recheck:active {
  transform: scale(0.97);
}

.cpn-nofollow-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 12px;
  text-align: center;
}

/* ═══════════════════════════════════
   BLOCKED STEP — Extra details
   ═══════════════════════════════════ */
.cpn-blocked-code {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 14px;
  color: #f87171;
  background: rgba(239,68,68,0.1);
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
  direction: ltr;
  margin: 0 4px;
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 440px) {
  .cpn-box {
    padding: 28px 20px 22px;
    border-radius: 20px;
  }
  .cpn-title { font-size: 20px; }
  .cpn-input { font-size: 16px; padding: 12px 16px; }
  .cpn-step-dots { gap: 6px; margin-bottom: 18px; }
  .cpn-step-dot.active { width: 20px; }
  .cpn-step-line { width: 14px; }
  .cpn-follow-logo { width: 72px; height: 72px; border-radius: 20px; }
  .cpn-input.wa-input { padding-left: 60px; }
  .cpn-ig-username-label { font-size: 12px; }
  .cpn-ig-at-prefix { font-size: 16px; }
  .cpn-input.cpn-ig-username-input { font-size: 14px; padding: 11px 12px 11px 4px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cpn-box,
  .cpn-overlay,
  .cpn-step.active {
    transition: opacity 0.01ms !important;
    transform: none !important;
    animation: none !important;
  }
  .cpn-modal.active .cpn-box { transform: none !important; }
  .cpn-icon-glow { animation: none !important; }
  .cpn-btn-primary::after { animation: none !important; }
  .cpn-btn-follow::after { animation: none !important; }
  .fixed-btn.coupon-btn-cta::before { animation: none !important; }
  .cpn-confetti-container { display: none !important; }
  .cpn-discount-badge::after { animation: none !important; }
  .cpn-follow-logo { animation: none !important; }
  .cpn-overlay::before, .cpn-overlay::after { animation: none !important; }
  .cpn-progress-fill { animation: none !important; }
}
