:root {
  --black: #030303;
  --black-soft: #090909;
  --panel: rgba(9, 9, 9, 0.82);
  --panel-solid: #0d0d0d;
  --white: #f7f7f4;
  --silver: #a6a6a0;
  --muted: #6c6c68;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.34);
  --glass-surface: rgba(10, 10, 10, 0.68);
  --glass-surface-hover: rgba(18, 18, 18, 0.82);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-border-hover: rgba(255, 255, 255, 0.52);
  --glass-shadow: 0 22px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --glass-shadow-hover: 0 30px 90px rgba(0, 0, 0, 0.62), 0 0 34px rgba(255, 255, 255, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --success: #9cf7b1;
  --danger: #ff7474;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
  --radius: 28px;
  --header-height: 74px;
  --content-width: 430px;
  --narrow-width: 430px;
  --ease: 220ms ease;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

button,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  font-size: 58px;
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 21px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 14px;
  color: var(--black);
  background: var(--white);
  transform: translateY(-160%);
  transition: transform var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.shell-narrow {
  width: min(calc(100% - 40px), var(--narrow-width));
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--silver);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.space-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--black) url("../images/space-mobile.webp") center / cover no-repeat;
}

.space-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.54);
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background: rgba(3, 3, 3, 0.22);
  backdrop-filter: blur(18px);
  transition: opacity 240ms ease, visibility 240ms ease;
}

.auth-panel {
  width: min(100%, 520px);
  padding: 42px;
  border: 1px solid var(--glass-border-hover);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(18, 18, 18, 0.9), rgba(4, 4, 4, 0.82));
  box-shadow: var(--glass-shadow-hover);
  text-align: center;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
}

.auth-brand img:first-child {
  width: 48px;
  height: auto;
}

.auth-brand img:last-child {
  width: min(210px, 62vw);
  height: auto;
}

.auth-panel h1 {
  margin-bottom: 18px;
  font-size: 42px;
}

.auth-copy {
  max-width: 400px;
  margin: 0 auto 28px;
  color: var(--silver);
  font-size: 16px;
}

.auth-button {
  width: 100%;
}

.auth-button[hidden] {
  display: none;
}

.auth-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-status.is-error {
  color: var(--danger);
}

body:not(.app-locked) .auth-gate {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body.app-locked main,
body.app-locked .mobile-nav {
  visibility: hidden;
  pointer-events: none;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
}

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

.button:active {
  transform: translateY(0);
}

.button-light {
  border-color: var(--white);
  color: var(--black);
  background: var(--white);
}

.button-light:hover {
  background: #dcdcd8;
}

.button-dark,
.button-outline {
  color: var(--white);
  background: rgba(0, 0, 0, 0.38);
}

.button-dark:hover,
.button-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button-compact {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 12px;
}

.button-full {
  width: 100%;
}

.view {
  min-height: 100vh;
}

.view[hidden] {
  display: none;
}

.view.is-entering {
  animation: view-in 300ms ease both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  min-height: min(860px, 92svh);
  display: grid;
  place-items: center;
  padding-top: calc(var(--header-height) + 42px);
  padding-bottom: 70px;
}

.hero-brand {
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-mark-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 115%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.13), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(160, 205, 255, 0.09), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.035), transparent 66%);
  opacity: 0.62;
  transform: translate(-50%, -50%) scale(0.96);
  animation: hero-ambient-glow 7s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-mark-wrap {
  position: relative;
  isolation: isolate;
  width: 460px;
  height: 460px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.orbit i {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
}

.orbit-one {
  width: 440px;
  height: 440px;
  box-shadow: 0 0 42px rgba(255, 255, 255, 0.055), inset 0 0 34px rgba(255, 255, 255, 0.025);
  animation: orbit-clockwise 28s linear infinite;
}

.orbit-two {
  width: 322px;
  height: 322px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
  animation: orbit-counterclockwise 21s linear infinite;
}

.orbit-two i {
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: 0 0 0 -3px;
}

.orbit-three {
  width: 214px;
  height: 214px;
  border-color: rgba(255, 255, 255, 0.36);
  animation: orbit-clockwise 14s linear infinite;
}

.orbit-three i {
  top: auto;
  right: 14%;
  bottom: 9%;
  left: auto;
  width: 7px;
  height: 7px;
  margin: 0;
}

.hero-mark {
  position: relative;
  left: 0;
  z-index: 1;
  width: 150px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.16));
  animation: mark-float 5s ease-in-out infinite;
}

.hero-mark-wrap:hover .orbit-one {
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.09);
  animation-duration: 5s;
}

.hero-mark-wrap:hover .orbit-two {
  border-color: rgba(255, 255, 255, 0.48);
  animation-duration: 3.8s;
}

.hero-mark-wrap:hover .orbit-three {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.06);
  animation-duration: 2.8s;
}

@keyframes mark-float {
  50% {
    transform: translateY(-11px) rotate(1.2deg);
  }
}

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

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

@keyframes hero-ambient-glow {
  50% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(1.035);
  }
}

.hero-wordmark {
  width: min(620px, 82%);
  height: auto;
  margin: 0 auto 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.2)) drop-shadow(0 12px 28px rgba(0, 0, 0, 0.32));
}

.hero-manifesto {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
  color: #d7d7d2;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-manifesto span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--silver);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.72);
}

.hero-actions {
  display: flex;
  gap: 10px;
}

.hero-actions > * {
  min-width: 0;
  flex: 1 1 0;
  white-space: nowrap;
}

.hero-actions .button-dark {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hero-scroll {
  position: absolute;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--silver);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-scroll span {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
}

.section {
  padding-block: 94px;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

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

.section-heading-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 50px;
}

.section-heading-split > p {
  margin-bottom: 3px;
  color: var(--silver);
}

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

.feature-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(112%);
  -webkit-backdrop-filter: blur(22px) saturate(112%);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(5, 5, 5, 0.88);
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.12), 0 28px 70px rgba(0, 0, 0, 0.7);
}

