.offer-hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.96fr);
}

.offer-hero-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.offer-panel-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.offer-panel-points span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(214, 223, 240, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  color: var(--text-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

html[data-theme="light"] .offer-panel-points span {
  border-color: rgba(96, 118, 148, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(231, 240, 249, 0.94)),
    linear-gradient(135deg, rgba(104, 143, 226, 0.12), rgba(255, 255, 255, 0.14) 60%, rgba(188, 70, 85, 0.05)),
    rgba(233, 242, 251, 0.98);
  color: #1c2f49;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 12px 22px rgba(56, 74, 103, 0.12);
}

html[data-theme-preset="cotton-candy-dark-ui"] .offer-panel-points span {
  border: 1px solid rgba(188, 70, 85, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 236, 241, 0.84)),
    linear-gradient(135deg, rgba(227, 236, 255, 0.14), rgba(255, 214, 224, 0.18) 60%, rgba(255, 157, 179, 0.12)),
    rgba(255, 242, 246, 0.76);
  color: #6f2035;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 18px rgba(96, 112, 145, 0.08);
}

.offer-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
}

.offer-steps-grid {
  grid-template-columns: 1fr;
}

.offer-preview-section {
  padding-top: var(--space-7);
}

.offer-preview-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1.16fr);
  gap: 22px;
  align-items: center;
}

.offer-preview-copy {
  display: grid;
  gap: 14px;
}

.offer-preview-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(214, 223, 240, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.015);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 52px rgba(0, 0, 0, 0.24),
    0 0 26px rgba(142, 166, 255, 0.08);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.offer-preview-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 223, 240, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 60px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(142, 166, 255, 0.1);
}

.offer-preview-image,
.offer-preview-modal-image {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.offer-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.offer-preview-modal[hidden] {
  display: none;
}

.offer-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.offer-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  padding: 18px;
  border: 1px solid rgba(214, 223, 240, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(7, 12, 22, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 36px 90px rgba(0, 0, 0, 0.44),
    0 0 34px rgba(142, 166, 255, 0.1);
}

.offer-preview-close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(214, 223, 240, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  color: var(--text-strong);
  cursor: pointer;
}

body.offer-preview-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .offer-preview-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .offer-preview-modal {
    padding: 14px;
  }

  .offer-preview-dialog {
    padding: 12px;
    border-radius: 22px;
  }

  .offer-preview-close {
    position: static;
    margin-bottom: 12px;
    width: 100%;
  }

  .offer-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

html[data-theme-preset] .offer-panel-points span {
  background: var(--theme-pill-bg);
  border-color: var(--theme-pill-border);
  color: var(--theme-pill-color);
  box-shadow: var(--theme-pill-shadow);
  text-shadow: var(--theme-pill-text-shadow);
}

html[data-theme-preset] .offer-preview-trigger,
html[data-theme-preset] .offer-preview-dialog,
html[data-theme-preset] .offer-preview-close {
  background: var(--theme-panel-bg);
  border-color: var(--theme-panel-border);
  color: var(--theme-panel-heading);
  box-shadow: var(--theme-panel-shadow);
}
