@font-face {
  font-family: "Roboto Condensed";
  src: url("./assets/fonts/RobotoCondensed.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  color-scheme: light;
  --blue: #4250fe;
  --orange: #ff6316;
  --ink: #1c1c1c;
  --cream: #faf5ee;
  --lime: #d9f203;
  --white: #fffdf9;
  --grey-100: #f1ebe3;
  --grey-300: #d6d0c8;
  --grey-500: #77736e;
  --page: var(--cream);
  --surface: var(--white);
  --surface-soft: var(--grey-100);
  --text: var(--ink);
  --text-muted: #66615b;
  --line: rgba(28, 28, 28, 0.24);
  --focus: var(--blue);
  --danger: #bd3600;
  --critical: #cc2340;
  --success: #315d00;
  --nav-height: 78px;
  --content-width: 480px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  /* Remotion-style frame budget at 60fps: 11 / 19 / 31 frames. */
  --motion-fast: 180ms;
  --motion-base: 320ms;
  --motion-emphasis: 520ms;
  --spring-out: cubic-bezier(.16, 1, .3, 1);
  --spring-soft: cubic-bezier(.22, .8, .3, 1);
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-synthesis: weight;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--text);
  font-family: inherit;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

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

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

button {
  border: 0;
}

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

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

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

.app-shell {
  position: relative;
  width: 100%;
  max-width: var(--content-width);
  min-height: var(--tg-viewport-stable-height, 100dvh);
  margin: 0 auto;
  overflow-x: clip;
  background: var(--page);
}

.app-content {
  display: grid;
  gap: 16px;
  padding-top: calc(14px + var(--tg-content-safe-area-inset-top, env(safe-area-inset-top)));
  padding-right: calc(16px + var(--tg-content-safe-area-inset-right, env(safe-area-inset-right)));
  padding-bottom: calc(var(--nav-height) + 24px + var(--tg-content-safe-area-inset-bottom, env(safe-area-inset-bottom)));
  padding-left: calc(16px + var(--tg-content-safe-area-inset-left, env(safe-area-inset-left)));
}

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

.screen > *:not(.checkout-bar) {
  animation: screen-in var(--motion-base) var(--spring-out) backwards;
}

.screen > *:not(.checkout-bar):nth-child(2) { animation-delay: 40ms; }
.screen > *:not(.checkout-bar):nth-child(3) { animation-delay: 80ms; }
.screen > *:not(.checkout-bar):nth-child(4) { animation-delay: 120ms; }
.screen > *:not(.checkout-bar):nth-child(n + 5) { animation-delay: 150ms; }

body.tour-active .screen > *:not(.checkout-bar) {
  animation: none;
}

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

.topbar,
.screen-header,
.row,
.row-between,
.button-row,
.profile-head,
.plan-main,
.install-head {
  display: flex;
  align-items: center;
}

.topbar,
.row-between {
  justify-content: space-between;
}

.topbar {
  min-height: 48px;
  gap: 12px;
}

.topbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 118px;
  height: auto;
}

.wallet-shortcut {
  display: flex;
  min-width: 88px;
  max-width: 112px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  cursor: pointer;
  background: var(--ink);
  color: var(--cream);
  transition: background var(--motion-fast) var(--ease), transform var(--motion-fast) var(--spring-out);
}

.wallet-shortcut:hover { background: #303030; }
.wallet-shortcut:active { transform: translateY(2px); }

.wallet-shortcut-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  filter: brightness(0) invert(1);
}

.wallet-shortcut strong {
  overflow: hidden;
  font-size: 17px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button,
.back-button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  padding: 0;
  cursor: pointer;
  background: var(--blue);
  color: var(--cream);
  transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--spring-out);
}

.back-button {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--text);
}