.feature-card img {
  width: 190px;
  height: 190px;
  align-self: center;
  object-fit: contain;
  mix-blend-mode: screen;
}

#view-home .button {
  border-radius: var(--radius);
}

.feature-card span,
.tariff-index {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.feature-card h3 {
  margin: 8px 0;
  font-weight: 650;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--silver);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

.support-band {
  padding-block: 74px;
  border-block: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.58);
}

.support-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.support-band h2 {
  max-width: 670px;
  margin-bottom: 0;
}

.support-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.support-band-compact {
  justify-content: center;
}

.support-band-compact .support-actions {
  width: min(100%, 760px);
}

.support-band-compact .button {
  flex: 1;
}

.view-page {
  padding-block: calc(var(--header-height) + 72px) 110px;
}

.page-intro {
  max-width: 760px;
  margin-bottom: 16px;
}

.page-intro h1 {
  margin-bottom: 4px;
  font-size: clamp(34px, 4.2vw, 52px);
}

.page-intro > p:last-child,
.page-intro-with-icon > div > p:last-child {
  color: var(--silver);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.page-intro-with-icon {
  max-width: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-surface);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(128%);
  -webkit-backdrop-filter: blur(24px) saturate(128%);
}

.page-intro-with-icon > img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: contain;
}

.tariff-page-intro {
  margin-top: 0;
}

.tariff-page-intro h1 {
  white-space: nowrap;
}

.tariff-page-intro > img {
  object-fit: contain;
}

.segmented-control {
  width: fit-content;
  display: flex;
  gap: 4px;
  margin-bottom: 30px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.36);
}

.segmented-control button {
  min-width: 132px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  color: var(--silver);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.segmented-control button.is-active {
  color: var(--black);
  background: var(--white);
}

.segmented-control span {
  color: inherit;
  opacity: 0.65;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.tariff-grid-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
}

.tariff-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 8, 8, 0.88);
  box-shadow: var(--shadow);
}

.tariff-card-featured {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(18, 18, 18, 0.92);
}

.tariff-label {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: var(--radius);
  color: var(--black);
  background: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tariff-card > img {
  width: 100%;
  height: 158px;
  margin-bottom: 18px;
  object-fit: contain;
}

.tariff-card h2 {
  margin: 5px 0 8px;
  font-size: 30px;
  font-weight: 700;
}

.tariff-subtitle {
  min-height: 48px;
  color: var(--silver);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.tariff-price {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  margin: 16px 0;
}

.tariff-price small {
  padding-top: 13px;
  color: var(--silver);
  font-size: 13px;
  font-weight: 500;
}

.tariff-price strong {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.tariff-price span {
  padding-top: 4px;
  color: var(--silver);
  font-size: 14px;
  font-weight: 500;
}

.tariff-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.tariff-card li {
  position: relative;
  padding-left: 17px;
  color: #d2d2cd;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.45;
}

.tariff-card li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white);
}

.tariff-card .button {
  width: 100%;
  margin-top: auto;
}

.tariff-card-quasar {
  min-height: 600px;
  padding: 30px;
}

.tariff-card-quasar > img {
  height: 210px;
}

.device-console,
.referral-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.device-counter {
  min-height: 190px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
}

.device-counter div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.device-counter span,
.device-counter small {
  color: var(--silver);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.4;
}

.device-counter strong {
  margin-block: 3px;
  font-size: 60px;
  font-weight: 650;
  line-height: 1;
}

.stepper-button {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}

.stepper-button:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.device-list-heading {
  display: flex;
  justify-content: space-between;
  margin: 28px 0 12px;
}

.device-list-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
}

.device-list-heading span {
  color: var(--silver);
  font-size: 12px;
  font-weight: 500;
}

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

.device-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.device-row-info {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.device-row-copy {
  min-width: 0;
}

.device-row-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 900;
}

.device-row strong,
.device-row small,
.device-row em {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.device-row small {
  color: var(--silver);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.device-row strong {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
}

.device-row em {
  margin-top: 4px;
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.35;
}

.device-remove {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 19px;
  cursor: pointer;
}

.device-remove:hover {
  color: var(--danger);
  background: rgba(255, 116, 116, 0.08);
}

.partner-stats,
.account-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 26px;
}

.partner-stats > div,
.account-metrics > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 8, 8, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}

.partner-stats > div > span,
.account-metrics > div > span {
  display: block;
  margin-bottom: 6px;
  color: var(--silver);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.partner-stats strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.partner-stats small {
  color: var(--silver);
  font-size: 12px;
}

.partner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 14px;
}

.partner-terms,
.referral-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}

.numbered-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.numbered-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.numbered-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.numbered-list p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.referral-panel code {
  display: block;
  min-height: 96px;
  margin: 20px 0;
  padding: 14px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--silver);
  background: rgba(0, 0, 0, 0.42);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.5;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.profile-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-avatar {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.profile-avatar img {
  width: 27px;
  height: 44px;
  object-fit: contain;
}

.profile-header h1 {
  margin-bottom: 3px;
  font-size: 28px;
  font-weight: 650;
}

.profile-header p {
  margin-bottom: 0;
  color: var(--silver);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 11px;
  font-weight: 650;
}

.status-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.94);
}

.account-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-metrics strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.25;
}

.subscription-overview {
  position: relative;
  min-height: 286px;
  margin-bottom: 28px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--shadow);
  backdrop-filter: blur(20px) saturate(112%);
  -webkit-backdrop-filter: blur(20px) saturate(112%);
}

