body.setra-buy-page {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: #fff;
  background: #020827;
  font-family: "Roboto", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.setra-buy-page button,
.setra-buy-page input {
  font: inherit;
}

.setra-buy-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  min-height: max(100svh, 765px);
  margin: 0 auto;
  padding: 22px 26px 110px;
}

.buy-page-header {
  text-align: center;
}

.buy-toolbar {
  min-height: 58px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
}

.buy-back-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(79, 142, 229, .7);
  border-radius: 14px;
  color: #f3f5fb;
  background: linear-gradient(145deg, rgba(15, 38, 91, .88), rgba(3, 13, 47, .94));
  box-shadow: inset 0 1px 10px rgba(76, 135, 224, .13), 0 7px 15px rgba(0, 2, 24, .24);
  text-decoration: none;
}

.buy-back-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.buy-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.buy-brand-mark {
  width: 51px;
  height: 51px;
  flex: 0 0 51px;
  overflow: hidden;
  border: 1px solid #3978ca;
  border-radius: 13px;
  background: #06143b url("../images/logo2.png") center -6px / 74px 74px no-repeat;
  box-shadow: inset 0 1px 11px rgba(47, 112, 215, .2), 0 6px 14px rgba(0, 0, 30, .25);
}

.buy-brand-name {
  min-width: 0;
  color: #c8cbd5;
  font-size: 21px;
  line-height: 1;
  white-space: nowrap;
}

.buy-brand-name strong {
  color: #fff;
  font-weight: 700;
}

.buy-page-header h1 {
  margin: 23px 0 6px;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-shadow: 0 4px 10px rgba(0, 0, 20, .38);
}

.buy-page-header > p {
  margin: 0;
  color: #bfc5d4;
  font-size: 17px;
  line-height: 1.4;
}

.setra-plan-list {
  margin-top: 23px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setra-plan-card {
  --accent: #23baff;
  --accent-soft: rgba(35, 186, 255, .22);
  --accent-deep: #1477e6;
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--accent);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 0%, var(--accent-soft), transparent 34%),
    linear-gradient(145deg, rgba(7, 22, 63, .96), rgba(1, 8, 35, .98));
  box-shadow:
    inset 0 1px 17px color-mix(in srgb, var(--accent) 11%, transparent),
    0 0 10px color-mix(in srgb, var(--accent) 16%, transparent),
    0 10px 22px rgba(0, 2, 25, .34);
}

.setra-plan-card::after {
  content: "";
  position: absolute;
  left: 27%;
  right: 27%;
  bottom: -1px;
  height: 2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent);
}

.setra-plan-card.tone-standard {
  --accent: #bd5cff;
  --accent-soft: rgba(172, 62, 255, .22);
  --accent-deep: #7c3fff;
}

.setra-plan-card.tone-premium {
  --accent: #ffc33e;
  --accent-soft: rgba(255, 188, 46, .22);
  --accent-deep: #ed9e0b;
}

.setra-plan-card.is-popular {
  box-shadow:
    inset 0 1px 20px color-mix(in srgb, var(--accent) 16%, transparent),
    0 0 14px color-mix(in srgb, var(--accent) 24%, transparent),
    0 11px 24px rgba(0, 2, 25, .36);
}

.setra-plan-head {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.setra-plan-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 20px;
  color: var(--accent);
  background:
    radial-gradient(circle at 30% 18%, color-mix(in srgb, var(--accent) 19%, transparent), transparent 30%),
    linear-gradient(145deg, rgba(8, 24, 64, .94), rgba(2, 9, 36, .98));
  box-shadow: inset 0 1px 13px var(--accent-soft), 0 0 9px color-mix(in srgb, var(--accent) 16%, transparent);
}

.setra-plan-icon svg {
  width: 56px;
  height: 56px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px var(--accent-soft));
}

.setra-plan-copy {
  min-width: 0;
}

.setra-popular-badge {
  width: fit-content;
  min-height: 23px;
  margin: 0 0 5px auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(24, 19, 14, .54);
  box-shadow: 0 0 8px var(--accent-soft);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.setra-plan-copy h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
}

.setra-plan-price {
  margin-top: 3px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #fff;
}

.setra-plan-price span {
  font-size: 19px;
  font-weight: 500;
}

.setra-plan-price strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
}

.setra-plan-copy p {
  margin: 5px 0 0;
  color: #c2c8d5;
  font-size: 13px;
  line-height: 1.25;
}

.setra-plan-lower {
  margin-top: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 119px;
  gap: 10px;
  align-items: center;
}

