:root {
  color-scheme: light;
  --bg: #f7f5f6;
  --surface: #ffffff;
  --surface-strong: #f1edef;
  --text: #1e191b;
  --muted: #786b70;
  --line: rgba(69, 42, 49, 0.12);
  --red: #ad2946;
  --red-dark: #7e1d37;
  --red-soft: #f4e7ea;
  --coral: #df6670;
  --gold: #d59b43;
  --cool: #eaf1ef;
  --shadow: 0 12px 30px rgba(54, 31, 38, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 14px 104px;
}

.profile-bar {
  display: grid;
  grid-template-columns: 50px 1fr 42px;
  gap: 12px;
  align-items: center;
  padding: 8px 2px 18px;
}

.profile-bar.is-hidden {
  display: none;
}

.avatar,
.icon-button {
  border: 0;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--red-dark), var(--red));
  color: white;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(126, 29, 55, 0.22);
}

.profile-copy {
  display: grid;
  gap: 3px;
}

.profile-copy strong {
  font-size: 19px;
  line-height: 1.15;
}

.profile-copy span {
  color: var(--muted);
  font-size: 15px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--red);
  box-shadow: 0 6px 16px rgba(54, 31, 38, 0.07);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.hero-card {
  min-height: 136px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 6px;
  background: linear-gradient(130deg, var(--red-dark), var(--red) 58%, var(--coral));
  color: white;
  box-shadow: var(--shadow);
}

.hero-card span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.76;
}

.hero-card strong {
  max-width: 270px;
  font-size: 25px;
  line-height: 1.08;
}

.hero-card small {
  max-width: 260px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-card svg {
  width: 96px;
  height: 96px;
  position: absolute;
  right: -18px;
  bottom: -22px;
  color: rgba(255, 229, 184, 0.24);
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.feature-card,
.metric,
.order-row {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(54, 31, 38, 0.07);
}

.feature-card {
  min-height: 128px;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 6px;
  text-align: left;
}

.feature-card.primary {
  background: linear-gradient(145deg, var(--red-dark), var(--red));
  color: white;
  border-color: transparent;
}

.feature-card.soft {
  background: #f3e6e9;
}

.feature-card.light {
  background: var(--cool);
}

.feature-card.outline {
  background: #fff7ee;
}

.card-icon {
  width: 23px;
  height: 23px;
  padding: 6px;
  box-sizing: content-box;
  border-radius: 10px;
  background: rgba(173, 41, 70, 0.09);
  color: var(--red);
}

.feature-card.primary .card-icon {
  color: white;
  background: rgba(255, 255, 255, 0.14);
}

.feature-card.light .card-icon {
  color: #376d65;
  background: rgba(55, 109, 101, 0.1);
}

.feature-card.outline .card-icon {
  color: #b65f35;
  background: rgba(182, 95, 53, 0.1);
}

.feature-card span {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 900;
}

.feature-card small {
  color: var(--muted);
  font-size: 13px;
}

.feature-card.primary small {
  color: rgba(255, 255, 255, 0.82);
}

.badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 25px;
  height: 25px;
  padding: 5px;
  border-radius: 9px;
  background: white;
  color: var(--red);
  box-shadow: 0 6px 16px rgba(145, 21, 39, 0.16);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  top: 15px;
  right: 16px;
}

.tabbar {
  width: min(320px, calc(100% - 28px));
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(54, 31, 38, 0.15);
  backdrop-filter: blur(18px);
  z-index: 5;
}

.tab {
  min-width: 0;
  height: 56px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.tab svg {
  width: 23px;
  height: 23px;
}

.tab.is-active {
  background: var(--red-dark);
  color: white;
}

.section-head {
  padding: 6px 2px 14px;
}

.section-head h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-top {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px;
  align-items: center;
  min-height: 52px;
  margin-bottom: 18px;
}

.page-top h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.round-back {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--red);
  box-shadow: 0 6px 16px rgba(54, 31, 38, 0.07);
}

.round-back svg {
  width: 22px;
  height: 22px;
}

.form-block {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.field-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.field-heading button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.input-shell {
  height: 52px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0 14px;
  color: var(--muted);
  box-shadow: 0 6px 16px rgba(54, 31, 38, 0.06);
}

.input-shell svg {
  width: 21px;
  height: 21px;
}

.input-shell input {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.package-head {
  margin: 8px 4px 10px;
  font-size: 14px;
  font-weight: 900;
}

.package-list {
  display: grid;
  gap: 9px;
}

.package-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: 22px 1fr 28px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 12px 14px;
  text-align: left;
  box-shadow: 0 6px 16px rgba(54, 31, 38, 0.06);
}

.package-row.is-selected {
  background: var(--red-dark);
  color: white;
  border-color: var(--red);
}

.package-row svg {
  width: 26px;
  height: 26px;
  color: var(--red);
  fill: rgba(215, 25, 50, 0.12);
}

.package-row.is-selected svg {
  color: #fff3f5;
  fill: rgba(255, 255, 255, 0.2);
}

.radio-dot {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.package-row.is-selected .radio-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: currentColor;
}

.package-copy {
  display: grid;
  gap: 2px;
}

.package-copy strong {
  font-size: 15px;
}

.package-copy small {
  color: var(--muted);
  font-size: 12px;
}

.package-row.is-selected small {
  color: rgba(255, 255, 255, 0.78);
}

.bottom-action {
  margin-top: 16px;
}

.bottom-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.payment-summary {
  min-height: 66px;
  display: grid;
  gap: 2px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: none;
}

.payment-summary strong {
  font-size: 18px;
}

.payment-summary span {
  color: var(--muted);
  font-size: 13px;
}

.currency-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(54, 31, 38, 0.06);
}

.currency-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.currency-switch button.is-active {
  background: var(--red-dark);
  color: white;
}

.payment-list {
  display: grid;
  gap: 10px;
}

.payment-method {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0 16px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(54, 31, 38, 0.06);
}

.payment-method[hidden] {
  display: none;
}

.payment-method.erip {
  background: var(--cool);
  color: #315f59;
}

.payment-method svg {
  width: 21px;
  height: 21px;
  color: var(--red);
}

.payment-method span {
  flex: 1;
  text-align: left;
}

.payment-method.erip svg {
  color: #376d65;
}

.balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.metric {
  border-radius: 8px;
  padding: 16px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  font-size: 28px;
  margin-top: 4px;
  color: var(--red);
}

.orders {
  display: grid;
  gap: 8px;
}

.order-row {
  border-radius: 16px;
  padding: 14px;
}

.order-row strong {
  display: block;
  font-size: 15px;
}

.order-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
}

.primary-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: var(--red-dark);
  color: white;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(126, 29, 55, 0.2);
}

.primary-button svg {
  width: 19px;
  height: 19px;
}

dialog {
  width: min(360px, calc(100% - 24px));
  border: 0;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
}

dialog::backdrop {
  background: rgba(48, 9, 16, 0.42);
}

.dialog-card {
  position: relative;
  padding: 24px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  display: grid;
  gap: 13px;
  box-shadow: var(--shadow);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red);
}

.dialog-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  color: var(--red);
}

.dialog-card h2 {
  margin: 0;
}

.dialog-card p {
  margin: 0;
  color: var(--muted);
}

button,
.feature-card,
.package-row,
.payment-method {
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

button:active,
.feature-card:active,
.package-row:active,
.payment-method:active {
  transform: translateY(1px) scale(0.99);
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(173, 41, 70, 0.18);
  outline-offset: 2px;
}

@media (max-width: 360px) {
  .app-shell {
    padding-inline: 10px;
  }

  .hero-card strong {
    font-size: 23px;
  }

  .feature-card {
    min-height: 122px;
    padding: 14px;
  }
}

/* Luxury dark theme */
:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --surface: #14161a;
  --surface-strong: #1a1c21;
  --text: #f2f1ec;
  --muted: #8e9198;
  --line: rgba(255, 255, 255, 0.105);
  --red: #b94a60;
  --red-dark: #8c3448;
  --red-soft: rgba(185, 74, 96, 0.1);
  --coral: #bd6873;
  --gold: #cba75d;
  --cool: #14191d;
  --telegram: #72aac8;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(11, 12, 15, 0.92), rgba(11, 12, 15, 0.985)),
    url("/assets/space-hero-v1.webp");
}

