/* Lexora gift card page — premium wide layout, home-aligned tokens */

.gift-page {
  --gift-accent: #9d174d;
  --gift-accent-soft: rgba(157, 23, 77, 0.12);
  --gift-accent-hover: #831843;
  --gift-gold: #c9a227;
  --gift-ink: #18181b;
  --gift-ink-muted: #71717a;
  --gift-surface: #ffffff;
  --gift-border: rgba(24, 24, 27, 0.1);
  --gift-shadow: 0 4px 24px rgba(24, 24, 27, 0.08);
  --gift-shadow-lg: 0 24px 60px rgba(24, 24, 27, 0.12);
  padding-bottom: 0;
  background: var(--home-bg, #f4f4f5);
}

html.dark .gift-page {
  --gift-accent: #f472b6;
  --gift-accent-soft: rgba(244, 114, 182, 0.14);
  --gift-accent-hover: #fbcfe8;
  --gift-ink: #fafafa;
  --gift-ink-muted: #a1a1aa;
  --gift-surface: #141416;
  --gift-border: rgba(255, 255, 255, 0.08);
  --gift-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --gift-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ─── Hero banner ─── */
.gift-hero {
  position: relative;
  min-height: clamp(280px, 42vw, 420px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 0;
}

.gift-hero__media {
  position: absolute;
  inset: 0;
}

.gift-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.gift-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    102deg,
    rgba(9, 9, 11, 0.93) 0%,
    rgba(9, 9, 11, 0.72) 36%,
    rgba(88, 28, 52, 0.35) 58%,
    rgba(9, 9, 11, 0.12) 100%
  );
}

.gift-hero__inner {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
  max-width: 640px;
}

.gift-page__eyebrow,
.gift-showcase__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f9a8d4;
  margin: 0 0 0.65rem;
}

.gift-hero__inner h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.85rem;
  color: #fff;
}

.gift-hero__inner .gift-page__lead {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin: 0 0 1.35rem;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  max-width: 34rem;
}

.gift-hero__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.gift-hero__perks li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.gift-hero__perks i {
  color: var(--gift-gold);
  font-size: 0.875rem;
}

/* ─── Page body (centered wide column) ─── */
.gift-page__body {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(3rem, 6vw, 4.5rem);
}

/* ─── Category bento with photos ─── */
.gift-showcase {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.gift-showcase__head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gift-showcase__title {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
  color: var(--gift-ink);
}

.gift-showcase__title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0.5rem auto 0;
  border-radius: 2px;
  background: var(--gift-accent);
}

.gift-showcase__sub {
  font-size: 0.875rem;
  color: var(--gift-ink-muted);
  margin: 0 auto;
  max-width: 32rem;
  line-height: 1.55;
}

.gift-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gift-bento {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(150px, 1fr));
  }

  .gift-bento__tile--tall {
    grid-row: span 2;
  }

  .gift-bento__tile--wide {
    grid-column: span 2;
  }
}

.gift-bento__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 140px;
  padding: 1.15rem 1.25rem;
  border-radius: var(--home-radius-lg, 1rem);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--gift-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gift-bento__tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--gift-shadow-lg);
}

.gift-bento__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gift-bento__tile:hover .gift-bento__photo {
  transform: scale(1.06);
}

.gift-bento__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9, 9, 11, 0.82) 0%,
    rgba(9, 9, 11, 0.35) 55%,
    rgba(9, 9, 11, 0.15) 100%
  );
  pointer-events: none;
}

.gift-bento__label {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gift-bento__cta {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
  opacity: 0.9;
}

/* ─── Two-column layout: preview + form ─── */
.gift-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .gift-layout {
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: 2rem;
  }

  .gift-layout__aside {
    position: sticky;
    top: 6rem;
  }
}

.gift-aside-card {
  padding: 1.25rem;
  border-radius: var(--home-radius-xl, 1.25rem);
  background: var(--gift-surface);
  border: 1px solid var(--gift-border);
  box-shadow: var(--gift-shadow);
}