.icon-button:hover,
.icon-button:active { background: #2838e8; }

.icon-button img,
.quick-icon,
.menu-icon,
.nav-icon {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.icon-button img,
.nav-icon { filter: brightness(0) invert(1); }

.ui-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.dialog-close .ui-icon,
.tour-close .ui-icon { filter: brightness(0) invert(1); }

.screen-header {
  min-height: 48px;
  gap: 12px;
}

.screen-title {
  font-size: clamp(30px, 9vw, 42px);
  font-weight: 800;
  line-height: .93;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.screen-title.small {
  font-size: 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.muted { color: var(--text-muted); }
.accent { color: var(--blue); }
.signal { color: var(--orange); }

.subscription-card {
  position: relative;
  display: grid;
  min-height: 224px;
  overflow: hidden;
  align-content: space-between;
  gap: 20px;
  padding: 20px;
  background: var(--blue);
  color: var(--cream);
}

.subscription-card--warning {
  background: var(--orange);
  color: var(--ink);
}

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

.subscription-card--trial {
  background: var(--blue);
  box-shadow: inset 0 -5px 0 var(--lime);
}

.subscription-card--warning::before,
.subscription-card--critical::before { opacity: .12; }

.subscription-card--critical::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 3px solid var(--lime);
  background: var(--cream);
  content: "";
  opacity: 0;
  pointer-events: none;
}

.subscription-card::before {
  position: absolute;
  right: 56px;
  top: -38px;
  width: 180px;
  height: 180px;
  background: url("./assets/objects/3d-swap-iridescent.png") center / contain no-repeat;
  content: "";
  opacity: .18;
  transform: rotate(-16deg);
  animation: object-arrive-blue var(--motion-emphasis) 120ms var(--spring-out) both;
}

@keyframes object-arrive-blue {
  from { opacity: 0; transform: translate3d(40px, -28px, 0) rotate(-34deg) scale(.72); }
  to { opacity: .18; transform: translate3d(0, 0, 0) rotate(-16deg) scale(1); }
}

.subscription-head,
.connection-actions {
  position: relative;
  z-index: 1;
}

.subscription-status {
  display: flex;
  min-height: 24px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.subscription-urgency-badge {
  padding: 6px 8px 5px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .035em;
  text-transform: uppercase;
  transform-origin: right center;
}

.subscription-card--warning .device-count { border-color: rgba(28, 28, 28, .34); }
.subscription-card--warning .btn-light { background: var(--ink); color: var(--cream); }
.subscription-card--warning .btn-outline-light { border-color: var(--ink); color: var(--ink); }

@keyframes subscription-critical-beat {
  0%, 56%, 64%, 72%, 100% { opacity: 0; }
  59%, 67% { opacity: .13; }
}

@keyframes subscription-badge-beat {
  0%, 56%, 64%, 72%, 100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  59%, 67% { opacity: .88; transform: translate3d(0, -1px, 0) scale(1.075); }
}

@media (prefers-reduced-motion: no-preference) {
  .subscription-card--critical::after { animation: subscription-critical-beat 2.4s var(--spring-out) infinite; }
  .subscription-card--critical .subscription-urgency-badge { animation: subscription-badge-beat 2.4s var(--spring-out) infinite; }
}

.subscription-metrics,
.subscription-time {
  display: flex;
  align-items: flex-end;
}

.subscription-metrics {
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.subscription-number {
  font-size: clamp(68px, 21vw, 90px);
  font-weight: 800;
  line-height: .72;
  letter-spacing: -.04em;
}

.subscription-unit {
  margin-left: 7px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.device-count {
  display: grid;
  gap: 4px;
  min-width: 78px;
  padding-left: 14px;
  border-left: 1px solid rgba(250, 245, 238, .42);
  text-align: right;
}

.device-count span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.device-count strong {
  font-size: 25px;
  line-height: 1;
}

.speed-upgrade-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  min-height: 112px;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  width: 100%;
  padding: 14px;
  cursor: pointer;
  background: linear-gradient(116deg, var(--blue) 0 72%, #2839e5 72% 100%);
  color: var(--cream);
  box-shadow: inset 0 -5px 0 var(--lime);
  text-align: left;
  transition: filter var(--motion-fast) var(--ease), transform var(--motion-fast) var(--spring-out);
}

.speed-upgrade-card::before {
  position: absolute;
  z-index: -1;
  right: -45px;
  top: -52px;
  width: 142px;
  height: 142px;
  background: var(--orange);
  content: "";
  transform: rotate(34deg);
}

.speed-upgrade-card:hover { filter: saturate(1.08) contrast(1.02); }
.speed-upgrade-card:active { transform: translate3d(0, 1px, 0) scale(.99); }

.speed-upgrade-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 70px;
  height: 70px;
}

.speed-upgrade-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background: var(--lime);
  transform: rotate(-5deg);
}

.speed-upgrade-icon { width: 24px; height: 24px; }
.speed-upgrade-rocket {
  position: absolute;
  right: -2px;
  top: -9px;
  width: 38px;
  height: 38px;
  filter: brightness(0) invert(1);
  transform: rotate(-13deg);
  animation: fast-rocket-lift var(--motion-emphasis) 80ms var(--spring-out) both;
}

.speed-upgrade-spark {
  position: absolute;
  left: -4px;
  bottom: -1px;
  width: 21px;
  height: 29px;
  filter: brightness(0) saturate(100%) invert(46%) sepia(96%) saturate(3321%) hue-rotate(358deg) brightness(101%) contrast(103%);
  transform: rotate(9deg);
  animation: fast-bolt-pop var(--motion-base) 180ms var(--spring-out) both;
}

.speed-upgrade-copy { display: grid; min-width: 0; gap: 5px; }
.speed-upgrade-copy .eyebrow { color: var(--lime); }

.speed-upgrade-copy strong {
  font-size: 22px;
  line-height: .95;
  text-transform: uppercase;
}

.speed-upgrade-copy small {
  color: var(--cream);
  font-size: 13px;
  line-height: 1.2;
  opacity: .86;
}

.speed-upgrade-cta {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.trial-card {
  position: relative;
  display: grid;
  min-height: 260px;
  overflow: hidden;
  align-content: space-between;
  gap: 22px;
  padding: 20px;
  background: var(--blue);
  color: var(--cream);
}

.trial-card::after {
  position: absolute;
  right: -44px;
  top: -36px;
  width: 190px;
  height: 190px;
  background: url("./assets/objects/3d-swap-iridescent.png") center / contain no-repeat;
  content: "";
  opacity: .22;
  transform: rotate(-16deg);
  animation: object-arrive-blue var(--motion-emphasis) 100ms var(--spring-out) both;
}

.trial-copy,
.trial-actions {
  position: relative;
  z-index: 1;
}

.trial-copy { max-width: 280px; }

.trial-value {
  max-width: 260px;
  margin: 0 0 14px;
  font-size: clamp(62px, 19vw, 82px);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.trial-copy p {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.2;
}

.trial-actions {
  display: grid;
  gap: 8px;
}

.referral-card {
  position: relative;
  display: grid;
  min-height: 280px;
  overflow: hidden;
  padding: 20px;
  background: var(--lime);
  color: var(--ink);
}

.referral-card::after {
  position: absolute;
  right: -48px;
  top: -20px;
  width: 210px;
  height: 210px;
  background: url("./assets/objects/3d-swap-pink.png") center / contain no-repeat;
  content: "";
  opacity: .52;
  transform: rotate(18deg);
  animation: object-arrive-lime var(--motion-emphasis) 80ms var(--spring-out) both;
}

@keyframes object-arrive-lime {
  from { opacity: 0; transform: translate3d(48px, -36px, 0) rotate(38deg) scale(.68); }
  to { opacity: .52; transform: translate3d(0, 0, 0) rotate(18deg) scale(1); }
}

.referral-copy {
  position: relative;
  z-index: 1;
  max-width: 250px;
}

.referral-value {
  margin: 14px 0 12px;
  font-size: clamp(44px, 13.5vw, 60px);
  font-weight: 850;
  line-height: .82;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.referral-card-b {
  min-height: 300px;
}

.referral-card-b::after {
  top: 12px;
  right: -66px;
  width: 190px;
  height: 190px;
  opacity: .4;
}

.referral-card-b .referral-copy {
  max-width: 330px;
}

.referral-value-b {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: flex-end;
  gap: 16px;
  margin: 18px 0 14px;
}

.referral-offer-number {
  font-size: clamp(86px, 25vw, 112px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.035em;
}

.referral-offer-label {
  padding-bottom: 2px;
  min-width: 0;
  font-size: clamp(23px, 7.2vw, 32px);
  font-weight: 850;
  line-height: .9;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.referral-card-b p {
  max-width: 310px;
  font-weight: 600;
}

.referral-card-c {
  min-height: 270px;
}

.referral-card-c::after {
  top: -18px;
  right: -76px;
  width: 176px;
  height: 176px;
  opacity: .28;
}

.referral-card-c .referral-copy { max-width: 310px; }
.referral-card-c .referral-value-b { margin: 4px 0 12px; }
.referral-card-c p { max-width: 280px; font-weight: 650; }

.referral-card p,
.body-copy {
  font-size: 16px;
  line-height: 1.32;
}

.referral-actions {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-top: 20px;
}

.card-link {
  display: block;
  min-height: 48px;
  width: 100%;
  padding: 15px 0 0;
  cursor: pointer;
  background: transparent;
  color: currentColor;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-link--quiet {
  font-size: 12px;
  text-decoration: none;
  opacity: .72;
}

.panel {
  padding: 18px;
  background: var(--surface);
}

.panel.ink {
  background: var(--ink);
  color: var(--cream);
}

.panel.blue {
  background: var(--blue);
  color: var(--cream);
}

.channel-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 92px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  background: var(--surface);
  transition: transform var(--motion-fast) var(--spring-out), background var(--motion-fast) var(--ease);
}

.channel-card:hover { background: var(--surface-soft); }
.channel-card:active { transform: translateY(2px); }

.channel-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  background: var(--blue);
}

.channel-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.channel-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.channel-copy strong {
  font-size: 21px;
  line-height: 1;
  text-transform: uppercase;
}

.channel-copy small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-arrow {
  width: 18px;
  height: 18px;
}

.section-heading {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 780;
  line-height: 1;
  text-transform: uppercase;
}

.section-copy { margin-bottom: 16px; }
.section-action { margin-top: 14px; }
.spaced-message { margin-top: 12px; }
.microcopy { font-size: 12px; line-height: 1.3; }

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

.menu-icon { filter: none; }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .015em;
  text-align: center;
  text-transform: uppercase;
  transform: translate3d(0, 0, 0);
  transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--spring-out);
}

.btn:active:not(:disabled),
.icon-button:active,
.back-button:active,
.nav-button:active,
.menu-item:active,
.document-item:active,
.plan-option:active { transform: translate3d(0, 1px, 0) scale(.985); }

.btn:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: var(--cream); }
.btn-primary:hover:not(:disabled), .btn-primary:active:not(:disabled) { background: #2838e8; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover:not(:disabled), .btn-ink:active:not(:disabled) { background: #333; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-outline { border: 2px solid currentColor; background: transparent; color: inherit; }
.btn-outline:hover:not(:disabled), .btn-outline:active:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.btn-light { background: var(--cream); color: var(--blue); }
.btn-light:hover:not(:disabled), .btn-light:active:not(:disabled) { background: var(--lime); color: var(--ink); }
.btn-outline-light { border: 2px solid rgba(250, 245, 238, .8); background: transparent; color: var(--cream); }
.btn-outline-light:hover:not(:disabled), .btn-outline-light:active:not(:disabled) { border-color: var(--cream); background: rgba(250, 245, 238, .12); }

.button-row {
  gap: 10px;
}

.button-row > * { flex: 1; }

.plans-list,
.menu-list,
.transactions,
.documents-list,
.faq-list {
  display: grid;
  gap: 9px;
}

.plans-list { position: relative; }

.screen-lead { margin-top: 10px; }

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

.plan-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  min-height: 86px;
  align-items: center;
  padding: 15px 16px;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transform: translate3d(0, 0, 0);
  transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease), transform var(--motion-fast) var(--spring-out);
}

.plan-option[aria-pressed="true"] {
  background: var(--surface);
}

.plan-option:hover { border-color: rgba(66, 80, 254, .42); }

.plan-selection {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  border: 2px solid var(--blue);
  box-shadow: inset 6px 0 0 var(--blue);
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: transform var(--motion-emphasis) var(--spring-out), width var(--motion-base) var(--spring-out), height var(--motion-base) var(--spring-out);
}

.plan-selection[data-instant="true"] { transition: none; }

.tier-section {
  display: grid;
  gap: 10px;
  margin-top: 3px;
}

.tier-section .section-heading { margin-top: -2px; }

.duration-section {
  display: grid;
  gap: 10px;
}

.duration-section .section-heading { margin-bottom: 0; }

.tier-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tier-option {
  position: relative;
  display: grid;
  min-height: 82px;
  align-content: center;
  width: 100%;
  padding: 12px;
  border: 2px solid var(--grey-300);
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease), box-shadow var(--motion-base) var(--spring-out), transform var(--motion-fast) var(--spring-out);
}

.tier-option:hover { border-color: rgba(66, 80, 254, .48); }
.tier-option:active { transform: translate3d(0, 1px, 0) scale(.99); }

.tier-option[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--surface-soft);
  box-shadow: inset 6px 0 0 var(--blue);
}

.tier-option-head {
  display: flex;
  align-items: center;
}

.tier-option-head strong {
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.tier-option--fast {
  isolation: isolate;
  overflow: hidden;
  min-height: 82px;
  padding-right: 62px;
  border-color: rgba(66, 80, 254, .34);
  background: linear-gradient(112deg, var(--surface) 0 66%, #eef0ff 66% 100%);
}

.tier-option--fast::after {
  position: absolute;
  z-index: 0;
  right: -36px;
  bottom: -62px;
  width: 128px;
  height: 128px;
  background: var(--orange);
  content: "";
  opacity: .14;
  transform: rotate(28deg);
  transition: opacity var(--motion-fast) var(--ease), transform var(--motion-base) var(--spring-out);
}

.tier-option--fast[aria-pressed="true"] {
  border-color: var(--blue);
  background: linear-gradient(112deg, var(--blue) 0 70%, #2839e5 70% 100%);
  color: var(--cream);
  box-shadow: inset 6px 0 0 var(--lime), inset 0 -5px 0 var(--orange);
}

.tier-option--fast[aria-pressed="true"]::after {
  opacity: 1;
  transform: translate3d(-2px, -8px, 0) rotate(36deg);
}

.fast-tier-art {
  position: absolute;
  z-index: 1;
  right: 5px;
  top: 50%;
  width: 54px;
  height: 62px;
  pointer-events: none;
  transform: translateY(-50%);
}

.tier-option--fast > .tier-option-head {
  position: relative;
  z-index: 2;
}

.fast-tier-rocket-pad {
  position: absolute;
  right: 1px;
  top: 9px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--blue);
  transform: rotate(-5deg);
  transition: background var(--motion-fast) var(--ease), transform var(--motion-base) var(--spring-out);
}

.fast-tier-rocket {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transform: rotate(-12deg);
}

.fast-tier-bolt {
  position: absolute;
  z-index: 2;
}

.fast-tier-bolt-back {
  right: 38px;
  top: 0;
  width: 13px;
  height: 19px;
  filter: brightness(0) saturate(100%) invert(46%) sepia(96%) saturate(3321%) hue-rotate(358deg) brightness(101%) contrast(103%);
  transform: rotate(-13deg);
}

.fast-tier-bolt-front {
  right: 2px;
  bottom: 1px;
  width: 12px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(84%) sepia(97%) saturate(1391%) hue-rotate(15deg) brightness(109%) contrast(105%);
  transform: rotate(12deg);
}

.tier-option--fast[aria-pressed="true"] .fast-tier-rocket-pad {
  background: var(--lime);
  transform: translate3d(-2px, -2px, 0) rotate(-8deg);
}

.tier-option--fast[aria-pressed="true"] .fast-tier-rocket {
  filter: none;
  animation: fast-rocket-lift var(--motion-emphasis) 40ms var(--spring-out) both;
}

.tier-option--fast[aria-pressed="true"] .fast-tier-bolt-front {
  animation: fast-bolt-pop var(--motion-base) 160ms var(--spring-out) both;
}

@keyframes fast-rocket-lift {
  from { opacity: .25; transform: translate3d(9px, 10px, 0) rotate(-12deg) scale(.78); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(-12deg) scale(1); }
}

@keyframes fast-bolt-pop {
  from { opacity: 0; transform: translate3d(-5px, 7px, 0) rotate(5deg) scale(.65); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(12deg) scale(1); }
}

.plan-main {
  min-width: 0;
  gap: 8px;
}

.plan-months {
  font-size: 27px;
  font-weight: 800;
  line-height: .95;
  text-transform: uppercase;
}

.plan-detail {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 13px;
}

.plan-hit {
  display: inline-flex;
  padding: 3px 7px 2px;
  color: var(--ink);
  background: rgba(217, 242, 3, .58);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.plan-price {
  min-width: 128px;
  text-align: right;
}

.plan-price strong {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  font-size: 25px;
  line-height: 1;
  white-space: nowrap;
}

.plan-price-period {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.plan-price-total {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.checkout-bar {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: calc(var(--nav-height) + 8px + var(--tg-content-safe-area-inset-bottom, env(safe-area-inset-bottom)));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(calc(100% - 32px), calc(var(--content-width) - 32px));
  align-items: center;
  padding: 12px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream);
}

.checkout-total {
  display: grid;
  gap: 3px;
}

.checkout-total strong {
  font-size: 27px;
  line-height: 1;
}

.checkout-total span {
  font-size: 13px;
  font-weight: 700;
}

.checkout-total b { font: inherit; }

.checkout-tier-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--grey-300);
  border-bottom: 1px solid var(--grey-300);
  font-size: 14px;
}

.checkout-tier-line strong { font-size: 16px; text-align: right; }

.speed-upgrade-summary {
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 0 16px 16px;
  background: var(--surface);
}

.speed-upgrade-dialog-hero {
  position: relative;
  isolation: isolate;
  min-height: 142px;
  overflow: hidden;
  margin: 0 -16px;
  padding: 18px 118px 18px 16px;
  background: linear-gradient(112deg, var(--blue) 0 72%, #2839e5 72% 100%);
  color: var(--cream);
  box-shadow: inset 0 -5px 0 var(--lime);
}

.speed-upgrade-dialog-hero::after {
  position: absolute;
  z-index: -1;
  right: -35px;
  bottom: -70px;
  width: 142px;
  height: 142px;
  background: var(--orange);
  content: "";
  transform: rotate(31deg);
}

.speed-upgrade-dialog-hero .eyebrow { color: var(--lime); }

.speed-upgrade-dialog-hero > strong {
  display: block;
  margin-top: 14px;
  color: var(--cream);
  font-size: 56px;
  line-height: .84;
}

.speed-upgrade-dialog-art {
  position: absolute;
  right: 16px;
  top: 20px;
  width: 88px;
  height: 96px;
}

.speed-upgrade-dialog-rocket {
  position: absolute;
  right: 0;
  top: 10px;
  width: 72px;
  height: 72px;
  filter: brightness(0) invert(1);
  transform: rotate(-12deg);
  animation: fast-rocket-lift var(--motion-emphasis) 70ms var(--spring-out) both;
}

.speed-upgrade-dialog-bolt {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 34px;
  filter: brightness(0) saturate(100%) invert(84%) sepia(97%) saturate(1391%) hue-rotate(15deg) brightness(109%) contrast(105%);
  transform: rotate(8deg);
  animation: fast-bolt-pop var(--motion-base) 180ms var(--spring-out) both;
}

.speed-upgrade-summary .row-between { align-items: baseline; }
.speed-upgrade-summary .row-between b { text-align: right; }

.gift-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: var(--ink);
  color: var(--cream);
}

.gift-card .section-heading { margin: 4px 0 0; }
.gift-card p, .gift-intro p { font-size: 15px; line-height: 1.35; }

.gift-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gift-plan-option {
  display: grid;
  min-height: 82px;
  align-content: center;
  gap: 7px;
  padding: 12px;
  border: 2px solid var(--grey-300);
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease), transform var(--motion-fast) var(--spring-out);
}

.gift-plan-option[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--surface-soft);
  box-shadow: inset 6px 0 0 var(--blue);
}
.gift-plan-option strong { font-size: 17px; text-transform: uppercase; }
.gift-plan-option span {
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  transform: translate3d(0, 0, 0);
  transition: transform var(--motion-base) var(--spring-out);
}
.gift-plan-option[aria-pressed="true"] span { transform: translate3d(6px, 0, 0); }

.gift-summary {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px;
  background: var(--ink);
  color: var(--cream);
}

.gift-summary div { display: grid; gap: 4px; }
.gift-summary span { color: #c9c2b8; font-size: 12px; text-transform: uppercase; }
.gift-summary div strong { font-size: 17px; text-transform: uppercase; }
.gift-summary > strong { font-size: 28px; }

.stat {
  min-height: 112px;
  padding: 15px;
  background: var(--surface);
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 38px;
  line-height: .9;
}

.stat span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rules-list {
  display: grid;
  gap: 12px;
}

.rule-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  align-items: start;
}

.rule-index {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  background: var(--blue);
  color: var(--cream);
  font-size: 16px;
  font-weight: 800;
}

.rule-item strong {
  display: block;
  margin: 4px 0 4px;
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
}

.rule-item p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.3;
}

.profile-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
}

