.offer-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.offer-modal:not(.is-open),
.offer-modal:not(.is-open) * {
  pointer-events: none !important;
}

.offer-panel {
  position: relative;
  width: 100%;
  max-width: 56rem;
  max-height: min(92vh, 820px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 48px rgba(11, 18, 32, 0.22);
  transform: translateY(24px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.offer-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 0% 0%, rgba(20, 87, 230, 0.16), transparent 58%),
    radial-gradient(ellipse 40% 32% at 100% 0%, rgba(20, 87, 230, 0.08), transparent 50%);
  border-radius: inherit;
}

.offer-modal.is-open .offer-panel {
  transform: translateY(0);
}

.offer-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(20, 87, 230, 0.2);
  box-shadow: 0 8px 24px rgba(20, 87, 230, 0.08);
}

.offer-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed rgba(20, 87, 230, 0.35);
}

.offer-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.offer-pkg {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--mist);
  background: #fff;
  border-radius: 14px;
  padding: 10px 8px;
  font-family: "Syne", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.offer-pkg:hover {
  border-color: rgba(20, 87, 230, 0.45);
}

.offer-pkg[aria-pressed="true"] {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(20, 87, 230, 0.08), #fff 70%);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(20, 87, 230, 0.15);
}

.offer-pkg-details {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--mist);
}

.offer-sticky {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.offer-sticky.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.offer-sticky.is-visible.is-suppressed {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.offer-sticky-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(244, 246, 250, 0.96);
  border: 0;
  border-top: 1px solid var(--mist);
  box-shadow: 0 -8px 32px rgba(11, 18, 32, 0.1);
  backdrop-filter: blur(10px);
  appearance: none;
  cursor: pointer;
  text-align: left;
}

.offer-sticky-desktop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 55;
  width: 272px;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--mist);
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.14);
  appearance: none;
  cursor: pointer;
  text-align: left;
}

@media (min-width: 768px) {
  .offer-modal {
    align-items: center;
    padding: 24px;
  }
  .offer-panel {
    border-radius: 24px;
    transform: translateY(12px) scale(0.98);
  }
  .offer-modal.is-open .offer-panel {
    transform: translateY(0) scale(1);
  }
  .offer-sticky-mobile { display: none; }
}

@media (max-width: 767px) {
  .offer-sticky-desktop { display: none; }
}
