#nightmares-store {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto 80px;
  color: #fff;
}

.nightmares-page #buy-text {
  white-space: pre-line;
  line-height: 1.7;
}

.nightmares-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 48px 64px;
  overflow: hidden;
  border: 1px solid rgba(215, 141, 255, .2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 13% 25%, rgba(198, 90, 255, .28), transparent 30%),
    radial-gradient(circle at 88% 15%, rgba(255, 84, 180, .18), transparent 32%),
    linear-gradient(135deg, rgba(31, 11, 53, .97), rgba(16, 6, 34, .98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .36);
  text-align: center;
}

.nightmares-hero > div {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.nightmares-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.55) 1px, transparent 1.5px);
  background-size: 54px 54px;
  opacity: .2;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #e8a7ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nightmares-hero h1 {
  max-width: 720px;
  margin: 0 auto 14px;
  background: linear-gradient(90deg, #fff, #efb2ff 58%, #ff94cc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
}

.nightmares-hero p {
  max-width: none;
  margin: 0 auto;
  color: #cdbde0;
  font-size: 17px;
  line-height: 1.7;
  white-space: nowrap;
}

.coupon-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin: 32px 30px 50px;
  padding: 22px 28px;
  position: relative;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(35, 14, 55, .92);
  box-shadow: 0 18px 45px rgba(0,0,0,.3);
  backdrop-filter: blur(14px);
}

.coupon-box > div:first-child {
  display: flex;
  align-items: center;
  gap: 13px;
}
.coupon-box > div:first-child div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.coupon-box strong {
  color: #f6c7ff;
  font-size: 16px;
}

.coupon-box small {
  color: #a895b8;
}

.coupon-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(193,105,255,.12);
  font-size: 20px;
}
.coupon-form {
  display: flex;
  gap: 9px;
}
.coupon-form input {
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 11px;
  outline: none;
  background: rgba(0,0,0,.24);
  color: #fff;
  font: inherit;
  text-transform: uppercase;
}
.coupon-form input:focus {
  border-color: rgba(221,139,255,.55);
  box-shadow: 0 0 0 3px rgba(184,87,234,.1);
}
.coupon-form button {
  padding: 12px 16px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(100deg,#a94ee8,#e852ab);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.coupon-form button:disabled {
  opacity: .6;
  cursor: wait;
}
#coupon-status {
  flex-basis: 100%;
  color: #8ee6b5;
  font-size: 13px;
  text-align: right;
}

.store-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 0 4px 25px;
}

.store-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
}
.store-heading p {
  max-width: none;
  margin: 0;
  color: #aa9abb;
  line-height: 1.55;
  text-align: right;
  white-space: nowrap;
}

.nightmare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.nightmare-card {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(38, 18, 57, .96), rgba(20, 9, 35, .98));
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
  transition: transform .2s ease, border-color .2s ease;
}

.nightmare-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 133, 255, .28);
}

.nightmare-card.featured {
  border-color: rgba(255, 104, 192, .4);
  box-shadow: 0 22px 55px rgba(130, 38, 130, .25);
}

.popular-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #bd5dff, #ff5cad);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.package-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  color: #9f8db5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.package-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(196, 100, 255, .12);
  color: #db8fff;
  font-size: 19px;
}

.nightmare-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 22px;
}

.nightmare-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
}

.nightmare-amount span {
  color: #d293ec;
  font-weight: 600;
}

.bonus-line, .total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #ae9cbe;
}

.bonus-line strong {
  color: #ff91cf;
}

.total-line strong {
  color: #e6b0ff;
}

.price-line {
  margin: 22px 0 18px;
}

.price-line small {
  display: block;
  margin-bottom: 3px;
  color: #917fa4;
}

.price-line strong {
  color: #fff;
  font-size: 31px;
}

.price-line strong span {
  margin-right: 5px;
  color: #c6a9d8;
  font-size: 14px;
}

.purchase-actions {
  display: grid;
  gap: 9px;
}

.nightmare-buy {
  width: 100%;
  padding: 13px 15px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(100deg, #a94ee8, #e852ab);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(174, 65, 193, .2);
}
.nightmare-buy.secondary {
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.055);
  box-shadow: none;
  color: #dccce7;
}

.nightmare-buy:hover:not(:disabled) {
  filter: brightness(1.1);
}

.nightmare-buy:disabled {
  opacity: .6;
  cursor: wait;
}

.store-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 30px;
  margin-top: 34px;
  color: #92839f;
  font-size: 13px;
}

.payment-state {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 40px));
  margin: 90px auto;
  padding: 48px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(40,18,58,.97), rgba(18,8,31,.98));
  box-shadow: 0 28px 70px rgba(0,0,0,.35);
  color: #fff;
  text-align: center;
}

.state-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  border-radius: 50%;
  font-size: 36px;
  font-weight: 800;
}

.state-icon.pending {
  background: rgba(189,109,255,.13);
  color: #dca5ff;
}

.state-icon.success {
  background: rgba(97,221,166,.13);
  color: #83efb7;
}

.state-icon.failure {
  background: rgba(255,94,130,.13);
  color: #ff819f;
}

.payment-state h1 {
  margin: 0 0 14px;
  font-size: 34px;
}

.payment-state p {
  margin: 0 auto 26px;
  color: #bfaecb;
  font-size: 16px;
  line-height: 1.7;
}

.payment-state p strong {
  color: #e9bdff;
}

.state-button {
  display: inline-block;
  padding: 14px 23px;
  border-radius: 13px;
  background: linear-gradient(100deg, #a94ee8, #e852ab);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.state-link {
  display: block;
  margin: 17px auto;
  color: #bca7cc;
  text-decoration: none;
}

.payment-state small {
  display: block;
  color: #83748f;
}

@media (max-width: 900px) {
  .nightmare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nightmares-hero {
    padding: 40px;
  }

  .nightmares-hero p {
    white-space: normal;
  }

  .store-heading p {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  #nightmares-store {
    width: min(100% - 24px, 1180px);
    margin-top: 20px;
  }

  .nightmares-hero {
    display: block;
    min-height: 0;
    padding: 35px 24px 52px;
  }

  .coupon-box {
    align-items: stretch;
    flex-direction: column;
    margin: 24px 14px 44px;
  }

  .coupon-form {
    flex-direction: column;
  }

  .coupon-form input {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  #coupon-status {
    text-align: left;
  }

  .store-heading {
    display: block;
  }

  .store-heading p {
    margin-top: 12px;
    text-align: left;
  }

  .nightmare-grid {
    grid-template-columns: 1fr;
  }

  .nightmare-card {
    padding: 24px;
  }
  
  .payment-state {
    margin: 50px auto;
    padding: 38px 22px;
  }
}