.profile-head { gap: 14px; }

.avatar {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  font-size: 23px;
  font-weight: 800;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-name {
  font-size: 24px;
  font-weight: 780;
  line-height: 1;
  text-transform: uppercase;
}

.profile-handle { margin-top: 5px; color: var(--text-muted); font-size: 14px; }

.profile-data {
  display: grid;
  gap: 10px;
  padding-top: 13px;
  border-top: .5px solid var(--line);
}

.profile-data button {
  min-height: 48px;
  cursor: pointer;
  background: transparent;
  color: var(--blue);
  font-weight: 750;
}

.menu-item,
.document-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.menu-item:hover,
.document-item:hover { background: var(--surface-soft); }

.menu-item strong,
.document-item strong {
  font-size: 17px;
  line-height: 1.05;
  text-transform: uppercase;
}

.document-status {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 13px;
}

.menu-arrow {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(35%) sepia(94%) saturate(4517%) hue-rotate(231deg) brightness(100%) contrast(101%);
}

.transaction {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  min-height: 76px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
}

.transaction strong { display: block; font-size: 17px; line-height: 1.1; }
.transaction span { display: block; margin-top: 5px; color: var(--text-muted); font-size: 13px; }
.transaction-value { color: var(--blue); font-size: 19px; font-weight: 800; text-align: right; }
.transaction-value.positive { color: var(--success); }

.wallet-hero {
  display: grid;
  gap: 20px;
  padding: 20px;
  overflow: hidden;
  background: var(--blue);
  color: var(--cream);
}

.wallet-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.wallet-hero .eyebrow { color: var(--lime); }

.wallet-balance {
  display: block;
  margin-top: 8px;
  font-size: clamp(48px, 15vw, 70px);
  font-weight: 850;
  line-height: .88;
  letter-spacing: -.035em;
}

.wallet-hero p {
  max-width: 280px;
  color: rgba(250, 245, 238, .8);
  font-size: 15px;
  line-height: 1.3;
}

.wallet-mark {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  place-items: center;
  background: var(--lime);
  animation: wallet-mark-in var(--motion-emphasis) var(--spring-out) both;
}

.wallet-mark-icon { width: 28px; height: 28px; }

@keyframes wallet-mark-in {
  from { opacity: 0; transform: translate3d(14px, -14px, 0) rotate(8deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
}

.wallet-note {
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  border-left: 5px solid var(--lime);
  background: var(--surface);
}

.wallet-note strong { font-size: 17px; text-transform: uppercase; }
.wallet-note span { color: var(--text-muted); font-size: 14px; line-height: 1.3; }
.wallet-section-title { margin-bottom: 10px; }
.wallet-ledger { gap: 8px; }

.wallet-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wallet-preset {
  min-height: 58px;
  padding: 10px;
  border: 2px solid var(--grey-300);
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease), transform var(--motion-fast) var(--spring-out);
}

.wallet-preset:hover { border-color: var(--blue); }
.wallet-preset:active { transform: translateY(2px); }
.wallet-preset[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: var(--cream); }

.wallet-custom-field { position: relative; }
.wallet-custom-field input { padding-right: 42px; }
.wallet-custom-field span {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 800;
  transform: translateY(-50%);
  pointer-events: none;
}

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

.field label {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 11px 13px;
  border: 2px solid var(--text);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
}

.field input::placeholder { color: var(--text-muted); opacity: 1; }
.field-error { color: var(--danger); font-size: 13px; line-height: 1.25; }

.inline-message {
  padding: 12px;
  border-left: 5px solid var(--orange);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.inline-message.success { border-color: var(--lime); }

.faq-item {
  background: var(--surface);
}

.faq-item summary {
  position: relative;
  min-height: 62px;
  padding: 17px 48px 17px 16px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  position: absolute;
  right: 17px;
  top: 50%;
  display: grid;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
}

.faq-toggle img {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  filter: brightness(0) saturate(100%) invert(35%) sepia(94%) saturate(4517%) hue-rotate(231deg) brightness(100%) contrast(101%);
  transition: opacity var(--motion-fast) var(--ease), transform var(--motion-base) var(--spring-out);
}

.faq-minus { opacity: 0; transform: rotate(-90deg); }
.faq-item[open] .faq-plus { opacity: 0; transform: rotate(90deg); }
.faq-item[open] .faq-minus { opacity: 1; transform: rotate(0); }
.faq-answer {
  padding: 0 16px 17px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.35;
  animation: faq-answer-in var(--motion-base) var(--spring-out) both;
}

@keyframes faq-answer-in {
  from { opacity: 0; transform: translate3d(0, -6px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.empty-state,
.error-state {
  display: grid;
  min-height: 210px;
  place-items: center;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  text-align: center;
}

.empty-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  background: var(--lime);
  color: var(--ink);
  font-size: 30px;
  font-weight: 850;
}

.document-body {
  display: grid;
  gap: 14px;
  min-height: 300px;
  padding: 20px;
  background: var(--surface);
}

.document-body p { color: var(--text-muted); font-size: 16px; line-height: 1.45; }

.bottom-nav {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, var(--content-width));
  min-height: calc(var(--nav-height) + var(--tg-content-safe-area-inset-bottom, env(safe-area-inset-bottom)));
  padding-top: 7px;
  padding-right: calc(8px + var(--tg-content-safe-area-inset-right, env(safe-area-inset-right)));
  padding-bottom: calc(7px + var(--tg-content-safe-area-inset-bottom, env(safe-area-inset-bottom)));
  padding-left: calc(8px + var(--tg-content-safe-area-inset-left, env(safe-area-inset-left)));
  transform: translateX(-50%);
  background: var(--surface);
  border-top: 1px solid var(--grey-300);
}

.nav-button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 58px;
  place-items: center;
  gap: 4px;
  padding: 7px 3px 5px;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
  transition: color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--spring-out);
}

.nav-icon { filter: brightness(0) saturate(100%) opacity(.56); }
.nav-button[aria-current="page"] { color: var(--blue); }
.nav-button[aria-current="page"]::before { position: absolute; top: 0; left: 18%; width: 64%; height: 4px; background: var(--blue); content: ""; }
.nav-button[aria-current="page"]::before { animation: nav-signal var(--motion-base) var(--spring-out) both; }
.nav-button[aria-current="page"] .nav-icon { filter: brightness(0) saturate(100%) invert(35%) sepia(94%) saturate(4517%) hue-rotate(231deg) brightness(100%) contrast(101%); }

@keyframes nav-signal {
  from { opacity: 0; transform: scaleX(.2); }
  to { opacity: 1; transform: scaleX(1); }
}

.dialog {
  width: min(calc(100% - 28px), 430px);
  max-width: calc(100% - 28px);
  max-height: min(88dvh, 820px);
  margin: auto;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: var(--page);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.dialog::backdrop {
  background: rgba(10, 10, 10, .72);
  backdrop-filter: blur(7px);
}

.dialog[open] {
  animation: dialog-enter var(--motion-base) var(--spring-out) both;
}

.dialog[open]::backdrop {
  animation: dialog-backdrop-enter var(--motion-base) var(--ease) both;
}

@keyframes dialog-enter {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes dialog-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dialog-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
}

.dialog-card > * { min-width: 0; }

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

.dialog-title {
  font-size: 30px;
  font-weight: 820;
  line-height: .95;
  text-transform: uppercase;
}

.dialog-close {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  cursor: pointer;
  background: var(--ink);
  color: var(--cream);
  font-size: 24px;
}

.dialog-summary {
  display: grid;
  gap: 9px;
  padding: 16px;
  background: var(--surface);
}

.dialog-summary strong { font-size: 34px; line-height: 1; }

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

.platform-option {
  min-height: 66px;
  padding: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-align: left;
}

.platform-option[aria-pressed="true"] { border-color: var(--blue); background: var(--surface-soft); }
.platform-option:last-child:nth-child(odd) { grid-column: 1 / -1; }

.step-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.step-track span { height: 4px; background: var(--grey-300); }
.step-track span.active { background: var(--blue); }

.install-steps {
  display: grid;
  gap: 12px;
}

.install-action-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 8px 12px;
  padding: 15px;
  background: var(--surface);
}

.install-action-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--blue);
  color: var(--cream);
  font-size: 18px;
  font-weight: 800;
}