.subscription-overview-heading {
  position: relative;
  z-index: 1;
  min-height: 112px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.subscription-overview-heading > div > span:first-child {
  color: var(--silver);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.subscription-overview-heading h2 {
  display: flex;
  align-items: baseline;
  gap: 0.22em;
  margin-top: 8px;
  font-size: 54px;
  font-weight: 700;
}

.subscription-overview-heading h2 span {
  color: inherit;
  font: inherit;
  text-transform: none;
}

.subscription-overview-heading > img {
  position: absolute;
  top: -70px;
  right: -28px;
  width: 250px;
  height: 250px;
  object-fit: contain;
  opacity: 0.88;
  pointer-events: none;
}

.subscription-overview .account-metrics {
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0 0;
}

.subscription-overview .account-metrics > div {
  min-height: 82px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.72);
}

.connection-section {
  margin-top: 52px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.dashboard-heading {
  margin-bottom: 26px;
}

.dashboard-heading h2 {
  margin-bottom: 0;
  font-weight: 650;
  white-space: nowrap;
}

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

.app-button {
  min-height: 152px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(0, 0, 0, 0.82);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(112%);
  -webkit-backdrop-filter: blur(22px) saturate(112%);
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--ease),
    border-color var(--ease),
    background var(--ease),
    box-shadow var(--ease);
}

.app-button:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(5, 5, 5, 0.92);
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.12), 0 28px 70px rgba(0, 0, 0, 0.7);
}

.app-button img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  transform: none;
  filter: none;
}

.app-button strong,
.app-button small {
  display: block;
}

.app-button strong {
  font-size: 16px;
  font-weight: 650;
}

.app-button small {
  color: var(--silver);
}

.app-button b {
  font-size: 20px;
  font-weight: 500;
}

.account-actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.account-share-button {
  min-height: 54px;
}

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

.account-links button,
.account-logout-button {
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--white);
  border-radius: var(--radius);
  color: var(--black);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease);
}

.account-links button:hover,
.account-logout-button:hover {
  color: var(--black);
  background: #e9e9e5;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.account-logout-button {
  color: var(--silver);
  border-color: var(--line-strong);
  background: rgba(4, 4, 4, 0.72);
}

.mobile-nav {
  display: none;
}

.telegram-mini-app [data-external="telegramBot"] {
  display: none !important;
}

.telegram-mini-app .view-page {
  padding-top: max(24px, env(safe-area-inset-top));
}

.modal {
  width: min(calc(100% - 30px), 440px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(8, 8, 8, 0.94);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.86),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(30px) saturate(115%);
  -webkit-backdrop-filter: blur(30px) saturate(115%);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.modal form {
  position: relative;
  padding: 32px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.modal-close:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.modal h2 {
  margin-bottom: 10px;
  padding-right: 42px;
  font-size: clamp(30px, 5vw, 38px);
  font-weight: 700;
  letter-spacing: 0;
}

.modal #modal-copy {
  max-width: 340px;
  margin-bottom: 26px;
  color: var(--silver);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  white-space: pre-line;
}

.modal #modal-copy.payment-copy {
  display: grid;
  max-width: none;
  gap: 9px;
  margin-bottom: 24px;
  white-space: normal;
}

.payment-copy p,
.payment-copy__schedule {
  margin: 0;
}

.payment-copy__summary {
  color: var(--white);
  font-weight: 650;
}

.payment-copy__code {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.payment-copy__points,
.payment-copy__instruction {
  color: var(--silver);
}

.payment-copy .payment-copy__notice {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.035);
  line-height: 1.5;
}

.modal-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.modal-actions .button {
  width: 100%;
  min-width: 0;
}

.modal-share .modal-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-share .modal-actions .button:last-child {
  grid-column: 1 / -1;
}

.modal-share .button-muted {
  color: var(--white);
  border-color: #969696;
  background: #858585;
}

.modal-payment {
  width: min(560px, calc(100vw - 32px));
  border-color: rgba(255, 255, 255, 0.42);
}

.modal-payment .eyebrow {
  margin-bottom: 10px;
}

.modal-payment .modal-actions {
  grid-template-columns: minmax(0, 1fr);
}

.modal-payment .button {
  min-height: 52px;
  padding-inline: 14px;
  white-space: nowrap;
}

.modal-payment .payment-points {
  font-size: 14px;
  font-weight: 750;
}

.modal-payment .payment-submit {
  white-space: normal;
}

.modal-payment .payment-method-action {
  display: grid;
  min-height: 66px;
  align-content: center;
  gap: 3px;
  justify-content: stretch;
  justify-items: start;
  border-color: var(--white);
  border-radius: 18px;
  color: var(--black);
  background: linear-gradient(180deg, #ffffff 0%, #eeeeea 100%);
  text-align: left;
  white-space: normal;
}

.modal-payment .payment-method-action small {
  display: block;
  color: #5c5c5c;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.3;
}

.modal-payment-status {
  width: min(480px, calc(100vw - 32px));
}

.modal-payment-status form {
  padding: 38px 30px 30px;
  text-align: center;
}

.modal-payment-status .eyebrow {
  margin: 0 36px 12px;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.modal-payment-status h2 {
  padding: 0;
  margin: 0 20px 22px;
  font-size: clamp(26px, 5vw, 32px);
  line-height: 1.15;
}

.modal-payment-status #modal-copy.payment-copy {
  gap: 22px;
  margin-bottom: 26px;
  font-size: 15px;
  line-height: 1.6;
}

.payment-status-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 4px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #3b3b3b, #141414 75%);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.025), 0 0 44px rgba(255, 255, 255, 0.07);
}

.payment-status-icon.is-complete span {
  width: 27px;
  height: 16px;
  margin-top: -6px;
  border-left: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
  transform: rotate(-45deg);
}

.payment-status-icon.is-waiting span {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: payment-wait 1.4s linear infinite;
}