.gift-aside-benefits {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gift-aside-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: var(--gift-ink-muted);
  line-height: 1.45;
}

.gift-aside-benefits i {
  color: var(--gift-accent);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* ─── Form panels ─── */
.gift-form__panel {
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: var(--home-radius-lg, 1rem);
  background: var(--gift-surface);
  border: 1px solid var(--gift-border);
  box-shadow: var(--gift-shadow);
}

.gift-form__section h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--gift-ink);
  margin: 0 0 1.15rem;
}

.gift-form__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--gift-accent-soft);
  color: var(--gift-accent);
  flex-shrink: 0;
}

.gift-form__hint-block {
  font-size: 0.8125rem;
  color: var(--gift-ink-muted);
  margin: -0.65rem 0 1rem;
  line-height: 1.5;
}

/* Alerts */
.gift-alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.gift-alert--success {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: #15803d;
}

.dark .gift-alert--success {
  color: #86efac;
}

.gift-alert--error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #b91c1c;
}

.dark .gift-alert--error {
  color: #fca5a5;
}

/* Delivery options */
.gift-delivery-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 420px) {
  .gift-delivery-options {
    grid-template-columns: 1fr;
  }
}

.gift-delivery {
  cursor: pointer;
}

.gift-delivery input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gift-delivery span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  border: 2px solid var(--gift-border);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--gift-ink);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.gift-delivery span i {
  font-size: 1.125rem;
  opacity: 0.85;
  color: var(--gift-ink-muted);
}

.gift-delivery input:checked + span {
  border-color: var(--gift-accent);
  background: var(--gift-accent-soft);
  color: var(--gift-accent);
}

.gift-delivery input:checked + span i {
  color: var(--gift-accent);
}

.gift-field[hidden] {
  display: none !important;
}

/* Gift card preview — premium gradient (less blue) */
.gift-card-preview {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1.586 / 1;
  max-height: none;
  box-shadow:
    0 20px 50px rgba(157, 23, 77, 0.2),
    0 8px 24px rgba(24, 24, 27, 0.15);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease;
}

.gift-card-preview.is-updated {
  transform: scale(1.02);
}

.gift-card-preview__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 1.35rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #4c0519 0%, #831843 38%, #1c1917 100%);
  color: #fff;
}

.gift-card-preview__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 48%,
    transparent 58%
  );
  opacity: 0.75;
}

