/* ============================================================
   OFFER MODAL — $50 Welcome Popup
   Apply Max · A Prosk AI Product
   ============================================================ */

/* ─── OVERLAY ────────────────────────────────────────────── */
.offer-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.offer-overlay.visible {
  opacity: 1; pointer-events: all;
}

/* ─── CARD ───────────────────────────────────────────────── */
.offer-card {
  position: relative;
  width: 100%; max-width: 540px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
  transform: scale(0.82) translateY(24px);
  transition: transform .45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .35s ease;
  opacity: 0;
}
.offer-overlay.visible .offer-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ─── COUNTDOWN BAR ──────────────────────────────────────── */
.offer-timer-bar {
  background: linear-gradient(90deg, #b45309, #d97706, #f59e0b);
  padding: .55rem 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; color: #1c1000;
  letter-spacing: .04em; text-transform: uppercase;
}
.offer-timer-bar .timer-icon { font-size: .9rem; }
.offer-timer-countdown {
  font-family: 'Bricolage Grotesque', monospace;
  font-size: 1rem; font-weight: 800; letter-spacing: .06em;
  color: #1c1000;
  background: rgba(0,0,0,0.12);
  padding: .1rem .45rem; border-radius: 6px;
}

/* ─── HERO PANEL (dark gradient) ─────────────────────────── */
.offer-hero {
  background: linear-gradient(145deg, #0a0a0f 0%, #0f1729 55%, #0f2558 100%);
  padding: 2.2rem 2rem 2rem;
  position: relative; overflow: hidden;
}

/* decorative glow rings */
.offer-hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.25), transparent 70%);
  pointer-events: none;
}
.offer-hero::after {
  content: '';
  position: absolute; bottom: -40px; left: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,0.15), transparent 70%);
  pointer-events: none;
}

.offer-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.3);
  border-radius: 100px; padding: .28rem .9rem;
  font-size: .7rem; font-weight: 700; color: #fbbf24;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.2rem; position: relative; z-index: 1;
}

.offer-headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  color: #fff; margin-bottom: .6rem;
  position: relative; z-index: 1;
}
.offer-headline .gold { color: #fbbf24; }

.offer-subhead {
  font-size: .88rem; color: rgba(255,255,255,0.55);
  line-height: 1.55; margin-bottom: 1.6rem;
  position: relative; z-index: 1;
}

/* Price display */
.offer-price-row {
  display: flex; align-items: center; gap: 1rem;
  position: relative; z-index: 1;
}
.offer-price-was {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2rem; font-weight: 700;
  color: rgba(255,255,255,0.25);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.3);
}
.offer-price-now {
  display: flex; align-items: baseline; gap: .15rem;
}
.offer-price-now .sym {
  font-size: 1.4rem; font-weight: 700; color: #fbbf24; margin-top: .2rem;
}
.offer-price-now .num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 4rem; font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; color: #fbbf24;
}
.offer-price-now .per {
  font-size: .9rem; color: rgba(251,191,36,0.7); margin-left: .1rem;
}
.offer-price-tag {
  background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3);
  border-radius: 100px; padding: .25rem .75rem;
  font-size: .7rem; font-weight: 800; color: #6ee7b7;
  letter-spacing: .06em; text-transform: uppercase;
  align-self: center;
}