.payment-status-summary {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
  font-weight: 550;
}

@keyframes payment-wait {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .payment-status-icon.is-waiting span { animation: none; }
}

@media (max-width: 520px) {
  .modal-payment-status {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 24px);
    margin: auto auto 8px;
    border-radius: 28px;
  }

  .modal-payment-status form {
    padding: 32px 22px max(24px, env(safe-area-inset-bottom));
  }
}

.modal-device-reduction {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 20px);
  overflow: hidden;
}

.modal-device-reduction form {
  max-height: calc(100dvh - 22px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal #modal-copy.device-reduction-copy {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-width: none;
  gap: 14px;
  margin-bottom: 22px;
  overflow: hidden;
  white-space: normal;
}

.device-reduction-summary {
  margin: 0;
  color: var(--silver);
}

.device-reduction-list {
  min-height: 0;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.device-reduction-list .device-row {
  min-height: 72px;
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.device-reduction-list .device-row-info {
  width: 100%;
}

.device-remove-label {
  flex: 0 0 44px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 650;
}

.modal-device-reduction .modal-actions {
  flex: 0 0 auto;
  grid-template-columns: 1fr;
}

.modal-device-reduction .modal-actions .button:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.modal-device-reduction .modal-actions .button-light:disabled {
  border-color: var(--white);
  color: var(--black);
  background: linear-gradient(180deg, #ffffff 0%, #eeeeea 100%);
}

.modal-device-reduction .modal-actions .button:disabled:hover {
  transform: none;
}

.plan-modal {
  width: min(560px, calc(100vw - 32px));
  border-color: rgba(255, 255, 255, 0.42);
}

.plan-modal .eyebrow {
  margin-bottom: 10px;
}

.plan-modal-copy {
  margin: 0 0 20px;
  color: var(--silver);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.plan-device-picker {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.025);
}

.plan-device-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.plan-device-heading > div:first-child strong,
.plan-device-heading > div:first-child span {
  display: block;
}

.plan-device-heading > div:first-child strong {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 650;
}

.plan-device-heading > div:first-child span {
  color: var(--silver);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.plan-device-stepper {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 52px minmax(48px, 1fr) 52px;
  align-items: center;
  gap: 12px;
  width: 220px;
}

.plan-device-stepper button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
  font-size: 25px;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.plan-device-stepper button:not(:disabled):hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.04);
}

.plan-device-stepper button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.plan-device-stepper > strong {
  text-align: center;
  font-size: 26px;
  font-weight: 650;
}

[data-view-target="devices"][aria-disabled="true"] {
  opacity: 0.38;
  cursor: not-allowed;
}

.plan-current-note {
  min-height: 19px;
  margin: 12px 0 0;
  color: #d6d6d1;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.plan-summary {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.plan-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--silver);
  font-size: 12px;
  font-weight: 450;
}

.plan-summary > div[hidden] {
  display: none;
}

.plan-summary .plan-total {
  margin-top: 5px;
  color: var(--white);
  font-size: 15px;
  font-weight: 650;
}

.plan-total strong {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.plan-later-note {
  margin: 14px 2px 18px;
  color: var(--silver);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.plan-continue {
  min-height: 52px;
}

@media (max-width: 520px) {
  .modal form {
    padding: 28px 22px 22px;
  }

  .plan-modal form {
    padding: 28px 16px 18px;
  }

  .plan-modal h2 {
    font-size: 30px;
  }

  .plan-device-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .plan-device-stepper {
    width: 100%;
    grid-template-columns: 52px minmax(48px, 1fr) 52px;
  }
}

@media (max-height: 700px) {
  .modal-device-reduction form {
    padding: 20px;
  }

  .modal-device-reduction h2 {
    margin-bottom: 7px;
    font-size: clamp(27px, 8vw, 32px);
  }

  .modal #modal-copy.device-reduction-copy {
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
  }

  .modal-device-reduction .modal-actions {
    gap: 8px;
  }

  .modal-device-reduction .modal-actions .button {
    min-height: 44px;
  }
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2100;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  background: #111;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
}

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

.feature-card,
.tariff-card,
.device-console,
.page-intro-with-icon,
.partner-stats > div,
.partner-terms,
.referral-panel,
.subscription-overview,
.app-button {
  position: relative;
  border-color: var(--glass-border);
  background-color: var(--glass-surface);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(128%) contrast(104%);
  -webkit-backdrop-filter: blur(24px) saturate(128%) contrast(104%);
}

.feature-card::before,
.device-console::before,
.page-intro-with-icon::before,
.partner-stats > div::before,
.partner-terms::before,
.referral-panel::before,
.subscription-overview::before,
.app-button::before,
.ai-console::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  z-index: 2;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  opacity: 0.46;
  transform: scaleX(0.76);
  transition: opacity 280ms ease, transform 280ms ease;
  pointer-events: none;
}

.ai-console {
  position: relative;
}

.feature-card,
.tariff-card,
.partner-stats > div,
.partner-terms,
.referral-panel,
.app-button,
.device-item,
.button,
.segmented-control button,
.stepper-button {
  transform: translateZ(0);
  transition:
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 280ms ease,
    background-color 280ms ease,
    box-shadow 280ms ease,
    color 280ms ease;
}

.device-item,
.subscription-overview .account-metrics > div {
  border-color: var(--glass-border);
  background-color: rgba(6, 6, 6, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 260ms ease,
    background-color 260ms ease,
    box-shadow 260ms ease;
}

.device-console,
.subscription-overview {
  transition:
    border-color 300ms ease,
    background-color 300ms ease,
    box-shadow 300ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover,
  .tariff-card:hover,
  .page-intro-with-icon:hover,
  .partner-stats > div:hover,
  .partner-terms:hover,
  .referral-panel:hover,
  .app-button:hover {
    z-index: 3;
    border-color: var(--glass-border-hover);
    background-color: var(--glass-surface-hover);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-5px) scale(1.014);
  }

  .feature-card:hover::before,
  .page-intro-with-icon:hover::before,
  .partner-stats > div:hover::before,
  .partner-terms:hover::before,
  .referral-panel:hover::before,
  .app-button:hover::before {
    opacity: 0.95;
    transform: scaleX(1.08);
  }

  .hero-actions .button-dark:hover {
    border-color: rgba(255, 255, 255, 0.58);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(8, 8, 8, 0.55));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 36px rgba(0, 0, 0, 0.34), 0 0 20px rgba(255, 255, 255, 0.07);
  }

  .device-item:hover,
  .subscription-overview .account-metrics > div:hover {
    z-index: 3;
    border-color: var(--glass-border-hover);
    background-color: rgba(20, 20, 20, 0.88);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.52), 0 0 22px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.018);
  }

  .device-console:hover,
  .subscription-overview:hover {
    border-color: rgba(255, 255, 255, 0.36);
    background-color: rgba(13, 13, 13, 0.76);
    box-shadow: 0 28px 84px rgba(0, 0, 0, 0.58), 0 0 30px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .button:hover,
  .segmented-control button:hover,
  .stepper-button:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.46), 0 0 20px rgba(255, 255, 255, 0.12);
    transform: translateY(-2px) scale(1.025);
  }
}