.gift-card-preview__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.gift-card-preview__brand {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.gift-card-preview__badge {
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.gift-card-preview__chip {
  width: 2.5rem;
  height: 1.85rem;
  border-radius: 6px;
  background: linear-gradient(145deg, #fde68a 0%, var(--gift-gold) 55%, #92400e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  margin: 0.15rem 0 0.35rem;
}

.gift-card-preview__amount {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.gift-card-preview.is-updated .gift-card-preview__amount {
  animation: gift-amount-pop 0.45s ease;
}

@keyframes gift-amount-pop {
  0% {
    opacity: 0.5;
    transform: scale(0.96);
  }
  60% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gift-card-preview,
  .gift-card-preview__amount,
  .gift-picker__mini,
  .gift-bento__tile,
  .gift-bento__photo {
    transition: none;
    animation: none;
  }

  .gift-card-preview.is-updated,
  .gift-bento__tile:hover {
    transform: none;
  }

  .gift-picker__option:hover .gift-picker__mini,
  .gift-picker__option input:checked + .gift-picker__mini {
    transform: none;
  }
}

.gift-card-preview__foot {
  margin: 0.35rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
}

/* Amount picker */
.gift-picker__deck-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gift-ink-muted);
  margin: 0 0 0.65rem;
}

.gift-picker__deck {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

@media (min-width: 520px) {
  .gift-picker__deck {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gift-picker__option {
  cursor: pointer;
}

.gift-picker__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gift-picker__mini {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 4.25rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: var(--home-bg-muted, #f4f4f5);
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(24, 24, 27, 0.06);
  transition:
    transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1),
    border-color 0.2s,
    box-shadow 0.25s;
}

.dark .gift-picker__mini {
  background: #1a1a1e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.gift-picker__mini-brand {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gift-accent);
  text-transform: uppercase;
}

.gift-picker__mini-amt {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gift-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.gift-picker__mini-amt small {
  display: block;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gift-ink-muted);
  margin-bottom: 0.1rem;
}

.gift-picker__option:hover .gift-picker__mini {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(157, 23, 77, 0.12);
}

.gift-picker__option input:checked + .gift-picker__mini {
  border-color: var(--gift-accent);
  box-shadow:
    0 0 0 3px var(--gift-accent-soft),
    0 10px 24px rgba(157, 23, 77, 0.15);
  transform: translateY(-2px);
}

.gift-picker__option input:focus-visible + .gift-picker__mini {
  outline: 2px solid var(--gift-accent);
  outline-offset: 3px;
}

/* Custom amount */
.gift-custom__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--home-text-secondary, #52525b);
  margin-bottom: 0.5rem;
}

.gift-custom__field {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  border: 1px solid var(--gift-border);
  background: var(--home-bg-muted, #f4f4f5);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dark .gift-custom__field {
  background: #1a1a1e;
}

.gift-custom__field:focus-within {
  border-color: var(--gift-accent);
  box-shadow: 0 0 0 3px var(--gift-accent-soft);
}

.gift-custom__prefix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--gift-ink-muted);
  background: rgba(24, 24, 27, 0.04);
  border-right: 1px solid var(--gift-border);
}

.dark .gift-custom__prefix {
  background: rgba(255, 255, 255, 0.04);
}

.gift-custom__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.9rem 1rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gift-ink);
  outline: none;
}

.gift-custom__input::placeholder {
  color: var(--gift-ink-muted);
  font-weight: 500;
}

.gift-custom__hint {
  font-size: 0.75rem;
  color: var(--gift-ink-muted);
  margin: 0.45rem 0 0;
}

/* Order summary */
.gift-order-summary {
  margin-top: 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--gift-border);
  background: var(--home-bg-muted, #f4f4f5);
}

.dark .gift-order-summary {
  background: #1a1a1e;
}

.gift-order-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  padding: 0.35rem 0;
}

.gift-order-summary__row--muted {
  color: var(--gift-ink-muted);
  font-size: 0.8125rem;
}

.gift-order-summary__row--total {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--gift-border);
  font-weight: 800;
  font-size: 0.9375rem;
}

.gift-order-summary__val {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gift-order-summary__row--total .gift-order-summary__val {
  color: var(--gift-accent);
  font-size: 1.0625rem;
}

/* Inputs */
.gift-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--gift-border);
  background: var(--home-bg-muted, #f4f4f5);
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--gift-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dark .gift-input {
  background: #1a1a1e;
}

.gift-input:focus {
  outline: none;
  border-color: var(--gift-accent);
  box-shadow: 0 0 0 3px var(--gift-accent-soft);
  background: var(--gift-surface);
}

/* PayHere card — neutral premium */
.gift-payhere-card {
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--gift-border);
  background: var(--home-bg-muted, #f4f4f5);
}

.dark .gift-payhere-card {
  background: #1a1a1e;
}

.gift-payhere-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.gift-payhere-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--gift-accent-soft);
  color: var(--gift-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gift-payhere-card__head div strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.2rem;
  color: var(--gift-ink);
}

.gift-payhere-card__head div span {
  font-size: 0.75rem;
  color: var(--gift-ink-muted);
}

.gift-payhere-card__badge {
  height: 1.75rem;
  width: auto;
  margin-bottom: 0.75rem;
}

.gift-payhere-card__badge--dark {
  display: none;
}

.dark .gift-payhere-card__badge--light {
  display: none;
}

.dark .gift-payhere-card__badge--dark {
  display: block;
}

.gift-payhere-card__note {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gift-ink-muted);
  margin: 0;
}

.gift-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
  background: var(--gift-accent) !important;
  border-color: var(--gift-accent) !important;
}

.gift-form__submit:hover {
  background: var(--gift-accent-hover) !important;
  border-color: var(--gift-accent-hover) !important;
}