.install-action-card strong { display: block; font-size: 19px; line-height: 1.05; text-transform: uppercase; }
.install-action-card p { margin-top: 5px; color: var(--text-muted); font-size: 13px; line-height: 1.3; }
.install-action-card .btn, .install-copy-link { grid-column: 1 / -1; }

.install-copy-link {
  min-height: 44px;
  cursor: pointer;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.tour-layer[hidden] { display: none; }
.tour-layer[data-instant="true"] .tour-scrim,
.tour-layer[data-instant="true"] .tour-spotlight,
.tour-layer[data-instant="true"] .tour-card { transition: none; }

.tour-scrim {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: rgba(20, 20, 20, .72);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0);
  pointer-events: auto;
  transition: clip-path var(--motion-emphasis) var(--spring-out);
}

.tour-spotlight {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  border: 3px solid var(--lime);
  box-shadow: 0 0 0 1px rgba(28, 28, 28, .38), 0 0 32px rgba(217, 242, 3, .48);
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  transition: transform var(--motion-emphasis) var(--spring-out), width var(--motion-emphasis) var(--spring-out), height var(--motion-emphasis) var(--spring-out);
}

.tour-spotlight.is-arriving {
  animation: spotlight-arrive var(--motion-emphasis) var(--spring-out);
}