@media screen {
  h1 {
    font-size: 46px;
  }

  .hero h1 {
    font-size: 62px;
  }

  .feature-grid,
  .tariff-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 300px;
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    gap: 26px;
  }

  .feature-card img {
    width: 150px;
    height: 150px;
  }

  .tariff-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    column-gap: 22px;
  }

  .tariff-card > img {
    grid-row: 1 / span 6;
    height: 180px;
  }

  .tariff-card .button {
    grid-column: 2;
  }

  .partner-layout {
    grid-template-columns: 1fr;
  }

  .account-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen {
  .auth-panel {
    padding: 32px 24px;
    border-radius: 28px;
  }

  .auth-brand {
    margin-bottom: 28px;
  }

  .auth-panel h1 {
    font-size: 34px;
  }

  .auth-copy {
    font-size: 15px;
  }

  :root {
    --header-height: 58px;
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .space-scene {
    background-image: url("../images/space-mobile.webp");
  }

  .shell,
  .shell-narrow {
    width: min(calc(100% - 28px), var(--content-width));
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .hero {
    min-height: 100svh;
    padding-top: 28px;
  }

  .hero-mark-wrap {
    width: 290px;
    height: 290px;
  }

  .hero-mark {
    left: 0;
    width: 94px;
    height: auto;
  }

  .orbit-one {
    width: 280px;
    height: 280px;
  }

  .orbit-two {
    width: 210px;
    height: 210px;
  }

  .orbit-three {
    width: 142px;
    height: 142px;
  }

  .hero-wordmark {
    width: min(330px, 88%);
  }

  .hero-manifesto {
    gap: 7px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions > [data-view-target="tariffs"] {
    grid-column: 1 / -1;
  }

  .section {
    padding-block: 68px;
  }

  .section-heading-split {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
    grid-template-columns: 112px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .feature-card img {
    width: 104px;
    height: 104px;
  }

  .feature-card h3 {
    font-size: 18px;
  }

  .feature-card p {
    font-size: 14px;
  }

  .support-band-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-actions {
    width: 100%;
  }

  .support-actions .button {
    flex: 1;
  }

  .view-page {
    padding-block: 34px 80px;
  }

  .page-intro-with-icon {
    align-items: flex-start;
  }

  .page-intro-with-icon > img {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control button {
    min-width: 0;
    flex: 1;
  }

  .tariff-card {
    display: flex;
  }

  .tariff-card-quasar {
    min-height: 0;
    padding: 22px;
  }

  .tariff-card-featured {
    order: -1;
  }

  .tariff-card > img {
    width: 100%;
    height: 150px;
  }

  .tariff-card .button {
    width: 100%;
  }

  .device-console {
    padding: 16px;
  }

  .device-list {
    grid-template-columns: 1fr;
  }

  .device-counter {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 10px;
    padding: 16px 10px;
  }

  .stepper-button {
    width: 46px;
    height: 46px;
  }

  .partner-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-stats > div:last-child {
    grid-column: 1 / -1;
  }

  .partner-terms h2,
  .referral-panel h2 {
    font-size: 27px;
    line-height: 1.1;
  }

  .profile-header {
    position: relative;
    align-items: center;
  }

  #view-dashboard .shell-narrow {
    padding-top: 30px;
  }

  .profile-header h1 {
    font-size: 22px;
  }

  .subscription-overview {
    min-height: 350px;
    padding: 22px;
  }

  .subscription-overview-heading {
    min-height: 128px;
  }

  .subscription-overview-heading h2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: 46px;
    line-height: 0.86;
  }

  .subscription-overview-heading > img {
    top: -42px;
    right: -40px;
    width: 190px;
    height: 190px;
  }

  .subscription-overview .account-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .subscription-overview .account-metrics > div {
    min-height: 76px;
    padding: 14px;
  }

  .subscription-overview .account-metrics strong {
    overflow: visible;
    white-space: normal;
    font-size: 15px;
    line-height: 1.15;
  }

  .dashboard-heading h2 {
    max-width: 100%;
    font-size: 24px;
    line-height: 1.1;
  }

  .account-metrics {
    grid-template-columns: 1fr 1fr;
  }

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

  .app-button {
    min-height: 118px;
  }

  .account-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 1500;
    height: calc(66px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(3, 3, 3, 0.93);
    backdrop-filter: blur(22px);
  }

  .mobile-nav button {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    cursor: pointer;
  }

  .mobile-nav img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.44;
    filter: grayscale(1);
  }

  .mobile-nav button.is-active {
    color: var(--white);
  }

  .mobile-nav button.is-active img {
    opacity: 1;
    filter: grayscale(0);
  }

  .toast {
    right: 14px;
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

@media screen {
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .support-actions {
    display: grid;
  }

  .page-intro-with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
  }

  .page-intro-with-icon > img {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    margin-bottom: 0;
  }

  .page-intro-with-icon h1,
  .tariff-page-intro h1 {
    margin: 0 0 4px;
    white-space: nowrap;
    font-size: clamp(27px, 8vw, 34px);
  }

  .page-intro-with-icon > div > p:last-child {
    font-size: 10px;
    line-height: 1.35;
  }

  .tariff-page-intro h1 {
    font-size: 30px;
  }

  .partner-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-stats > div:last-child {
    grid-column: 1 / -1;
  }

  .account-metrics,
  .subscription-overview .account-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .status-badge {
    width: fit-content;
    margin-left: auto;
  }

  .app-button {
    grid-template-columns: 70px minmax(0, 1fr) 20px;
    padding: 14px;
  }

  .app-button img {
    width: 70px;
    height: 70px;
  }

  .mobile-nav span {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

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

.ai-section {
  padding-top: 42px;
}

.ai-heading {
  align-items: end;
}

.ai-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--silver);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.ai-console {
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.84);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(125%);
}

.ai-messages {
  min-height: 210px;
  max-height: 390px;
  overflow-y: auto;
  padding: 26px;
}

.ai-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  max-width: 780px;
  margin-bottom: 16px;
}

.ai-message-user {
  width: fit-content;
  min-width: 120px;
  max-width: 85%;
  grid-template-columns: minmax(0, 1fr) 34px;
  margin-left: auto;
}

.ai-message > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: #fff;
  color: #050505;
  font-size: 12px;
  font-weight: 700;
}

.ai-message-user > span {
  order: 2;
  background: transparent;
  color: #fff;
}

.ai-message p {
  min-width: 0;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: #f5f5f5;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ai-message.is-loading p {
  color: var(--silver);
  animation: ai-pulse 1.15s ease-in-out infinite;
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.ai-suggestions button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--silver);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  font-weight: 600;
}

