/* ============================================================================
   The Creative Garage — Luxury Launch Offer Animated Modal Popup
   ============================================================================ */

.offer-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, rgba(6, 10, 20, 0.85) 0%, rgba(2, 4, 8, 0.95) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.offer-modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.offer-modal-card {
  position: relative;
  max-width: 420px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 24px;
  overflow: hidden;
  background: #090e18;
  border: 1px solid rgba(255, 208, 1, 0.35);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 208, 1, 0.22), 0 0 90px rgba(0, 242, 254, 0.15);
  transform: perspective(1200px) scale(0.82) translateY(40px) rotateX(6deg);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.offer-modal-backdrop.is-active .offer-modal-card {
  transform: perspective(1200px) scale(1) translateY(0) rotateX(0);
}

/* Floating Ambient Neon Aura */
.offer-modal-card::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 208, 1, 0.25), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

/* Floating Glass Close Button */
.offer-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 13, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.offer-close-btn:hover {
  background: #ff2a5f;
  border-color: #ff2a5f;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.6);
}

/* Image Container */
.offer-img-wrapper {
  width: 100%;
  overflow: hidden;
  background: #050811;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.offer-modal-img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.offer-img-wrapper:hover .offer-modal-img {
  transform: scale(1.015);
}

/* Bottom Action Ribbon */
.offer-action-bar {
  width: 100%;
  background: #090e18;
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 3;
}

.offer-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #ffd001 0%, #f59e0b 100%);
  color: #050811;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(255, 208, 1, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 208, 1, 0.55);
}

.offer-cta-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.offer-subtext {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.04em;
}

/* Floating Re-Open Trigger Pill */
.offer-floating-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 15, 26, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 208, 1, 0.45);
  padding: 8px 16px;
  border-radius: 999px;
  color: #ffd001;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 208, 1, 0.22);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  /* Keep the click target stationary; the small beacon supplies the motion. */
}

.offer-floating-trigger:hover {
  transform: translateY(-3px) scale(1.04);
  background: rgba(15, 22, 38, 0.95);
  border-color: #ffd001;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 208, 1, 0.4);
}

.offer-beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd001;
  box-shadow: 0 0 8px #ffd001;
  animation: offerPulse 1.8s 3;
}

@keyframes offerPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 208, 1, 0.7);
  }
  70% {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(255, 208, 1, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 208, 1, 0);
  }
}

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

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .offer-modal-card {
    max-width: 92vw;
    border-radius: 18px;
  }
  
  .offer-modal-img {
    max-height: 68vh;
  }

  .offer-floating-trigger {
    bottom: 18px;
    left: 18px;
    padding: 7px 13px;
    font-size: 11px;
  }
}