.setra-plan-features {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.setra-plan-features li {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  color: #f4f5f9;
  font-size: 11.5px;
  line-height: 1.25;
}

.setra-plan-features svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.setra-choose-plan {
  width: 119px;
  min-height: 48px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at top, var(--accent-soft), transparent 70%),
    rgba(4, 16, 51, .85);
  box-shadow: inset 0 1px 9px var(--accent-soft), 0 0 8px color-mix(in srgb, var(--accent) 13%, transparent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.tone-premium .setra-choose-plan {
  border-color: #ffe183;
  color: #302100;
  background: linear-gradient(105deg, #ffd35e, #efa715);
  box-shadow: 0 0 12px rgba(255, 187, 42, .28), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.setra-choose-plan:active {
  transform: translateY(1px);
}

.setra-referral-note {
  margin: 13px 0 0;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 23%, transparent);
  color: #9fa8bc;
  font-size: 10px;
  line-height: 1.3;
}

.setra-referral-note strong {
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}

.setra-plan-empty {
  padding: 34px 22px;
  border: 1px solid #397bd8;
  border-radius: 22px;
  color: #fff;
  text-align: center;
  background: linear-gradient(145deg, rgba(7, 22, 63, .96), rgba(1, 8, 35, .98));
}

.setra-plan-empty svg {
  width: 50px;
  height: 50px;
  fill: none;
  stroke: #28b8ff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.setra-plan-empty h2 {
  margin: 12px 0 5px;
  font-size: 21px;
}

.setra-plan-empty p {
  margin: 0;
  color: #aeb6c8;
  font-size: 13px;
}

.payment-modal-open {
  overflow: hidden !important;
}

.setra-payment-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  padding: 20px;
  display: none;
  align-items: center;
  justify-content: center;
}

.setra-payment-modal.is-open {
  display: flex;
}

.setra-payment-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 2, 20, .75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.setra-payment-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 378px);
  max-height: min(82svh, 610px);
  padding: 20px;
  overflow-y: auto;
  border: 1px solid #3996ed;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 0%, rgba(40, 123, 233, .25), transparent 36%),
    linear-gradient(145deg, #071a4b, #010924);
  box-shadow: inset 0 1px 18px rgba(60, 137, 235, .14), 0 24px 55px rgba(0, 1, 18, .62);
}

.setra-payment-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(81, 145, 230, .5);
  border-radius: 50%;
  color: #d8deea;
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
}

.setra-payment-close svg,
.setra-payment-icon svg,
.setra-payment-method-icon svg,
.setra-method-arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.setra-payment-close svg {
  width: 20px;
  height: 20px;
}

.setra-payment-head {
  padding-right: 35px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.setra-payment-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #ffc84f;
  border-radius: 15px;
  color: #ffc84f;
  background: rgba(255, 185, 36, .08);
}

.setra-payment-icon svg {
  width: 32px;
  height: 32px;
}

.setra-payment-head small {
  display: block;
  color: #34baff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.setra-payment-head h2 {
  margin: 3px 0;
  font-size: 22px;
}

.setra-payment-head p {
  margin: 0;
  color: #aeb6c8;
  font-size: 12px;
}

.setra-payment-method-list {
  margin-top: 18px;
  display: grid;
  gap: 9px;
}

.setra-payment-method {
  min-height: 62px;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 22px;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(59, 134, 231, .54);
  border-radius: 15px;
  color: #fff;
  background: rgba(4, 18, 56, .75);
  text-decoration: none;
}

.setra-payment-method-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 201, 77, .64);
  border-radius: 12px;
  color: #ffc94d;
  background: rgba(255, 187, 40, .08);
}

.setra-payment-method-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.setra-payment-method-icon svg {
  width: 27px;
  height: 27px;
}

.setra-payment-method-copy strong,
.setra-payment-method-copy small {
  display: block;
}

.setra-payment-method-copy strong {
  font-size: 14px;
}

.setra-payment-method-copy small {
  margin-top: 2px;
  color: #98a4bc;
  font-size: 11px;
}

.setra-method-arrow {
  width: 20px;
  height: 20px;
  color: #34baff;
}

.setra-payment-method.is-loading {
  opacity: .6;
  pointer-events: none;
}

.setra-payment-empty {
  padding: 18px;
  border: 1px solid rgba(59, 134, 231, .44);
  border-radius: 15px;
  color: #aeb6c8;
  text-align: center;
  background: rgba(4, 18, 56, .75);
  font-size: 13px;
}

@media (max-width: 374px) {
  .setra-buy-shell {
    min-height: max(100svh, 720px);
    padding: 18px 18px 96px;
  }

  .buy-toolbar {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 6px;
  }

  .buy-back-button {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }

  .buy-brand {
    gap: 7px;
  }

  .buy-brand-mark {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
    background-size: 66px 66px;
  }

  .buy-brand-name {
    font-size: 18px;
  }

  .buy-page-header h1 {
    margin-top: 18px;
    font-size: 32px;
  }

  .buy-page-header > p {
    font-size: 15px;
  }

  .setra-plan-list {
    margin-top: 19px;
    gap: 13px;
  }

  .setra-plan-card {
    padding: 15px;
    border-radius: 20px;
  }

  .setra-plan-head {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
  }

  .setra-plan-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .setra-plan-icon svg {
    width: 48px;
    height: 48px;
  }

  .setra-plan-copy h2 {
    font-size: 21px;
  }

  .setra-plan-price strong {
    font-size: 30px;
  }

  .setra-plan-lower {
    grid-template-columns: minmax(0, 1fr) 106px;
    gap: 8px;
  }

  .setra-plan-features li {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 5px;
    font-size: 10.5px;
  }

  .setra-plan-features svg {
    width: 18px;
    height: 18px;
  }

  .setra-choose-plan {
    width: 106px;
    min-height: 45px;
    padding-inline: 7px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .setra-choose-plan {
    transition: none;
  }
}