.ai-suggestions button:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  padding: 12px 20px 20px;
}

.ai-form textarea {
  width: 100%;
  min-height: 52px;
  max-height: 140px;
  resize: none;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.ai-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.82);
}

.ai-send {
  width: 48px;
  height: 48px;
  align-self: end;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #050505;
  font-size: 24px;
  font-weight: 700;
}

.ai-send:disabled {
  cursor: wait;
  opacity: 0.5;
}

.support-page {
  min-height: 68vh;
  display: grid;
  align-content: center;
  gap: 20px;
}

.support-page .page-intro {
  display: grid;
  gap: 8px;
  margin: 0;
}

.support-page .page-intro h1 {
  margin: 0;
  font-size: clamp(27px, 2.6vw, 34px);
  line-height: 1.08;
}

.support-page .page-intro > p:last-child {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}

.info-page-intro h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
}

.support-page-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-page,
.document-page {
  display: grid;
  gap: 18px;
}

.info-page-intro {
  margin-bottom: 0;
}

.info-card,
.info-link-list,
.document-header,
.legal-document,
.support-details {
  min-width: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass-surface);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(128%);
  -webkit-backdrop-filter: blur(24px) saturate(128%);
}

.info-card {
  padding: clamp(24px, 4vw, 42px);
}

.info-card h2 {
  max-width: 720px;
  margin: 8px 0 18px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.05;
}

.info-card > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--silver);
  font-size: 15px;
  line-height: 1.7;
}

.info-card > p + p {
  margin-top: 12px;
}

.info-link-list {
  overflow: hidden;
}

