/**
 * WP WhatsApp Pro Tracker – Bonus Popup CSS
 * Professional, conversion-optimized popup design.
 */

/* ── Overlay ────────────────────────────────────────────── */
#wppro-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999998;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#wppro-popup-overlay.wppro-popup-visible {
  opacity: 1;
  visibility: visible;
}

/* ── Modal card ─────────────────────────────────────────── */
#wppro-popup-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255,255,255,0.05);
  transform: scale(0.88) translateY(24px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
}

#wppro-popup-overlay.wppro-popup-visible #wppro-popup-modal {
  transform: scale(1) translateY(0);
}

/* ── Header banner ──────────────────────────────────────── */
#wppro-popup-header {
  position: relative;
  padding: 36px 36px 28px;
  background: var(--wppro-popup-header-bg, linear-gradient(135deg, #25D366 0%, #128C7E 100%));
  text-align: center;
  overflow: hidden;
}

/* Decorative circles */
#wppro-popup-header::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -80px;
  right: -60px;
  pointer-events: none;
}
#wppro-popup-header::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  bottom: -50px;
  left: -30px;
  pointer-events: none;
}

/* Badge */
#wppro-popup-badge {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

/* Icon area */
#wppro-popup-icon {
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,0.3);
}

#wppro-popup-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

#wppro-popup-icon .wppro-popup-icon-fallback {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Headline */
#wppro-popup-headline {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

/* Subheadline */
#wppro-popup-subheadline {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ── Body ───────────────────────────────────────────────── */
#wppro-popup-body {
  padding: 28px 32px 32px;
}

/* Feature list */
#wppro-popup-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#wppro-popup-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  line-height: 1.45;
}

#wppro-popup-features li .wppro-feat-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

#wppro-popup-features li .wppro-feat-icon svg {
  width: 12px;
  height: 12px;
  color: #16a34a;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Urgency timer bar */
#wppro-popup-urgency {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #c2410c;
}

#wppro-popup-urgency svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #ea580c;
}

/* CTA Button */
#wppro-popup-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--wppro-popup-btn-bg, linear-gradient(135deg, #25D366 0%, #128C7E 100%));
  color: var(--wppro-popup-btn-color, #fff);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.35),
    0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

#wppro-popup-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

#wppro-popup-cta:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 14px 32px rgba(37, 211, 102, 0.45),
    0 4px 12px rgba(0,0,0,0.1);
  filter: brightness(1.05);
  color: #fff;
  text-decoration: none;
}

#wppro-popup-cta:active {
  transform: translateY(0) scale(0.98);
}

#wppro-popup-cta svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Pulse on CTA */
@keyframes wppro-popup-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.35), 0 2px 6px rgba(0,0,0,.08); }
  50%       { box-shadow: 0 12px 36px rgba(37,211,102,0.55), 0 2px 6px rgba(0,0,0,.08); }
}
#wppro-popup-cta {
  animation: wppro-popup-pulse 2.5s ease-in-out infinite;
}
#wppro-popup-cta:hover {
  animation: none;
}

/* Dismiss link */
#wppro-popup-dismiss {
  display: block;
  text-align: center;
  font-size: 12.5px;
  color: #94a3b8;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  padding: 0;
  font-family: inherit;
  transition: color 0.2s;
}
#wppro-popup-dismiss:hover {
  color: #64748b;
  text-decoration: underline;
}

/* Trust bar */
#wppro-popup-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #94a3b8;
}

#wppro-popup-trust svg {
  width: 14px;
  height: 14px;
  color: #25D366;
  flex-shrink: 0;
}

/* ── Close button ───────────────────────────────────────── */
#wppro-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
#wppro-popup-close:hover {
  background: rgba(255,255,255,0.35);
  transform: rotate(90deg);
}
#wppro-popup-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 560px) {
  #wppro-popup-modal { border-radius: 16px; }
  #wppro-popup-header { padding: 28px 24px 22px; }
  #wppro-popup-headline { font-size: 20px; }
  #wppro-popup-body { padding: 22px 20px 24px; }
  #wppro-popup-cta { font-size: 15px; padding: 14px 20px; }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #wppro-popup-overlay,
  #wppro-popup-modal,
  #wppro-popup-cta {
    transition: none !important;
    animation: none !important;
  }
}