@keyframes spotlight-arrive {
  0% { box-shadow: 0 0 0 0 rgba(217, 242, 3, .88), 0 0 8px rgba(217, 242, 3, .24); }
  60% { box-shadow: 0 0 0 8px rgba(217, 242, 3, 0), 0 0 38px rgba(217, 242, 3, .64); }
  100% { box-shadow: 0 0 0 1px rgba(28, 28, 28, .38), 0 0 32px rgba(217, 242, 3, .48); }
}

.tour-card {
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  display: grid;
  width: min(350px, calc(100vw - 24px));
  gap: 12px;
  padding: 16px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .4);
  transform: translate3d(12px, 12px, 0);
  pointer-events: auto;
  transition: transform var(--motion-emphasis) var(--spring-out), opacity var(--motion-fast) var(--ease);
}

.tour-card-head,
.tour-meta,
.tour-actions {
  display: flex;
  align-items: center;
}

.tour-card-head,
.tour-meta { justify-content: space-between; gap: 12px; }

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

.tour-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  cursor: pointer;
  background: rgba(250, 245, 238, .12);
  color: var(--cream);
  font-size: 24px;
  transition: background var(--motion-fast) var(--ease), transform var(--motion-fast) var(--spring-out);
}

.tour-close:active { transform: scale(.94); }
.tour-card .btn:focus-visible,
.tour-close:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