.info-link {
  width: 100%;
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  border: 0;
  color: var(--white);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.info-link + .info-link {
  border-top: 1px solid var(--line);
}

.info-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.info-link span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.info-link strong {
  font-size: 17px;
  line-height: 1.25;
}

.info-link small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.info-link b {
  color: var(--silver);
  font-size: 30px;
  font-weight: 300;
}

.page-back {
  width: max-content;
  min-height: 42px;
  padding-inline: 18px;
  font-size: 13px;
}

.page-back:hover {
  color: var(--black);
}

.inline-link:hover {
  color: var(--white);
}

.document-header {
  padding: clamp(24px, 4vw, 42px);
}

.document-header h1 {
  max-width: 720px;
  margin: 8px 0 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.04;
  overflow-wrap: break-word;
  hyphens: auto;
}

.document-header time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.legal-document {
  padding: clamp(24px, 4vw, 42px);
}

.document-lead {
  max-width: 760px;
  color: var(--silver);
  font-size: 16px;
  line-height: 1.7;
}

.legal-document section {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.legal-document section:first-of-type {
  margin-top: 28px;
}

.legal-document section:last-child {
  padding-bottom: 0;
}

.legal-document h2 {
  margin-bottom: 12px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
}

.document-footer-actions {
  display: flex;
  justify-content: flex-end;
}

.document-return {
  min-width: 190px;
}

.legal-document p,
.legal-document li {
  color: var(--silver);
  font-size: 14px;
  line-height: 1.7;
}

.legal-document p + p {
  margin-top: 10px;
}

.legal-document ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.inline-link {
  padding: 0;
  border: 0;
  color: var(--white);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.support-details {
  display: grid;
  gap: 12px;
  padding: 24px;
  color: var(--silver);
  font-size: 14px;
  line-height: 1.6;
}

.support-details strong {
  color: var(--white);
  font-size: 13px;
}

.button.is-unavailable,
button.is-unavailable {
  cursor: not-allowed;
  opacity: 0.45;
}

.footer-support {
  border: 0;
  color: var(--silver);
  background: transparent;
}

.footer-support:hover {
  color: #fff;
}

@keyframes ai-pulse {
  50% {
    opacity: 0.45;
  }
}

@media screen {
  .ai-heading {
    align-items: start;
  }

  .ai-heading > p {
    margin-top: 10px;
  }

  .ai-messages {
    min-height: 250px;
    padding: 18px;
  }

  .ai-suggestions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-inline: 16px;
  }

  .ai-suggestions button {
    flex: 0 0 auto;
  }

  .ai-form {
    padding: 10px 16px 16px;
  }

  .support-page-actions {
    grid-template-columns: 1fr;
  }

  .support-page {
    gap: 16px;
  }

  .info-card,
  .document-header,
  .legal-document,
  .support-details {
    padding: 20px;
  }

  .info-link {
    min-height: 88px;
    gap: 16px;
    padding: 18px 20px;
  }

  .document-header h1 {
    font-size: clamp(21px, 5.4vw, 25px);
  }

  .support-page .page-intro h1 {
    font-size: clamp(26px, 7vw, 29px);
  }

  .info-page-intro h1 {
    font-size: clamp(27px, 8vw, 34px);
  }

  .legal-document h2 {
    font-size: clamp(17px, 4.9vw, 20px);
  }

  .legal-document section {
    padding-block: 22px;
  }

  .mobile-nav button {
    min-width: 0;
  }

  .mobile-nav button span {
    font-size: 10px;
  }
}
.auth-support-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.auth-support-actions .button {
  min-width: 0;
}

@media (max-width: 520px) {
  .auth-support-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .modal-referral .modal-actions {
    grid-template-columns: 1fr;
  }

  .modal-referral .modal-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding-inline: 12px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
  }

}

.auth-gate[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: grid;
  place-items: center;
  background: transparent;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.boot-splash-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.boot-splash-brand img:first-child {
  width: 48px;
  height: auto;
}

.boot-splash-brand img:nth-child(2) {
  width: min(180px, 52vw);
  height: auto;
}

.boot-splash-loader {
  width: 34px;
  height: 34px;
  margin-top: 8px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: quasar-boot-spin 700ms linear infinite;
}

body:not(.app-booting) .boot-splash {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

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

/* QUASAR orbital boot loader */
.boot-splash-brand {
  gap: 12px;
}

.boot-splash-loader.boot-orbital-loader {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin-top: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  animation: none;
  isolation: isolate;
}

.boot-orbital-loader::before {
  content: "";
  position: absolute;
  inset: 38px;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(220, 242, 255, 0.26) 0%,
    rgba(180, 220, 255, 0.10) 42%,
    rgba(180, 220, 255, 0) 74%
  );
  filter: blur(8px);
  animation: quasar-core-breathe 1.8s ease-in-out infinite;
}

.boot-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.boot-orbit-outer {
  inset: 4px;
  z-index: 1;
  background: conic-gradient(
    from 25deg,
    rgba(210, 238, 255, 0.02) 0deg,
    rgba(210, 238, 255, 0.10) 70deg,
    rgba(235, 248, 255, 0.82) 145deg,
    rgba(175, 220, 255, 0.20) 215deg,
    rgba(210, 238, 255, 0.03) 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2px),
    #000 0
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2px),
    #000 0
  );
  filter: drop-shadow(0 0 8px rgba(190, 228, 255, 0.36));
  animation: quasar-orbit-outer 3.2s linear infinite;
}

.boot-orbit-inner {
  inset: 22px;
  z-index: 1;
  background: conic-gradient(
    from 210deg,
    rgba(255, 255, 255, 0.02) 0deg,
    rgba(205, 235, 255, 0.34) 100deg,
    rgba(255, 255, 255, 0.74) 155deg,
    rgba(190, 225, 255, 0.08) 250deg,
    rgba(255, 255, 255, 0.02) 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1px),
    #000 0
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 1px),
    #000 0
  );
  opacity: 0.84;
  filter: drop-shadow(0 0 6px rgba(210, 238, 255, 0.28));
  animation: quasar-orbit-inner 2.25s linear infinite;
}

.boot-comet {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 50%;
  animation: quasar-comet-spin 1.35s linear infinite;
}

.boot-comet::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #f8fdff;
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.95),
    0 0 14px rgba(205, 238, 255, 0.90),
    0 0 28px rgba(155, 210, 255, 0.55);
}

.boot-comet::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 28px;
  height: 4px;
  transform: translateX(-100%) rotate(-12deg);
  transform-origin: right center;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(160, 215, 255, 0),
    rgba(195, 232, 255, 0.22),
    rgba(245, 252, 255, 0.76)
  );
  filter: blur(1px);
}

.boot-ghost {
  position: relative;
  z-index: 2;
  width: 52px;
  height: auto;
  animation: quasar-logo-pulse 1.8s ease-in-out infinite;
}

.boot-wordmark {
  width: min(188px, 54vw);
  height: auto;
  filter: drop-shadow(0 0 10px rgba(205, 235, 255, 0.10));
}

.boot-splash-copy {
  margin: 2px 0 0;
  max-width: 280px;
  color: rgba(236, 246, 255, 0.68);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.035em;
  text-align: center;
}

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

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

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

@keyframes quasar-logo-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 5px rgba(215, 240, 255, 0.12));
  }

  50% {
    transform: translateY(-2px) scale(1.035);
    filter:
      drop-shadow(0 0 10px rgba(225, 245, 255, 0.32))
      drop-shadow(0 0 22px rgba(170, 220, 255, 0.20));
  }
}

