/* ============================================
   Floating Offer Button + Popup Modal
   ============================================ */

/* ===== FLOATING BUTTON ===== */
.offer-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3ea5 0%, #c9184a 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow:
    0 10px 32px rgba(255, 62, 165, 0.45),
    0 0 0 0 rgba(255, 62, 165, 0.6);
  animation: fab-pulse 2.5s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
  font-family: 'Inter', system-ui, sans-serif;
}
.offer-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(255, 62, 165, 0.6);
  opacity: 1 !important;
}
.offer-fab .fab-icon {
  font-size: 1.15rem;
  animation: fab-spin 4s linear infinite;
}
.offer-fab .fab-badge {
  background: #ffc857;
  color: #1a0033;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 4px;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 10px 32px rgba(255, 62, 165, 0.45), 0 0 0 0 rgba(255, 62, 165, 0.5); }
  50%      { box-shadow: 0 10px 32px rgba(255, 62, 165, 0.45), 0 0 0 18px rgba(255, 62, 165, 0); }
}
@keyframes fab-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== MODAL OVERLAY ===== */
.offer-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 6, 19, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s ease;
}
.offer-modal.open {
  display: flex;
  opacity: 1;
}

/* ===== MODAL CARD ===== */
.offer-modal-card {
  width: 100%;
  max-width: 520px;
  background:
    radial-gradient(700px 300px at 20% -50px, rgba(255, 62, 165, 0.25), transparent 60%),
    linear-gradient(180deg, #1a0c2e 0%, #0f0820 100%);
  border: 1px solid rgba(255, 62, 165, 0.3);
  border-radius: 22px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 62, 165, 0.15);
  position: relative;
  overflow: hidden;
  transform: scale(.94) translateY(20px);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.offer-modal.open .offer-modal-card {
  transform: scale(1) translateY(0);
}

/* Top ribbon */
.offer-modal-ribbon {
  background: linear-gradient(90deg, #ff3ea5, #c9184a);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 16px;
}

/* Close button */
.offer-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
  z-index: 5;
}
.offer-modal-close:hover {
  background: rgba(255, 62, 165, 0.25);
  transform: rotate(90deg);
}

/* Body */
.offer-modal-body {
  padding: 28px 28px 24px;
  color: #fff;
  text-align: center;
}
.offer-modal-emoji {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 6px;
}
.offer-modal-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}
.offer-modal-title .pink-text {
  background: linear-gradient(135deg, #ff3ea5, #ffc857);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.offer-modal-sub {
  color: #b5a8c9;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Price strip */
.offer-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.offer-price-now {
  font-size: 2.6rem;
  font-weight: 900;
  color: #ff3ea5;
  line-height: 1;
}
.offer-price-now small {
  font-size: 1rem;
  color: #b5a8c9;
  font-weight: 500;
}
.offer-price-was {
  color: #8c7fa3;
  text-decoration: line-through;
  font-size: 1.05rem;
}
.offer-price-tag {
  display: inline-block;
  background: rgba(255, 200, 87, 0.15);
  border: 1px solid rgba(255, 200, 87, 0.4);
  color: #ffc857;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

/* Perks list */
.offer-perks {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0 22px;
  text-align: left;
}
.offer-perks li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  color: #e6e6f0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.offer-perks li i {
  color: #4ade80;
  margin-top: 4px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* CTA button inside modal */
.offer-cta {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #ff3ea5, #c9184a);
  color: #fff !important;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 18px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 24px rgba(255, 62, 165, 0.4);
  transition: transform .15s, box-shadow .15s;
  letter-spacing: 0.02em;
}
.offer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 62, 165, 0.55);
  opacity: 1 !important;
}
.offer-cta i { margin-right: 6px; }

.offer-modal-foot {
  margin-top: 14px;
  color: #8c7fa3;
  font-size: 0.78rem;
}
.offer-modal-foot .star {
  color: #ffc857;
  margin: 0 3px;
}

/* Countdown timer */
.offer-timer {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 20px;
}
.offer-timer-box {
  background: rgba(255, 62, 165, 0.12);
  border: 1px solid rgba(255, 62, 165, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 58px;
  text-align: center;
}
.offer-timer-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.offer-timer-label {
  font-size: 0.65rem;
  color: #b5a8c9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .offer-fab {
    right: 14px;
    bottom: 14px;
    padding: 12px 18px;
    font-size: 0.88rem;
  }
  .offer-fab .fab-badge { display: none; }
  .offer-modal-body { padding: 24px 20px 20px; }
  .offer-modal-title { font-size: 1.3rem; }
  .offer-price-now { font-size: 2.1rem; }
  .offer-perks { padding: 14px; }
  .offer-perks li { font-size: 0.88rem; }
}

/* Hide native scroll when modal is open */
body.modal-open { overflow: hidden; }

/* ============================================================
   VIDEO-BACKGROUND POPUP (auto-shows 6s after page load)
   Design inspired layout — GoLove AI content
   ============================================================ */
.vid-popup {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(7, 4, 14, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s ease;
}
.vid-popup.open { display: flex; opacity: 1; }

/* Card — landscape, rounded, glowing gold border */
.vid-popup-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #ffc857;
  box-shadow:
    0 0 0 1px rgba(255, 200, 87, 0.4),
    0 0 34px rgba(255, 200, 87, 0.55),
    0 30px 80px rgba(0, 0, 0, 0.7);
  transform: scale(.9) translateY(24px);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  isolation: isolate;
}
.vid-popup.open .vid-popup-card { transform: scale(1) translateY(0); }

/* Background video fills the card */
.vid-popup-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
/* Dark gradient overlay for text legibility */
.vid-popup-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,6,19,0.55) 0%, rgba(10,6,19,0.45) 40%, rgba(10,6,19,0.82) 100%),
    radial-gradient(120% 80% at 50% 0%, rgba(255,62,165,0.22), transparent 60%);
}