.tour-message { min-height: 82px; }

.tour-message h2 {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 820;
  line-height: .95;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.tour-message p {
  color: #d8d1c8;
  font-size: 15px;
  line-height: 1.35;
}

.tour-progress {
  display: grid;
  grid-template-columns: repeat(6, 20px);
  gap: 5px;
}

.tour-progress span { height: 4px; background: rgba(250, 245, 238, .2); }
.tour-progress span.active { background: var(--lime); }
.tour-count { color: #bfb8af; font-size: 12px; font-weight: 700; }

.tour-actions {
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(250, 245, 238, .16);
}

.tour-actions > * { flex: 1; }
.btn-tour-back { background: rgba(250, 245, 238, .12); color: var(--cream); }
.btn-tour-back:disabled { opacity: .34; }

.tour-card.is-changing .tour-message {
  animation: tour-copy-in var(--motion-base) var(--spring-out) both;
}

.tour-card.is-opening {
  animation: tour-card-open var(--motion-emphasis) var(--spring-out) both;
}

@keyframes tour-copy-in {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes tour-card-open {
  from { opacity: 0; }
  to { opacity: 1; }
}

.toast-region {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(var(--nav-height) + 18px + env(safe-area-inset-bottom));
  width: min(calc(100% - 32px), 420px);
  padding: 13px 15px;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.toast-region.visible { opacity: 1; transform: translate(-50%, 0); }

.skeleton {
  overflow: hidden;
  background: var(--surface-soft);
}

.skeleton::after {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  content: "";
  animation: skeleton 1.2s ease-in-out infinite;
}

@keyframes skeleton { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skeleton-logo { width: 120px; height: 24px; margin: 10px 0; }
.skeleton-hero { height: 280px; }
.skeleton-panel { height: 220px; }

@media (max-width: 359px) {
  .app-content { padding-right: 12px; padding-left: 12px; }
  .brand-logo { width: 108px; }
  .topbar { gap: 8px; }
  .topbar-actions { gap: 6px; }
  .wallet-shortcut { min-width: 84px; max-width: 96px; padding: 0 8px; }
  .wallet-shortcut strong { font-size: 16px; }
  .speed-upgrade-card { grid-template-columns: 58px minmax(0, 1fr); gap: 11px; }
  .speed-upgrade-art { width: 58px; height: 62px; }
  .speed-upgrade-mark { width: 48px; height: 48px; }
  .speed-upgrade-rocket { width: 34px; height: 34px; }
  .speed-upgrade-cta { grid-column: 1 / -1; }
  .subscription-card, .trial-card, .referral-card { padding: 18px; }
  .subscription-number { font-size: 64px; }
  .trial-value { max-width: 100%; font-size: 55px; line-height: .98; }
  .referral-value { font-size: 45px; }
  .nav-button { font-size: 10px; }
  .plan-months { font-size: 22px; }
  .plan-price strong { font-size: 21px; }
  .tier-option--fast { padding-right: 82px; }
  .tier-option--fast .tier-option-head strong { font-size: 18px; }
  .fast-tier-art { right: 7px; width: 66px; transform: translateY(-50%) scale(.88); }
  .speed-upgrade-dialog-hero { padding-right: 96px; }
  .speed-upgrade-dialog-art { right: 10px; transform: scale(.84); transform-origin: right center; }
  .button-row.stack-small { display: grid; }
}

@media (min-width: 700px) {
  body { padding: 24px 0; }
  .app-shell { min-height: calc(var(--tg-viewport-stable-height, 100dvh) - 48px); box-shadow: 0 0 0 1px rgba(28, 28, 28, .12); }
}

@media (prefers-reduced-motion: reduce) {
  .subscription-card--critical::after,
  .subscription-card--critical .subscription-urgency-badge { animation: none !important; }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