.gift-form__fine {
  font-size: 0.6875rem;
  color: var(--gift-ink-muted);
  text-align: center;
  margin-top: 1rem;
}

.gift-page__after {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
}

.gift-page__after a {
  color: var(--gift-accent);
  font-weight: 600;
}

/* Trust strip */
.gift-trust {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gift-border);
}

.gift-trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .gift-trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gift-trust__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gift-trust__item {
  padding: 1.25rem;
  border-radius: var(--home-radius-lg, 1rem);
  background: var(--gift-surface);
  border: 1px solid var(--gift-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.gift-trust__item i {
  font-size: 1.125rem;
  color: var(--gift-accent);
  margin-bottom: 0.65rem;
}

.gift-trust__item h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--gift-ink);
}

.gift-trust__item p {
  font-size: 0.8125rem;
  color: var(--gift-ink-muted);
  margin: 0;
  line-height: 1.5;
}

/* PayHere loading */
.gift-payhere-loading {
  text-align: center;
  padding: 4rem 1rem;
}

.gift-payhere-loading__spinner {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--gift-accent-soft);
  border-top-color: var(--gift-accent);
  border-radius: 50%;
  animation: gift-spin 0.8s linear infinite;
}

@keyframes gift-spin {
  to {
    transform: rotate(360deg);
  }
}

.gift-payhere-loading h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.gift-payhere-loading p {
  color: var(--gift-ink-muted);
  margin: 0;
}

/* ─── Redeem gift card page ─── */
.gift-page--redeem {
  min-height: calc(100vh - 12rem);
  display: flex;
  flex-direction: column;
}

.gift-page--redeem .gift-page__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4rem);
}

.gift-redeem {
  width: min(100%, 28rem);
  margin-inline: auto;
}

.gift-redeem__preview {
  margin-bottom: 1.5rem;
}

.gift-redeem__preview .gift-card-preview {
  max-width: 18rem;
  margin-inline: auto;
}

.gift-redeem__head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gift-redeem__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gift-accent);
  margin: 0 0 0.75rem;
}

.gift-redeem__head h1 {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--gift-ink);
  margin: 0 0 0.65rem;
}

.gift-redeem__lead {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gift-ink-muted);
  margin: 0 auto;
  max-width: 24rem;
}

.gift-redeem__steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
}

.gift-redeem__steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gift-ink-muted);
}

.gift-redeem__steps li i {
  color: var(--gift-accent);
  font-size: 0.6875rem;
}

.gift-redeem__steps li:not(:last-child)::after {
  content: '›';
  margin-left: 0.35rem;
  opacity: 0.45;
}

.gift-redeem__form {
  margin-bottom: 0;
}

.gift-redeem__form .gift-form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gift-ink);
  margin-bottom: 0.5rem;
}

.gift-redeem__form .gift-input--code {
  margin-bottom: 0;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.15rem;
}

.gift-redeem__form .gift-input--code::placeholder {
  letter-spacing: 0.08em;
  font-weight: 500;
}

.gift-redeem__auth {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--gift-accent-soft);
  border: 1px solid rgba(157, 23, 77, 0.15);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gift-ink);
  text-align: center;
}

.dark .gift-redeem__auth {
  border-color: rgba(244, 114, 182, 0.2);
}

.gift-redeem__auth a {
  color: var(--gift-accent);
  font-weight: 700;
  text-decoration: none;
}

.gift-redeem__auth a:hover {
  text-decoration: underline;
}

.gift-redeem__form .gift-form__submit {
  margin-top: 1.15rem;
}

.gift-page--redeem .gift-form__submit {
  background: var(--home-cta) !important;
  border-color: var(--home-cta) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.gift-page--redeem .gift-form__submit:hover {
  background: var(--home-cta-hover) !important;
  border-color: var(--home-cta-hover) !important;
}

.gift-page--redeem .gift-page__after {
  margin-top: 1.5rem;
}

.gift-page--redeem .gift-alert {
  margin-bottom: 1rem;
}