/* ─── BODY PANEL (white) ─────────────────────────────────── */
.offer-body {
  background: var(--white, #fff);
  padding: 1.6rem 2rem 2rem;
}

/* Trust bullets */
.offer-feats {
  list-style: none; display: flex; flex-direction: column; gap: .55rem;
  margin-bottom: 1.5rem;
}
.offer-feats li {
  display: flex; align-items: center; gap: .65rem;
  font-size: .875rem; color: #27272a; font-weight: 500;
}
.offer-feats .ok {
  width: 20px; height: 20px; border-radius: 50%;
  background: #ecfdf5; border: 1px solid #a7f3d0;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: #065f46; flex-shrink: 0;
}

/* Social proof bar */
.offer-social {
  display: flex; align-items: center; gap: .6rem;
  background: #f4f4f5; border-radius: 10px;
  padding: .65rem .9rem; margin-bottom: 1.4rem;
}
.offer-social .fire { font-size: 1rem; }
.offer-social-text { font-size: .8rem; color: #52525b; }
.offer-social-text strong { color: #09090b; font-weight: 700; }

/* CTA */
.offer-cta {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem; font-weight: 800;
  padding: 1rem 1.5rem; border-radius: 12px;
  text-decoration: none; border: none; cursor: pointer;
  width: 100%; transition: all .2s;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  letter-spacing: .01em;
}
.offer-cta:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.5);
}
.offer-cta .arrow { transition: transform .2s; }
.offer-cta:hover .arrow { transform: translateX(3px); }

.offer-dismiss {
  display: block; text-align: center;
  margin-top: .9rem;
  font-size: .78rem; color: #a1a1aa;
  cursor: pointer; background: none; border: none;
  font-family: 'Instrument Sans', sans-serif;
  transition: color .15s;
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: transparent;
}
.offer-dismiss:hover { color: #71717a; text-decoration-color: #71717a; }

/* ─── CLOSE BUTTON ───────────────────────────────────────── */
.offer-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5); font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s;
  font-family: system-ui, sans-serif; line-height: 1;
}
.offer-close:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ─── CONFETTI DOTS (CSS only) ───────────────────────────── */
.offer-confetti {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.offer-confetti span {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  opacity: 0; animation: confetti-fall 3s ease-in infinite;
}
.offer-confetti span:nth-child(1)  { left: 10%; background:#fbbf24; animation-delay: 0s;    animation-duration: 2.8s; }
.offer-confetti span:nth-child(2)  { left: 25%; background:#60a5fa; animation-delay: 0.3s;  animation-duration: 3.2s; }
.offer-confetti span:nth-child(3)  { left: 40%; background:#34d399; animation-delay: 0.6s;  animation-duration: 2.6s; }
.offer-confetti span:nth-child(4)  { left: 55%; background:#f87171; animation-delay: 0.2s;  animation-duration: 3.0s; }
.offer-confetti span:nth-child(5)  { left: 70%; background:#fbbf24; animation-delay: 0.8s;  animation-duration: 2.9s; }
.offer-confetti span:nth-child(6)  { left: 85%; background:#a78bfa; animation-delay: 0.4s;  animation-duration: 3.4s; }
.offer-confetti span:nth-child(7)  { left: 18%; background:#fb923c; animation-delay: 1.0s;  animation-duration: 2.7s; }
.offer-confetti span:nth-child(8)  { left: 62%; background:#38bdf8; animation-delay: 0.5s;  animation-duration: 3.1s; }
@keyframes confetti-fall {
  0%   { opacity: 0;   transform: translateY(-10px) rotate(0deg); }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { opacity: 0;   transform: translateY(90px) rotate(180deg); }
}

/* ─── FLOATING OFFER BADGE ───────────────────────────────── */
.offer-float-badge {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 8500;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.72rem 1.1rem 0.72rem 0.9rem;
  cursor: pointer;
  font-family: 'Instrument Sans', sans-serif;
  box-shadow:
    0 8px 28px rgba(239,68,68,0.45),
    0 2px 8px rgba(0,0,0,0.1),
    0 0 0 0 rgba(239,68,68,0.5);
  animation: ofbFloat 3s ease-in-out infinite, ofbPulse 2.5s ease-out infinite;
  overflow: visible; /* allow count bubble to overflow */
}
/* Shimmer sweep */
.offer-float-badge::before {
  content: '';
  position: absolute;
  top: 0; left: -80%; bottom: 0;
  width: 55%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 2.8s ease-in-out 1s infinite;
}
/* Outer glow ring — separate from pulse so it stays when hovered */
.offer-float-badge::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 54px;
  background: transparent;
  border: 1.5px solid rgba(239,68,68,0.3);
  animation: ofbRing 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes ofbRing {
  0%   { inset: -4px;  opacity: .7; }
  100% { inset: -14px; opacity: 0;  }
}
.offer-float-badge:hover {
  filter: brightness(1.1);
  transform: translateY(-3px) scale(1.04);
  transition: filter .15s, transform .2s;
}
.ofb-icon   { font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.ofb-text   { display: flex; flex-direction: column; gap: 0; line-height: 1.2; text-align: left; }
.ofb-top    { font-size: .57rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .82; }
.ofb-bottom { font-size: .9rem; font-weight: 800; letter-spacing: -.02em; }
.ofb-arrow  { font-size: .85rem; font-weight: 800; opacity: .75; transition: transform .2s; }
.offer-float-badge:hover .ofb-arrow { transform: translateX(3px); }

/* Count bubble — notification dot top-right */
.ofb-count-bubble {
  position: absolute;
  top: -10px; right: -10px;
  min-width: 22px; height: 22px;
  border-radius: 11px;
  background: #fff;
  color: #ef4444;
  font-size: .62rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  border: 2px solid rgba(239,68,68,0.2);
  box-shadow: 0 2px 8px rgba(239,68,68,0.35);
  animation: bubblePop 0.55s cubic-bezier(0.34,1.56,0.64,1) .4s both;
  pointer-events: none;
}
@keyframes bubblePop {
  0%   { transform: scale(0) rotate(-20deg); opacity: 0; }
  70%  { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1)   rotate(0deg); opacity: 1; }
}
.ofb-count-bubble.bump {
  animation: bubbleBump .4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes bubbleBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4) rotate(-8deg); }
  100% { transform: scale(1)   rotate(0deg); }
}

@keyframes ofbFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes ofbPulse {
  0%   { box-shadow: 0 8px 28px rgba(239,68,68,0.45), 0 0 0 0   rgba(239,68,68,0.55); }
  60%  { box-shadow: 0 8px 28px rgba(239,68,68,0.45), 0 0 0 20px rgba(239,68,68,0);   }
  100% { box-shadow: 0 8px 28px rgba(239,68,68,0.45), 0 0 0 0   rgba(239,68,68,0);   }
}

/* ─── MOBILE — bottom sheet style ───────────────────────── */
@media (max-width: 600px) {
  /* Slide up from bottom instead of center popup */
  .offer-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .offer-card {
    border-radius: 22px 22px 0 0;
    max-width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Override desktop scale animation with slide-up */
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(0.34, 1.2, 0.64, 1), opacity .3s ease;
  }
  .offer-overlay.visible .offer-card {
    transform: translateY(0);
    opacity: 1;
  }

  /* Compact the content */
  .offer-timer-bar  { padding: .4rem 1.2rem; font-size: .72rem; }
  .offer-hero       { padding: 1.3rem 1.2rem 1.1rem; }
  .offer-headline   { font-size: 1.6rem; }
  .offer-subhead    { font-size: .82rem; margin-bottom: 1.1rem; }
  .offer-price-now .num { font-size: 2.8rem; }
  .offer-price-was  { font-size: 1.5rem; }
  .offer-body       { padding: 1.1rem 1.2rem 1.5rem; }
  .offer-feats      { gap: .4rem; margin-bottom: 1.1rem; }
  .offer-feats li   { font-size: .82rem; }
  .offer-social     { padding: .5rem .75rem; margin-bottom: 1rem; }
  .offer-cta        { padding: .85rem 1.2rem; font-size: .92rem; }

  /* Smaller floating badge on mobile */
  .offer-float-badge {
    bottom: 14px; right: 14px;
    padding: .52rem .85rem .52rem .68rem;
    gap: .38rem;
    border-radius: 40px;
  }
  .ofb-icon   { font-size: 1rem; }
  .ofb-top    { font-size: .5rem; }
  .ofb-bottom { font-size: .78rem; }
  .ofb-arrow  { font-size: .75rem; }
  .ofb-count-bubble {
    top: -8px; right: -8px;
    min-width: 18px; height: 18px;
    font-size: .56rem;
  }
}