@keyframes quasar-core-breathe {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.48;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-orbit,
  .boot-comet,
  .boot-ghost,
  .boot-orbital-loader::before {
    animation-duration: 8s;
  }
}

/* QUASAR auth visual alignment */
.auth-panel {
  border: 1px solid var(--glass-border);
  background: var(--glass-surface);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(128%) contrast(104%);
  -webkit-backdrop-filter: blur(24px) saturate(128%) contrast(104%);
}

.auth-panel .eyebrow {
  color: var(--silver);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-panel h1 {
  margin-bottom: 16px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}

.auth-panel .auth-copy {
  max-width: 400px;
  margin: 0 auto 28px;
  color: var(--silver);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

.auth-panel .button {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.auth-panel .auth-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}


.auth-fallback-button {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  color: rgba(247, 247, 244, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 28px rgba(0, 0, 0, 0.14);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.auth-fallback-button:hover,
.auth-fallback-button[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045));
  color: var(--white);
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(255, 255, 255, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.auth-fallback-button[aria-busy="true"] {
  cursor: progress;
  opacity: 0.86;
}

.auth-temp-panel {
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.075), transparent 58%),
    rgba(5, 5, 5, 0.76);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}

.auth-temp-panel[hidden],
.auth-temp-actions[hidden],
.auth-temp-create[hidden],
.auth-fallback-button[hidden] {
  display: none;
}

.auth-temp-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 15px;
  text-align: left;
}

.auth-temp-heading strong {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}

.auth-temp-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

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

.auth-temp-actions .button {
  min-width: 0;
  padding-inline: 10px;
}

.auth-temp-telegram {
  grid-column: 1 / -1;
}

.auth-temp-status {
  min-height: 18px;
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.auth-gate {
  overflow-y: auto;
}

body {
  min-height: 100dvh;
}

main {
  width: min(100%, 430px);
  min-height: 100dvh;
  margin-inline: auto;
}

.view {
  min-height: calc(100dvh - 66px - env(safe-area-inset-bottom));
}

.hero {
  min-height: calc(100dvh - 66px - env(safe-area-inset-bottom));
}

.mobile-nav {
  left: 50%;
  right: auto;
  width: min(100%, 430px);
  transform: translateX(-50%);
}

.modal,
.plan-modal {
  max-width: min(430px, calc(100vw - 20px));
  max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-payment .payment-method-action {
  min-height: 62px;
}

.modal-referral #modal-copy {
  max-width: none;
  margin-bottom: 0;
  white-space: normal;
}

.modal-referral .auth-temp-panel {
  margin-top: 16px;
}

.auth-panel {
  max-width: 430px;
}

.mobile-nav button {
  margin: 6px 4px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: rgba(247, 247, 244, 0.62);
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.mobile-nav img {
  opacity: 0.62;
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}

.mobile-nav button.is-active {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045));
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 255, 255, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.mobile-nav button.is-active img {
  opacity: 1;
  filter: grayscale(0) drop-shadow(0 0 7px rgba(255, 255, 255, 0.28));
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .auth-temp-panel {
    padding: 15px;
    border-radius: 22px;
  }

  .mobile-nav button {
    margin-inline: 3px;
    border-radius: 14px;
  }
}


/* QUASAR premium CTA sheen + active subscription pulse */
.button-light,
.account-links button,
.ai-send {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #eeeeea 100%);
}

.quasar-tariff-pulse {
  border-color: rgba(255, 255, 255, 0.94);
  animation: quasar-tariff-pulse 2.8s cubic-bezier(.4, 0, .2, 1) infinite;
  will-change: box-shadow;
}

.button-light::after,
.account-links button::after,
.ai-send::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 -48%;
  width: 42%;
  background: linear-gradient(110deg, transparent 12%, rgba(0, 0, 0, 0.055) 38%, rgba(255, 255, 255, 0.96) 50%, rgba(0, 0, 0, 0.045) 62%, transparent 88%);
  opacity: 0;
  transform: translateX(0) skewX(-18deg);
  animation: quasar-cta-sheen 4.8s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

@media (hover: hover) and (pointer: fine) {
  .button-light:hover,
  .account-links button:hover,
  .ai-send:hover {
    background: linear-gradient(180deg, #ffffff 0%, #e3e3df 100%);
  }
}

@keyframes quasar-tariff-pulse {
  0%, 100% {
    box-shadow:
      0 8px 26px rgba(0, 0, 0, 0.20),
      0 0 0 0 rgba(255, 255, 255, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  }

  50% {
    box-shadow:
      0 9px 28px rgba(0, 0, 0, 0.22),
      0 0 26px 3px rgba(255, 255, 255, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  }
}

@keyframes quasar-cta-sheen {
  0%, 52% {
    opacity: 0;
    transform: translateX(0) skewX(-18deg);
  }

  60% {
    opacity: 0.78;
  }

  82%, 100% {
    opacity: 0;
    transform: translateX(390%) skewX(-18deg);
  }
}

.status-badge:not(.is-inactive) {
  color: #000;
  border-color: #fff;
  background: #fff;
  box-shadow:
    0 5px 16px rgba(0, 0, 0, 0.22),
    0 0 0 0 rgba(255, 255, 255, 0);
  animation: quasar-status-pulse 2.2s cubic-bezier(.4, 0, .2, 1) infinite;
  will-change: box-shadow;
}

.status-badge:not(.is-inactive) i {
  background: #000;
  box-shadow: none;
}

@keyframes quasar-status-pulse {
  0%, 100% {
    box-shadow:
      0 5px 16px rgba(0, 0, 0, 0.22),
      0 0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    box-shadow:
      0 6px 18px rgba(0, 0, 0, 0.24),
      0 0 22px 4px rgba(255, 255, 255, 0.24);
  }
}
