/* ============================================
   Offer Popup – Design Moderno Nórdico
   ============================================ */

.offer-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 15, 50, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.offer-popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Card principal */
.offer-popup {
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 32px 64px rgba(0, 20, 80, 0.22),
    0 0 0 1px rgba(0, 51, 151, 0.08);
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  transform: scale(0.88) translateY(20px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.offer-popup-overlay.is-visible .offer-popup {
  transform: scale(1) translateY(0);
}

/* ── Header ───────────────────────────── */
.offer-popup__header {
  position: relative;
  background: linear-gradient(140deg, #001f5c 0%, #0039c6 60%, #0057ff 100%);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  overflow: hidden;
}
.offer-popup__header::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.offer-popup__header::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -30px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

/* Botão fechar */
.offer-popup__close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s;
}
.offer-popup__close:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Tag "Kun i dag" */
.offer-popup__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

/* Badge grande de desconto */
.offer-popup__discount {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  margin: 0 auto 1rem;
  animation: pop-pulse 2.5s ease-in-out infinite;
}
.offer-popup__discount .pct {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.offer-popup__discount .label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@keyframes pop-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.15); }
  50%       { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}

/* Headline no header */
.offer-popup__headline {
  position: relative;
  z-index: 2;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ── Body ─────────────────────────────── */
.offer-popup__body {
  padding: 1.4rem 1.5rem 1.5rem;
}

/* Timer regressivo */
.offer-popup__timer {
  background: #f3f5f9;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 0.5rem;
}
.offer-popup__timer .timer-label {
  font-size: 0.8rem;
  color: #555;
  font-weight: 500;
  line-height: 1.3;
  flex: 1;
}
.offer-popup__timer .timer-digits {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.offer-popup__timer .timer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #001f5c;
  color: #fff;
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  min-width: 44px;
}
.offer-popup__timer .timer-block span {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.offer-popup__timer .timer-block small {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  margin-top: 0.1rem;
}
.offer-popup__timer .timer-sep {
  font-size: 1.2rem;
  font-weight: 800;
  color: #001f5c;
  margin-bottom: 4px;
}

/* Lista de benefícios */
.offer-popup__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.offer-popup__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
}
.offer-popup__list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: #e8eeff;
  color: #0039c6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  margin-top: 0.05rem;
}

/* Botão CTA */
.offer-popup__cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: linear-gradient(135deg, #0039c6 0%, #0057ff 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 57, 198, 0.35);
  margin-bottom: 0.85rem;
}
.offer-popup__cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  animation: cta-shimmer 2.8s ease-in-out infinite;
}
@keyframes cta-shimmer {
  0%   { left: -75%; }
  60%, 100% { left: 125%; }
}
.offer-popup__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 57, 198, 0.45);
}
.offer-popup__cta:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 14px rgba(0, 57, 198, 0.3);
}
.offer-popup__cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Nota de confiança */
.offer-popup__note {
  text-align: center;
  font-size: 0.78rem;
  color: #888;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}
.offer-popup__note::before {
  content: "🔒";
  font-size: 0.75rem;
}

/* ── Responsivo ───────────────────────── */
@media (max-width: 440px) {
  .offer-popup__header {
    padding: 1.75rem 1.25rem 1.5rem;
  }
  .offer-popup__discount {
    width: 96px;
    height: 96px;
  }
  .offer-popup__discount .pct {
    font-size: 1.85rem;
  }
  .offer-popup__body {
    padding: 1.2rem 1.25rem 1.25rem;
  }
  .offer-popup__timer .timer-block span {
    font-size: 1rem;
  }
}