.app-shell {
  background: linear-gradient(180deg, rgba(203, 167, 93, 0.025), transparent 300px);
}

.avatar {
  border-color: rgba(203, 167, 93, 0.42);
  background: #1c1e23;
  color: #d4b46f;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.32);
}

.icon-button,
.round-back {
  border-color: var(--line);
  background: #16181d;
  color: #a8b7c1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}

.hero-card {
  min-height: 164px;
  border-color: rgba(203, 167, 93, 0.2);
  background-image:
    linear-gradient(90deg, rgba(8, 9, 12, 0.97) 0%, rgba(8, 9, 12, 0.83) 52%, rgba(8, 9, 12, 0.25) 100%),
    url("/assets/space-hero-v1.webp");
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.hero-card span {
  color: #cba75d;
  font-weight: 800;
}

.hero-card strong {
  color: #f4f3ee;
  font-size: 28px;
  font-weight: 800;
}

.hero-card small {
  color: #a3a5aa;
}

.hero-rocket {
  width: 140px;
  right: 2px;
  bottom: -20px;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.48));
}

.feature-card,
.feature-card.primary,
.feature-card.soft,
.feature-card.light,
.feature-card.outline {
  border-color: var(--line);
  background: #14161a;
  color: var(--text);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.feature-card::before {
  display: none;
}

.feature-card.primary {
  border-color: rgba(203, 167, 93, 0.24);
}

.feature-card.soft {
  border-color: rgba(114, 170, 200, 0.2);
}

.feature-card.light {
  border-color: rgba(133, 122, 177, 0.2);
}

.feature-card.outline {
  border-color: rgba(185, 74, 96, 0.2);
}

.feature-card span {
  color: #f0efea;
  font-weight: 800;
}

.feature-card small,
.feature-card.primary small {
  color: var(--muted);
}

.card-icon,
.feature-card.primary .card-icon,
.feature-card.light .card-icon,
.feature-card.outline .card-icon {
  background: #1e2025;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
  filter: none;
}

.feature-card.primary .card-icon {
  color: #d3ae5f;
}

.feature-card.soft .card-icon {
  color: #72aac8;
}

.feature-card.light .card-icon {
  color: #9285bf;
}

.feature-card.outline .card-icon {
  color: #b95a6d;
}

.badge {
  background: #202228;
  color: #c3c5c9;
  box-shadow: none;
}

.dot {
  background: #cba75d;
  box-shadow: 0 0 8px rgba(203, 167, 93, 0.46);
}

.tabbar {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(17, 18, 22, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
}

.tab.is-active {
  background: #22242a;
  color: #f0efeb;
  box-shadow: inset 0 0 0 1px rgba(203, 167, 93, 0.15);
}

.tab.is-active svg {
  color: #cba75d;
}

.input-shell,
.package-row,
.currency-switch,
.payment-method,
input {
  border-color: var(--line);
  background: #14161a;
  color: var(--text);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.input-shell:focus-within {
  border-color: rgba(203, 167, 93, 0.48);
  box-shadow: 0 0 0 3px rgba(203, 167, 93, 0.07);
}

.field-heading button,
.round-back,
.metric strong {
  color: #9eb5c1;
}

.package-row svg {
  color: #cba75d;
  fill: rgba(203, 167, 93, 0.1);
}

.package-row.is-selected {
  border-color: rgba(203, 167, 93, 0.52);
  background: #22221f;
  color: #f2f1ec;
  box-shadow: inset 0 0 0 1px rgba(203, 167, 93, 0.07);
}

.package-row.is-selected small {
  color: #aaa89f;
}

.payment-summary {
  border-color: var(--line);
  background: #17191e;
}

.currency-switch {
  background: #111216;
}

.currency-switch button.is-active {
  background: #23252a;
  color: #d6b66f;
  box-shadow: inset 0 0 0 1px rgba(203, 167, 93, 0.13);
}

.payment-method {
  background: #15171b;
  color: #f0efea;
}

.payment-method svg,
.payment-method.erip svg {
  color: #9eb5c1;
}

.payment-method.erip {
  border-color: rgba(114, 170, 200, 0.18);
  background: #14191d;
  color: #bdcbd2;
}

.primary-button {
  background: #dec590;
  color: #17181b;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.metric,
.order-row {
  border-color: var(--line);
  background: #14161a;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.24);
}

.dialog-card {
  border-color: var(--line);
  background: #14161a;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.62);
}

.dialog-close {
  background: #22242a;
  color: #a9acb2;
}

.dialog-icon {
  color: #cba75d;
}

button:focus-visible,
input:focus-visible {
  outline-color: rgba(203, 167, 93, 0.3);
}

@media (max-width: 360px) {
  .hero-rocket {
    width: 126px;
    right: -3px;
    bottom: -16px;
  }
}

/* Pearl layer lock */
:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-strong: #eef1f4;
  --text: #17191e;
  --muted: #747982;
  --line: rgba(24, 28, 35, 0.11);
  --gold: #a98237;
  --cool: #edf5f8;
  --telegram: #3f8cae;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(247, 249, 251, 0.96), rgba(244, 246, 248, 0.99)),
    url("/assets/space-hero-v1.webp");
  color: var(--text);
}

.app-shell {
  background: linear-gradient(180deg, rgba(169, 130, 55, 0.035), transparent 320px);
}

.avatar {
  border-color: rgba(169, 130, 55, 0.28);
  background: #ffffff;
  color: #8f6a25;
  box-shadow: 0 10px 28px rgba(26, 31, 40, 0.09);
}

.icon-button,
.round-back {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: #59626c;
  box-shadow: 0 8px 24px rgba(26, 31, 40, 0.07);
}

.hero-card {
  border-color: rgba(169, 130, 55, 0.2);
  background-color: #ffffff;
  background-image:
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 50%, rgba(255, 255, 255, 0.58) 100%),
    url("/assets/space-hero-v1.webp");
  box-shadow: 0 18px 48px rgba(29, 35, 44, 0.1);
}

.hero-card span {
  color: #987128;
}

.hero-card strong {
  color: #17191e;
}

.hero-card small {
  color: #6f747c;
}

.feature-card,
.feature-card.primary,
.feature-card.soft,
.feature-card.light,
.feature-card.outline {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(28, 34, 43, 0.075);
}

.feature-card span {
  color: #1b1e23;
}

.feature-card small,
.feature-card.primary small {
  color: var(--muted);
}

.card-icon,
.feature-card.primary .card-icon,
.feature-card.light .card-icon,
.feature-card.outline .card-icon {
  background: #f3f5f7;
  box-shadow: inset 0 0 0 1px rgba(24, 28, 35, 0.055);
}

.badge {
  background: #eef1f4;
  color: #646a73;
}

.tabbar {
  border-color: rgba(24, 28, 35, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(28, 34, 43, 0.13);
  backdrop-filter: blur(18px);
}

.tab {
  color: #7b8088;
}

.tab.is-active {
  background: #191c22;
  color: #ffffff;
  box-shadow: none;
}

.tab.is-active svg {
  color: #d2ad64;
}

.input-shell,
.package-row,
.currency-switch,
.payment-method,
input,
.metric,
.order-row {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 9px 26px rgba(28, 34, 43, 0.065);
}

.input-shell:focus-within {
  border-color: rgba(169, 130, 55, 0.5);
  box-shadow: 0 0 0 3px rgba(169, 130, 55, 0.09);
}

.package-row.is-selected {
  border-color: rgba(169, 130, 55, 0.62);
  background: #fffdf8;
  color: #17191e;
  box-shadow:
    inset 0 0 0 1px rgba(169, 130, 55, 0.08),
    0 12px 30px rgba(35, 31, 23, 0.08);
}

.package-row.is-selected small {
  color: #726b5d;
}

.payment-summary {
  border-color: var(--line);
  background: #ffffff;
}

.currency-switch {
  background: #eef1f4;
}

.currency-switch button.is-active {
  background: #ffffff;
  color: #8f6a25;
  box-shadow: 0 5px 16px rgba(28, 34, 43, 0.08);
}

.payment-method.erip {
  border-color: rgba(63, 140, 174, 0.2);
  background: #edf5f8;
  color: #356f89;
}

.primary-button {
  background: #191c22;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 23, 29, 0.2);
}

.primary-button svg {
  color: #d2ad64;
}

.dialog-card {
  border-color: var(--line);
  background: #ffffff;
  color: #17191e;
  box-shadow: 0 28px 70px rgba(28, 34, 43, 0.2);
}

.dialog-close {
  background: #eef1f4;
  color: #626872;
}

dialog::backdrop {
  background: rgba(27, 31, 38, 0.38);
  backdrop-filter: blur(8px);
}

/* Pearl luxury theme */
:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-strong: #eef1f4;
  --text: #17191e;
  --muted: #747982;
  --line: rgba(24, 28, 35, 0.11);
  --red: #b3485c;
  --red-dark: #8c3448;
  --red-soft: rgba(179, 72, 92, 0.08);
  --gold: #a98237;
  --cool: #edf5f8;
  --telegram: #3f8cae;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(247, 249, 251, 0.96), rgba(244, 246, 248, 0.99)),
    url("/assets/space-hero-v1.webp");
  color: var(--text);
}

.app-shell {
  background: linear-gradient(180deg, rgba(169, 130, 55, 0.035), transparent 320px);
}

.avatar {
  border-color: rgba(169, 130, 55, 0.28);
  background: #ffffff;
  color: #8f6a25;
  box-shadow: 0 10px 28px rgba(26, 31, 40, 0.09);
}

.icon-button,
.round-back {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: #59626c;
  box-shadow: 0 8px 24px rgba(26, 31, 40, 0.07);
}

.hero-card {
  border-color: rgba(169, 130, 55, 0.2);
  background-color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 50%, rgba(255, 255, 255, 0.58) 100%),
    url("/assets/space-hero-v1.webp");
  box-shadow: 0 18px 48px rgba(29, 35, 44, 0.1);
}

.hero-card span {
  color: #987128;
}

.hero-card strong {
  color: #17191e;
}

.hero-card small {
  color: #6f747c;
}

.feature-card,
.feature-card.primary,
.feature-card.soft,
.feature-card.light,
.feature-card.outline {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(28, 34, 43, 0.075);
}

.feature-card span {
  color: #1b1e23;
}

.feature-card small,
.feature-card.primary small {
  color: var(--muted);
}

.card-icon,
.feature-card.primary .card-icon,
.feature-card.light .card-icon,
.feature-card.outline .card-icon {
  background: #f3f5f7;
  box-shadow: inset 0 0 0 1px rgba(24, 28, 35, 0.055);
}

.badge {
  background: #eef1f4;
  color: #646a73;
}

.tabbar {
  border-color: rgba(24, 28, 35, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(28, 34, 43, 0.13);
  backdrop-filter: blur(18px);
}

.tab {
  color: #7b8088;
}

.tab.is-active {
  background: #191c22;
  color: #ffffff;
  box-shadow: none;
}

.tab.is-active svg {
  color: #d2ad64;
}

.input-shell,
.package-row,
.currency-switch,
.payment-method,
input,
.metric,
.order-row {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 9px 26px rgba(28, 34, 43, 0.065);
}

.input-shell:focus-within {
  border-color: rgba(169, 130, 55, 0.5);
  box-shadow: 0 0 0 3px rgba(169, 130, 55, 0.09);
}

.package-row.is-selected {
  border-color: rgba(169, 130, 55, 0.62);
  background: #fffdf8;
  color: #17191e;
  box-shadow:
    inset 0 0 0 1px rgba(169, 130, 55, 0.08),
    0 12px 30px rgba(35, 31, 23, 0.08);
}

.package-row.is-selected small {
  color: #726b5d;
}

.payment-summary {
  border-color: var(--line);
  background: #ffffff;
}

.currency-switch {
  background: #eef1f4;
}

.currency-switch button {
  color: #747982;
}

.currency-switch button.is-active {
  background: #ffffff;
  color: #8f6a25;
  box-shadow: 0 5px 16px rgba(28, 34, 43, 0.08);
}

.payment-method.erip {
  border-color: rgba(63, 140, 174, 0.2);
  background: #edf5f8;
  color: #356f89;
}

.primary-button {
  background: #191c22;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 23, 29, 0.2);
}

.primary-button svg {
  color: #d2ad64;
}

.dialog-card {
  border-color: var(--line);
  background: #ffffff;
  color: #17191e;
  box-shadow: 0 28px 70px rgba(28, 34, 43, 0.2);
}

.dialog-close {
  background: #eef1f4;
  color: #626872;
}

dialog::backdrop {
  background: rgba(27, 31, 38, 0.38);
  backdrop-filter: blur(8px);
}

/* Cosmic theme */
:root {
  color-scheme: dark;
  --bg: #07080d;
  --surface: #11131b;
  --surface-strong: #171923;
  --text: #f7f7fb;
  --muted: #9497a8;
  --line: rgba(255, 255, 255, 0.1);
  --red: #e44770;
  --red-dark: #b72d55;
  --red-soft: rgba(228, 71, 112, 0.13);
  --coral: #f06a72;
  --gold: #ffc85a;
  --cool: #101c25;
  --telegram: #4db6ff;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(7, 8, 13, 0.9), rgba(7, 8, 13, 0.97)),
    url("/assets/space-hero-v1.webp");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

.app-shell {
  background: linear-gradient(180deg, rgba(77, 182, 255, 0.035), transparent 260px);
}

.avatar {
  background: linear-gradient(145deg, #242735, #151720);
  border: 1px solid rgba(255, 200, 90, 0.34);
  color: var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.profile-copy strong {
  color: var(--text);
}

.icon-button,
.round-back {
  border-color: var(--line);
  background: rgba(17, 19, 27, 0.94);
  color: var(--telegram);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.hero-card {
  min-height: 172px;
  border-color: rgba(255, 255, 255, 0.12);
  background-image:
    linear-gradient(90deg, rgba(5, 7, 12, 0.96) 0%, rgba(5, 7, 12, 0.76) 48%, rgba(5, 7, 12, 0.1) 100%),
    url("/assets/space-hero-v1.webp");
  background-position: center;
  background-size: cover;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 16px 38px rgba(0, 0, 0, 0.4);
}

.hero-card span {
  color: var(--telegram);
  opacity: 1;
}

.hero-card strong {
  max-width: 190px;
  font-size: 29px;
}

.hero-card small {
  color: rgba(255, 255, 255, 0.68);
}

.hero-rocket {
  width: 154px;
  height: auto;
  position: absolute;
  right: -3px;
  bottom: -26px;
  pointer-events: none;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.46));
}

.feature-card,
.metric,
.order-row {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.27);
}

.feature-card {
  isolation: isolate;
}

.feature-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 2px;
  background: currentColor;
  opacity: 0.72;
}

.feature-card.primary {
  border-color: rgba(255, 200, 90, 0.22);
  background: linear-gradient(150deg, #1f1b18, #21161d);
  color: var(--gold);
}

.feature-card.soft {
  border-color: rgba(77, 182, 255, 0.2);
  background: linear-gradient(150deg, #101e2a, #11131b);
  color: var(--telegram);
}

.feature-card.light {
  border-color: rgba(142, 118, 255, 0.2);
  background: linear-gradient(150deg, #1a1830, #11131b);
  color: #a99cff;
}

.feature-card.outline {
  border-color: rgba(228, 71, 112, 0.2);
  background: linear-gradient(150deg, #29151f, #11131b);
  color: var(--red);
}

.feature-card span,
.feature-card small {
  color: var(--text);
}

.feature-card small {
  color: var(--muted);
}

.feature-card.primary small {
  color: var(--muted);
}

.card-icon,
.feature-card.primary .card-icon {
  color: currentColor;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  filter: drop-shadow(0 0 7px currentColor);
}

.feature-card.light .card-icon,
.feature-card.outline .card-icon {
  color: currentColor;
  background: rgba(255, 255, 255, 0.055);
}

.badge {
  background: #20232e;
  color: currentColor;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.3);
}

.dot {
  box-shadow: 0 0 12px rgba(255, 200, 90, 0.68);
}

.tabbar {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 17, 24, 0.9);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.48);
}

.tab {
  color: var(--muted);
}

.tab.is-active {
  background: linear-gradient(145deg, #252837, #1d202b);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(77, 182, 255, 0.16);
}

.tab.is-active svg {
  color: var(--telegram);
}

.input-shell,
.package-row,
.currency-switch,
.payment-method,
input {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.23);
}

.input-shell:focus-within {
  border-color: rgba(77, 182, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(77, 182, 255, 0.09);
}

.field-heading button,
.round-back,
.metric strong {
  color: var(--telegram);
}

.package-row svg {
  color: var(--gold);
  fill: rgba(255, 200, 90, 0.12);
}

.package-row.is-selected {
  border-color: rgba(255, 200, 90, 0.48);
  background: linear-gradient(145deg, #2a1c18, #21161d);
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px rgba(255, 200, 90, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.32);
}

.package-row.is-selected .radio-dot,
.package-row.is-selected svg {
  color: var(--gold);
}

.payment-summary {
  border-color: var(--line);
  background: linear-gradient(145deg, #171923, #11131b);
}

.currency-switch button.is-active {
  background: #242838;
  color: var(--telegram);
  box-shadow: inset 0 0 0 1px rgba(77, 182, 255, 0.18);
}

.payment-method svg {
  color: var(--telegram);
}

.payment-method.erip {
  border-color: rgba(77, 182, 255, 0.2);
  background: var(--cool);
  color: #8ed7ff;
}

.payment-method.erip svg {
  color: #8ed7ff;
}

.primary-button {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: white;
  box-shadow: 0 10px 26px rgba(183, 45, 85, 0.32);
}

.dialog-card {
  border-color: var(--line);
  background: #11131b;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.62);
}

.dialog-close {
  background: #20232e;
  color: var(--telegram);
}

.dialog-icon {
  color: var(--gold);
}

dialog::backdrop {
  background: rgba(2, 3, 8, 0.76);
}

button:focus-visible,
input:focus-visible {
  outline-color: rgba(77, 182, 255, 0.32);
}

@media (max-width: 360px) {
  .hero-card strong {
    max-width: 150px;
    font-size: 25px;
  }

  .hero-rocket {
    width: 136px;
    right: -6px;
    bottom: -20px;
  }
}

/* Luxury layer lock */
:root {
  --bg: #0b0c0f;
  --surface: #14161a;
  --surface-strong: #1a1c21;
  --text: #f2f1ec;
  --muted: #8e9198;
  --line: rgba(255, 255, 255, 0.105);
  --red: #b94a60;
  --red-dark: #8c3448;
  --red-soft: rgba(185, 74, 96, 0.1);
  --gold: #cba75d;
  --cool: #14191d;
  --telegram: #72aac8;
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(11, 12, 15, 0.92), rgba(11, 12, 15, 0.985)),
    url("/assets/space-hero-v1.webp");
}

.app-shell {
  background: linear-gradient(180deg, rgba(203, 167, 93, 0.025), transparent 300px);
}

.avatar {
  border-color: rgba(203, 167, 93, 0.42);
  background: #1c1e23;
  color: #d4b46f;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.32);
}

.icon-button,
.round-back {
  border-color: var(--line);
  background: #16181d;
  color: #a8b7c1;
}

.hero-card {
  min-height: 164px;
  border-color: rgba(203, 167, 93, 0.2);
  background-image:
    linear-gradient(90deg, rgba(8, 9, 12, 0.97) 0%, rgba(8, 9, 12, 0.83) 52%, rgba(8, 9, 12, 0.25) 100%),
    url("/assets/space-hero-v1.webp");
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.hero-card span {
  color: #cba75d;
}

.hero-card small {
  color: #a3a5aa;
}

.hero-rocket {
  width: 140px;
  right: 2px;
  bottom: -20px;
}

.feature-card,
.feature-card.primary,
.feature-card.soft,
.feature-card.light,
.feature-card.outline {
  border-color: var(--line);
  background: #14161a;
  color: var(--text);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.feature-card::before {
  display: none;
}

.feature-card span {
  color: #f0efea;
}

.feature-card small,
.feature-card.primary small {
  color: var(--muted);
}

.card-icon,
.feature-card.primary .card-icon,
.feature-card.light .card-icon,
.feature-card.outline .card-icon {
  background: #1e2025;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
  filter: none;
}

.feature-card.primary .card-icon {
  color: #d3ae5f;
}

.feature-card.soft .card-icon {
  color: #72aac8;
}

.feature-card.light .card-icon {
  color: #9285bf;
}

.feature-card.outline .card-icon {
  color: #b95a6d;
}

.badge {
  background: #202228;
  color: #c3c5c9;
  box-shadow: none;
}

.tabbar {
  background: rgba(17, 18, 22, 0.94);
}

.tab.is-active {
  background: #22242a;
  color: #f0efeb;
  box-shadow: inset 0 0 0 1px rgba(203, 167, 93, 0.15);
}

.tab.is-active svg {
  color: #cba75d;
}

.input-shell,
.package-row,
.currency-switch,
.payment-method,
input,
.metric,
.order-row {
  border-color: var(--line);
  background: #14161a;
  color: var(--text);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.package-row.is-selected {
  border-color: rgba(203, 167, 93, 0.52);
  background: #22221f;
  color: #f2f1ec;
  box-shadow: inset 0 0 0 1px rgba(203, 167, 93, 0.07);
}

.package-row.is-selected small {
  color: #aaa89f;
}

.payment-summary {
  background: #17191e;
}

.currency-switch {
  background: #111216;
}

.currency-switch button.is-active {
  background: #23252a;
  color: #d6b66f;
  box-shadow: inset 0 0 0 1px rgba(203, 167, 93, 0.13);
}

.payment-method.erip {
  background: #14191d;
  color: #bdcbd2;
}

.primary-button {
  background: #dec590;
  color: #17181b;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.dialog-card {
  background: #14161a;
}

@media (max-width: 360px) {
  .hero-rocket {
    width: 126px;
    right: -3px;
    bottom: -16px;
  }
}

/* Final pearl theme lock */
:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-strong: #eef1f4;
  --text: #17191e;
  --muted: #747982;
  --line: rgba(24, 28, 35, 0.11);
  --gold: #a98237;
  --cool: #edf5f8;
  --telegram: #3f8cae;
}

body {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(247, 249, 251, 0.96), rgba(244, 246, 248, 0.99)), url("/assets/space-hero-v1.webp");
  color: var(--text);
}

.app-shell {
  background: linear-gradient(180deg, rgba(169, 130, 55, 0.035), transparent 320px);
}

.avatar {
  border-color: rgba(169, 130, 55, 0.28);
  background: #ffffff;
  color: #8f6a25;
  box-shadow: 0 10px 28px rgba(26, 31, 40, 0.09);
}

.icon-button,
.round-back {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: #59626c;
}

.hero-card {
  border-color: rgba(169, 130, 55, 0.2);
  background-color: #ffffff;
  background-image: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 50%, rgba(255, 255, 255, 0.58) 100%), url("/assets/space-hero-v1.webp");
  box-shadow: 0 18px 48px rgba(29, 35, 44, 0.1);
}

.hero-card span { color: #987128; }
.hero-card strong { color: #17191e; }
.hero-card small { color: #6f747c; }

.feature-card,
.feature-card.primary,
.feature-card.soft,
.feature-card.light,
.feature-card.outline {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(28, 34, 43, 0.075);
}

.feature-card span { color: #1b1e23; }
.feature-card small,
.feature-card.primary small { color: var(--muted); }

.card-icon,
.feature-card.primary .card-icon,
.feature-card.light .card-icon,
.feature-card.outline .card-icon {
  background: #f3f5f7;
  box-shadow: inset 0 0 0 1px rgba(24, 28, 35, 0.055);
}

.badge { background: #eef1f4; color: #646a73; }

.tabbar {
  border-color: rgba(24, 28, 35, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(28, 34, 43, 0.13);
}

.tab { color: #7b8088; }
.tab.is-active { background: #191c22; color: #ffffff; box-shadow: none; }
.tab.is-active svg { color: #d2ad64; }

.input-shell,
.package-row,
.currency-switch,
.payment-method,
input,
.metric,
.order-row {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 9px 26px rgba(28, 34, 43, 0.065);
}

.package-row.is-selected {
  border-color: rgba(169, 130, 55, 0.62);
  background: #fffdf8;
  color: #17191e;
  box-shadow: inset 0 0 0 1px rgba(169, 130, 55, 0.08), 0 12px 30px rgba(35, 31, 23, 0.08);
}

.package-row.is-selected small { color: #726b5d; }
.payment-summary { border-color: var(--line); background: #ffffff; }
.currency-switch { background: #eef1f4; }

.currency-switch button.is-active {
  background: #ffffff;
  color: #8f6a25;
  box-shadow: 0 5px 16px rgba(28, 34, 43, 0.08);
}

.payment-method.erip { border-color: rgba(63, 140, 174, 0.2); background: #edf5f8; color: #356f89; }
.primary-button { background: #191c22; color: #ffffff; box-shadow: 0 12px 28px rgba(20, 23, 29, 0.2); }
.primary-button svg { color: #d2ad64; }
.dialog-card { border-color: var(--line); background: #ffffff; color: #17191e; }
.dialog-close { background: #eef1f4; color: #626872; }
dialog::backdrop { background: rgba(27, 31, 38, 0.38); backdrop-filter: blur(8px); }

/* Kinostar orbital bento */
.app-shell {
  width: min(420px, 100%);
  padding: 16px 14px 116px;
}

.profile-bar {
  grid-template-columns: 48px 1fr 42px;
  padding: 4px 2px 16px;
}

.profile-copy strong {
  letter-spacing: 0;
}

.hero-card {
  min-height: 184px;
  padding: 22px;
  border-color: rgba(24, 28, 35, 0.09);
  border-radius: 16px;
  align-content: start;
  background-clip: padding-box;
  background-image:
    linear-gradient(92deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 49%, rgba(242, 245, 248, 0.52) 100%),
    url("/assets/space-hero-v1.webp");
  box-shadow: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 5px;
}

.hero-copy span {
  color: #987128;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy strong {
  max-width: 190px;
  color: #17191e;
  font-size: 26px;
  line-height: 1.02;
  white-space: pre-line;
}

.hero-copy small {
  max-width: 185px;
  color: #6f747c;
  font-size: 13px;
}

.hero-tags {
  position: absolute;
  z-index: 3;
  left: 20px;
  bottom: 17px;
  display: flex;
  gap: 7px;
}

.hero-tags b {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(24, 28, 35, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #555b64;
  font-size: 10px;
  box-shadow: 0 7px 18px rgba(28, 34, 43, 0.055);
  backdrop-filter: blur(10px);
}

.hero-tags svg {
  width: 13px;
  height: 13px;
  position: static;
  color: #a98237;
}

.hero-tags .tag-art {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  margin-left: -2px;
  filter: drop-shadow(0 3px 4px rgba(28, 34, 43, 0.12));
}

.hero-rocket {
  width: 158px;
  right: -1px;
  bottom: -13px;
  filter: drop-shadow(0 19px 19px rgba(29, 35, 44, 0.19));
  animation: rocket-float 5.5s ease-in-out infinite;
}

.action-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: 126px 126px 94px;
  gap: 10px;
  margin-top: 11px;
}

.feature-card,
.feature-card.primary,
.feature-card.soft,
.feature-card.light,
.feature-card.outline {
  min-height: 0;
  padding: 15px;
  border-radius: 14px;
  gap: 4px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:active {
  transform: scale(0.985);
}

.product-art {
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 7px 9px rgba(28, 34, 43, 0.14));
}

.feature-card.feature-card--stars {
  grid-column: 1;
  grid-row: 1 / span 2;
  border-color: #20242c;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), transparent 45%),
    #171a20;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(20, 24, 30, 0.19);
}

.feature-card--stars::before,
.feature-card--stars::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(210, 173, 100, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.feature-card--stars::before {
  width: 142px;
  height: 142px;
  right: -65px;
  bottom: -48px;
}

.feature-card--stars::after {
  width: 88px;
  height: 88px;
  right: -34px;
  bottom: -20px;
}

.product-art--stars {
  width: 58px;
  height: 58px;
  margin: 24px 0 -2px -5px;
  filter: drop-shadow(0 8px 11px rgba(215, 155, 31, 0.25));
}

.feature-card--stars .card-title {
  max-width: 110px;
  margin-top: 9px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.02;
}

.feature-card--stars small {
  color: #9fa4ad;
}

.card-label {
  position: absolute;
  top: 14px;
  left: 14px;
  margin: 0;
  color: #d7b66e !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card-price {
  position: absolute;
  left: 15px;
  bottom: 16px;
  margin: 0 !important;
  color: #d7b66e !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.star-orbit {
  width: 92px;
  height: 92px;
  position: absolute;
  right: -25px;
  bottom: -17px;
  border: 1px solid rgba(210, 173, 100, 0.24);
  border-radius: 50%;
  animation: orbit-spin 12s linear infinite;
}

.star-orbit b {
  width: 7px;
  height: 7px;
  position: absolute;
  border-radius: 2px;
  background: #d7b66e;
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(215, 182, 110, 0.46);
}

.star-orbit b:nth-child(1) { top: 8px; left: 16px; }
.star-orbit b:nth-child(2) { top: 44px; right: -3px; width: 5px; height: 5px; }
.star-orbit b:nth-child(3) { bottom: 4px; left: 24px; width: 4px; height: 4px; }

.feature-card--stars .badge {
  right: 13px;
  top: 13px;
  bottom: auto;
  background: #252931;
  color: #d7b66e;
  box-shadow: none;
}

.feature-card--premium {
  grid-column: 2;
  grid-row: 1;
  border-color: rgba(117, 105, 157, 0.17);
  background: linear-gradient(145deg, #ffffff, #f2effa);
}

.feature-card--gift {
  grid-column: 2;
  grid-row: 2;
  border-color: rgba(166, 71, 91, 0.16);
  background: linear-gradient(145deg, #ffffff, #f9eff2);
}

.product-art--premium,
.product-art--gift {
  width: 48px;
  height: 48px;
  margin: -6px 0 -5px -6px;
}

.product-art--premium {
  filter: drop-shadow(0 7px 10px rgba(126, 86, 216, 0.23));
}

.product-art--gift {
  filter: drop-shadow(0 7px 10px rgba(202, 79, 58, 0.19));
}

.feature-card--premium .card-title,
.feature-card--gift .card-title {
  max-width: 120px;
  margin-top: 6px;
  color: #1b1e23;
  font-size: 15px;
  line-height: 1.08;
}

.feature-card--premium small,
.feature-card--gift small {
  max-width: 120px;
  color: #747982;
  font-size: 11px;
  line-height: 1.2;
}

.feature-card--premium .badge {
  top: 13px;
  right: 13px;
  bottom: auto;
  background: #ffffff;
  color: #75699d;
}

.feature-card.soft.feature-card--channel {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 30px;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 13px;
  padding: 12px 15px;
  isolation: isolate;
  border-color: rgba(210, 173, 100, 0.26);
  background:
    linear-gradient(90deg, rgba(18, 21, 27, 0.98) 0%, rgba(18, 21, 27, 0.91) 52%, rgba(18, 21, 27, 0.44) 100%),
    url("/assets/space-hero-v1.webp") center 47% / cover no-repeat;
  box-shadow: 0 16px 34px rgba(20, 24, 30, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-card--channel::before,
.feature-card--channel::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.feature-card--channel::before {
  width: 118px;
  height: 118px;
  right: -30px;
  top: -46px;
  border: 1px solid rgba(215, 182, 110, 0.23);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(215, 182, 110, 0.035);
}

.feature-card--channel::after {
  width: 5px;
  height: 5px;
  right: 74px;
  top: 19px;
  border-radius: 1px;
  background: #e4bf6a;
  transform: rotate(45deg);
  box-shadow: 35px 34px 0 -1px rgba(255, 255, 255, 0.75), 58px 2px 0 -1px rgba(228, 191, 106, 0.72);
}

.feature-card--channel .product-art--channel {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: center;
  width: 58px;
  height: 58px;
  margin: 0;
  filter: drop-shadow(0 9px 12px rgba(216, 157, 38, 0.25));
}

.feature-card--channel .card-title {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.15;
}

.feature-card--channel small {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: #b9bdc6;
  font-size: 11px;
  line-height: 1.25;
}

.feature-card--channel .badge {
  grid-column: 3;
  grid-row: 1 / -1;
  position: static;
  align-self: center;
  border: 1px solid rgba(215, 182, 110, 0.19);
  background: rgba(255, 255, 255, 0.08);
  color: #e4bf6a;
  box-shadow: none;
}

.payment-panel {
  min-height: 82px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 15px 54px 15px 16px;
  border: 1px solid rgba(24, 28, 35, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(28, 34, 43, 0.065);
}

.payment-panel-copy {
  display: grid;
  gap: 2px;
}

.payment-panel-copy span {
  color: #8b6724;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-panel-copy strong {
  color: #1b1e23;
  font-size: 15px;
}

.payment-chips {
  display: flex;
  gap: 5px;
}

.payment-chips b {
  padding: 5px 7px;
  border: 1px solid #e0e4e8;
  border-radius: 7px;
  background: #f5f7f9;
  color: #666c75;
  font-size: 9px;
}

.payment-panel-icon {
  width: 22px;
  height: 22px;
  position: absolute;
  right: 17px;
  color: #a98237;
}

@keyframes rocket-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(0, -6px, 0) rotate(1deg); }
}

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

@media (max-width: 360px) {
  .hero-card {
    min-height: 174px;
    padding: 18px;
  }

  .hero-copy strong {
    max-width: 190px;
    font-size: 24px;
  }

  .hero-copy small {
    max-width: 190px;
    font-size: 12px;
  }

  .hero-rocket {
    width: 138px;
    right: -6px;
  }

  .hero-tags {
    left: 17px;
    bottom: 15px;
  }

  .action-grid {
    grid-template-rows: 122px 122px 90px;
  }

  .feature-card,
  .feature-card.primary,
  .feature-card.soft,
  .feature-card.light,
  .feature-card.outline {
    padding: 13px;
  }

  .feature-card--stars .card-title {
    font-size: 20px;
  }

  .feature-card--premium .card-title,
  .feature-card--gift .card-title {
    font-size: 14px;
  }

  .payment-panel {
    grid-template-columns: 1fr;
  }

  .payment-chips {
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rocket,
  .star-orbit {
    animation: none;
  }
}

/* Settings */
#settingsDialog {
  width: min(380px, calc(100% - 20px));
  border-radius: 18px;
}

.settings-card {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(24, 28, 35, 0.1);
  border-radius: 18px;
  background: #ffffff;
  color: #17191e;
  box-shadow: 0 30px 80px rgba(28, 34, 43, 0.22);
}

.settings-head {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 12px;
  padding-right: 34px;
}

.settings-icon,
.support-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(169, 130, 55, 0.14);
  background: #f6f2e9;
  color: #987128;
}

.settings-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.settings-icon svg {
  width: 22px;
  height: 22px;
}

.settings-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.settings-head p {
  margin: 4px 0 0;
  color: #747982;
  font-size: 12px;
  line-height: 1.35;
}

.settings-section {
  display: grid;
  gap: 9px;
}

.settings-label {
  color: #747982;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 5px;
  border: 1px solid #dfe3e8;
  border-radius: 13px;
  background: #eef1f4;
}

.language-switch button {
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 0 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #6f747c;
  font-weight: 800;
}

.language-switch button b {
  min-width: 30px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #dfe4e9;
  color: #68707a;
  font-size: 10px;
}

.language-switch button.is-active {
  background: #191c22;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(20, 23, 29, 0.16);
}

.language-switch button.is-active b {
  background: #d2ad64;
  color: #191c22;
}

.support-link {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #dfe3e8;
  border-radius: 13px;
  background: #f8fafb;
  color: #17191e;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(28, 34, 43, 0.055);
}

.support-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.support-icon svg {
  width: 20px;
  height: 20px;
}

.support-link > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.support-link strong {
  font-size: 14px;
}

.support-link small {
  color: #3f8cae;
  font-size: 12px;
}

.support-link > svg {
  width: 18px;
  height: 18px;
  color: #8b929b;
}

@media (max-width: 350px) {
  .settings-card {
    padding: 18px;
  }

  .language-switch button {
    padding-inline: 9px 7px;
    font-size: 12px;
  }
}

/* Reviews */
.reviews-entry {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 11px;
  margin: 12px 0 0;
  padding: 11px 13px;
  border: 1px solid #e0e3e7;
  border-radius: 14px;
  background: #ffffff;
  color: #202329;
  text-align: left;
  box-shadow: 0 10px 26px rgba(28, 34, 43, 0.07);
}

.reviews-entry-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f4efe5;
  color: #99722b;
}

.reviews-entry-icon svg,
.reviews-entry > svg {
  width: 19px;
  height: 19px;
}

.reviews-entry > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.reviews-entry strong,
.reviews-entry small {
  overflow-wrap: anywhere;
}

.reviews-entry strong {
  font-size: 13px;
  line-height: 1.2;
}

.reviews-entry small {
  color: #7c838d;
  font-size: 10px;
  line-height: 1.25;
}

.reviews-entry > svg {
  color: #9ba1aa;
}

.reviews-view {
  padding-bottom: 28px;
}

.reviews-page-top {
  margin-bottom: 12px;
}

.reviews-hero {
  min-height: 120px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(214, 180, 107, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(105deg, rgba(13, 16, 23, 0.98), rgba(17, 21, 31, 0.82)),
    url("/assets/space-hero-v1.webp") center / cover;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 20, 27, 0.2);
}

.reviews-hero-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228, 196, 127, 0.35);
  border-radius: 14px;
  background: rgba(210, 173, 100, 0.12);
  color: #e4c477;
}

.reviews-hero-mark svg {
  width: 24px;
  height: 24px;
}

.reviews-hero div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.reviews-hero div > span {
  color: #d9b967;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.reviews-hero strong {
  font-size: 18px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.reviews-hero small {
  color: #aeb5c0;
  font-size: 10px;
  line-height: 1.4;
}

.reviews-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
}

.reviews-filters button {
  min-width: 0;
  min-height: 66px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 8px 5px;
  border: 1px solid #e1e4e8;
  border-radius: 13px;
  background: #ffffff;
  color: #555c66;
  box-shadow: 0 8px 22px rgba(28, 34, 43, 0.05);
}

.reviews-filters button span {
  min-width: 0;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 850;
  text-align: center;
  overflow-wrap: anywhere;
}

.reviews-filters button b {
  min-width: 30px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff1f3;
  color: #7b828c;
  font-size: 10px;
}

.reviews-filters button.is-active {
  border-color: #d5b15e;
  background: #e3bd62;
  color: #17191d;
  box-shadow: 0 10px 25px rgba(190, 146, 54, 0.2);
}

.reviews-filters button.is-active b {
  background: rgba(32, 35, 41, 0.12);
  color: #24262a;
}

.reviews-list {
  display: grid;
  gap: 11px;
}

.review-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 13px;
  min-height: 150px;
  padding: 15px;
  border: 1px solid #30353d;
  border-radius: 14px;
  background: #171a1f;
  color: #ffffff;
  box-shadow: 0 13px 28px rgba(20, 23, 29, 0.13);
}

.review-card.is-positive {
  border-color: rgba(56, 151, 88, 0.6);
}

.review-card.is-negative {
  border-color: rgba(190, 88, 92, 0.62);
}

.review-card header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f8fafb;
  color: #c49635;
}

.review-avatar svg {
  width: 18px;
  height: 18px;
  fill: rgba(210, 173, 100, 0.2);
}

.review-product {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.review-product strong {
  color: #b4bac3;
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.review-product small {
  color: #d5ab51;
  font-size: 10px;
  font-weight: 850;
}

.review-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(41, 143, 76, 0.24);
  color: #65df8e;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.is-negative .review-status {
  background: rgba(181, 67, 73, 0.22);
  color: #f08a8f;
}

.review-status svg {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}

.review-card > p {
  margin: 0;
  color: #f5f6f8;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.review-card footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: #727985;
  font-size: 9px;
  line-height: 1.3;
}

.review-card footer time {
  text-align: right;
}

.review-marker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(55, 142, 85, 0.18);
  color: #76d996;
  font-size: 8px;
  font-weight: 850;
}

.review-marker svg {
  width: 12px;
  height: 12px;
}

.reviews-empty {
  min-height: 126px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 20px;
  border: 1px dashed #d6dbe1;
  border-radius: 14px;
  color: #8a919a;
  font-size: 11px;
  text-align: center;
}

.reviews-empty svg {
  width: 26px;
  height: 26px;
  color: #b7954d;
}

.review-create-button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: #1d2026;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 13px 28px rgba(20, 23, 29, 0.18);
}

.review-create-button svg {
  width: 18px;
  height: 18px;
  color: #dfbd6c;
}

.review-create-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  box-shadow: none;
}

.review-eligibility {
  min-height: 15px;
  margin: 8px 10px 0;
  color: #8a9099;
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

#reviewDialog {
  width: min(390px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  overflow: visible;
}

#reviewDialog::backdrop {
  background: rgba(13, 16, 22, 0.62);
  backdrop-filter: blur(5px);
}

.review-dialog-card {
  position: relative;
  display: grid;
  gap: 16px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid #e0e4e8;
  border-radius: 16px;
  background: #ffffff;
  color: #202329;
  box-shadow: 0 28px 80px rgba(10, 13, 18, 0.28);
}

.review-dialog-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-right: 28px;
}

.review-dialog-head > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f4efe5;
  color: #99722b;
}

.review-dialog-head svg {
  width: 21px;
  height: 21px;
}

.review-dialog-head h2,
.review-dialog-head p {
  margin: 0;
}

.review-dialog-head h2 {
  font-size: 18px;
  line-height: 1.15;
}

.review-dialog-head p {
  margin-top: 4px;
  color: #7e858e;
  font-size: 10px;
  line-height: 1.4;
}

.review-field {
  position: relative;
  display: grid;
  gap: 7px;
}

.review-field > span,
.review-rating-field legend {
  color: #565d67;
  font-size: 10px;
  font-weight: 850;
}

.review-field select,
.review-field textarea {
  width: 100%;
  border: 1px solid #dce1e6;
  border-radius: 12px;
  background: #f8fafb;
  color: #202329;
  font: inherit;
  outline: none;
}

.review-field select {
  min-height: 50px;
  padding: 0 12px;
  font-size: 12px;
}

.review-field textarea {
  min-height: 104px;
  resize: vertical;
  padding: 12px 13px 25px;
  font-size: 12px;
  line-height: 1.45;
}

.review-field select:focus,
.review-field textarea:focus {
  border-color: #b89449;
  box-shadow: 0 0 0 3px rgba(184, 148, 73, 0.12);
}

.review-field > small {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: #a0a6ae;
  font-size: 8px;
}

.review-rating-field {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.review-rating-field > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.review-rating-field button {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid #dde2e7;
  border-radius: 12px;
  background: #f7f9fa;
  color: #646b75;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
}

.review-rating-field button.is-active {
  border-color: #22262c;
  background: #22262c;
  color: #ffffff;
}

.review-rating-field button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #b18a3d;
}

.review-submit {
  min-height: 52px;
  margin: 0;
  border-radius: 13px;
}

@media (max-width: 350px) {
  .reviews-hero {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
  }

  .reviews-hero-mark {
    width: 42px;
    height: 42px;
  }

  .reviews-hero strong {
    font-size: 16px;
  }

  .review-card header {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .review-avatar {
    width: 36px;
    height: 36px;
  }

  .review-status {
    grid-column: 2;
    width: fit-content;
  }
}

/* Kinostar splash */
body.is-loading {
  overflow: hidden;
}

.app-shell {
  transition: opacity 420ms ease, transform 420ms ease;
}

body.is-loading .app-shell {
  opacity: 0;
  transform: scale(0.985);
}

.app-loader {
  position: fixed;
  z-index: 999;
  inset: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background-color: #090b10;
  background-image:
    linear-gradient(rgba(9, 11, 16, 0.84), rgba(9, 11, 16, 0.95)),
    url("/assets/space-hero-v1.webp");
  color: #ffffff;
  opacity: 1;
  visibility: visible;
  transition: opacity 440ms ease, visibility 440ms ease;
}

.app-loader::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(210, 173, 100, 0.1);
  border-radius: 22px;
  pointer-events: none;
}

.app-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  transform: translateY(-10px);
  animation: loader-arrive 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.loader-emblem {
  width: 228px;
  height: 228px;
  position: relative;
  display: grid;
  place-items: center;
}

.loader-emblem img {
  width: 168px;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.42));
  animation: loader-rocket 3.8s ease-in-out infinite;
}

.loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(210, 173, 100, 0.28);
}

.loader-ring--outer {
  width: 218px;
  height: 118px;
  transform: rotate(-18deg);
  animation: loader-orbit 6s linear infinite;
}

.loader-ring--outer::before,
.loader-ring--inner::before {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  top: 9px;
  left: 34px;
  border-radius: 2px;
  background: #d2ad64;
  box-shadow: 0 0 16px rgba(210, 173, 100, 0.68);
  transform: rotate(45deg);
}

.loader-ring--inner {
  width: 164px;
  height: 82px;
  border-color: rgba(113, 173, 201, 0.25);
  transform: rotate(28deg);
  animation: loader-orbit-reverse 5s linear infinite;
}

.loader-ring--inner::before {
  width: 5px;
  height: 5px;
  top: auto;
  right: 19px;
  bottom: 4px;
  left: auto;
  background: #71adc9;
  box-shadow: 0 0 14px rgba(113, 173, 201, 0.6);
}

.loader-spark {
  width: 10px;
  height: 10px;
  position: absolute;
  z-index: 4;
  background: #d2ad64;
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 0 0 18px rgba(210, 173, 100, 0.55);
  animation: loader-twinkle 1.8s ease-in-out infinite;
}

.loader-spark--one {
  top: 37px;
  right: 33px;
}

.loader-spark--two {
  bottom: 37px;
  left: 31px;
  width: 7px;
  height: 7px;
  animation-delay: 480ms;
}

.loader-spark--three {
  top: 82px;
  left: 18px;
  width: 5px;
  height: 5px;
  background: #71adc9;
  box-shadow: 0 0 14px rgba(113, 173, 201, 0.55);
  animation-delay: 820ms;
}

.loader-brand {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin-top: 4px;
}

.loader-brand strong {
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.loader-brand span {
  color: #d2ad64;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.loader-progress {
  width: 136px;
  height: 4px;
  overflow: hidden;
  margin-top: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.loader-progress i {
  width: 42%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #d2ad64;
  box-shadow: 0 0 14px rgba(210, 173, 100, 0.46);
  animation: loader-progress 1.25s ease-in-out infinite;
}

.loader-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loader-stars i {
  width: 4px;
  height: 4px;
  position: absolute;
  border-radius: 1px;
  background: rgba(210, 173, 100, 0.75);
  transform: rotate(45deg);
  animation: loader-twinkle 2.4s ease-in-out infinite;
}

.loader-stars i:nth-child(1) { top: 8%; left: 13%; }
.loader-stars i:nth-child(2) { top: 15%; right: 16%; width: 6px; height: 6px; animation-delay: 300ms; }
.loader-stars i:nth-child(3) { top: 30%; left: 8%; width: 3px; height: 3px; animation-delay: 900ms; }
.loader-stars i:nth-child(4) { top: 42%; right: 9%; background: rgba(113, 173, 201, 0.75); animation-delay: 1.1s; }
.loader-stars i:nth-child(5) { top: 58%; left: 17%; width: 6px; height: 6px; animation-delay: 600ms; }
.loader-stars i:nth-child(6) { top: 69%; right: 18%; width: 3px; height: 3px; animation-delay: 1.4s; }
.loader-stars i:nth-child(7) { bottom: 13%; left: 27%; background: rgba(113, 173, 201, 0.75); animation-delay: 200ms; }
.loader-stars i:nth-child(8) { bottom: 7%; right: 12%; width: 5px; height: 5px; animation-delay: 1.7s; }
.loader-stars i:nth-child(9) { top: 21%; left: 48%; width: 3px; height: 3px; animation-delay: 1.2s; }
.loader-stars i:nth-child(10) { bottom: 25%; left: 7%; width: 3px; height: 3px; animation-delay: 750ms; }

@keyframes loader-arrive {
  from { opacity: 0; transform: translateY(4px) scale(0.96); }
  to { opacity: 1; transform: translateY(-10px) scale(1); }
}

@keyframes loader-rocket {
  0%, 100% { transform: translate3d(0, 2px, 0) rotate(-2deg); }
  50% { transform: translate3d(0, -7px, 0) rotate(1deg); }
}

@keyframes loader-orbit {
  to { transform: rotate(342deg); }
}

@keyframes loader-orbit-reverse {
  to { transform: rotate(-332deg); }
}

@keyframes loader-twinkle {
  0%, 100% { opacity: 0.35; transform: rotate(45deg) scale(0.75); }
  50% { opacity: 1; transform: rotate(45deg) scale(1); }
}

@keyframes loader-progress {
  0% { transform: translateX(-115%); }
  60%, 100% { transform: translateX(260%); }
}

@media (prefers-reduced-motion: reduce) {
  .loader-content,
  .loader-emblem img,
  .loader-ring,
  .loader-spark,
  .loader-stars i,
  .loader-progress i {
    animation: none;
  }
}

/* Legal documents */
.settings-card {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.legal-links {
  display: grid;
  gap: 7px;
}

.legal-links a {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #f8fafb;
  color: #202329;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.legal-link-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f3eee4;
  color: #987128;
}

.legal-link-icon svg,
.legal-links a > svg {
  width: 17px;
  height: 17px;
}

.legal-links a > svg {
  color: #9298a1;
}

.payment-consent {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 12px 0;
  padding: 13px;
  border: 1px solid #dfe3e8;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  color: #626872;
  box-shadow: 0 10px 24px rgba(28, 34, 43, 0.05);
}

.payment-consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd4da;
  border-radius: 7px;
  background: #ffffff;
  color: transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.consent-check svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.payment-consent input:checked + .consent-check {
  border-color: #1d2026;
  background: #1d2026;
  color: #d7b66e;
}

.payment-consent input:focus-visible + .consent-check {
  outline: 3px solid rgba(63, 140, 174, 0.22);
  outline-offset: 2px;
}

.consent-copy {
  display: block;
  font-size: 11px;
  line-height: 1.5;
}

.consent-copy > * {
  display: inline;
}

.consent-copy a {
  color: #85611e;
  font-weight: 850;
  text-underline-offset: 2px;
}

.payment-method:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  filter: saturate(0.35);
  box-shadow: none;
}

/* Sell Stars flow */
.sell-view {
  padding-bottom: 112px;
}

.sell-form {
  display: grid;
  gap: 18px;
}

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

.sell-methods button {
  min-width: 0;
  min-height: 94px;
  display: grid;
  grid-template-rows: 48px auto;
  place-items: center;
  gap: 7px;
  padding: 9px 5px 10px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #ffffff;
  color: #555b65;
  box-shadow: 0 9px 24px rgba(28, 34, 43, 0.06);
}

.sell-methods button span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f2f4f6;
  color: #747b86;
}

.sell-methods button svg {
  width: 23px;
  height: 23px;
}

.sell-methods button b {
  max-width: 100%;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 850;
  text-align: center;
  overflow-wrap: anywhere;
}

.sell-methods button.is-active {
  border-color: #24272d;
  background: #202329;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(24, 27, 32, 0.18);
}

.sell-methods button.is-active span {
  background: #343840;
  color: #e4c272;
}

.sell-form .form-block {
  margin: 0;
}

.sell-input-shell {
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  height: 56px;
  border-radius: 14px;
}

.sell-input-shell input[aria-invalid="true"] {
  color: #a93645;
}

.sell-input-shell > button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef1f4;
  color: #8a9099;
}

.sell-input-shell > button svg {
  width: 15px;
  height: 15px;
}

.sell-hint {
  min-height: 17px;
  padding: 0 4px;
  color: #858b94;
  font-size: 10px;
  line-height: 1.35;
}

.sell-quote {
  display: grid;
  gap: 12px;
  padding: 17px;
  border: 1px solid #252930;
  border-radius: 14px;
  background: #191c21;
  color: #ffffff;
  box-shadow: 0 15px 34px rgba(24, 27, 32, 0.16);
}

.sell-quote div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sell-quote span {
  color: #aeb3bc;
  font-size: 12px;
}

.sell-quote strong {
  font-size: 17px;
  line-height: 1.15;
  text-align: right;
}

.sell-quote div:nth-child(2) strong {
  color: #e7c779;
  font-size: 21px;
}

.sell-quote small {
  padding-top: 10px;
  border-top: 1px solid #30343c;
  color: #858c97;
  font-size: 10px;
}

.sell-limit {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e0e4e8;
  border-radius: 14px;
  background: #ffffff;
  color: #202329;
  box-shadow: 0 9px 24px rgba(28, 34, 43, 0.05);
}

.sell-limit-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f3eee4;
  color: #987128;
}

.sell-limit-icon svg {
  width: 21px;
  height: 21px;
}

.sell-limit strong,
.sell-limit small {
  display: block;
}

.sell-limit strong {
  font-size: 12px;
  line-height: 1.35;
}

.sell-limit strong b {
  color: #8c6927;
}

.sell-limit small {
  margin-top: 3px;
  color: #858b94;
  font-size: 10px;
}

.sell-consent {
  margin: 0;
}

.sell-submit {
  min-height: 56px;
  margin: 0;
  border-radius: 15px;
}

.sell-submit:disabled {
  opacity: 0.42;
  box-shadow: none;
}

@media (max-width: 350px) {
  .sell-methods button {
    min-height: 88px;
  }

  .sell-methods button span {
    width: 42px;
    height: 42px;
  }

  .sell-methods button b {
    font-size: 10px;
  }
}