/* Close X */
.vid-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background .15s, transform .15s;
}
.vid-popup-close:hover { background: rgba(255,62,165,.45); transform: rotate(90deg); }

/* Body */
.vid-popup-body {
  position: relative;
  padding: 30px 26px 24px;
  text-align: center;
  color: #fff;
}
.vid-popup-title {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.vid-popup-title .gift { -webkit-text-fill-color: initial; margin-left: 6px; }
.vid-popup-sub {
  color: #ffc857;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.vid-popup-powered {
  color: #e7dcf5;
  font-size: 0.82rem;
  margin: 0 0 18px;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.vid-popup-powered strong { color: #ff8fc6; }

/* 3 feature columns */
.vid-popup-feats {
  display: flex;
  justify-content: center;
  gap: 6px;
  background: rgba(8, 5, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 8px;
  margin: 0 0 18px;
  backdrop-filter: blur(3px);
}
.vid-popup-feat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
}
.vid-popup-feat .feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: linear-gradient(135deg, #ff3ea5, #c9184a);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,62,165,.5);
}
.vid-popup-feat .feat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #f1e9fb;
  line-height: 1.2;
}

/* Gold gradient CTA */
.vid-popup-cta {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #ffe07a 0%, #ffc233 50%, #ff9e00 100%);
  color: #2a1500 !important;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  padding: 15px 16px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 26px rgba(255, 158, 0, 0.5);
  transition: transform .15s, box-shadow .15s;
  text-shadow: 0 1px 0 rgba(255,255,255,.3);
}
.vid-popup-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 158, 0, 0.65);
  opacity: 1 !important;
}

/* No thanks link */
.vid-popup-decline {
  display: inline-block;
  margin-top: 14px;
  color: #d9cdec;
  font-size: 0.8rem;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.vid-popup-decline:hover { color: #fff; }

/* ===== Video popup responsive ===== */
@media (max-width: 600px) {
  .vid-popup-card { max-width: 100%; }
  .vid-popup-body { padding: 26px 18px 20px; }
  .vid-popup-title { font-size: 1.4rem; }
  .vid-popup-sub { font-size: 0.95rem; }
  .vid-popup-feat .feat-label { font-size: 0.66rem; }
  .vid-popup-feat .feat-icon { width: 34px; height: 34px; }
  .vid-popup-cta { font-size: 0.95rem; padding: 14px; }
}
