@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 200 800;
}

@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 200 800;
}

@font-face {
  font-family: "Unbounded";
  src: url("./assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 900;
}

@font-face {
  font-family: "Phosphor";
  src: url("./assets/phosphor/Phosphor.woff2?v=20260828-4") format("woff2");
  font-display: block;
  font-style: normal;
  font-weight: 400;
}

.ph {
  font-family: "Phosphor" !important;
  speak: never;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

.ph-house::before { content: "\e2c2"; }
.ph-plug::before { content: "\e946"; }
.ph-cell-signal-high::before { content: "\e144"; }
.ph-chart-line-up::before { content: "\e156"; }
.ph-broadcast::before { content: "\e0f2"; }
.ph-users-three::before { content: "\e68e"; }
.ph-dots-three-outline::before { content: "\e204"; }
.ph-caret-left::before { content: "\e138"; }
.ph-caret-right::before { content: "\e13a"; }
.ph-chat-circle::before { content: "\e168"; }
.ph-devices::before { content: "\eba4"; }
.ph-credit-card::before { content: "\e1d2"; }
.ph-currency-btc::before { content: "\e618"; }
.ph-receipt::before { content: "\e3ec"; }
.ph-qr-code::before { content: "\e3e6"; }
.ph-coins::before { content: "\e78e"; }
.ph-gift::before { content: "\e276"; }
.ph-tag::before { content: "\e478"; }
.ph-star::before { content: "\e46a"; }
.ph-file-text::before { content: "\e23a"; }
.ph-globe-hemisphere-west::before { content: "\e28c"; }
.ph-shield-check::before { content: "\e40c"; }
.ph-infinity::before { content: "\e634"; }
.ph-plus::before { content: "\e3d4"; }
.ph-copy::before { content: "\e1ca"; }
.ph-sign-out::before { content: "\e42a"; }
.ph-trash::before { content: "\e4a6"; }
.ph-download-simple::before { content: "\e20c"; }
.ph-apple-logo::before { content: "\e516"; }
.ph-android-logo::before { content: "\e008"; }
.ph-windows-logo::before { content: "\e692"; }
.ph-terminal-window::before { content: "\eae8"; }
.ph-television-simple::before { content: "\eae6"; }
.ph-wifi-high::before { content: "\e4ea"; }

@font-face {
  font-family: "Unbounded";
  src: url("./assets/fonts/unbounded-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 900;
}

:root {
  color-scheme: dark;
  --bg: #0c0c0f;
  --raised: #121216;
  --surface: #18181d;
  --surface-2: #202027;
  --surface-3: #282830;
  --accent: #f29a4a;
  --accent-deep: #d9762f;
  --text: #f7f4ef;
  --muted: #9b9790;
  --muted-2: #706d68;
  --success: #54c985;
  --warning: #f2c94c;
  --coral: #ef7068;
  --line: rgba(247, 244, 239, .11);
  --line-strong: rgba(247, 244, 239, .18);
  --shadow: 0 30px 80px rgba(0, 0, 0, .36);
  --content-width: 560px;
  --nav-height: 76px;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", Arial, sans-serif;
  font-family: var(--font-body);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(242, 154, 74, .13), transparent 34%),
    #08080a;
  color: var(--text);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

body::before {
  position: fixed;
  z-index: 10;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  content: "";
  opacity: .018;
  pointer-events: none;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a,
summary {
  touch-action: manipulation;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: .58;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: var(--tg-viewport-stable-height, 100dvh);
  margin: 0 auto;
  overflow: clip;
  border-right: 1px solid rgba(255, 255, 255, .035);
  border-left: 1px solid rgba(255, 255, 255, .035);
  background:
    radial-gradient(circle at 14% 12%, rgba(242, 154, 74, .07), transparent 19rem),
    linear-gradient(180deg, #0e0e12 0%, var(--bg) 42%);
}

.app-content {
  padding:
    calc(18px + var(--tg-content-safe-area-inset-top, env(safe-area-inset-top)))
    calc(18px + var(--tg-content-safe-area-inset-right, env(safe-area-inset-right)))
    calc(var(--nav-height) + 38px + var(--tg-content-safe-area-inset-bottom, env(safe-area-inset-bottom)))
    calc(18px + var(--tg-content-safe-area-inset-left, env(safe-area-inset-left)));
}

.screen {
  display: grid;
  gap: 18px;
}

.screen > * {
  animation: rise-in .46s var(--ease) backwards;
}

.screen > *:nth-child(2) { animation-delay: 35ms; }
.screen > *:nth-child(3) { animation-delay: 70ms; }
.screen > *:nth-child(4) { animation-delay: 105ms; }
.screen > *:nth-child(n + 5) { animation-delay: 130ms; }

.screen--static > * {
  animation: none;
}

@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.icon,
.nav-icon,
.platform-icon,
.metric-arrow,
.menu-row__arrow {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  overflow: hidden;
  font-size: 22px;
}

.topbar {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

.brand-mark {
  display: grid;
  width: 47px;
  height: 47px;
  overflow: hidden;
  place-items: center;
  border-radius: 15px;
  background: var(--accent);
}

.brand-mark img {
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.055em;
}

.brand-word span {
  color: var(--accent);
}

.round-button,
.back-button {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.round-button:hover,
.back-button:hover {
  border-color: rgba(242, 154, 74, .6);
  background: var(--surface-2);
}

.round-button:active,
.back-button:active {
  transform: translateY(2px);
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: max(calc((100vw - var(--content-width)) / 2 + 12px), 12px);
  bottom: calc(10px + var(--tg-content-safe-area-inset-bottom, env(safe-area-inset-bottom)));
  left: max(calc((100vw - var(--content-width)) / 2 + 12px), 12px);
  display: grid;
  min-height: var(--nav-height);
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(24, 24, 29, .94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .48);
  backdrop-filter: blur(20px);
}

.nav-button {
  display: grid;
  min-width: 0;
  min-height: 62px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 6px 2px;
  cursor: pointer;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  transition: color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}

.nav-button:hover {
  color: var(--text);
}

.nav-button:active {
  transform: translateY(1px);
}

.nav-button[aria-current="page"] {
  background: var(--accent);
  color: #17100b;
}

.nav-icon {
  width: 21px;
  height: 21px;
  font-size: 21px;
}

.nav-button span {
  overflow: hidden;
  max-width: 100%;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-title-block {
  display: grid;
  padding: 10px 2px 2px;
}

.page-title-block h1,
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 42px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.065em;
}

.page-lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.page-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.page-header h1 {
  overflow: hidden;
  font-size: clamp(27px, 8vw, 38px);
  line-height: 1.03;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-card {
  position: relative;
  display: grid;
  min-height: 332px;
  overflow: hidden;
  align-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--accent);
  color: #17100b;
  box-shadow: 0 22px 70px rgba(242, 154, 74, .13);
}

.hero-card--warning {
  background: var(--warning);
}

.hero-card--critical {
  background: var(--coral);
}

.hero-card--trial-active {
  background: var(--accent);
}

.hero-card--inactive {
  background: var(--surface-2);
  color: var(--text);
}

.hero-card--trial {
  min-height: 356px;
  align-content: end;
}

.hero-card--trial h1 {
  position: relative;
  z-index: 1;
  margin-top: 38px;
  font-family: var(--font-display);
  font-size: clamp(42px, 13vw, 66px);
  font-weight: 850;
  line-height: .95;
  letter-spacing: -.07em;
}

.hero-card--trial h1 span {
  color: var(--text);
  text-shadow: 0 3px 0 rgba(0, 0, 0, .13);
}

.hero-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.status-pill {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(23, 16, 11, .1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill--green {
  background: rgba(84, 201, 133, .14);
  color: var(--success);
}

.status-pill--yellow {
  background: rgba(242, 201, 76, .14);
  color: var(--warning);
}

.hero-expiry {
  max-width: 45%;
  color: rgba(23, 16, 11, .62);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
}

.hero-card--inactive .hero-expiry {
  color: var(--muted);
}

.days-display {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 11px;
  margin-top: auto;
}

.days-display strong {
  font-family: var(--font-display);
  font-size: clamp(78px, 23vw, 112px);
  font-weight: 850;
  line-height: .72;
  letter-spacing: -.075em;
}

.days-display span {
  padding-bottom: 5px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-actions,
.button-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.hero-orbit {
  position: absolute;
  right: -56px;
  bottom: 20px;
  width: 218px;
  height: 218px;
  border: 1px solid rgba(23, 16, 11, .14);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  border: 1px solid rgba(23, 16, 11, .12);
  border-radius: 50%;
  content: "";
}

.hero-orbit::before { inset: 22px; }
.hero-orbit::after { inset: 58px; }

.home-referral {
  display: grid;
  min-height: 72px;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  border: 1px solid rgba(242, 154, 74, .38);
  border-radius: var(--radius-md);
  background: linear-gradient(115deg, rgba(242, 154, 74, .18), rgba(242, 154, 74, .04)), var(--surface);
  color: var(--text);
  text-align: left;
}

.home-referral__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent);
  color: #17100b;
}

.home-referral > span:nth-child(2) {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.home-referral strong {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -.04em;
}

.home-referral small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.home-referral__arrow {
  color: var(--accent);
}

.review-bonus-banner {
  display: grid;
  min-height: 72px;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.review-bonus-banner:hover {
  border-color: rgba(242, 154, 74, .44);
  background: var(--surface-2);
}

.review-bonus-banner:active {
  transform: scale(.985);
}

.review-bonus-banner__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-3);
  color: var(--accent);
}

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

.review-bonus-banner strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-bonus-banner small {
  color: var(--muted);
  font-size: 10px;
}

.review-bonus-banner__arrow {
  color: var(--muted);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 17px;
  cursor: pointer;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transition: transform .18s var(--ease), filter .18s var(--ease), background .18s var(--ease);
}

.button:hover {
  filter: brightness(1.06);
}

.button:active {
  transform: translateY(2px);
}

.button .icon {
  width: 18px;
  height: 18px;
}

.button--wide {
  width: 100%;
}

.button--ink {
  background: #17100b;
  color: var(--text);
}

.button--accent {
  background: var(--accent);
  color: #17100b;
}

.button--line {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
}

.button--ghost-dark {
  border: 1px solid rgba(23, 16, 11, .23);
  background: transparent;
  color: #17100b;
}

.button--danger {
  background: var(--coral);
  color: #160b0a;
}

.text-link {
  padding: 0;
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.text-link--light {
  justify-self: center;
  color: var(--text);
}

.status-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric {
  display: grid;
  min-height: 112px;
  grid-template-columns: 45px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 15px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition: border-color .18s var(--ease), transform .18s var(--ease), background .18s var(--ease);
}

.metric:hover {
  border-color: rgba(242, 154, 74, .45);
  background: var(--surface-2);
}

.metric:active {
  transform: translateY(2px);
}

.metric--wide {
  min-height: 92px;
  grid-column: 1 / -1;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
}

.metric-icon,
.device-icon,
.payment-icon,
.menu-row__icon,
.payment-method-icon {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent);
  color: #17100b;
}

.metric-icon--yellow {
  background: var(--warning);
}

.metric-icon--coral {
  background: var(--coral);
}

.metric small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.metric strong {
  display: block;
  overflow: hidden;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-arrow {
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.045em;
}

.plans-screen {
  padding-bottom: 98px;
}

.plan-stage {
  position: relative;
  display: grid;
  min-height: 220px;
  align-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(242, 154, 74, .34);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 18%, rgba(242, 154, 74, .27), transparent 33%),
    var(--surface);
}

.plan-stage::after {
  position: absolute;
  right: -54px;
  bottom: -78px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(242, 154, 74, .24);
  border-radius: 50%;
  content: "";
  box-shadow: inset 0 0 0 28px rgba(242, 154, 74, .035), inset 0 0 0 58px rgba(242, 154, 74, .035);
  animation: plan-orbit 8s var(--ease) infinite alternate;
}

.plan-stage__head,
.plan-stage__price,
.plan-stage__meta {
  position: relative;
  z-index: 1;
}

.plan-stage__head {
  display: grid;
  gap: 3px;
}

.plan-stage__head span,
.plan-stage__price span,
.plan-stage__meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.plan-stage__head strong {
  font-size: 16px;
}

.plan-stage__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.plan-stage__price strong {
  font-family: var(--font-display);
  font-size: clamp(39px, 12vw, 58px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.075em;
}

.plan-stage__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.plan-stage__meta b {
  color: var(--accent);
}

.plan-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.plan-perks > span {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.plan-perks .icon {
  color: var(--accent);
}

.plan-perks strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-picker {
  display: grid;
  gap: 12px;
}

.plan-picker h2 {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -.04em;
}

.plan-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.plan-choice {
  position: relative;
  display: grid;
  min-height: 126px;
  align-content: space-between;
  gap: 12px;
  padding: 17px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}

.plan-choice:hover {
  border-color: rgba(242, 154, 74, .46);
}

.plan-choice:active {
  transform: scale(.98);
}

.plan-choice[aria-pressed="true"] {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(242, 154, 74, .2), rgba(242, 154, 74, .035)), var(--surface);
  transform: translateY(-2px);
}

.plan-choice__term,
.plan-choice__price {
  display: flex;
  align-items: center;
  gap: 7px;
}

.plan-choice__term strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.plan-choice__term small,
.plan-choice__price small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.plan-choice__price strong {
  font-size: 13px;
}

.plan-choice__badge {
  position: absolute;
  top: 11px;
  right: 11px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
}

.plan-choice__check {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: var(--accent);
}

.plan-choice__check .icon {
  width: 17px;
  height: 17px;
  font-size: 17px;
}

@keyframes plan-orbit {
  from { transform: rotate(-7deg) scale(.96); }
  to { transform: rotate(8deg) scale(1.04); }
}

.sticky-action {
  position: fixed;
  z-index: 15;
  right: max(calc((100vw - var(--content-width)) / 2 + 18px), 18px);
  bottom: calc(var(--nav-height) + 24px + var(--tg-content-safe-area-inset-bottom, env(safe-area-inset-bottom)));
  left: max(calc((100vw - var(--content-width)) / 2 + 18px), 18px);
  display: grid;
  grid-template-columns: 1fr minmax(156px, auto);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 21px;
  background: rgba(24, 24, 29, .95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sticky-action > span {
  display: grid;
  gap: 2px;
  padding-left: 7px;
}

.sticky-action small {
  color: var(--muted);
  font-size: 10px;
}

.sticky-action strong {
  font-size: 19px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.platform-card {
  display: grid;
  min-height: 102px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 12px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
}

.platform-card[aria-pressed="true"] {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(242, 154, 74, .16), transparent 70%), var(--surface);
  color: var(--accent);
}

.platform-icon {
  width: 29px;
  height: 29px;
  font-size: 29px;
  line-height: 1.12;
  overflow: visible;
}

.platform-icon.ph-apple-logo {
  width: 34px;
  height: 34px;
  font-size: 25px;
  line-height: 34px;
  overflow: visible;
}

.platform-card strong {
  color: var(--text);
  font-size: 14px;
}

.setup-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 22px 20px 20px 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.setup-card--accent {
  border-color: rgba(242, 154, 74, .42);
  background: linear-gradient(145deg, rgba(242, 154, 74, .14), transparent 68%), var(--surface);
}

.setup-card__head {
  display: block;
}

.setup-step__number {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-3);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.setup-card--accent .setup-step__number {
  background: var(--accent);
  color: #17100b;
}

.setup-card h2 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.setup-copy {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.setup-tv-code {
  margin-top: -2px;
}

.setup-tv-code input {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(20px, 7vw, 30px);
  letter-spacing: .24em;
  text-transform: uppercase;
}

.inline-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  border: 1px solid rgba(242, 154, 74, .34);
  border-radius: 16px;
  background: rgba(242, 154, 74, .08);
}

.inline-code strong {
  min-width: 0;
  overflow: visible;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(16px, 5.2vw, 24px);
  letter-spacing: .04em;
  line-height: 1.1;
  overflow-wrap: normal;
  white-space: nowrap;
}

.inline-code button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  cursor: pointer;
  border-radius: 13px;
  background: var(--surface-3);
  color: var(--text);
}

.setup-fallback {
  justify-self: center;
  padding: 4px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--muted-2);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.traffic-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.traffic-card--regular {
  background:
    radial-gradient(circle at 80% 36%, rgba(84, 201, 133, .14), transparent 34%),
    var(--surface);
}

.traffic-card--lte {
  border-color: rgba(242, 154, 74, .35);
  background:
    radial-gradient(circle at 84% 14%, rgba(242, 154, 74, .16), transparent 29%),
    var(--surface);
}

.traffic-card__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.traffic-card__head > strong {
  font-size: 14px;
}

.traffic-card .metric-icon {
  width: 46px;
  height: 46px;
}

.traffic-value,
.traffic-number strong {
  font-family: var(--font-display);
  font-size: clamp(38px, 11vw, 55px);
  font-weight: 820;
  line-height: 1;
  letter-spacing: -.065em;
}

.footnote {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.traffic-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.traffic-number span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.quota-row,
.reserve-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.quota-row b,
.reserve-row strong {
  color: var(--text);
}

.reserve-row {
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.reserve-row strong {
  font-family: var(--font-display);
  font-size: 22px;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .5s var(--ease);
}

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

.package-card {
  display: grid;
  min-height: 78px;
  grid-template-columns: 1fr auto 22px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.package-card[aria-pressed="true"] {
  border-color: var(--accent);
}

.package-card > span {
  display: grid;
}

.package-card strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.package-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.package-card > b {
  color: var(--accent);
  font-size: 14px;
}

.package-card > .icon {
  color: var(--muted);
}

.referral-hero {
  position: relative;
  display: grid;
  min-height: 300px;
  overflow: hidden;
  align-content: end;
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--accent);
  color: #17100b;
}

.referral-hero::before {
  position: absolute;
  top: -124px;
  left: -68px;
  width: 280px;
  height: 280px;
  border: 70px solid rgba(23, 16, 11, .09);
  border-radius: 50%;
  content: "";
}

.referral-hero h1 {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-end;
  gap: 11px;
  font-family: var(--font-display);
  letter-spacing: -.07em;
}

.referral-hero h1 strong {
  min-width: 0;
  font-size: clamp(52px, 17vw, 82px);
  line-height: .78;
}

.referral-hero h1 span {
  min-width: 0;
  padding-bottom: 1px;
  font-size: clamp(17px, 5vw, 26px);
  line-height: 1.04;
}

.referral-hero--partner h1 strong {
  font-size: clamp(48px, 15vw, 76px);
}

.referral-hero--partner h1 {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 9px;
}

.referral-hero--partner h1 span {
  padding-bottom: 0;
  font-size: clamp(18px, 5.2vw, 25px);
  letter-spacing: -.055em;
}

.referral-hero p {
  position: relative;
  max-width: 330px;
  color: rgba(23, 16, 11, .7);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stats-grid > div {
  display: grid;
  min-height: 108px;
  align-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.stats-grid small {
  color: var(--muted);
  font-size: 11px;
}

.stats-grid strong {
  font-family: var(--font-display);
  font-size: 27px;
  letter-spacing: -.05em;
}

.partner-card {
  display: grid;
  gap: 12px;
  padding: 23px;
  border: 1px solid rgba(242, 154, 74, .32);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 4%, rgba(242, 154, 74, .14), transparent 36%),
    var(--surface);
}

.partner-card__top {
  display: grid;
  gap: 5px;
}

.partner-card__top small {
  color: var(--muted);
  font-size: 11px;
}

.partner-card h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 42px);
  letter-spacing: -.06em;
  overflow-wrap: anywhere;
}

.partner-spend {
  display: grid;
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 7px;
  padding: 13px 15px 13px 18px;
  cursor: pointer;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #17100b;
  text-align: left;
}

.partner-spend span {
  font-size: 15px;
  font-weight: 850;
}

.partner-spend strong {
  padding: 9px 10px;
  border-radius: 12px;
  background: #17100b;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
}

.partner-spend:active {
  transform: translateY(2px);
}

.partner-spend:disabled,
.partner-withdraw:disabled {
  cursor: default;
  opacity: .42;
}

.partner-withdraw {
  justify-self: center;
  padding: 7px 2px 3px;
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.partner-withdraw__note {
  justify-self: center;
  color: var(--muted-2);
  font-size: 10px;
}

.wide-link-card {
  display: grid;
  min-height: 88px;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 13px;
  padding: 16px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.wide-link-card > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.wide-link-card strong {
  font-size: 15px;
}

.wide-link-card small {
  color: var(--muted);
  font-size: 11px;
}

.capacity-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 21px;
  border: 1px solid rgba(242, 154, 74, .3);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(242, 154, 74, .11), transparent 55%), var(--surface);
}

.capacity-card > span {
  display: grid;
}

.capacity-card > span small,
.capacity-card > div small {
  color: var(--muted);
  font-size: 10px;
}

.capacity-card > span strong {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
}

.capacity-card > div {
  display: grid;
  gap: 8px;
}

.device-list,
.payment-list,
.menu-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.device-row,
.payment-row,
.menu-row {
  display: grid;
  min-height: 82px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.device-row:last-child,
.payment-row:last-child,
.menu-row:last-child {
  border-bottom: 0;
}

.device-icon,
.payment-icon,
.menu-row__icon {
  width: 44px;
  height: 44px;
  background: var(--surface-2);
  color: var(--text);
}

.device-row > span:nth-child(2),
.payment-row > span:nth-child(2),
.menu-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.device-row strong,
.payment-row strong,
.menu-row strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-row small,
.payment-row small,
.menu-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-remove {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
}

.device-remove:hover {
  background: rgba(239, 112, 104, .11);
  color: var(--coral);
}

.device-remove .icon {
  width: 19px;
  height: 19px;
}

.payment-amount {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.status-text--paid,
.status-text--success {
  color: var(--success) !important;
}

.status-text--pending {
  color: var(--warning) !important;
}

.pending-card {
  display: grid;
  gap: 15px;
  padding: 21px;
  border: 1px solid rgba(242, 201, 76, .35);
  border-radius: var(--radius-lg);
  background: rgba(242, 201, 76, .07);
}

.pending-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
}

.gift-plan-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.gift-plan {
  display: grid;
  min-height: 83px;
  align-content: space-between;
  gap: 7px;
  padding: 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.gift-plan[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(242, 154, 74, .11);
}

.gift-plan span {
  color: var(--muted);
  font-size: 11px;
}

.gift-plan strong {
  font-size: 16px;
}

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

.field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  caret-color: var(--accent);
  outline: 0;
}

.field input {
  height: 58px;
  padding: 0 17px;
  font-size: 16px;
  font-weight: 700;
}

.field textarea {
  min-height: 154px;
  padding: 16px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.active-promo {
  display: grid;
  min-height: 76px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(84, 201, 133, .36);
  border-radius: var(--radius-md);
  background: rgba(84, 201, 133, .08);
}

.active-promo span {
  color: var(--success);
  font-size: 11px;
}

.active-promo b {
  color: var(--success);
}

.profile-heading {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 20px 2px 4px;
}

.avatar {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 25px;
  background: var(--accent);
  color: #17100b;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 850;
  overflow: hidden;
}

.avatar__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-heading > div {
  min-width: 0;
}

.profile-heading h1 {
  overflow: hidden;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -.055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-heading p {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-strip {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.account-email-action {
  display: grid;
  width: 100%;
  min-height: 44px;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.account-email-action > span:first-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.account-email-action > span:last-child {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.account-email-action .icon {
  width: 14px;
  height: 14px;
}

.account-strip > span:first-child {
  display: grid;
  gap: 4px;
}

.account-strip small {
  color: var(--muted);
  font-size: 10px;
}

.account-strip strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linked-badge {
  justify-self: start;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(84, 201, 133, .12);
  color: var(--success);
  font-size: 10px;
  font-weight: 800;
}

.menu-row {
  width: 100%;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.menu-row:hover {
  background: var(--surface-2);
}

.menu-row__arrow {
  width: 19px;
  height: 19px;
  color: var(--muted);
}

.settings-row {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.settings-row > span,
.settings-row button {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-row > span {
  font-size: 13px;
  font-weight: 750;
}

.settings-row button {
  padding: 8px 0;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.settings-row .icon {
  width: 18px;
  height: 18px;
}

.support-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  padding: 23px;
  border: 1px solid rgba(242, 154, 74, .35);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 12%, rgba(242, 154, 74, .16), transparent 32%),
    var(--surface);
}

.support-pulse {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 20px;
  background: var(--accent);
  color: #17100b;
}

.support-card.review-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.support-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
}

.support-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.support-card .button {
  grid-column: 1 / -1;
}

.faq-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 0;
}

.faq-list summary {
  display: grid;
  min-height: 68px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 20px;
  transition: transform .2s var(--ease);
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 0 17px 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.document-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.document-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.inline-message {
  padding: 13px 14px;
  border: 1px solid rgba(239, 112, 104, .32);
  border-radius: var(--radius-sm);
  background: rgba(239, 112, 104, .08);
  color: #f7aaa4;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.empty-state {
  display: grid;
  min-height: 340px;
  place-items: center;
  align-content: center;
  gap: 15px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 19px;
  background: var(--coral);
  color: #180b0a;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 900;
}

.empty-state h1 {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.25;
}

.empty-state p {
  color: var(--muted);
  font-size: 13px;
}

.auth-entry img {
  object-fit: contain;
}

.auth-entry h1 {
  font-size: clamp(19px, 5vw, 23px);
}

.auth-entry p {
  line-height: 1.6;
}

.auth-entry .button {
  text-decoration: none;
}

body.entry-open {
  overflow: hidden;
}

.entry-layer {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  align-items: end;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
}

.entry-scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, .84);
  backdrop-filter: blur(14px);
  animation: entry-scrim-in .34s var(--ease) both;
}

.entry-card {
  position: relative;
  display: grid;
  min-width: 0;
  max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
  gap: 22px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px;
  border: 1px solid rgba(247, 244, 239, .16);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 8%, rgba(242, 154, 74, .14), transparent 28%),
    #141419;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .68);
  animation: entry-card-in .54s var(--ease) both;
}

.entry-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  transform: rotate(45deg);
  transition: transform .18s var(--ease), background .18s var(--ease);
}

.entry-close:active {
  transform: rotate(45deg) scale(.92);
}

.entry-close--floating {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
}

.entry-copy {
  display: grid;
  gap: 10px;
}

.entry-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 9vw, 42px);
  line-height: 1;
  letter-spacing: -.065em;
}

.entry-copy p {
  max-width: 31ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.return-referral {
  min-height: 580px;
  align-content: end;
}

.return-referral__visual {
  position: absolute;
  top: 30px;
  left: 24px;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 28px;
  background: var(--accent);
  color: #17100b;
  animation: entry-float 2.8s var(--ease) infinite alternate;
}

.return-referral__visual .icon {
  width: 40px;
  height: 40px;
  font-size: 40px;
}

.return-referral__value {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: 12px;
  color: var(--accent);
}

.return-referral__value strong {
  font-family: var(--font-display);
  font-size: clamp(76px, 24vw, 118px);
  line-height: .76;
  letter-spacing: -.1em;
}

.return-referral__value span {
  max-width: 90px;
  padding-bottom: 4px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.05;
}

.entry-later {
  justify-self: center;
  padding: 4px;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

@keyframes entry-scrim-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes entry-card-in {
  from { opacity: 0; transform: translate3d(0, 34px, 0) scale(.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes entry-float {
  from { transform: translate3d(0, 5px, 0) rotate(-2deg); }
  to { transform: translate3d(0, -7px, 0) rotate(2deg); }
}

body.tour-active {
  overflow: hidden;
}

.tour-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  pointer-events: none;
}

.tour-layer[hidden] {
  display: none;
}

.tour-scrim {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 7, .8);
  pointer-events: auto;
  transition: clip-path .42s var(--ease);
}

.tour-spotlight {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  border: 2px solid var(--accent);
  border-radius: 18px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  background: #17100b;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(242, 154, 74, .24), 0 0 30px rgba(242, 154, 74, .34);
  pointer-events: none;
  transition: transform .42s var(--ease), width .42s var(--ease), height .42s var(--ease);
}

.tour-spotlight::after {
  content: attr(data-label);
}

.tour-spotlight.is-arriving {
  animation: tour-spotlight-in .48s var(--ease);
}

.tour-card {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  display: grid;
  width: min(320px, calc(100vw - 24px));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #18181d;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .62);
  pointer-events: auto;
  transition: transform .42s var(--ease), opacity .18s var(--ease);
}

.tour-card__head,
.tour-actions {
  display: flex;
  align-items: center;
}

.tour-card__head {
  justify-content: space-between;
  gap: 12px;
}

.tour-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tour-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
}

.tour-message {
  min-height: 0;
}

.tour-message h2 {
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -.055em;
}

.tour-message p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.tour-actions {
  gap: 8px;
}

.tour-next {
  min-height: 44px;
  border-radius: 13px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.tour-next {
  flex: 1;
  background: var(--accent);
  color: #17100b;
}

.tour-card:focus {
  outline: none;
}

.tour-close:focus-visible,
.tour-next:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

@keyframes tour-spotlight-in {
  0% { box-shadow: 0 0 0 0 rgba(242, 154, 74, .8), 0 0 6px rgba(242, 154, 74, .2); }
  70% { box-shadow: 0 0 0 9px rgba(242, 154, 74, 0), 0 0 34px rgba(242, 154, 74, .5); }
  100% { box-shadow: 0 0 0 1px rgba(242, 154, 74, .24), 0 0 30px rgba(242, 154, 74, .34); }
}

.dialog {
  width: min(calc(100% - 24px), 520px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(8px);
}

.dialog[open] {
  animation: dialog-in .28s var(--ease);
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.dialog-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dialog-card h2 {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.05em;
}

.dialog-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 25px;
  line-height: 1;
}

.dialog-order {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.dialog-order > span {
  display: grid;
  gap: 4px;
}

.dialog-order small,
.dialog-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.dialog-order strong {
  font-size: 15px;
}

.dialog-order > b {
  color: var(--accent);
  font-size: 18px;
}

.spend-form { display: grid; gap: 14px; }
.spend-intro, .spend-hint { margin: 0; color: #b5b4bb; font-size: 13px; line-height: 1.5; }
.spend-days { margin: 4px 0 0; }
.spend-days > span { text-transform: none; letter-spacing: 0; color: var(--text); font-size: 14px; }
.spend-days input { font-variant-numeric: tabular-nums; font-size: 22px; }
.spend-presets { display: flex; gap: 8px; }
.spend-presets button { flex: 1; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.spend-presets button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: rgb(255 155 63 / 8%); }
.spend-presets button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.spend-presets button:disabled { opacity: .5; cursor: default; }
.spend-total { margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 16px; font-variant-numeric: tabular-nums; }
.spend-total > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.spend-total dt { color: #b5b4bb; font-size: 13px; }
.spend-total dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; }
.spend-total__price dt { color: var(--text); }
.spend-total__price dt small { display: block; margin-top: 4px; font-size: 12px; color: #b5b4bb; }
.spend-total__price dd { font-size: 25px; color: var(--accent); white-space: nowrap; }
.spend-total__price dd small { font-size: 13px; }
.spend-status { min-height: 137px; margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); color: #b5b4bb; font-size: 13px; }

.withdraw-networks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.withdraw-networks button {
  min-height: 48px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.withdraw-networks button[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(242, 154, 74, .1);
  color: var(--accent);
}

.manual-guide {
  display: grid;
  gap: 0;
}

.manual-guide__step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 4px 0 18px;
}

.manual-guide__step + .manual-guide__step {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.manual-guide__step > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
}

.manual-guide__step > div {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.manual-guide__step strong {
  padding-top: 8px;
  font-size: 14px;
}

.manual-guide__step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.manual-guide__step .button {
  margin-top: 2px;
}

.router-selector {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(242, 154, 74, .35);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.router-selector__head {
  display: grid;
  gap: 5px;
}

.router-selector__head h2 {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -.045em;
}

.router-selector__head p {
  color: var(--muted);
  font-size: 12px;
}

.router-system-list,
.router-dialog-list {
  display: grid;
  gap: 8px;
}

.router-system-list > button,
.router-dialog-list > button {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
}

.router-system-list > button:active,
.router-dialog-list > button:active {
  transform: scale(.985);
}

.router-system-list > button[aria-pressed="true"] {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(242, 154, 74, .14), transparent), var(--surface-2);
}

.tv-selector .router-system-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tv-selector .router-system-list > button {
  grid-template-columns: 1fr;
  min-height: 68px;
  padding: 12px;
}

.tv-setup-flow {
  display: grid;
  gap: 12px;
}

#tv-setup-flow {
  scroll-margin-top: 18px;
  animation: rise-in .32s var(--ease) both;
}

.router-system-list span,
.router-dialog-list span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.router-system-list strong,
.router-dialog-list strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.router-system-list small,
.router-dialog-list small {
  color: var(--muted);
  font-size: 10px;
}

.router-system-list .icon,
.router-dialog-list .icon {
  color: var(--muted);
}

.payment-methods {
  display: grid;
  gap: 8px;
}

.payment-methods > button {
  display: grid;
  min-height: 70px;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.payment-methods > button[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(242, 154, 74, .08);
}

.payment-methods > button > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.payment-methods strong {
  font-size: 13px;
}

.payment-methods small {
  color: var(--muted);
  font-size: 10px;
}

.payment-method-icon {
  width: 42px;
  height: 42px;
  background: var(--surface-2);
  color: var(--text);
}

.payment-methods i {
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.payment-methods > button[aria-pressed="true"] i {
  border: 4px solid var(--surface);
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: calc(var(--nav-height) + 30px + env(safe-area-inset-bottom));
  left: 20px;
  max-width: 460px;
  margin: 0 auto;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #17100b;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.toast-region.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .055) 45%, transparent 65%);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

.skeleton--brand { width: 180px; height: 48px; }
.skeleton--hero { height: 332px; margin-top: 34px; }
.skeleton--rail { height: 190px; margin-top: 12px; }

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 374px) {
  .app-content {
    padding-right: calc(13px + var(--tg-content-safe-area-inset-right, env(safe-area-inset-right)));
    padding-left: calc(13px + var(--tg-content-safe-area-inset-left, env(safe-area-inset-left)));
  }

  .page-title-block h1 {
    font-size: 32px;
  }

  .plan-stage {
    min-height: 202px;
    padding: 20px;
  }

  .plan-stage__price strong {
    font-size: 38px;
  }

  .plan-choice {
    min-height: 118px;
    padding: 14px;
  }

  .plan-choice__term strong {
    font-size: 24px;
  }

  .entry-card {
    gap: 17px;
    padding: 17px;
  }

  .return-referral__value {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .return-referral__value strong {
    font-size: 74px;
  }

  .return-referral__value span {
    max-width: none;
    padding-bottom: 0;
  }

  .return-referral {
    min-height: min(530px, calc(100dvh - 24px));
  }

  .hero-card {
    min-height: 308px;
    padding: 20px;
  }

  .days-display strong {
    font-size: 72px;
  }

  .days-display span {
    max-width: 76px;
    font-size: 13px;
  }

  .hero-orbit {
    right: -94px;
  }

  .home-referral > span:nth-child(2) {
    display: grid;
    gap: 2px;
  }

  .setup-card {
    padding-right: 14px;
    padding-left: 58px;
  }

  .setup-step__number {
    left: 14px;
  }

  .button {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 12px;
  }

  .metric {
    padding: 12px;
  }

  .metric-icon {
    width: 41px;
    height: 41px;
  }

  .metric strong {
    font-size: 15px;
  }

  .nav-button span {
    font-size: 9px;
  }

  .sticky-action {
    grid-template-columns: 1fr 146px;
  }

  .referral-hero {
    min-height: 284px;
    padding: 21px;
  }

  .referral-hero h1 {
    gap: 8px;
  }

  .partner-card {
    padding: 19px;
  }

  .partner-spend {
    min-height: 62px;
    padding-left: 15px;
  }
}

@media (min-width: 720px) {
  .app-shell {
    margin-top: 18px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 34px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
