:root {
  color-scheme: dark;
  --bg: #06061b;
  --bg-2: #120625;
  --panel: rgba(31, 13, 55, 0.72);
  --panel-solid: #160d2a;
  --ink: #ffffff;
  --muted: #c8b9d7;
  --pink: #ff35ad;
  --pink-dark: #f02a9a;
  --violet: #9c35ff;
  --violet-soft: rgba(156, 53, 255, 0.18);
  --aqua: #61f0ff;
  --aqua-soft: rgba(97, 240, 255, 0.12);
  --line: rgba(255, 92, 194, 0.2);
  --line-strong: rgba(255, 92, 194, 0.42);
  --shadow: 0 26px 80px rgba(255, 53, 173, 0.22);
  --radius: 999px;
}

/* Auth pages aligned with landing visual language */
body.auth-page {
  --lp-bg: #02010d;
  --lp-panel: rgba(9, 8, 25, 0.82);
  --lp-panel-2: rgba(14, 11, 31, 0.92);
  --lp-line: rgba(255, 80, 187, 0.16);
  --lp-line-strong: rgba(255, 80, 187, 0.42);
  --lp-text: #fbf8ff;
  --lp-muted: #b3abc2;
  --lp-pink: #ff2da8;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 44, 165, 0.16), transparent 24%),
    radial-gradient(circle at 78% 10%, rgba(124, 54, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #03020d 0%, #010108 100%);
}

body.auth-page::before {
  z-index: 0;
  background:
    radial-gradient(circle, rgba(255, 48, 175, 0.18) 1px, transparent 1.7px),
    radial-gradient(circle, rgba(132, 45, 255, 0.13) 1px, transparent 1.8px);
  background-position: 0 0, 8px 8px;
  background-size: 26px 26px, 34px 34px;
  opacity: 0.44;
}

body.auth-page > .topbar,
body.auth-page main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 136px));
  margin-inline: auto;
  padding-inline: 0;
}

body.auth-page > .topbar {
  position: relative;
  top: auto;
  align-items: center;
  max-width: none;
  padding: 20px 0 12px;
  gap: 26px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

body.auth-page .brand {
  flex: 0 0 auto;
  gap: 10px;
  color: #fff;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 21px;
  font-weight: 800;
}

body.auth-page .brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 8px rgba(255, 45, 168, 0.9))
    drop-shadow(0 0 18px rgba(139, 45, 255, 0.4));
}

body.auth-page .brand em {
  color: var(--lp-pink);
  font-style: normal;
  text-shadow: 0 0 18px rgba(255, 45, 168, 0.8);
}

body.auth-page .nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(12px, 2vw, 26px);
}

body.auth-page .nav-auth-link,
body.auth-page .nav .nav-auth-link,
body.auth-page .nav .link-button.nav-auth-link {
  min-height: 42px;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.025);
}

body.auth-page .nav-signup-link,
body.auth-page .button.small.nav-signup-link {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #ff2eaf 0%, #d71b86 100%);
  box-shadow: 0 16px 36px rgba(255, 45, 168, 0.22);
}

body.auth-page .theme-switch {
  min-height: 42px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

body.auth-page .theme-switch button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
}

body.auth-page main {
  min-height: calc(100vh - 98px);
  padding-bottom: 32px;
}

body.auth-page .auth-hero {
  display: grid;
  gap: 28px;
  padding: 16px 0 24px;
}

body.auth-page .auth-page-brand {
  display: inline-grid;
  justify-self: center;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 18px;
  color: #fff;
}

body.auth-page .auth-page-brand img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(255, 45, 168, 0.7))
    drop-shadow(0 0 34px rgba(139, 45, 255, 0.35));
}

body.auth-page .auth-page-brand strong {
  display: block;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

body.auth-page .auth-page-brand em {
  color: var(--lp-pink);
  font-style: normal;
}

body.auth-page .auth-page-brand span {
  display: block;
  margin-top: 8px;
  color: #d0cce0;
  font-size: 18px;
}

body.auth-page .auth-scene {
  display: grid;
  gap: 26px;
}

body.auth-page .auth-stage-grid {
  display: grid;
  align-items: start;
  gap: 18px;
}

body.auth-page .auth-stage-grid--login {
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
}

body.auth-page .auth-stage-grid--signup {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.auth-page .auth-stage-grid--telegram {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.auth-page .auth-stage-grid .auth-step {
  display: grid;
  gap: 16px;
  max-height: none;
  margin: 0;
  opacity: 0.36;
  overflow: visible;
  pointer-events: none;
  transform: translateY(20px) scale(0.985);
  visibility: visible;
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms ease,
    border-color 320ms ease;
}

body.auth-page .auth-stage-grid .auth-step.is-complete {
  opacity: 0.68;
  transform: translateY(8px) scale(0.992);
}

body.auth-page .auth-stage-grid .auth-step.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body.auth-page .auth-showcase-card--stage,
body.auth-page .auth-preview-card,
body.auth-page .auth-showcase-card--verify {
  min-height: 100%;
  padding: 24px 22px 20px;
  border: 1px solid rgba(255, 80, 187, 0.32);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(14, 10, 33, 0.96), rgba(10, 7, 27, 0.98)),
    rgba(9, 8, 25, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 44px rgba(0, 0, 0, 0.34);
}

body.auth-page .auth-stage-grid .auth-step.is-active,
body.auth-page .auth-showcase-card--verify {
  border-color: rgba(255, 80, 187, 0.56);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 54px rgba(255, 45, 168, 0.14);
}

body.auth-page .auth-showcase-card--stage h1,
body.auth-page .auth-showcase-card--stage h2,
body.auth-page .auth-showcase-card--verify h1 {
  margin: 6px 0 2px;
  color: #fff;
  font-size: clamp(24px, 2.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

body.auth-page .auth-showcase-card--stage > p,
body.auth-page .auth-showcase-card--verify > p {
  margin: 0;
  color: #bcb6cf;
  font-size: 16px;
  line-height: 1.55;
}

body.auth-page .auth-step-topline {
  min-height: 44px;
  justify-content: flex-start;
}

body.auth-page .auth-step-pill {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 64, 176, 0.25);
  background: rgba(93, 18, 74, 0.32);
  color: #ff57bb;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.auth-page .auth-back-button {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

body.auth-page .auth-figure {
  width: min(100%, 260px);
  margin: 6px auto 2px;
  border-radius: 20px;
  box-shadow: none;
  background: transparent;
}

body.auth-page .auth-figure--mascot,
body.auth-page .auth-figure--signup {
  width: min(100%, 248px);
}

body.auth-page .auth-figure--verify {
  width: min(100%, 280px);
}

body.auth-page .auth-field--plain {
  gap: 8px;
}

body.auth-page .auth-field--plain input {
  min-height: 54px;
  border-radius: 14px;
  border-color: rgba(255, 80, 187, 0.24);
  background: rgba(10, 8, 27, 0.8);
}

body.auth-page .auth-field--plain input::placeholder {
  color: #8b86a0;
}

body.auth-page .auth-helper-copy {
  color: #9f98b4;
  font-size: 13px;
  line-height: 1.45;
}

body.auth-page .auth-segmented {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

body.auth-page .auth-segmented--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.auth-page .auth-segmented button,
body.auth-page .auth-segmented a {
  min-height: 46px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

body.auth-page .auth-gradient-submit,
body.auth-page .auth-secondary-submit {
  min-height: 52px;
  border-radius: 12px;
  font-size: 14px;
}

body.auth-page .auth-secondary-submit {
  background: rgba(255, 255, 255, 0.03);
}

body.auth-page .auth-gradient-submit--muted {
  opacity: 0.68;
  pointer-events: none;
}

body.auth-page .auth-divider {
  margin: 0;
}

body.auth-page .auth-divider span {
  font-size: 13px;
  color: #8f89a6;
}

body.auth-page .auth-inline-text,
body.auth-page .auth-inline-row,
body.auth-page .auth-note-card,
body.auth-page .auth-requirements,
body.auth-page .auth-code-meta,
body.auth-page .auth-timer {
  font-size: 14px;
}

body.auth-page .auth-inline-row {
  align-items: center;
}

body.auth-page .auth-inline-row a,
body.auth-page .auth-inline-link,
body.auth-page .auth-inline-text a {
  color: #ff4cb3;
}

body.auth-page .auth-note-card,
body.auth-page .auth-requirements,
body.auth-page .auth-identity-badge {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

body.auth-page .auth-identity-badge--login {
  min-height: 52px;
}

body.auth-page .auth-code-grid span {
  min-height: 54px;
  border-radius: 14px;
}

body.auth-page .auth-code-grid--preview span {
  color: #fff;
  opacity: 0.82;
}

body.auth-page .auth-stage-connector {
  align-self: center;
  display: grid;
  place-items: center;
  min-height: 100%;
}

body.auth-page .auth-stage-connector-core {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 53, 173, 0.2), rgba(255, 53, 173, 0.03) 62%, transparent 74%);
  box-shadow: 0 0 28px rgba(255, 45, 168, 0.18);
}

body.auth-page .auth-stage-connector svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: #f8d4f0;
  stroke-width: 1.65;
  filter: drop-shadow(0 0 12px rgba(255, 45, 168, 0.42));
}

body.auth-page .auth-signup-head {
  display: grid;
  grid-template-columns: minmax(240px, auto) minmax(0, 1fr) minmax(220px, 280px);
  align-items: start;
  gap: 18px;
}

body.auth-page .auth-signup-head .auth-brandmark {
  align-self: start;
}

body.auth-page .auth-signup-head-art {
  position: relative;
  min-height: 190px;
}

body.auth-page .auth-signup-head-art img {
  position: absolute;
  right: -10px;
  top: -24px;
  width: min(100%, 260px);
  height: auto;
  filter:
    drop-shadow(0 0 20px rgba(255, 45, 168, 0.58))
    drop-shadow(0 0 42px rgba(139, 45, 255, 0.3));
}

body.auth-page .auth-scene--verify {
  justify-items: center;
}

body.auth-page .auth-verify-stage {
  width: min(560px, 100%);
}

body.auth-page .auth-benefit-strip {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(13, 11, 31, 0.94), rgba(9, 8, 25, 0.94)),
    rgba(9, 8, 25, 0.9);
}

body.auth-page .auth-benefit-strip article {
  min-width: 0;
}

body.auth-page .auth-benefit-strip strong {
  font-size: 16px;
}

@media (max-width: 1180px) {
  body.auth-page > .topbar,
  body.auth-page main {
    width: min(calc(100% - 40px), 920px);
  }

  body.auth-page .auth-stage-grid--signup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.auth-page .auth-signup-head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  body.auth-page .auth-signup-head-art {
    display: none;
  }
}

@media (max-width: 980px) {
  body.auth-page .nav {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  body.auth-page .auth-stage-grid--login,
  body.auth-page .auth-stage-grid--telegram {
    grid-template-columns: 1fr;
  }

  body.auth-page .auth-stage-connector {
    display: none;
  }
}

@media (max-width: 720px) {
  body.auth-page > .topbar,
  body.auth-page main {
    width: min(calc(100% - 28px), 430px);
  }

  body.auth-page > .topbar {
    padding-top: 14px;
    gap: 14px;
    align-items: flex-start;
  }

  body.auth-page .brand {
    font-size: 18px;
  }

  body.auth-page .brand img {
    width: 38px;
    height: 38px;
  }

  body.auth-page .auth-page-brand {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
  }

  body.auth-page .auth-page-brand strong {
    font-size: 42px;
  }

  body.auth-page .auth-page-brand span {
    font-size: 15px;
  }

  body.auth-page .auth-stage-grid--signup {
    grid-template-columns: 1fr;
  }

  body.auth-page .auth-showcase-card--stage,
  body.auth-page .auth-preview-card,
  body.auth-page .auth-showcase-card--verify {
    padding: 20px 18px 18px;
    border-radius: 18px;
  }

  body.auth-page .auth-stage-progress {
    gap: 14px;
  }

  body.auth-page .auth-stage-progress span {
    width: 42px;
    height: 42px;
  }

  body.auth-page .auth-stage-progress span:not(:last-child)::after {
    width: 18px;
  }

  body.auth-page .auth-benefit-strip {
    grid-template-columns: 1fr;
    padding: 10px 14px;
  }

  body.auth-page .auth-benefit-strip article {
    padding: 12px 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.auth-page .auth-benefit-strip article:last-child {
    border-bottom: 0;
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fff4fb;
  --bg-2: #f4f0ff;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --ink: #231431;
  --muted: #6f627b;
  --pink: #e72d9a;
  --pink-dark: #c51e7f;
  --violet: #7b35df;
  --violet-soft: rgba(123, 53, 223, 0.12);
  --aqua: #17aebd;
  --aqua-soft: rgba(23, 174, 189, 0.1);
  --line: rgba(197, 30, 127, 0.2);
  --line-strong: rgba(197, 30, 127, 0.35);
  --shadow: 0 26px 70px rgba(197, 30, 127, 0.15);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] {
    color-scheme: light;
    --bg: #fff4fb;
    --bg-2: #f4f0ff;
    --panel: rgba(255, 255, 255, 0.86);
    --panel-solid: #ffffff;
    --ink: #231431;
    --muted: #6f627b;
    --pink: #e72d9a;
    --pink-dark: #c51e7f;
    --violet: #7b35df;
    --violet-soft: rgba(123, 53, 223, 0.12);
    --aqua: #17aebd;
    --aqua-soft: rgba(23, 174, 189, 0.1);
    --line: rgba(197, 30, 127, 0.2);
    --line-strong: rgba(197, 30, 127, 0.35);
    --shadow: 0 26px 70px rgba(197, 30, 127, 0.15);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.97);
  }
}

@keyframes toast-timer {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes auth-float-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes auth-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes auth-step-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 53, 173, 0.25), transparent 22%),
    radial-gradient(circle at 78% 20%, rgba(156, 53, 255, 0.24), transparent 24%),
    radial-gradient(circle at 50% 78%, rgba(255, 53, 173, 0.15), transparent 34%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 50%, #050516 100%);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 72%);
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 32px) 10px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 18px;
  filter: drop-shadow(0 0 18px rgba(255, 53, 173, 0.8));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.4vw, 18px);
  flex-wrap: wrap;
}

.nav a,
.link-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-weight: 750;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}

.nav a:hover,
.link-button:hover {
  color: var(--pink);
}

.inline-form { display: inline; }

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.theme-switch button {
  min-height: 28px;
  border: 0;
  border-radius: var(--radius);
  padding: 5px 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.theme-switch button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-dark), var(--pink));
}

main {
  padding: 0 clamp(18px, 5vw, 64px) 70px;
}

.hero {
  position: relative;
  min-height: min(690px, calc(100vh - 82px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(18px, 4vw, 60px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 0 30px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 18% -9% 18% 35%;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(255, 53, 173, 0.16) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(156, 53, 255, 0.12) 1px, transparent 1.5px);
  background-size: 12px 12px, 18px 18px;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse, #000 22%, transparent 68%);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1,
.dashboard-head h1,
.subscription-summary h1 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 950;
}

.hero h1 span {
  color: var(--pink);
  text-shadow: 0 0 34px rgba(255, 53, 173, 0.45);
}

.hero p {
  max-width: 540px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--pink);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2.2px;
}

.center {
  text-align: center;
}

.hero-mascot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 590px;
}

.world-map {
  position: absolute;
  inset: 9% -12% 8% -4%;
  border-radius: 42px;
  background:
    radial-gradient(circle, rgba(255, 53, 173, 0.5) 1px, transparent 1.7px),
    radial-gradient(ellipse at center, rgba(156, 53, 255, 0.22), transparent 68%);
  background-size: 10px 10px, 100% 100%;
  opacity: 0.42;
  filter: blur(0.2px);
  mask-image: radial-gradient(ellipse, #000 24%, transparent 74%);
}

.hero-mascot img {
  position: relative;
  z-index: 2;
  width: min(610px, 88vw);
  height: auto;
  border-radius: 0;
  box-shadow: none;
  filter:
    drop-shadow(0 0 36px rgba(255, 53, 173, 0.55))
    drop-shadow(0 42px 46px rgba(0, 0, 0, 0.35));
}

.actions,
.app-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 28px;
}

.trust-line {
  margin-top: 28px;
  font-size: 14px !important;
}

.button,
button,
input[type="submit"] {
  border-radius: var(--radius);
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-dark), var(--pink));
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 18px 36px rgba(255, 53, 173, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 44px rgba(255, 53, 173, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button.small {
  min-height: 52px;
  padding: 12px 22px;
  font-size: 14px;
}

.feature-strip,
.support-strip {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(21, 8, 43, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 20px 70px rgba(156, 53, 255, 0.14);
  backdrop-filter: blur(20px);
}

.feature-strip article,
.support-strip article {
  min-height: 210px;
  padding: 36px 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.feature-strip article:last-child,
.support-strip article:last-child {
  border-right: 0;
}

.feature-icon,
.step-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.55), transparent 28%),
    linear-gradient(135deg, var(--violet), var(--pink));
  box-shadow: 0 0 34px rgba(255, 53, 173, 0.45);
  font-weight: 950;
}

.feature-strip h3,
.steps h3,
.faq-grid h3 {
  margin: 22px 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.22;
}

.feature-strip p,
.steps p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  max-width: 1120px;
  margin: 74px auto 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.how-section h2,
.device-copy h2,
.faq-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.muted {
  color: var(--muted);
}

.how-section {
  text-align: center;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-top: 34px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 58px;
  left: 17%;
  right: 17%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.steps article {
  position: relative;
  padding: 0 24px;
}

.step-orb {
  width: 108px;
  height: 108px;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 28px;
}

.device-section {
  max-width: 1120px;
  margin: 78px auto 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  align-items: center;
  gap: 48px;
}

.device-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.platforms,
.location-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.platforms span,
.pill,
.status {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-weight: 800;
}

.app-preview {
  min-height: 340px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 2%, rgba(255, 53, 173, 0.3), transparent 32%),
    linear-gradient(135deg, rgba(65, 20, 105, 0.86), rgba(18, 8, 37, 0.94));
  box-shadow:
    0 0 46px rgba(255, 53, 173, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.preview-sidebar,
.preview-main,
.preview-info div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(8, 5, 24, 0.34);
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.preview-sidebar strong {
  margin-bottom: 8px;
  color: #fff;
}

.preview-sidebar span {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  color: #dacbe8;
}

.preview-sidebar span:first-of-type {
  color: #fff;
  background: rgba(255, 53, 173, 0.24);
}

.preview-main {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  padding: 24px;
}

.preview-map {
  position: absolute;
  inset: 26px;
  background: radial-gradient(circle, rgba(255, 53, 173, 0.7) 1px, transparent 1.8px);
  background-size: 10px 10px;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse, #000 25%, transparent 70%);
}

.connected {
  position: relative;
  color: #1dff9d;
  font-weight: 850;
}

.preview-main h3,
.preview-main p {
  position: relative;
  margin: 8px 0 0;
}

.preview-main button {
  position: relative;
  width: 76px;
  height: 76px;
  margin-top: 26px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff, var(--pink) 32%, #a31978 75%);
  box-shadow: 0 0 30px rgba(255, 53, 173, 0.7);
}

.preview-info {
  display: grid;
  gap: 12px;
}

.preview-info div {
  display: grid;
  align-content: center;
  padding: 15px;
}

.preview-info span {
  color: var(--muted);
  font-size: 12px;
}

.preview-info strong {
  margin-top: 5px;
  color: #fff;
}

.plan-grid,
.subscription-grid,
.status-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
  backdrop-filter: blur(18px);
}

.card h3,
.card h2 {
  margin: 0 0 10px;
  color: var(--ink);
}

.price {
  color: var(--pink);
  font-size: 30px;
  font-weight: 950;
  margin: 12px 0;
}

.support-strip {
  margin-top: 24px;
}

.support-strip article {
  min-height: 110px;
  display: grid;
  align-content: center;
  gap: 6px;
}

.support-strip strong {
  color: var(--ink);
  font-size: 20px;
}

.support-strip span {
  color: var(--muted);
}

.soft-band {
  padding: 34px;
}

.faq-section {
  text-align: center;
}

.faq-grid {
  margin-top: 26px;
  text-align: left;
}

.auth-panel {
  max-width: 500px;
  margin: 58px auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-panel.wide {
  max-width: 780px;
}

.auth-panel h1 {
  margin: 0 0 20px;
}

.form {
  display: grid;
  gap: 14px;
}

.auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 750;
}

.auth-links a:hover {
  color: var(--pink);
}

.telegram-widget {
  display: flex;
  justify-content: center;
  min-height: 46px;
  margin: 12px 0 18px;
}

.radio-list {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.radio-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.radio-list > div {
  display: grid;
  gap: 8px;
}

.radio-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.radio-list input {
  width: auto;
  min-height: 0;
}

.form label,
.copy-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px);
}

.inline-settings-form {
  max-width: 420px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  font: inherit;
  outline: none;
}

textarea {
  border-radius: 26px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 53, 173, 0.18);
}

.dashboard-head,
.subscription-page {
  max-width: 1120px;
  margin: 38px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.subscription-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: start;
}

.card-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.mono {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.breakable {
  overflow-wrap: anywhere;
}

.meter {
  height: 10px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.meter.large {
  height: 16px;
}

.meter span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--violet));
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 28px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  background: rgba(255, 53, 173, 0.08);
}

.messages {
  position: fixed;
  right: clamp(16px, 2.5vw, 28px);
  bottom: clamp(16px, 2.8vw, 28px);
  z-index: 120;
  width: min(360px, calc(100vw - 28px));
  display: grid;
  gap: 12px;
}

.message {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 16px 16px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: var(--ink);
  background:
    linear-gradient(160deg, rgba(10, 19, 36, 0.96), rgba(14, 8, 28, 0.96));
  box-shadow:
    0 24px 60px rgba(5, 8, 24, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  animation: toast-in 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.message::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--aqua), var(--pink));
}

.message::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aqua), var(--pink), var(--violet));
  transform-origin: left center;
  animation: toast-timer 3s linear forwards;
}

.message-body {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.message-dismiss {
  position: relative;
  width: 30px;
  height: 30px;
  margin-top: -2px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.message-dismiss::before,
.message-dismiss::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.message-dismiss::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.message-dismiss::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.message-dismiss:hover {
  background: rgba(255, 255, 255, 0.14);
}

.message.success {
  background:
    linear-gradient(160deg, rgba(6, 31, 45, 0.96), rgba(10, 17, 35, 0.96));
}

.message.success::before {
  background: linear-gradient(180deg, #61f0ff, #26d3b6);
}

.message.error {
  background:
    linear-gradient(160deg, rgba(41, 10, 23, 0.96), rgba(24, 8, 18, 0.96));
}

.message.error::before {
  background: linear-gradient(180deg, #ff808f, #ff35ad);
}

.message.warning,
.message.debug,
.message.info {
  background:
    linear-gradient(160deg, rgba(18, 17, 42, 0.96), rgba(9, 15, 33, 0.96));
}

.message.is-leaving {
  animation: toast-out 320ms cubic-bezier(0.55, 0.08, 0.68, 0.53) forwards;
}

.message:hover::after,
.message:hover {
  animation-play-state: paused;
}

.message:hover::after {
  animation-play-state: paused;
}

.app-card {
  display: grid;
  gap: 16px;
}

.status-online,
.status-active {
  background: rgba(29, 255, 157, 0.14);
  color: #9cffd3;
  border-color: rgba(29, 255, 157, 0.35);
}

.status-degraded,
.status-pending {
  background: rgba(255, 204, 86, 0.15);
  color: #ffe29a;
  border-color: rgba(255, 204, 86, 0.35);
}

.status-offline,
.status-expired,
.status-paused,
.status-canceled,
.status-failed {
  background: rgba(255, 91, 116, 0.16);
  color: #ffb1be;
  border-color: rgba(255, 91, 116, 0.38);
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .device-section,
  .subscription-page {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-mascot {
    min-height: auto;
  }

  .feature-strip,
  .support-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-strip article:nth-child(2),
  .support-strip article:nth-child(2) {
    border-right: 0;
  }

  .app-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 62px;
    height: 62px;
  }

  .theme-switch {
    width: 100%;
  }

  .theme-switch button {
    flex: 1;
  }

  .hero h1,
  .dashboard-head h1,
  .subscription-summary h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-mascot img {
    width: min(470px, 104vw);
  }

  .feature-strip,
  .support-strip,
  .steps {
    grid-template-columns: 1fr;
  }

  .feature-strip article,
  .support-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .feature-strip article:last-child,
  .support-strip article:last-child {
    border-bottom: 0;
  }

  .steps::before {
    display: none;
  }

  .section-heading,
  .dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

html,
body,
button,
input,
select,
textarea,
.mono {
  font-family: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif !important;
}

html[data-theme="light"],
html[data-theme="auto"] {
  --light-surface: rgba(255, 255, 255, 0.92);
  --light-surface-strong: #ffffff;
  --light-text: #201426;
  --light-soft-text: #6d6073;
}

html[data-theme="light"] body {
  background:
    linear-gradient(135deg, #fff9fd 0%, #f7f2ff 48%, #eefaff 100%);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] body {
    background:
      linear-gradient(135deg, #fff9fd 0%, #f7f2ff 48%, #eefaff 100%);
  }
}

html[data-theme="light"] body::before,
html[data-theme="auto"] body::before {
  opacity: 0.45;
}

html[data-theme="light"] .topbar,
html[data-theme="light"] .card,
html[data-theme="light"] .auth-panel,
html[data-theme="light"] .table-wrap,
html[data-theme="light"] .feature-strip,
html[data-theme="light"] .support-strip,
html[data-theme="light"] .app-preview,
html[data-theme="light"] .preview-sidebar,
html[data-theme="light"] .preview-main,
html[data-theme="light"] .preview-info div {
  background: var(--light-surface);
  color: var(--light-text);
  border-color: rgba(197, 30, 127, 0.18);
  box-shadow: 0 18px 55px rgba(71, 45, 92, 0.11);
}

html[data-theme="light"] .preview-sidebar strong,
html[data-theme="light"] .preview-info strong,
html[data-theme="light"] .preview-main h3,
html[data-theme="light"] .preview-main p {
  color: var(--light-text);
}

html[data-theme="light"] .preview-sidebar span {
  color: var(--light-soft-text);
}

html[data-theme="light"] .feature-strip article,
html[data-theme="light"] .support-strip article {
  border-color: rgba(197, 30, 127, 0.14);
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.84);
  color: var(--light-text);
}

:root {
  --dash-bg: #05050f;
  --dash-panel: rgba(17, 11, 31, 0.86);
  --dash-panel-strong: rgba(27, 13, 43, 0.92);
  --dash-line: rgba(255, 90, 196, 0.22);
  --dash-text: #ffffff;
  --dash-muted: #bdb3c7;
  --dash-good: #21e58b;
  --dash-bad: #ff5e8a;
}

html[data-theme="light"] {
  --dash-bg: #f7f4fb;
  --dash-panel: rgba(255, 255, 255, 0.9);
  --dash-panel-strong: #ffffff;
  --dash-line: rgba(156, 53, 255, 0.16);
  --dash-text: #24172d;
  --dash-muted: #716579;
  --dash-good: #0baf66;
  --dash-bad: #d53766;
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] {
    --dash-bg: #f7f4fb;
    --dash-panel: rgba(255, 255, 255, 0.9);
    --dash-panel-strong: #ffffff;
    --dash-line: rgba(156, 53, 255, 0.16);
    --dash-text: #24172d;
    --dash-muted: #716579;
    --dash-good: #0baf66;
    --dash-bad: #d53766;
  }
}

.dashboard-body {
 background: radial-gradient(ellipse at 78% 16%, rgba(139, 36, 255, 0.18), transparent 36%), radial-gradient(ellipse at 23% 38%, rgba(255, 45, 168, 0.1), transparent 34%), linear-gradient(180deg, #03020d 0%, #02020b 48%, #010108 100%)
}

html[data-theme="light"] .dashboard-body {
  background: linear-gradient(135deg, #fff9fd, #f2f4ff 54%, #edfaff);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] .dashboard-body {
    background: linear-gradient(135deg, #fff9fd, #f2f4ff 54%, #edfaff);
  }
}

.dashboard-body .topbar {
  display: none;
}

.dashboard-body main {
  padding: 0;
}

.vpn-dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  color: var(--dash-text);
}

.dash-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 28px;
  padding: 32px 20px;
  border-right: 1px solid var(--dash-line);
  background: rgba(5, 5, 15, 0.72);
  backdrop-filter: blur(22px);
}

html[data-theme="light"] .dash-sidebar {
  background: rgba(255, 255, 255, 0.76);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] .dash-sidebar {
    background: rgba(255, 255, 255, 0.76);
  }
}

.dash-brand,
.dash-menu a,
.dash-user {
  display: flex;
  align-items: center;
}

.dash-brand {
  gap: 12px;
  color: var(--dash-text);
  text-decoration: none;
  font-size: 24px;
  font-weight: 850;
}

.dash-brand img,
.dash-user img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  filter: drop-shadow(0 0 18px rgba(255, 53, 173, 0.62));
}

.dash-menu {
  display: grid;
  gap: 10px;
}

.dash-menu a {
  gap: 14px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--dash-muted);
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 750;
}

.dash-menu a span {
  width: 22px;
  text-align: center;
  color: var(--dash-text);
}

.dash-menu a.is-active,
.dash-menu a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  border-color: rgba(255, 255, 255, 0.16);
}

.dash-invite {
  align-self: end;
  padding: 18px;
  border: 1px solid var(--dash-line);
  border-radius: 16px;
  background: var(--dash-panel);
}

.dash-invite p,
.dash-user span,
.dash-top p,
.dash-card-head span,
.server-card p,
.metric-strip p,
.device-top span,
.device-traffic span,
.traffic-summary span {
  color: var(--dash-muted);
}

.dash-user {
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--dash-line);
}

.dash-user div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dash-user strong,
.dash-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-main {
  min-width: 0;
  padding: 40px clamp(24px, 4vw, 44px);
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.dash-top h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.85fr);
  gap: 20px;
}

.connect-panel,
.server-panel,
.dash-card,
.metric-strip,
.section-in-dashboard {
  border: 1px solid var(--dash-line);
  border-radius: 16px;
  background: var(--dash-panel);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

html[data-theme="light"] .connect-panel,
html[data-theme="light"] .server-panel,
html[data-theme="light"] .dash-card,
html[data-theme="light"] .metric-strip,
html[data-theme="light"] .section-in-dashboard {
  box-shadow: 0 16px 45px rgba(56, 36, 78, 0.1);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] .connect-panel,
  html[data-theme="auto"] .server-panel,
  html[data-theme="auto"] .dash-card,
  html[data-theme="auto"] .metric-strip,
  html[data-theme="auto"] .section-in-dashboard {
    box-shadow: 0 16px 45px rgba(56, 36, 78, 0.1);
  }
}

.connect-panel {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 1fr) minmax(190px, 0.65fr);
  gap: 20px;
  align-items: center;
  padding: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 53, 173, 0.14), transparent 42%),
    var(--dash-panel);
}

.connect-copy,
.connect-meta,
.server-panel,
.dash-card,
.section-in-dashboard {
  min-width: 0;
}

.connect-copy > span:not(.connection-dot) {
  color: var(--dash-good);
  font-weight: 800;
}

.connection-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--dash-bad);
}

.connection-dot.online {
  background: var(--dash-good);
}

.connect-copy h2 {
  margin: 22px 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0;
}

.connect-core {
  display: grid;
  place-items: center;
}

.connect-core img {
  width: min(310px, 100%);
  filter: drop-shadow(0 0 34px rgba(255, 53, 173, 0.52));
}

.connect-meta {
  display: grid;
  gap: 18px;
}

.connect-meta div {
  display: grid;
  gap: 6px;
}

.connect-meta span {
  color: var(--dash-muted);
  font-size: 13px;
}

.connect-meta strong {
  font-size: 17px;
  line-height: 1.35;
}

.server-panel {
  padding: 24px;
}

.server-panel h2,
.dash-card h2,
.section-in-dashboard h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.server-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--dash-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .server-card {
  background: rgba(248, 244, 255, 0.9);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] .server-card {
    background: rgba(248, 244, 255, 0.9);
  }
}

.metric-strip {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.metric-strip article {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px 22px;
  border-right: 1px solid var(--dash-line);
}

.metric-strip article:last-child {
  border-right: 0;
}

.metric-strip span {
  color: var(--pink);
  font-weight: 900;
}

.metric-strip strong {
  font-size: 18px;
}

.dash-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 20px;
  margin-top: 20px;
}

.dash-card,
.section-in-dashboard {
  padding: 24px;
}

.dash-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.traffic-card {
  display: grid;
}

.traffic-chart {
  height: 180px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 12px;
  padding: 18px 0 0;
  border-bottom: 1px solid var(--dash-line);
}

.traffic-chart span {
  min-height: 14px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--pink), rgba(255, 53, 173, 0.18));
}

.traffic-summary {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.traffic-summary strong {
  font-size: 28px;
}

.compact-form {
  gap: 12px;
}

.devices-panel {
  margin-top: 20px;
}

.device-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, calc((100% - 16px) / 2));
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 8px;
  scroll-snap-type: inline mandatory;
}

.device-card {
  scroll-snap-align: start;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--dash-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .device-card {
  background: rgba(248, 244, 255, 0.88);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] .device-card {
    background: rgba(248, 244, 255, 0.88);
  }
}

.device-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.device-top div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.device-top strong,
.device-top span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-top em {
  flex: 0 0 auto;
  align-self: start;
  border: 1px solid rgba(33, 229, 139, 0.34);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--dash-good);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.device-offline .device-top em,
.device-blocked .device-top em {
  color: var(--dash-bad);
  border-color: rgba(255, 94, 138, 0.34);
}

.device-traffic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.device-traffic div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] .device-traffic div {
  background: rgba(255, 255, 255, 0.72);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] .device-traffic div {
    background: rgba(255, 255, 255, 0.72);
  }
}

.device-card details {
  color: var(--dash-muted);
}

.device-card summary {
  color: var(--dash-text);
  cursor: pointer;
  font-weight: 800;
}

.section-in-dashboard {
  margin-top: 20px;
}

.auth-body main {
  min-height: calc(100vh - 96px);
  display: grid;
  align-items: center;
}

.auth-shell {
  position: relative;
  width: min(540px, 100%);
  margin: 0 auto;
}

.auth-shell::before,
.auth-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  z-index: -1;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.8;
}

.auth-shell::before {
  top: -24px;
  right: 10%;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(255, 53, 173, 0.28), transparent 68%);
}

.auth-shell::after {
  left: 4%;
  bottom: -30px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(97, 240, 255, 0.18), transparent 70%);
}

.auth-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

html[data-theme="light"] .auth-card {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(66, 42, 84, 0.12);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] .auth-card {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 60px rgba(66, 42, 84, 0.12);
  }
}

.auth-card h1 {
  margin: 0 0 18px;
  font-size: 34px;
  letter-spacing: 0;
}

.step-indicator {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  margin-bottom: 22px;
}

.step-indicator span {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .step-indicator span {
  background: rgba(36, 23, 45, 0.12);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] .step-indicator span {
    background: rgba(36, 23, 45, 0.12);
  }
}

.step-indicator span.is-active {
  background: linear-gradient(90deg, var(--pink), var(--violet));
}

.auth-step {
  display: none;
}

.auth-step.is-active {
  display: grid;
  gap: 16px;
  animation: auth-step-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-showcase {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.auth-showcase-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.auth-showcase-header--center {
  align-items: center;
}

.auth-brandmark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-decoration: none;
}

.auth-brandmark img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  filter: drop-shadow(0 12px 24px rgba(255, 45, 168, 0.28));
}

.auth-brandmark strong {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.auth-brandmark em {
  color: #ff33a6;
  font-style: normal;
}

.auth-brandmark small {
  display: block;
  margin-top: 6px;
  color: #d0d3e6;
  font-size: 15px;
}

.auth-head-copy {
  text-align: center;
  margin-inline: auto;
}

.auth-head-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.auth-head-copy p {
  margin: 0;
  color: #bfc4dc;
  font-size: 18px;
}

.auth-stage-progress {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
}

.auth-stage-progress span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 61, 168, 0.32);
  background: rgba(18, 12, 42, 0.84);
  color: #fff;
  font-weight: 800;
  position: relative;
}

.auth-stage-progress span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);
  width: 32px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255, 61, 168, 0.8), rgba(255, 61, 168, 0.2));
}

.auth-stage-progress span.is-active {
  background: linear-gradient(180deg, rgba(255, 61, 168, 0.95), rgba(173, 25, 118, 0.92));
  box-shadow: 0 16px 34px rgba(255, 61, 168, 0.28);
}

.auth-login-stage,
.auth-stage-single {
  display: grid;
  gap: 22px;
}

.auth-card-shell {
  display: grid;
  gap: 0;
}

.auth-card-shell--signup,
.auth-card-shell--telegram,
.auth-card-shell--verify,
.auth-card-shell--login {
  max-width: 100%;
}

.auth-showcase-card {
  padding: 28px;
  border: 1px solid rgba(255, 66, 174, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(16, 9, 35, 0.98), rgba(10, 8, 28, 0.98)),
    rgba(12, 10, 30, 0.98);
  box-shadow:
    0 22px 90px rgba(7, 4, 21, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-showcase--signup .auth-card-shell,
.auth-showcase--telegram .auth-card-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.auth-showcase--login .auth-card-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.auth-card-shell--login .auth-step.is-active {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.auth-card-shell--login .auth-step.is-active > h1,
.auth-card-shell--login .auth-step.is-active > p,
.auth-card-shell--login .auth-step.is-active > .auth-step-topline,
.auth-card-shell--login .auth-step.is-active > .auth-inline-text,
.auth-card-shell--login .auth-step.is-active > .auth-divider,
.auth-card-shell--login .auth-step.is-active > .auth-secondary-submit,
.auth-card-shell--login .auth-step.is-active > .auth-segmented,
.auth-card-shell--login .auth-step.is-active > .auth-primary-actions,
.auth-card-shell--login .auth-step.is-active > .auth-inline-row,
.auth-card-shell--login .auth-step.is-active > .auth-identity-badge,
.auth-card-shell--login .auth-step.is-active > .auth-note-card,
.auth-card-shell--login .auth-step.is-active > .auth-field {
  grid-column: 1;
}

.auth-card-shell--login .auth-step.is-active > .auth-figure {
  grid-column: 2;
  grid-row: 1 / span 8;
  align-self: center;
  justify-self: center;
}

.auth-step-topline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-step-pill,
.ax-flow-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 52, 168, 0.18);
  background: rgba(255, 41, 167, 0.12);
  color: #ff49ae;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-back-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  cursor: pointer;
}

.auth-showcase-card h1,
.ax-flow-panel h3 {
  margin: 8px 0 6px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.auth-showcase-card > p,
.ax-flow-panel > p {
  margin: 0;
  color: #b7bdd8;
  font-size: 17px;
  line-height: 1.55;
}

.auth-figure {
  display: block;
  width: min(100%, 320px);
  margin: 8px auto 0;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 18px 58px rgba(255, 39, 164, 0.18);
}

.auth-figure--login {
  width: min(100%, 360px);
}

.auth-field,
.ax-form-field {
  display: grid;
  gap: 10px;
}

.auth-field span,
.ax-form-field > span {
  color: #f3f5ff;
  font-size: 15px;
  font-weight: 700;
}

.auth-field input,
.ax-form-field input {
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(255, 61, 168, 0.22);
  background: rgba(14, 10, 33, 0.96);
  color: #fff;
  padding: 0 18px;
  font-size: 17px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-field input:focus,
.ax-form-field input:focus {
  outline: none;
  border-color: rgba(255, 61, 168, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 61, 168, 0.12);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  width: 100%;
  padding-right: 58px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #c8cde4;
  transform: translateY(-50%);
  cursor: pointer;
}

.auth-password-toggle.is-active {
  color: #ff4ab0;
}

.auth-gradient-submit,
.auth-secondary-submit,
.ax-gradient-button,
.ax-outline-button {
  min-height: 58px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  text-decoration: none;
}

.auth-gradient-submit,
.ax-gradient-button {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #ff2ea0 0%, #d31984 100%);
  box-shadow: 0 20px 38px rgba(255, 46, 160, 0.28);
  cursor: pointer;
}

.auth-secondary-submit,
.ax-outline-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  cursor: pointer;
}

.auth-primary-actions {
  display: grid;
  gap: 12px;
}

.auth-primary-actions--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.auth-segmented button,
.auth-segmented a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #cfd4ea;
  text-decoration: none;
  font-weight: 700;
}

.auth-segmented .is-active {
  color: #fff;
  background: rgba(255, 46, 160, 0.18);
}

.auth-divider {
  position: relative;
  text-align: center;
  color: #8f94b0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-divider span {
  position: relative;
  padding: 0 12px;
  background: rgba(12, 10, 30, 0.98);
}

.auth-inline-text,
.auth-inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #c6cade;
}

.auth-inline-text {
  justify-content: center;
}

.auth-inline-text a,
.auth-inline-row a,
.auth-inline-link,
.ax-inline-link-plain {
  color: #ff4db4;
  text-decoration: none;
  font-weight: 700;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-note-card,
.ax-flow-panel,
.auth-identity-badge {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.auth-note-card strong,
.ax-flow-panel strong {
  display: block;
  margin-bottom: 8px;
}

.auth-note-card ul,
.auth-requirements ul {
  margin: 0;
  padding-left: 18px;
  color: #c6cade;
  display: grid;
  gap: 6px;
}

.auth-note-card--compact p,
.auth-requirements {
  margin: 0;
  color: #c6cade;
}

.auth-requirements {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.auth-identity-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-identity-badge button {
  border: 0;
  background: transparent;
  color: #ff4cb3;
  cursor: pointer;
  font-weight: 700;
}

.auth-code-shell,
.ax-code-shell {
  position: relative;
  display: grid;
  gap: 14px;
}

.auth-code-shell input,
.ax-code-shell input {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
}

.auth-code-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.auth-code-grid span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 61, 168, 0.24);
  background: rgba(255, 255, 255, 0.025);
  font-size: 30px;
  font-weight: 800;
  color: #fff;
}

.auth-code-grid span.is-filled {
  border-color: rgba(255, 61, 168, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 61, 168, 0.22);
}

.auth-code-shell:focus-within .auth-code-grid span,
.ax-code-shell:focus-within .auth-code-grid span {
  border-color: rgba(255, 61, 168, 0.56);
}

.auth-code-meta,
.auth-timer {
  text-align: center;
  color: #c4c9e0;
}

.auth-code-meta strong {
  display: block;
  margin-bottom: 4px;
}

.auth-timer {
  color: #ff7fc9;
  font-weight: 700;
}

.auth-benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: rgba(16, 12, 34, 0.92);
}

.auth-benefit-strip article {
  padding: 8px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-benefit-strip article:last-child {
  border-right: 0;
}

.auth-benefit-strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.auth-benefit-strip span {
  color: #bcc2db;
}

.ax-pane-header--settings {
  margin-bottom: 24px;
}

.ax-account-card--stacked {
  display: grid;
  gap: 20px;
}

.ax-flow-modal .ax-modal-body {
  display: grid;
  gap: 18px;
}

.ax-flow-form {
  display: grid;
  gap: 16px;
}

.ax-flow-panel h3 {
  font-size: 28px;
}

.ax-modal-stepper {
  display: grid;
}

.ax-flow-step {
  display: none;
  gap: 16px;
}

.ax-flow-step.is-active {
  display: grid;
  animation: auth-step-in 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ax-step-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ax-secondary-form {
  text-align: center;
}

.auth-step .errorlist,
.ax-flow-form .errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #ff95d4;
  font-size: 14px;
}

@media (max-width: 980px) {
  .auth-showcase-header,
  .auth-showcase-header--center,
  .auth-card-shell--login .auth-step.is-active,
  .auth-benefit-strip,
  .ax-settings-grid,
  .ax-step-actions,
  .auth-primary-actions--split {
    grid-template-columns: 1fr;
  }

  .auth-showcase-header,
  .auth-showcase-header--center {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .auth-card-shell--login .auth-step.is-active > .auth-figure {
    grid-column: 1;
    grid-row: auto;
  }

  .auth-benefit-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .auth-benefit-strip article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .auth-showcase {
    width: min(100%, calc(100% - 20px));
    padding: 18px 0 28px;
  }

  .auth-showcase-card,
  .ax-modal-dialog,
  .ax-modal-dialog--compact {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .auth-brandmark strong {
    font-size: 32px;
  }

  .auth-head-copy h1,
  .auth-showcase-card h1,
  .ax-flow-panel h3 {
    font-size: 30px;
  }

  .auth-stage-progress {
    gap: 12px;
  }

  .auth-stage-progress span {
    width: 42px;
    height: 42px;
  }

  .auth-stage-progress span:not(:last-child)::after {
    width: 18px;
  }

  .auth-code-grid {
    gap: 8px;
  }

  .auth-code-grid span {
    min-height: 50px;
    font-size: 24px;
  }
}

.step-actions {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.step-actions.split {
  grid-template-columns: 1fr 1fr;
}

.telegram-step-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #2481cc, var(--violet));
  font-weight: 900;
  box-shadow:
    0 18px 44px rgba(36, 129, 204, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

@media (max-width: 1120px) {
  .vpn-dashboard {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: relative;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .dash-grid,
  .dash-row {
    grid-template-columns: 1fr;
  }

  .connect-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .messages {
    right: 14px;
    left: 14px;
    bottom: 14px;
    width: auto;
  }

  .dash-main {
    padding: 24px 16px;
  }

  .dash-top {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip article:nth-child(2) {
    border-right: 0;
  }

  .device-rail {
    grid-auto-columns: minmax(280px, 88%);
  }

  .step-actions.split {
    grid-template-columns: 1fr;
  }
}

.subdash {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 34px;
  color: #f4f6ff;
}

.subdash-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 45, 168, 0.35);
}

.subdash-head h1 {
  margin: 0 0 14px;
  font-size: 26px;
}

.subdash-head p {
  margin: 0;
  color: #aab0ca;
  font-size: 13px;
}

.subdash-apps {
  position: relative;
  display: flex;
  gap: 8px;
  width: fit-content;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  isolation: isolate;
}

.subdash-apps-indicator {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(232, 44, 164, 0.82), rgba(160, 22, 109, 0.9));
  box-shadow: 0 12px 24px rgba(211, 16, 133, 0.24);
  transition: transform 220ms ease, width 220ms ease;
  z-index: 0;
}

.subdash-apps a,
.subdash-apps button {
  position: relative;
  appearance: none;
  border: 0;
  min-width: 86px;
  padding: 10px 12px;
  border-radius: 7px;
  color: #d8dcf2;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  z-index: 1;
  transition: color 220ms ease;
}

.subdash-apps a.is-active,
.subdash-apps button.is-active {
  color: #fff;
}

.subdash-warning {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 187, 83, 0.24);
  border-radius: 8px;
  background: rgba(255, 187, 83, 0.08);
  color: #ffd9a0;
}

.subdash-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 45, 168, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(89, 8, 75, 0.62), rgba(5, 13, 36, 0.72)),
    rgba(6, 9, 28, 0.94);
}

.subdash-status {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border-radius: 8px;
  background: rgba(220, 20, 140, 0.45);
  color: #ff8bd8;
  font-weight: 800;
}

.subdash-hero p {
  margin: 18px 0 0;
  color: #c8cee5;
}

.subdash-metrics {
  min-width: 180px;
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 8px;
}

.subdash-metrics span {
  color: #a8aec8;
  font-size: 13px;
}

.subdash-metrics strong {
  font-size: 20px;
}

.subdash-title-row h2 {
  margin: 34px 0 14px;
  font-size: 18px;
}

.subdash-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 0.78fr;
  gap: 12px;
}

.subdash-card,
.subdash-details,
.subdash-benefits {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(10, 15, 42, 0.78);
}

.subdash-card {
  min-height: 190px;
  padding: 24px;
}

.subdash-card--wide {
  grid-column: 1 / 3;
}

.subdash-app-card {
  display: grid;
  gap: 18px;
}

.subdash-app-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.subdash-app-head > div {
  min-width: 0;
}

.subdash-app-head p {
  max-width: 640px;
}

.subdash-app-panels {
  display: grid;
  gap: 12px;
}

.subdash-app-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  animation: auth-step-in 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.subdash-app-panel[hidden] {
  display: none !important;
}

.subdash-app-panel-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.subdash-app-panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.subdash-card h3,
.subdash-details h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.subdash-card p {
  max-width: 560px;
  margin: 0 0 18px;
  color: #aeb5cf;
  line-height: 1.55;
}

.subdash-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 45, 168, 0.42);
  border-radius: 50%;
  color: #ff35ad;
  font-size: 26px;
}

.subdash-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 18px;
  border-radius: 7px;
  background: linear-gradient(180deg, #f22ab0, #c50e75);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.subdash-button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.subdash-copy {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: #aeb5cf;
  font-size: 12px;
}

.subdash-copy input,
.subdash-details input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 10px 12px;
}

.subdash-details {
  grid-row: span 2;
  padding: 20px;
}

.subdash-details dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.subdash-details div {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.subdash-details div:last-child {
  border-bottom: 0;
}

.subdash-details dt {
  color: #8f96b0;
}

.subdash-details dd {
  margin: 0;
  min-width: 0;
  color: #fff;
  text-align: right;
}

.subdash-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #cbd0e8;
  font-size: 12px;
}

.subdash-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
}

.subdash-benefits span {
  padding: 18px 20px;
  color: #dce1f6;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.subdash-benefits span:last-child {
  border-right: 0;
}

.ax-account-form {
  margin: 0;
}

.ax-account-form .ax-account-item {
  width: 100%;
}

.ax-inline-action.is-danger {
  color: #ff6b9f;
}

.ax-clean-form {
  display: grid;
  gap: 12px;
}

.ax-clean-form input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.ax-form-field {
  display: grid;
  gap: 8px;
}

.ax-form-field span {
  color: #e4e8f8;
  font-size: 13px;
  font-weight: 700;
}

.ax-form-note {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #cbd0e8;
}

.ax-secondary-form {
  margin-top: 14px;
}

@media (max-width: 760px) {
  .ax-bottom-nav {
    left: 50% !important;
    right: auto !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    width: min(390px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    min-height: 68px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px !important;
    border-radius: 20px !important;
    transform: translateX(-50%) !important;
    overflow: hidden !important;
  }

  .ax-bottom-nav-indicator {
    display: none !important;
  }

  .ax-bottom-nav a {
    min-height: 52px !important;
    padding: 0 4px !important;
    border-radius: 14px !important;
    font-size: 11px !important;
    background: transparent !important;
    margin: 0 !important;
  }

  .ax-bottom-nav a.is-active {
    background: rgba(255, 255, 255, 0.105) !important;
  }

  .ax-bottom-nav svg {
    width: 20px !important;
    height: 20px !important;
    transform: none !important;
  }

  .subdash {
    width: min(100% - 24px, 430px);
  }

  .subdash-head,
  .subdash-hero {
    display: grid;
  }

  .subdash-apps {
    width: 100%;
    box-sizing: border-box;
  }

  .subdash-apps a,
  .subdash-apps button {
    min-width: 0;
    flex: 1;
  }

  .subdash-grid,
  .subdash-benefits {
    grid-template-columns: 1fr;
  }

  .subdash-card--wide,
  .subdash-details {
    grid-column: auto;
    grid-row: auto;
  }

  .subdash-app-head,
  .subdash-app-panel-actions {
    display: grid;
  }

  .subdash-details div {
    grid-template-columns: 1fr;
  }

  .subdash-details dd {
    text-align: left;
  }

  .subdash-benefits span {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
}

body,
button,
input,
select,
textarea {
  font-family: "Inter", "Segoe UI", sans-serif !important;
}

.hero h1,
.dashboard-head h1,
.subscription-summary h1,
.auth-card h1,
.dash-title,
.hero-server-name,
.panel-card h2,
.stack-card h2,
.app-logo span {
  font-family: "Space Grotesk", "Inter", sans-serif !important;
}

.dashboard-body {
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 52, 143, 0.2), transparent 18%),
    radial-gradient(circle at 78% 6%, rgba(84, 132, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #070812 0%, #090613 100%);
}

.dashboard-body main {
  padding: 18px;
}

.app-shell {
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  align-items: start;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(11, 11, 24, 0.96), rgba(11, 9, 20, 0.98));
  box-shadow:
    0 28px 120px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.app-sidebar {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: 18px 14px 14px;
  overflow: hidden;
  border-right: 1px solid rgba(175, 100, 255, 0.14);
  background: linear-gradient(180deg, rgba(8, 7, 20, 0.92), rgba(10, 8, 20, 0.98));
}

.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.app-logo img,
.app-user img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 12px;
  filter: drop-shadow(0 0 18px rgba(255, 52, 143, 0.62));
}

.app-logo span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.app-nav {
  display: grid;
  gap: 6px;
}

.app-nav-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #b8b5ca;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.app-nav-link:hover,
.app-nav-link.is-active {
  color: #fff;
  border-color: rgba(255, 98, 177, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 53, 173, 0.28), rgba(171, 67, 255, 0.16));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 30px rgba(255, 53, 173, 0.14);
  transform: translateY(-1px);
}

.app-invite,
.app-user,
.panel-card,
.stack-card,
.mini-stat,
.tip-banner {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 17, 36, 0.9), rgba(15, 13, 29, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-invite {
  align-self: end;
  padding: 16px;
}

.app-invite h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.app-invite p {
  margin: 0 0 14px;
  color: #b7b2c8;
  font-size: 13px;
  line-height: 1.45;
}

.app-invite .button {
  min-height: 44px;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.app-logout-form {
  display: grid;
}

.app-logout-button {
  min-height: 40px;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
}

.app-user div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.app-user strong,
.app-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-user span {
  color: #a9a3bc;
  font-size: 12px;
}

.app-main {
  min-width: 0;
  min-height: calc(100vh - 80px);
  padding: 22px 22px 26px;
}

.app-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.dash-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.dash-subtitle {
  margin: 0;
  color: #b8b4c8;
  font-size: 17px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-bell {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  opacity: 0.82;
}

.topbar-bell::after {
  content: "";
  position: absolute;
  top: -6px;
  right: -7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff40a8;
  box-shadow: 0 0 12px rgba(255, 64, 168, 0.8);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(300px, 0.85fr);
  gap: 20px;
}

.hero-status-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(260px, 1fr) minmax(190px, 0.7fr);
  gap: 22px;
  align-items: center;
  min-height: 372px;
  padding: 30px;
  border: 1px solid rgba(255, 109, 196, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 53, 173, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(74, 18, 98, 0.9), rgba(21, 11, 35, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 26px 80px rgba(0, 0, 0, 0.34);
}

.hero-status-card::before {
  content: "";
  position: absolute;
  inset: 24px 18% 24px 18%;
  background:
    radial-gradient(circle, rgba(255, 117, 206, 0.4) 1px, transparent 1.5px);
  background-size: 9px 9px;
  opacity: 0.22;
  mask-image: radial-gradient(ellipse, #000 38%, transparent 76%);
}

.hero-copy-col,
.hero-meta-col {
  position: relative;
  z-index: 1;
}

.hero-online {
  margin: 0 0 18px;
  font-weight: 700;
}

.hero-online.is-online {
  color: #3ce784;
}

.hero-online.is-offline {
  color: #ff7c96;
}

.hero-server-name {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.02;
}

.hero-server-city {
  margin: 0;
  color: #d0c7df;
  font-size: 18px;
}

.hero-session {
  display: grid;
  gap: 4px;
  margin: 34px 0 28px;
}

.hero-session strong {
  color: #fff;
  font-size: 22px;
}

.hero-session span,
.hero-meta-col span,
.server-choice span,
.server-row span,
.subscription-card-hero p,
.mini-stat p,
.traffic-legend span,
.device-panel .muted,
.security-card p,
.server-tile span,
.server-tile p {
  color: #bcb4ca;
}

.hero-center-col {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.hero-ring {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 6px solid rgba(255, 89, 186, 0.9);
  box-shadow:
    0 0 46px rgba(255, 53, 173, 0.46),
    inset 0 0 38px rgba(255, 53, 173, 0.2);
}

.hero-ring::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 63, 175, 0.22), transparent 64%);
}

.hero-ring img {
  width: 74%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 22px rgba(255, 102, 196, 0.55));
}

.hero-meta-col {
  display: grid;
  gap: 28px;
}

.hero-meta-col strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.hero-traffic-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-traffic-meta div {
  display: grid;
  gap: 5px;
}

.server-stack {
  display: grid;
  gap: 18px;
}

.stack-card,
.panel-card {
  padding: 22px;
}

.stack-head,
.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.stack-head h2,
.panel-head h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
}

.server-choice,
.server-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.server-choice {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.server-list {
  display: grid;
  gap: 12px;
}

.server-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.server-row:last-child {
  border-bottom: 0;
}

.server-flag {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 22px;
}

.server-signal {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7c7b91;
  box-shadow: 0 0 14px rgba(124, 123, 145, 0.6);
}

.server-signal.is-online {
  background: #31e678;
  box-shadow: 0 0 14px rgba(49, 230, 120, 0.68);
}

.server-signal.is-degraded {
  background: #ffc65b;
  box-shadow: 0 0 14px rgba(255, 198, 91, 0.68);
}

.server-signal.is-offline {
  background: #ff718f;
  box-shadow: 0 0 14px rgba(255, 113, 143, 0.68);
}

.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.mini-stat {
  padding: 18px 20px;
}

.mini-stat span {
  color: #ff79ca;
  font-size: 14px;
  font-weight: 700;
}

.mini-stat strong {
  display: block;
  margin: 10px 0 6px;
  color: #fff;
  font-size: 24px;
}

.mini-stat p {
  margin: 0;
}

.content-two-col,
.tab-grid,
.security-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.content-two-col {
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
}

.tab-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tab-grid-servers {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.security-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.traffic-panel,
.subscription-panel {
  min-width: 0;
}

.traffic-plot {
  width: 100%;
  overflow: hidden;
}

.traffic-plot svg {
  width: 100%;
  height: 220px;
}

.traffic-path {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.traffic-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: -8px;
}

.traffic-labels span {
  color: #958ea4;
  font-size: 12px;
  text-align: center;
}

.chart-note {
  margin: 10px 0 0;
  color: #a39bb1;
  font-size: 13px;
}

.traffic-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.traffic-legend strong {
  display: block;
  color: #fff;
  font-size: 30px;
  line-height: 1.05;
}

.subscription-card-hero {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 53, 173, 0.14), rgba(255, 255, 255, 0.02));
}

.subscription-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.subscription-tier strong {
  color: #fff;
  font-size: 24px;
}

.tip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 22px;
}

.tip-banner strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 18px;
}

.tip-banner p {
  margin: 0;
  color: #b7b2c8;
}

.server-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 180px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 53, 173, 0.16), rgba(255, 255, 255, 0.03));
}

.server-feature-flag {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 38px;
}

.server-feature strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 28px;
}

.server-feature p,
.server-feature span {
  margin: 0;
  color: #bdb6ca;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.server-tile {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.server-tile.is-selected {
  border-color: rgba(255, 98, 177, 0.4);
  box-shadow: 0 0 24px rgba(255, 53, 173, 0.12);
}

.server-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.server-tile strong {
  color: #fff;
  font-size: 18px;
}

.device-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, calc((100% - 36px) / 3));
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.device-panel {
  scroll-snap-align: start;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.device-panel-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.device-panel-top div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.device-panel-top strong,
.device-panel-top span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-panel-top strong {
  color: #fff;
  font-size: 18px;
}

.device-meter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.device-meter-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.device-meter-grid strong {
  color: #fff;
  font-size: 18px;
}

.banner-note {
  margin: 0 0 18px;
  color: #ffc46b;
}

.device-breakdown {
  display: grid;
  gap: 16px;
}

.device-breakdown-row {
  display: grid;
  gap: 10px;
}

.device-breakdown-row strong {
  color: #fff;
}

.security-card h2 {
  margin: 0 0 10px;
}

.security-card p {
  margin: 0 0 16px;
}

.large-plot svg {
  height: 280px;
}

html[data-theme="light"] .dashboard-body {
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 82, 82, 0.08), transparent 18%),
    radial-gradient(circle at 78% 6%, rgba(45, 121, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #f5f4f8 0%, #efedf4 100%);
}

html[data-theme="light"] .app-shell {
  border-color: rgba(48, 38, 65, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 244, 250, 0.98));
  box-shadow: 0 28px 90px rgba(67, 56, 90, 0.12);
}

html[data-theme="light"] .app-sidebar {
  background: linear-gradient(180deg, rgba(251, 251, 255, 0.96), rgba(244, 242, 249, 0.98));
  border-right-color: rgba(68, 55, 97, 0.08);
}

html[data-theme="light"] .dash-title,
html[data-theme="light"] .stack-head h2,
html[data-theme="light"] .panel-head h2,
html[data-theme="light"] .hero-server-name,
html[data-theme="light"] .mini-stat strong,
html[data-theme="light"] .traffic-legend strong,
html[data-theme="light"] .subscription-tier strong,
html[data-theme="light"] .server-feature strong,
html[data-theme="light"] .server-tile strong,
html[data-theme="light"] .device-panel-top strong,
html[data-theme="light"] .device-meter-grid strong,
html[data-theme="light"] .tip-banner strong,
html[data-theme="light"] .app-logo,
html[data-theme="light"] .app-user strong {
  color: #18131f;
}

html[data-theme="light"] .app-nav-link,
html[data-theme="light"] .dash-subtitle,
html[data-theme="light"] .hero-server-city,
html[data-theme="light"] .hero-session span,
html[data-theme="light"] .hero-meta-col span,
html[data-theme="light"] .server-choice span,
html[data-theme="light"] .server-row span,
html[data-theme="light"] .traffic-legend span,
html[data-theme="light"] .subscription-card-hero p,
html[data-theme="light"] .mini-stat p,
html[data-theme="light"] .app-invite p,
html[data-theme="light"] .tip-banner p,
html[data-theme="light"] .device-panel .muted,
html[data-theme="light"] .security-card p,
html[data-theme="light"] .server-feature p,
html[data-theme="light"] .server-feature span,
html[data-theme="light"] .server-tile span,
html[data-theme="light"] .server-tile p,
html[data-theme="light"] .app-user span {
  color: #675d74;
}

html[data-theme="light"] .app-invite,
html[data-theme="light"] .app-user,
html[data-theme="light"] .panel-card,
html[data-theme="light"] .stack-card,
html[data-theme="light"] .mini-stat,
html[data-theme="light"] .tip-banner,
html[data-theme="light"] .server-choice,
html[data-theme="light"] .server-tile,
html[data-theme="light"] .device-panel,
html[data-theme="light"] .device-meter-grid div,
html[data-theme="light"] .subscription-card-hero {
  border-color: rgba(48, 38, 65, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 246, 251, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .hero-status-card {
  border-color: rgba(229, 77, 120, 0.22);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 89, 186, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255, 235, 244, 0.96), rgba(245, 241, 251, 0.98));
}

html[data-theme="light"] .hero-ring {
  border-color: rgba(255, 89, 186, 0.72);
  box-shadow:
    0 0 34px rgba(255, 53, 173, 0.18),
    inset 0 0 26px rgba(255, 53, 173, 0.08);
}

html[data-theme="light"] .topbar-bell {
  border-color: rgba(28, 18, 41, 0.72);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] .dashboard-body {
    background:
      radial-gradient(circle at 20% 12%, rgba(255, 82, 82, 0.08), transparent 18%),
      radial-gradient(circle at 78% 6%, rgba(45, 121, 255, 0.08), transparent 18%),
      linear-gradient(180deg, #f5f4f8 0%, #efedf4 100%);
  }

  html[data-theme="auto"] .app-shell {
    border-color: rgba(48, 38, 65, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 244, 250, 0.98));
    box-shadow: 0 28px 90px rgba(67, 56, 90, 0.12);
  }

  html[data-theme="auto"] .app-sidebar {
    background: linear-gradient(180deg, rgba(251, 251, 255, 0.96), rgba(244, 242, 249, 0.98));
    border-right-color: rgba(68, 55, 97, 0.08);
  }

  html[data-theme="auto"] .dash-title,
  html[data-theme="auto"] .stack-head h2,
  html[data-theme="auto"] .panel-head h2,
  html[data-theme="auto"] .hero-server-name,
  html[data-theme="auto"] .mini-stat strong,
  html[data-theme="auto"] .traffic-legend strong,
  html[data-theme="auto"] .subscription-tier strong,
  html[data-theme="auto"] .server-feature strong,
  html[data-theme="auto"] .server-tile strong,
  html[data-theme="auto"] .device-panel-top strong,
  html[data-theme="auto"] .device-meter-grid strong,
  html[data-theme="auto"] .tip-banner strong,
  html[data-theme="auto"] .app-logo,
  html[data-theme="auto"] .app-user strong {
    color: #18131f;
  }

  html[data-theme="auto"] .app-nav-link,
  html[data-theme="auto"] .dash-subtitle,
  html[data-theme="auto"] .hero-server-city,
  html[data-theme="auto"] .hero-session span,
  html[data-theme="auto"] .hero-meta-col span,
  html[data-theme="auto"] .server-choice span,
  html[data-theme="auto"] .server-row span,
  html[data-theme="auto"] .traffic-legend span,
  html[data-theme="auto"] .subscription-card-hero p,
  html[data-theme="auto"] .mini-stat p,
  html[data-theme="auto"] .app-invite p,
  html[data-theme="auto"] .tip-banner p,
  html[data-theme="auto"] .device-panel .muted,
  html[data-theme="auto"] .security-card p,
  html[data-theme="auto"] .server-feature p,
  html[data-theme="auto"] .server-feature span,
  html[data-theme="auto"] .server-tile span,
  html[data-theme="auto"] .server-tile p,
  html[data-theme="auto"] .app-user span {
    color: #675d74;
  }

  html[data-theme="auto"] .app-invite,
  html[data-theme="auto"] .app-user,
  html[data-theme="auto"] .panel-card,
  html[data-theme="auto"] .stack-card,
  html[data-theme="auto"] .mini-stat,
  html[data-theme="auto"] .tip-banner,
  html[data-theme="auto"] .server-choice,
  html[data-theme="auto"] .server-tile,
  html[data-theme="auto"] .device-panel,
  html[data-theme="auto"] .device-meter-grid div,
  html[data-theme="auto"] .subscription-card-hero {
    border-color: rgba(48, 38, 65, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 246, 251, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }

  html[data-theme="auto"] .hero-status-card {
    border-color: rgba(229, 77, 120, 0.22);
    background:
      radial-gradient(circle at 50% 50%, rgba(255, 89, 186, 0.1), transparent 24%),
      linear-gradient(135deg, rgba(255, 235, 244, 0.96), rgba(245, 241, 251, 0.98));
  }

  html[data-theme="auto"] .hero-ring {
    border-color: rgba(255, 89, 186, 0.72);
    box-shadow:
      0 0 34px rgba(255, 53, 173, 0.18),
      inset 0 0 26px rgba(255, 53, 173, 0.08);
  }

  html[data-theme="auto"] .topbar-bell {
    border-color: rgba(28, 18, 41, 0.72);
  }
}

@media (max-width: 1280px) {
  .overview-grid,
  .content-two-col,
  .tab-grid-servers {
    grid-template-columns: 1fr;
  }

  .hero-status-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .stats-ribbon,
  .tab-grid,
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard-body main {
    padding: 10px;
  }

  .app-shell {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .app-sidebar {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
    grid-template-rows: auto;
  }

  .app-invite {
    align-self: stretch;
  }

  .app-main {
    padding: 16px;
  }

  .app-topbar,
  .tip-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-ribbon,
  .tab-grid,
  .security-grid,
  .traffic-legend,
  .device-meter-grid,
  .hero-traffic-meta,
  .server-grid {
    grid-template-columns: 1fr;
  }

  .device-carousel {
    grid-auto-columns: minmax(280px, 92%);
  }
}

.auth-shell {
  width: min(980px, 100%);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.auth-promo {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 53, 173, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(17, 14, 31, 0.95), rgba(12, 11, 22, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.auth-promo h2 {
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-promo p {
  margin: 0;
  color: #bcb6cb;
  line-height: 1.65;
}

.auth-promo-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.auth-promo-list span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

html.js body.auth-body .auth-promo,
html.js body.auth-body .auth-card,
html.js body.auth-body .auth-panel {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
}

html.js body.auth-body .auth-promo-list span,
html.js body.auth-body .auth-card .eyebrow,
html.js body.auth-body .auth-card h1,
html.js body.auth-body .step-indicator,
html.js body.auth-body .auth-actions,
html.js body.auth-body .auth-links {
  opacity: 0;
  transform: translateY(18px);
}

body.auth-body.page-ready .auth-promo,
body.auth-body.page-ready .auth-card,
body.auth-body.page-ready .auth-panel {
  animation: auth-float-in 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.auth-body.page-ready .auth-card {
  animation-delay: 90ms;
}

body.auth-body.page-ready .auth-promo-list span,
body.auth-body.page-ready .auth-card .eyebrow,
body.auth-body.page-ready .auth-card h1,
body.auth-body.page-ready .step-indicator,
body.auth-body.page-ready .auth-actions,
body.auth-body.page-ready .auth-links {
  animation: auth-fade-up 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.auth-body.page-ready .auth-card .eyebrow {
  animation-delay: 150ms;
}

body.auth-body.page-ready .auth-card h1 {
  animation-delay: 210ms;
}

body.auth-body.page-ready .step-indicator {
  animation-delay: 260ms;
}

body.auth-body.page-ready .auth-actions {
  animation-delay: 340ms;
}

body.auth-body.page-ready .auth-links {
  animation-delay: 390ms;
}

body.auth-body.page-ready .auth-promo-list span:nth-child(1) {
  animation-delay: 160ms;
}

body.auth-body.page-ready .auth-promo-list span:nth-child(2) {
  animation-delay: 230ms;
}

body.auth-body.page-ready .auth-promo-list span:nth-child(3) {
  animation-delay: 300ms;
}

html[data-theme="light"] .auth-promo {
  border-color: rgba(48, 38, 65, 0.08);
  background:
    radial-gradient(circle at top left, rgba(255, 53, 173, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 251, 0.98));
  box-shadow: 0 24px 70px rgba(67, 56, 90, 0.12);
}

html[data-theme="light"] .auth-promo h2,
html[data-theme="light"] .auth-promo-list span {
  color: #18131f;
}

html[data-theme="light"] .auth-promo p {
  color: #675d74;
}

html[data-theme="light"] .auth-promo-list span {
  border-color: rgba(48, 38, 65, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] .auth-promo {
    border-color: rgba(48, 38, 65, 0.08);
    background:
      radial-gradient(circle at top left, rgba(255, 53, 173, 0.1), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 251, 0.98));
    box-shadow: 0 24px 70px rgba(67, 56, 90, 0.12);
  }

  html[data-theme="auto"] .auth-promo h2,
  html[data-theme="auto"] .auth-promo-list span {
    color: #18131f;
  }

  html[data-theme="auto"] .auth-promo p {
    color: #675d74;
  }

  html[data-theme="auto"] .auth-promo-list span {
    border-color: rgba(48, 38, 65, 0.08);
    background: rgba(255, 255, 255, 0.72);
  }
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Axolotl cabinet redesign */
.ax-cabinet-page {
  --ax-bg: #020612;
  --ax-panel: rgba(12, 16, 34, 0.78);
  --ax-panel-2: rgba(15, 18, 38, 0.88);
  --ax-line: rgba(124, 132, 170, 0.16);
  --ax-line-2: rgba(124, 132, 170, 0.24);
  --ax-text: #f7f8ff;
  --ax-muted: #a7a9bc;
  --ax-pink: #ff39c8;
  --ax-purple: #9b45ff;
  --ax-green: #19d279;
  --ax-blue: #3385ff;
  --ax-red: #ff4563;
  background: radial-gradient(ellipse at 78% 16%, rgba(139, 36, 255, 0.18), transparent 36%), radial-gradient(ellipse at 23% 38%, rgba(255, 45, 168, 0.1), transparent 34%), linear-gradient(180deg, #03020d 0%, #02020b 48%, #010108 100%);
  color: var(--ax-text);
}

.ax-cabinet-page > .topbar {
  display: none;
}

.ax-cabinet-page main {
  padding: 0;
}

.ax-cabinet {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #050914;
  background-size: 88px 88px;
}

.ax-side {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: 28px 18px;
  border-right: 1px solid var(--ax-line);
  background: rgba(7, 11, 24, 0.76);
}

.ax-side-brand,
.ax-side-nav a,
.ax-profile-mini,
.ax-logout,
.ax-bottom-nav a,
.ax-primary,
.ax-plan-card a {
  text-decoration: none;
}

.ax-side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ax-text);
  font-size: 18px;
  font-weight: 800;
  position: fixed;
}

.ax-side-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 57, 200, 0.42));
}

.ax-side-nav {
  display: grid;
  align-content: start;
  gap: 12px;
  position: fixed;
  top: 90px;
}

.ax-side-nav a {
  min-height: 48px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d5d8e7;
  font-weight: 600;
}

.ax-side-nav svg {
  width: 22px;
  height: 22px;
}

.ax-side-nav a.is-active {
  border-color: rgba(255, 62, 215, 0.72);
  background: linear-gradient(90deg, rgba(154, 41, 185, 0.88), rgba(81, 25, 137, 0.66));
  box-shadow: inset 0 0 24px rgba(255, 57, 200, 0.16);
}

.ax-side-bottom {
  display: grid;
  gap: 12px;
  position: fixed;
  bottom: 50px;
}

.ax-profile-mini,
.ax-logout {
  min-height: 64px;
  display: grid;
  align-items: center;
  border: 1px solid var(--ax-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ax-text);
}

.ax-profile-mini {
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 10px;
}

.ax-profile-mini > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #a22fff, #6520a3);
  font-weight: 800;
}

.ax-profile-mini strong,
.ax-profile-mini small {
  display: block;
}

.ax-profile-mini small {
  margin-top: 4px;
  color: #d96dff;
}

.ax-logout {
  width: 100%;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 0 16px;
  color: #d5d8e7;
}

.ax-logout svg {
  width: 20px;
}

.ax-main {
  min-width: 0;
  padding: 30px 26px !important;
}

.ax-desktop-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.ax-desktop-head h1,
.ax-mobile-head h1 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
}

.ax-desktop-head p {
  margin: 8px 0 0;
  color: var(--ax-muted);
}

.ax-icon-ghost {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ax-line);
  border-radius: 8px;
  color: #e5e8f6;
  background: rgba(255, 255, 255, 0.03);
}

.ax-icon-ghost svg {
  width: 20px;
  height: 20px;
}

.ax-overview,
.ax-home-grid {
  display: grid;
  gap: 18px;
}

.ax-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.ax-home-grid {
  grid-template-columns: 320px minmax(360px, 1fr) 452px;
  align-items: stretch;
}

.ax-card {
  border: 1px solid var(--ax-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 10%, rgba(144, 63, 255, 0.1), transparent 36%),
    linear-gradient(145deg, rgba(18, 22, 44, 0.9), rgba(7, 11, 24, 0.78));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.ax-sub-card,
.ax-stat-card,
.ax-plan-card {
  min-height: 160px;
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px 20px;
}

.ax-sub-card {
  grid-column: span 1;
}

.ax-card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.ax-card-icon svg {
  width: 28px;
  height: 28px;
}

.ax-card-icon.crown,
.ax-row-icon.violet {
  color: #f056d8;
  background: rgba(255, 57, 200, 0.14);
}

.ax-card-icon.green,
.ax-row-icon.green {
  color: var(--ax-green);
  background: rgba(25, 210, 121, 0.13);
}

.ax-card-icon.blue,
.ax-row-icon.blue {
  color: var(--ax-blue);
  background: rgba(51, 133, 255, 0.13);
}

.ax-row-icon.red {
  color: var(--ax-red);
  background: rgba(255, 69, 99, 0.13);
}

.ax-sub-card > div span,
.ax-stat-card > div span,
.ax-plan-card > span,
.ax-sub-card p,
.ax-stat-card small,
.ax-plan-card small,
.ax-muted {
  color: var(--ax-muted);
}

.ax-sub-card strong,
.ax-stat-card strong,
.ax-plan-card strong {
  display: block;
  color: #fff;
  font-size: 25px;
  line-height: 1.15;
}

.ax-plan-card {
  overflow: hidden;
}

.ax-plan-card::after {
  content: "♕";
  position: absolute;
  right: 26px;
  top: 42px;
  color: #b14dff;
  font-size: 54px;
  line-height: 1;
}

.ax-plan-card a,
.ax-primary {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(90deg, #73138e, #982088);
  color: #fff;
  font-weight: 700;
}

.ax-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.ax-progress i {
  height: 100%;
  display: block;
  border-radius: inherit;
}

.ax-progress.pink i { background: linear-gradient(90deg, #ff2cb8, #c85dff); }
.ax-progress.green i { background: linear-gradient(90deg, #00b87d, #19d279); }
.ax-progress.blue i { background: linear-gradient(90deg, #2d75ff, #3385ff); }

.ax-connect,
.ax-recent,
.ax-devices,
.ax-actions,
.ax-activity,
.ax-pay-total,
.ax-transactions-panel {
  padding: 20px;
}

.ax-connect h2,
.ax-card-head h2,
.ax-actions h2,
.ax-mobile-head h1 {
  font-size: 18px;
}

.ax-location-select,
.ax-location-row,
.ax-device-row,
.ax-activity-row,
.ax-pay-row,
.ax-setting-row,
.ax-actions a {
  display: grid;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(124, 132, 170, 0.11);
  background: rgba(255, 255, 255, 0.025);
}

.ax-location-select {
  grid-template-columns: 46px 1fr 28px;
  min-height: 88px;
  margin: 18px 0;
  padding: 14px;
  border-radius: 8px;
}

.ax-flag {
  width: 42px;
  height: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 26px;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
}

.ax-flag img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.ax-location-select em,
.ax-location-row em {
  width: 26px;
  height: 26px;
  background: linear-gradient(90deg, transparent 2px, var(--ax-green) 2px 5px, transparent 5px 8px, var(--ax-green) 8px 11px, transparent 11px 14px, var(--ax-green) 14px 17px, transparent 17px);
  opacity: 0.9;
}

.ax-connect p {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 18px 0 0;
  color: var(--ax-muted);
}

.ax-connect p i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ax-green);
}

.ax-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ax-card-head h2,
.ax-actions h2,
.ax-connect h2 {
  margin: 0;
}

.ax-card-head span {
  color: #d064ff;
  font-size: 13px;
}

.ax-location-row,
.ax-device-row,
.ax-activity-row {
  grid-template-columns: 42px 1fr auto;
  min-height: 58px;
  border-width: 0 0 1px;
  background: transparent;
}

.ax-location-row:last-child,
.ax-device-row:last-child,
.ax-activity-row:last-child {
  border-bottom: 0;
}

.ax-location-row strong,
.ax-device-row strong,
.ax-activity-row strong,
.ax-pay-row strong,
.ax-setting-row strong {
  display: block;
  color: #fff;
}

.ax-location-row small,
.ax-device-row small,
.ax-activity-row small,
.ax-pay-row small,
.ax-setting-row small {
  display: block;
  margin-top: 4px;
  color: var(--ax-muted);
}

.ax-devices {
  grid-row: span 1;
}

.ax-device-icon,
.ax-row-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #dfe4f7;
}

.ax-device-icon svg,
.ax-row-icon svg {
  width: 21px;
  height: 21px;
}

.ax-device-row em {
  color: var(--ax-muted);
  font-style: normal;
}

.ax-device-row em.on {
  color: var(--ax-green);
}

.ax-actions {
  grid-column: span 1;
}

.ax-actions a {
  grid-template-columns: 28px 1fr auto;
  min-height: 52px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 7px;
  color: #eef0fb;
}

.ax-actions em {
  color: var(--ax-muted);
  font-style: normal;
}

.ax-activity {
  grid-column: span 2;
}

.ax-activity-row time {
  color: #c877ff;
  font-size: 13px;
}

.ax-mobile-status,
.ax-mobile-brand,
.ax-mobile-head,
.ax-bottom-nav {
  display: none;
}

.ax-pay-screen,
.ax-settings-screen {
  max-width: 620px;
}

.ax-pay-total {
  min-height: 130px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.ax-pay-total span,
.ax-pay-total small {
  color: var(--ax-muted);
}

.ax-pay-total strong {
  display: block;
  margin: 12px 0;
  font-size: 30px;
}

.ax-pay-total svg {
  width: 88px;
  color: #c141ff;
  filter: drop-shadow(0 0 24px rgba(255, 57, 200, 0.3));
}

.ax-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 28px 0 16px;
  border-bottom: 1px solid var(--ax-line);
}

.ax-tabs span {
  padding: 12px 0;
  color: #d9dceb;
  text-align: center;
}

.ax-tabs .is-active {
  color: var(--ax-pink);
  border-bottom: 2px solid var(--ax-pink);
}

.ax-pay-list {
  display: grid;
  gap: 10px;
}

.ax-pay-row {
  grid-template-columns: 42px 1fr auto;
  min-height: 74px;
  padding: 12px;
  border-radius: 8px;
}

.ax-pay-amount {
  text-align: right;
}

.ax-pay-amount em {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(25, 210, 121, 0.12);
  color: var(--ax-green);
  font-size: 12px;
  font-style: normal;
}

.ax-secure-note {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  color: var(--ax-muted);
  text-align: center;
}

.ax-secure-note svg {
  width: 18px;
  height: 18px;
}

.ax-settings-screen {
  display: grid;
  gap: 18px;
}

.ax-setting-row {
  width: 100%;
  grid-template-columns: 42px 1fr auto;
  min-height: 78px;
  padding: 14px;
  border-radius: 8px;
  color: var(--ax-text);
  text-align: left;
}

button.ax-setting-row {
  border-color: var(--ax-line);
}

.ax-setting-row a,
.ax-setting-row button {
  border: 0;
  background: transparent;
  color: #d16dff;
  font: inherit;
  text-decoration: none;
}

.ax-setting-row em {
  color: var(--ax-muted);
  font-size: 30px;
  font-style: normal;
}

.ax-danger-row {
  color: var(--ax-red);
}

.ax-danger-row strong {
  color: var(--ax-red);
}

.ax-email-form {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.ax-email-form.is-open {
  display: grid;
}

.ax-email-form input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--ax-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ax-text);
}

.ax-empty-card {
  padding: 20px;
  color: var(--ax-muted);
}

@media (max-width: 1180px) {
  .ax-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ax-home-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ax-devices,
  .ax-activity {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .ax-cabinet-page {
    background: #020611;
  }

  .ax-cabinet {
    min-height: 100svh;
    display: block;
    max-width: 430px;
    margin: 0 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    background:
      radial-gradient(circle at 70% 4%, rgba(100, 49, 255, 0.12), transparent 32%),
      linear-gradient(180deg, #070b17 0%, #030713 100%);
  }

  .ax-side,
  .ax-desktop-head,
  .ax-plan-card,
  .ax-actions,
  .ax-desktop-only {
    display: none;
  }

  .ax-main {
    min-height: 100svh;
    padding: 18px 18px 96px;
    margin-bottom: 100px;
  }

  .ax-mobile-status {
    height: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 14px;
    color: #fff;
    font-weight: 800;
  }

  .ax-mobile-status i {
    width: 76px;
    height: 16px;
    display: block;
    background:
      linear-gradient(90deg, #fff 4px, transparent 4px 9px, #fff 9px 15px, transparent 15px 21px, #fff 21px 30px, transparent 30px),
      radial-gradient(circle at 47px 8px, #fff 0 4px, transparent 5px),
      linear-gradient(#fff, #fff) right 3px top 3px / 28px 10px no-repeat;
    opacity: 0.95;
  }

  .ax-mobile-brand,
  .ax-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }

  .ax-mobile-brand > div {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .ax-mobile-brand img {
    width: 54px;
    height: 54px;
    filter: drop-shadow(0 0 18px rgba(255, 57, 200, 0.48));
  }

  .ax-mobile-brand strong {
    font-size: 20px;
  }

  .ax-overview {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .ax-sub-card {
    grid-column: span 2;
  }

  .ax-sub-card,
  .ax-stat-card {
    min-height: auto;
    padding: 18px;
  }

  .ax-card-icon {
    width: 48px;
    height: 48px;
  }

  .ax-sub-card strong,
  .ax-stat-card strong {
    font-size: 26px;
  }

  .ax-stat-card strong {
    font-size: 22px;
  }

  .ax-home-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ax-recent,
  .ax-devices,
  .ax-activity {
    grid-column: auto;
  }

  .ax-recent {
    display: none;
  }

  .ax-connect {
    order: 1;
  }

  .ax-activity {
    order: 2;
  }

  .ax-pay-screen,
  .ax-settings-screen {
    max-width: none;
  }

  .ax-pay-total {
    min-height: 130px;
  }

  .ax-pay-row {
    min-height: 74px;
  }

  .ax-secure-note {
    padding: 0 14px;
    font-size: 13px;
  }

  .ax-email-form {
    grid-template-columns: 1fr;
  }

  .ax-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 20;
    width: min(350px, 100%);
    transform: translateX(-50%);
    min-height: 84px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(124, 132, 170, 0.18);
    background: rgba(8, 12, 26, 0.96);
    backdrop-filter: blur(18px);
    border-radius: 999px;
  }

  .ax-bottom-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    color: #c2c5d7;
    font-size: 13px;
  }

  .ax-bottom-nav svg {
    width: 24px;
    height: 24px;
  }

  .ax-bottom-nav a.is-active {
    color: var(--ax-pink);
    border-radius: 999px;
    background-color: #fdfdfd13;
    margin: 10px;
  }
}

/* Isolated landing page from the provided mockup */
body.landing-page {
  --lp-bg: #02010d;
  --lp-panel: rgba(9, 8, 25, 0.82);
  --lp-panel-2: rgba(14, 11, 31, 0.9);
  --lp-line: rgba(255, 80, 187, 0.16);
  --lp-line-strong: rgba(255, 80, 187, 0.42);
  --lp-text: #fbf8ff;
  --lp-muted: #a9a1bb;
  --lp-pink: #ff2da8;
  --lp-pink-2: #d71b83;
  --lp-violet: #8a2dff;
  --lp-purple: #4d0a6f;
  --lp-card: rgba(8, 8, 27, 0.9);
  --lp-radius: 12px;
  min-height: 100vh;
  color: var(--lp-text);
  background:
    radial-gradient(ellipse at 78% 16%, rgba(139, 36, 255, 0.18), transparent 36%),
    radial-gradient(ellipse at 23% 38%, rgba(255, 45, 168, 0.1), transparent 34%),
    linear-gradient(180deg, #03020d 0%, #02020b 48%, #010108 100%);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

body.landing-page::before {
  z-index: 0;
  background:
    radial-gradient(circle, rgba(255, 48, 175, 0.22) 1px, transparent 1.7px),
    radial-gradient(circle, rgba(132, 45, 255, 0.15) 1px, transparent 1.8px);
  background-position: 0 0, 8px 8px;
  background-size: 26px 26px, 34px 34px;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 46%, transparent 90%);
}

body.landing-page > .topbar,
body.landing-page main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 136px));
  margin-inline: auto;
  padding-inline: 0;
}

body.landing-page main {
  padding-bottom: 30px;
}

body.landing-page > .topbar {
  position: relative;
  top: auto;
  align-items: center;
  max-width: none;
  padding: 20px 0 12px;
  gap: 26px;
  background: transparent;
  backdrop-filter: none;
}

body.landing-page .brand {
  flex: 0 0 auto;
  gap: 10px;
  color: #fff;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

body.landing-page .brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 8px rgba(255, 45, 168, 0.9))
    drop-shadow(0 0 18px rgba(151, 46, 255, 0.55));
}

body.landing-page .brand em {
  color: var(--lp-pink);
  font-style: normal;
  text-shadow: 0 0 18px rgba(255, 45, 168, 0.8);
}

body.landing-page .nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(12px, 2vw, 26px);
}

body.landing-page .nav a,
body.landing-page .nav .link-button {
  min-height: 38px;
  padding: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

body.landing-page .nav a:hover,
body.landing-page .nav .link-button:hover {
  color: #fff;
}

body.landing-page .nav-link {
  position: relative;
}

body.landing-page .nav-link.is-active {
  color: #fff;
}

body.landing-page .nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--lp-pink), transparent);
  box-shadow: 0 0 14px rgba(255, 45, 168, 0.9);
}

body.landing-page .locale-pill,
body.landing-page .nav-auth-link,
body.landing-page .nav-signup-link {
  flex: 0 0 auto;
}

body.landing-page .locale-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 500;
}

body.landing-page .locale-pill span {
  color: #d7d2e6;
}

body.landing-page .nav-auth-link,
body.landing-page .nav .nav-auth-link,
body.landing-page .nav .link-button.nav-auth-link {
  min-height: 42px;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.025);
  font-weight: 700;
}

body.landing-page .nav-signup-link,
body.landing-page .button.small.nav-signup-link {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #ff2eaf 0%, #d71b86 100%);
  box-shadow:
    0 14px 30px rgba(255, 45, 168, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-size: 13px;
  font-weight: 700;
}

body.landing-page .theme-switch {
  display: none;
}

body.landing-page .landing-hero {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(430px, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  padding: 25px 0 8px;
}

body.landing-page .landing-hero-copy {
  position: relative;
  z-index: 2;
}

body.landing-page .landing-badge {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #c9c0da;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 500;
}

body.landing-page .landing-badge-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--lp-pink);
  background: rgba(255, 45, 168, 0.1);
  font-size: 12px;
  line-height: 1;
}

body.landing-page .landing-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(46px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 900;
}

body.landing-page .landing-hero h1 span {
  display: block;
  color: var(--lp-pink);
  text-shadow: 0 0 28px rgba(255, 45, 168, 0.42);
}

body.landing-page .landing-lead {
  max-width: 460px;
  margin: 17px 0 0;
  color: var(--lp-muted);
  font-size: 16px;
  line-height: 1.7;
}

body.landing-page .landing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

body.landing-page .landing-button {
  min-width: 182px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #ff35b1 0%, #d71986 100%);
  box-shadow:
    0 18px 36px rgba(255, 45, 168, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

body.landing-page .landing-button:hover,
body.landing-page .landing-plan-button:hover {
  transform: translateY(-1px);
}

body.landing-page .landing-button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

body.landing-page .landing-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 470px;
  margin-top: 32px;
}

body.landing-page .landing-mini-stats article {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}

body.landing-page .landing-mini-stats article > span {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  color: var(--lp-pink);
  background: rgba(255, 45, 168, 0.08);
  border-radius: 7px;
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 45, 168, 0.85);
}

body.landing-page .landing-mini-stats strong {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.24;
}

body.landing-page .landing-mini-stats small {
  display: block;
  margin-top: 3px;
  color: #b2aabf;
  font-size: 13px;
  line-height: 1.32;
}

body.landing-page .landing-hero-art {
  position: relative;
  min-height: 396px;
  display: grid;
  place-items: center;
  overflow: visible;
  isolation: isolate;
}

body.landing-page .landing-hero-art::before {
  content: "";
  position: absolute;
  inset: 0 -7% -1% -4%;
  z-index: -2;
  background:
    radial-gradient(circle, rgba(255, 50, 181, 0.55) 1px, transparent 2px),
    radial-gradient(ellipse at center, rgba(141, 36, 255, 0.26), transparent 66%);
  background-size: 16px 16px, 100% 100%;
  opacity: 0.72;
  mask-image: radial-gradient(ellipse at 57% 48%, #000 0 24%, rgba(0, 0, 0, 0.72) 38%, transparent 70%);
}

body.landing-page .landing-hero-art::after {
  content: "";
  position: absolute;
  width: min(428px, 95%);
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 45, 168, 0.12), transparent 30%),
    linear-gradient(115deg, transparent 47%, rgba(255, 45, 168, 0.28) 48% 49%, transparent 50%),
    linear-gradient(25deg, transparent 46%, rgba(156, 45, 255, 0.18) 47% 48%, transparent 49%);
  box-shadow: inset 0 0 70px rgba(139, 45, 255, 0.18);
  opacity: 0.95;
}

body.landing-page .landing-world {
  position: absolute;
  inset: 12% 7% 4% 0;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(255, 45, 168, 0.65) 1px, transparent 2px),
    radial-gradient(circle, rgba(140, 45, 255, 0.35) 1px, transparent 2px);
  background-position: 0 0, 8px 8px;
  background-size: 18px 18px, 28px 28px;
  opacity: 0.36;
  mask-image: radial-gradient(ellipse at 60% 42%, #000 0 28%, rgba(0, 0, 0, 0.62) 48%, transparent 72%);
}

body.landing-page .landing-hero-art img {
  position: relative;
  z-index: 2;
  width: min(458px, 100%);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 28px rgba(255, 45, 168, 0.52))
    drop-shadow(0 32px 34px rgba(0, 0, 0, 0.42));
}

body.landing-page .landing-float {
  position: absolute;
  z-index: 1;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 45, 168, 0.42);
  border-radius: 50%;
  color: var(--lp-pink);
  background: rgba(13, 5, 30, 0.52);
  box-shadow:
    0 0 24px rgba(255, 45, 168, 0.34),
    inset 0 0 18px rgba(255, 45, 168, 0.13);
  font-size: 26px;
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 45, 168, 0.9);
}

body.landing-page .landing-float-play {
  left: 0;
  top: 26%;
}

body.landing-page .landing-float-globe {
  right: 2%;
  top: 14%;
}

body.landing-page .landing-float-lock {
  right: 0;
  bottom: 24%;
}

body.landing-page .landing-float-arrow {
  left: 7%;
  bottom: 17%;
}

body.landing-page .landing-trust-band {
  min-height: 104px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  margin-top: 0;
  padding: 18px 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(8, 7, 23, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.landing-page .landing-trust-stat {
  display: grid;
  gap: 5px;
  padding-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

body.landing-page .landing-trust-stat span,
body.landing-page .landing-trust-stat small,
body.landing-page .landing-band-title {
  color: var(--lp-muted);
  font-size: 13px;
  line-height: 1.35;
}

body.landing-page .landing-trust-stat strong {
  display: block;
  color: var(--lp-pink);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 0 22px rgba(255, 45, 168, 0.4);
}

body.landing-page .landing-device-block {
  min-width: 0;
}

body.landing-page .landing-band-title {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 650;
}

body.landing-page .landing-device-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.landing-page .landing-device-grid li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

body.landing-page .landing-device-grid span {
  color: #beb5d3;
  font-size: 20px;
  line-height: 1;
}

body.landing-page .landing-section {
  margin-top: 26px;
}

body.landing-page .landing-section-head {
  text-align: center;
}

body.landing-page .landing-section-head h2 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 850;
}

body.landing-page .landing-section-head p {
  margin: 8px 0 0;
  color: var(--lp-muted);
  font-size: 14px;
  line-height: 1.45;
}

body.landing-page .landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

body.landing-page .landing-feature-card {
  position: relative;
  height: 214px;
  min-height: 0;
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: 84px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 4%, rgba(255, 45, 168, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(8, 7, 23, 0.78);
}

body.landing-page .landing-feature-card::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 120px;
  height: 78px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 45, 168, 0.55), transparent 36%),
    radial-gradient(circle at 50% 42%, rgba(139, 45, 255, 0.36), transparent 56%);
  filter: blur(9px);
  opacity: 0.95;
}

body.landing-page .landing-feature-icon {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #ffd8f2;
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.34),
    0 0 28px rgba(255, 45, 168, 0.9),
    0 0 44px rgba(139, 45, 255, 0.55);
}

body.landing-page .landing-feature-card h3 {
  position: relative;
  margin: 0 0 7px;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

body.landing-page .landing-feature-card p {
  position: relative;
  margin: 0;
  color: #a9a1bb;
  font-size: 12px;
  line-height: 1.45;
}

body.landing-page .landing-pricing {
  margin-top: 20px;
}

.landing-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: stretch;
  gap: 20px;
  margin-top: 16px;
  padding-inline: 14px;
}

.landing-plan-card {
  position: relative;
  min-height: 310px;
  display: grid;
  align-content: start;
  overflow: visible;
  padding: 26px 23px 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 45, 168, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)),
    rgba(8, 7, 23, 0.84);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.landing-plan-card.is-popular {
  border-color: rgba(255, 45, 168, 0.78);
  box-shadow:
    0 0 0 1px rgba(255, 45, 168, 0.16),
    0 0 34px rgba(255, 45, 168, 0.16);
}

.landing-plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #e628a0, #8e1b72);
  box-shadow: 0 8px 24px rgba(255, 45, 168, 0.25);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.landing-plan-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.landing-plan-title h3 {
  margin: 0 0 8px;
  color: #cfc7dd;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
}

.landing-price {
  margin: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

.landing-price small {
  color: #a9a1bb;
  font-size: 15px;
  font-weight: 500;
}

.landing-plan-title img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 16px rgba(255, 45, 168, 0.7))
    drop-shadow(0 0 22px rgba(139, 45, 255, 0.45));
}

.landing-plan-note {
  min-height: 22px;
  margin: 10px 0 15px;
  color: #b4acc1;
  font-size: 13px;
}

.landing-plan-note s {
  color: rgba(180, 172, 193, 0.6);
}

.landing-plan-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 45, 168, 0.32);
  border-radius: 8px;
  color: var(--lp-pink);
  background: rgba(255, 45, 168, 0.02);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.landing-plan-button-hot {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #ff35b1, #d71986);
  box-shadow: 0 14px 30px rgba(255, 45, 168, 0.22);
}

.landing-plan-form,
.ax-payment-action-form {
  display: contents;
  margin: 0;
}

.landing-plan-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.landing-plan-list li {
  position: relative;
  min-height: 17px;
  padding-left: 22px;
  color: #d2cadf;
  font-size: 12px;
  line-height: 1.35;
}

.landing-plan-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--lp-pink);
  border-bottom: 1.5px solid var(--lp-pink);
  transform: rotate(-45deg);
}

.landing-plan-saving {
  color: var(--lp-pink) !important;
}

body.landing-page .landing-cta {
  min-height: 114px;
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  padding: 15px 38px 15px 42px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background:
    radial-gradient(circle at 11% 45%, rgba(255, 45, 168, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(10, 8, 27, 0.82);
}

body.landing-page .landing-cta img {
  width: 120px;
  height: 96px;
  object-fit: contain;
  justify-self: center;
  filter:
    drop-shadow(0 0 18px rgba(255, 45, 168, 0.68))
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.24));
}

body.landing-page .landing-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 850;
}

body.landing-page .landing-cta p {
  max-width: 550px;
  margin: 0;
  color: var(--lp-muted);
  font-size: 14px;
  line-height: 1.55;
}

body.landing-page .landing-cta .landing-button {
  min-width: 236px;
}

@media (max-width: 1180px) {
  body.landing-page > .topbar,
  body.landing-page main {
    width: min(calc(100% - 136px), 1120px);
  }

  body.landing-page .nav {
    gap: 14px;
  }

  body.landing-page .nav a,
  body.landing-page .nav .link-button,
  body.landing-page .locale-pill {
    font-size: 12px;
  }

  body.landing-page .nav-signup-link,
  body.landing-page .button.small.nav-signup-link,
  body.landing-page .nav-auth-link,
  body.landing-page .nav .nav-auth-link,
  body.landing-page .nav .link-button.nav-auth-link {
    padding-inline: 14px;
  }

  .landing-plan-grid {
    padding-inline: 0;
  }
}

@media (max-width: 980px) {
  body.landing-page > .topbar,
  body.landing-page main {
    width: min(calc(100% - 40px), 880px);
  }

  body.landing-page > .topbar {
    align-items: flex-start;
  }

  body.landing-page .nav {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  body.landing-page .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 32px;
  }

  body.landing-page .landing-hero-art {
    min-height: 360px;
    order: -1;
  }

  body.landing-page .landing-hero-copy {
    text-align: left;
  }

  body.landing-page .landing-trust-band {
    grid-template-columns: 1fr;
  }

  body.landing-page .landing-trust-stat {
    padding-right: 0;
    padding-bottom: 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  body.landing-page .landing-feature-grid,
  .landing-plan-grid {
    grid-template-columns: repeat(2, minmax(min(100%, 280px), 1fr));
  }

  .landing-plan-card.is-popular {
    order: -1;
  }

  body.landing-page .landing-cta {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  body.landing-page .landing-cta .landing-button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  body.landing-page {
    background:
      radial-gradient(ellipse at 50% 2%, rgba(255, 45, 168, 0.13), transparent 38%),
      linear-gradient(180deg, #03020d 0%, #010108 100%);
  }

  body.landing-page > .topbar,
  body.landing-page main {
    width: min(calc(100% - 72px), 430px);
  }

  body.landing-page > .topbar {
    padding-top: 14px;
    gap: 14px;
  }

  body.landing-page .brand {
    font-size: 18px;
  }

  body.landing-page .brand img {
    width: 38px;
    height: 38px;
  }

  body.landing-page .brand span {
    display: none;
  }

  body.landing-page .nav {
    justify-content: flex-end;
  }

  body.landing-page .nav-link,
  body.landing-page .locale-pill {
    display: none;
  }

  body.landing-page .nav-auth-link,
  body.landing-page .nav .nav-auth-link,
  body.landing-page .nav .link-button.nav-auth-link,
  body.landing-page .nav-signup-link,
  body.landing-page .button.small.nav-signup-link {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 12px;
  }

  body.landing-page .landing-hero {
    gap: 12px;
    padding-top: 20px;
  }

  body.landing-page .landing-hero-art {
    min-height: 320px;
  }

  body.landing-page .landing-hero-art img {
    width: min(342px, 100%);
  }

  body.landing-page .landing-float {
    width: 44px;
    height: 44px;
    font-size: 19px;
  }

  body.landing-page .landing-hero h1 {
    font-size: 38px;
  }

  body.landing-page .landing-lead {
    font-size: 15px;
  }

  body.landing-page .landing-actions,
  body.landing-page .landing-mini-stats {
    grid-template-columns: 1fr;
  }

  body.landing-page .landing-actions {
    display: grid;
  }

  body.landing-page .landing-button {
    width: 100%;
    min-width: 0;
  }

  body.landing-page .landing-section-head h2 {
    font-size: 25px;
    overflow-wrap: anywhere;
  }

  body.landing-page .landing-section-head p,
  body.landing-page .landing-lead {
    max-width: 100%;
    font-size: 14px;
  }

  body.landing-page .landing-device-grid li {
    font-size: 11px;
  }

  body.landing-page .landing-mini-stats {
    display: grid;
    gap: 14px;
    margin-top: 28px;
  }

  body.landing-page .landing-trust-band,
  body.landing-page .landing-plan-card,
  body.landing-page .landing-cta {
    border-radius: 12px;
  }

  body.landing-page .landing-trust-band {
    padding: 20px;
  }

  body.landing-page .landing-device-grid {
    gap: 14px 18px;
  }

  body.landing-page .landing-feature-grid,
  .landing-plan-grid {
    grid-template-columns: 1fr;
  }

  .landing-plan-card.is-popular {
    order: 0;
  }

  body.landing-page .landing-cta {
    grid-template-columns: 1fr;
    padding: 22px;
    text-align: center;
  }

  body.landing-page .landing-cta img {
    width: 116px;
    height: 94px;
  }

  body.landing-page .landing-cta p {
    max-width: none;
  }
}

body.site-subpage {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 86, 184, 0.1), transparent 30%),
    radial-gradient(circle at top right, rgba(97, 240, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #070611 0%, #090815 55%, #06050d 100%);
}

body.site-subpage::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 88%);
}

body.site-subpage > .topbar,
body.site-subpage main,
body.site-subpage > .site-footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

body.site-subpage > .topbar {
  margin-top: 20px;
  padding: 18px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 21, 0.82);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px);
}

body.site-subpage .brand {
  gap: 14px;
  font-size: 22px;
}

body.site-subpage .brand img {
  width: 58px;
  height: 58px;
}

body.site-subpage .brand em {
  color: #ff82ca;
}

body.site-subpage .nav {
  gap: 20px;
}

body.site-subpage .nav a,
body.site-subpage .nav .link-button {
  color: rgba(255, 255, 255, 0.8);
}

body.site-subpage .nav-auth-link,
body.site-subpage .nav .nav-auth-link,
body.site-subpage .nav .link-button.nav-auth-link,
body.site-subpage .nav-signup-link,
body.site-subpage .button.small.nav-signup-link {
  min-height: 42px;
  border-radius: 999px;
}

body.site-subpage .nav-signup-link,
body.site-subpage .button.small.nav-signup-link {
  background: linear-gradient(135deg, #ff6cc7, #7f8bff);
  box-shadow: 0 18px 40px rgba(127, 139, 255, 0.28);
}

body.site-subpage main {
  padding: 42px 0 64px;
}

body.site-subpage .legal-page,
body.site-subpage .support-page {
  padding-top: 0;
}

body.site-subpage .legal-shell,
body.site-subpage .support-shell {
  gap: 22px;
}

body.site-subpage .legal-hero {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(97, 240, 255, 0.12), transparent 28%),
    radial-gradient(circle at left center, rgba(255, 130, 202, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(14, 10, 33, 0.96), rgba(9, 8, 24, 0.96));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

body.site-subpage .legal-card,
body.site-subpage .support-card,
body.site-subpage .subdash-card,
body.site-subpage .subdash-details,
body.site-subpage .subdash-benefits {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.subpage-info-card {
  display: grid;
  gap: 20px;
}

.subpage-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.subpage-info-grid > div {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.subpage-info-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.subpage-info-grid strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 18px;
}

.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.site-subpage .subdash {
  padding: 0;
}

body.site-subpage .subdash-head {
  margin-bottom: 20px;
  padding: 32px 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(97, 240, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(14, 10, 33, 0.96), rgba(9, 8, 24, 0.96));
}

body.site-subpage > .site-footer {
  margin-bottom: 24px;
}

/* Dashboard refinement */
.ax-cabinet {
  width: min(1540px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 14px;
  gap: 14px;
  grid-template-columns: 240px minmax(0, 1fr);
  border: 0;
  background: transparent;
}

.ax-side {
  position: sticky;
  top: 14px;
  min-height: calc(100vh - 28px);
  border: 1px solid var(--ax-line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(10, 13, 28, 0.96), rgba(5, 8, 20, 0.92)),
    radial-gradient(circle at top, rgba(255, 57, 200, 0.12), transparent 36%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.ax-side-brand,
.ax-side-nav,
.ax-side-bottom {
  position: static;
}

.ax-side-brand {
  font-size: 20px;
}

.ax-side-nav {
  margin-top: 8px;
}

.ax-side-bottom {
  margin-top: auto;
}

.ax-main {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 14px 8px 26px !important;
}

.ax-mobile-head {
  display: none !important;
}

.ax-screen-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.ax-screen-head h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.04;
}

.ax-screen-head p {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--ax-muted);
  font-size: 15px;
}

.ax-screen-kicker,
.ax-mini-label {
  margin: 0;
  color: #d56cff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ax-screen-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--ax-muted);
  font-size: 13px;
}

.ax-screen-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.ax-card-subtitle,
.ax-subtle-note {
  margin: 6px 0 0;
  color: var(--ax-muted);
  font-size: 14px;
}

.ax-ghost-button,
.ax-inline-link,
.ax-copy-button {
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #eff2ff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}

.ax-inline-link {
  min-height: 38px;
  padding-inline: 14px;
  color: #f07ae5;
}

.ax-ghost-button:hover,
.ax-inline-link:hover,
.ax-copy-button:hover {
  border-color: rgba(255, 57, 200, 0.36);
  background: rgba(255, 57, 200, 0.08);
}

.ax-button-row,
.ax-stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ax-stack-actions {
  flex-direction: column;
}

.ax-button-row .ax-primary,
.ax-button-row .ax-ghost-button,
.ax-stack-actions .ax-primary,
.ax-stack-actions .ax-ghost-button,
.ax-stack-actions form,
.ax-stack-actions button {
  flex: 1 1 220px;
}

.ax-home-hero,
.ax-balance-screen,
.ax-metrics-grid,
.ax-home-bottom,
.ax-settings-layout,
.ax-telegram-flow {
  display: grid;
  gap: 18px;
}

.ax-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 22px;
  overflow: hidden;
  padding: 28px;
}

.ax-hero-card.is-empty {
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 57, 200, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(18, 22, 44, 0.88), rgba(7, 11, 24, 0.78));
}

.ax-hero-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.ax-hero-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
}

.ax-hero-copy p {
  margin: 0;
  color: var(--ax-muted);
}

.ax-hero-visual {
  position: relative;
  min-height: 300px;
  display: grid;
  align-items: end;
  justify-items: end;
}

.ax-hero-visual img {
  position: relative;
  z-index: 2;
  width: min(100%, 340px);
  object-fit: contain;
  filter:
    drop-shadow(0 0 32px rgba(255, 57, 200, 0.26))
    drop-shadow(0 0 72px rgba(143, 51, 255, 0.28));
}

.ax-hero-orb {
  position: absolute;
  inset: 16px 34px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 57, 200, 0.34), rgba(145, 58, 255, 0.18) 42%, transparent 66%);
  filter: blur(10px);
}

.ax-hero-status {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: min(240px, 100%);
  padding: 18px;
  border: 1px solid var(--ax-line);
  border-radius: 18px;
  background: rgba(8, 11, 24, 0.88);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

.ax-hero-status span,
.ax-balance-summary span,
.ax-metric-card span {
  color: var(--ax-muted);
}

.ax-hero-status strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.ax-hero-status strong.is-online {
  color: var(--ax-green);
}

.ax-hero-status strong.is-offline {
  color: #ff88b0;
}

.ax-hero-status small {
  display: block;
  margin-top: 6px;
  color: var(--ax-muted);
}

.ax-metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ax-metric-card,
.ax-balance-summary,
.ax-account-panel,
.ax-device-panel,
.ax-session-reset,
.ax-ledger-card {
  padding: 24px;
}

.ax-metric-head,
.ax-balance-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ax-metric-head strong,
.ax-balance-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.ax-metric-card p {
  margin: 12px 0 0;
  color: var(--ax-muted);
}

.ax-home-bottom {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
}

.ax-location-list,
.ax-summary-list,
.ax-linked-list,
.ax-session-list {
  display: grid;
}

.ax-location-line,
.ax-summary-row,
.ax-account-row,
.ax-session-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(124, 132, 170, 0.16);
}

.ax-location-line:last-child,
.ax-summary-row:last-child,
.ax-account-row:last-child,
.ax-session-row:last-child {
  border-bottom: 0;
}

.ax-location-line strong,
.ax-summary-row strong,
.ax-account-row strong,
.ax-session-row strong {
  display: block;
  color: #fff;
}

.ax-location-line small,
.ax-summary-row small,
.ax-account-row small,
.ax-session-row small {
  display: block;
  margin-top: 4px;
  color: var(--ax-muted);
}

.ax-balance-screen {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
}

.ax-balance-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 57, 200, 0.32));
}

.ax-balance-brand strong {
  display: block;
  font-size: 22px;
}

.ax-balance-brand small {
  display: block;
  margin-top: 5px;
  color: var(--ax-muted);
}

.ax-balance-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ax-balance-stats > div {
  padding: 18px;
  border: 1px solid rgba(124, 132, 170, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.ax-ledger-table {
  display: grid;
  margin-top: 16px;
}

.ax-ledger-head,
.ax-ledger-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(100px, 0.8fr) minmax(150px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
}

.ax-ledger-head {
  color: var(--ax-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(124, 132, 170, 0.18);
}

.ax-ledger-row {
  border-bottom: 1px solid rgba(124, 132, 170, 0.12);
}

.ax-ledger-row:last-child {
  border-bottom: 0;
}

.ax-ledger-row strong,
.ax-ledger-row span,
.ax-ledger-row time {
  color: #eef1ff;
}

.ax-settings-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.94fr);
}

.ax-settings-layout--bind {
  margin-bottom: 4px;
}

.ax-account-panel,
.ax-device-panel {
  min-height: 100%;
}

.ax-session-meta {
  color: var(--ax-muted);
  font-style: normal;
  text-align: right;
}

.ax-session-meta.is-current {
  color: var(--ax-green);
}

.ax-session-reset {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ax-session-reset h3 {
  margin: 0;
  font-size: 22px;
}

.ax-session-reset p {
  margin: 8px 0 0;
  color: var(--ax-muted);
}

.ax-primary.is-muted {
  opacity: 0.56;
  cursor: not-allowed;
}

.ax-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.ax-status-pill.success,
.ax-status-pill.active,
.ax-status-pill.online,
.ax-status-pill.succeeded {
  color: #8ef0bc;
  background: rgba(25, 210, 121, 0.12);
  border-color: rgba(25, 210, 121, 0.2);
}

.ax-status-pill.pending,
.ax-status-pill.paused {
  color: #ffb2e2;
  background: rgba(255, 57, 200, 0.12);
  border-color: rgba(255, 57, 200, 0.2);
}

.ax-status-pill.failed,
.ax-status-pill.canceled,
.ax-status-pill.expired,
.ax-status-pill.offline,
.ax-status-pill.blocked {
  color: #ff95a9;
  background: rgba(255, 69, 99, 0.12);
  border-color: rgba(255, 69, 99, 0.2);
}

.ax-telegram-flow {
  grid-template-columns: minmax(0, 1.12fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
}

.ax-flow-card {
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.ax-flow-badge {
  justify-self: start;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d7b7ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ax-flow-badge.is-success {
  color: #9bf3c5;
  background: rgba(25, 210, 121, 0.14);
}

.ax-flow-mascot {
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(255, 57, 200, 0.34));
}

.ax-flow-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 57, 200, 0.24), transparent 44%),
    rgba(255, 255, 255, 0.03);
  color: #f7b3ff;
  font-size: 34px;
  font-weight: 800;
}

.ax-flow-icon--success {
  color: #94efbf;
}

.ax-flow-icon--idle {
  color: #d7b7ff;
}

.ax-flow-arrow {
  display: grid;
  place-items: center;
  color: rgba(232, 235, 255, 0.56);
  font-size: 34px;
}

.ax-feature-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ax-feature-list li {
  padding-left: 20px;
  color: #dfe4ff;
  position: relative;
}

.ax-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--ax-pink), #c85dff);
  box-shadow: 0 0 14px rgba(255, 57, 200, 0.56);
}

.ax-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(124, 132, 170, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.ax-copy-row strong {
  display: block;
  color: #fff;
}

.ax-copy-row small {
  display: block;
  margin-top: 5px;
  color: var(--ax-muted);
}

.ax-copy-button {
  min-height: 40px;
  padding-inline: 14px;
}

.ax-bot-preview {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(124, 132, 170, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 57, 200, 0.12), transparent 38%),
    rgba(5, 8, 20, 0.74);
}

.ax-bot-preview__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ax-bot-preview__head img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.ax-bot-preview__head strong,
.ax-bot-preview__head small {
  display: block;
}

.ax-bot-preview__head small {
  margin-top: 4px;
  color: var(--ax-muted);
}

.ax-bot-preview__body {
  display: grid;
  gap: 12px;
}

.ax-bot-bubble {
  padding: 14px;
  border-radius: 16px 16px 16px 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef2ff;
}

.ax-bot-button {
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff2cb8, #9b45ff);
  color: #fff;
  font-weight: 700;
}

.ax-flow-success.is-complete {
  background:
    radial-gradient(circle at top left, rgba(25, 210, 121, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 57, 200, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(18, 22, 44, 0.92), rgba(7, 11, 24, 0.82));
}

@media (max-width: 1360px) {
  .ax-balance-screen,
  .ax-home-bottom,
  .ax-settings-layout {
    grid-template-columns: 1fr;
  }

  .ax-session-reset {
    grid-column: auto;
  }

  .ax-telegram-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ax-flow-arrow {
    display: none;
  }
}

@media (max-width: 1080px) {
  .ax-hero-card,
  .ax-metrics-grid {
    grid-template-columns: 1fr;
  }

  .ax-hero-visual {
    min-height: auto;
    justify-items: center;
    padding-top: 10px;
  }

  .ax-hero-status {
    position: static;
    width: 100%;
    margin-top: 8px;
  }
}

@media (max-width: 760px) {
  .ax-cabinet {
    width: 100%;
    padding: 0;
    background: transparent;
  }

  .ax-main {
    gap: 16px;
    padding: 18px 18px 112px !important;
  }

  .ax-screen-head h1 {
    font-size: 30px;
  }

  .ax-screen-head p {
    font-size: 14px;
  }

  .ax-hero-card,
  .ax-metric-card,
  .ax-balance-summary,
  .ax-account-panel,
  .ax-device-panel,
  .ax-session-reset,
  .ax-ledger-card,
  .ax-flow-card {
    padding: 20px;
    border-radius: 18px;
  }

  .ax-balance-stats,
  .ax-telegram-flow {
    grid-template-columns: 1fr;
  }

  .ax-copy-row,
  .ax-session-reset,
  .ax-ledger-row {
    grid-template-columns: 1fr;
  }

  .ax-button-row,
  .ax-session-reset {
    flex-direction: column;
    align-items: stretch;
  }

  .ax-ledger-head {
    display: none;
  }

  .ax-ledger-row {
    display: grid;
    gap: 6px;
    padding: 16px 0;
  }

  .ax-copy-row {
    display: grid;
  }

  .ax-location-line,
  .ax-summary-row,
  .ax-account-row,
  .ax-session-row {
    grid-template-columns: 42px 1fr;
  }

  .ax-location-line .ax-status-pill,
  .ax-summary-row .ax-inline-link,
  .ax-account-row .ax-status-pill,
  .ax-account-row .ax-inline-link,
  .ax-session-row .ax-session-meta {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
}

/* Dashboard fidelity update */
.ax-cabinet-page {
  --ax-shell-width: min(1520px, calc(100vw - 28px));
  --ax-sidebar-width: 224px;
  background:
    radial-gradient(circle at 76% 18%, rgba(106, 32, 214, 0.18), transparent 24%),
    radial-gradient(circle at 24% 74%, rgba(255, 39, 169, 0.08), transparent 28%),
    linear-gradient(180deg, #040714 0%, #040612 100%);
  color: #f5f6ff;
}

.ax-cabinet {
  width: var(--ax-shell-width);
  min-height: 100vh;
  display: block;
  margin: 0 auto;
  padding: 12px 0 24px;
  position: relative;
}

.ax-side {
  position: fixed;
  top: 12px;
  left: calc((100vw - var(--ax-shell-width)) / 2);
  width: var(--ax-sidebar-width);
  height: calc(100vh - 24px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7, 10, 24, 0.98), rgba(5, 7, 20, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(255, 49, 173, 0.08), transparent 30%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.ax-side-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.ax-side-brand img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(255, 57, 200, 0.48))
    drop-shadow(0 0 36px rgba(151, 46, 255, 0.22));
}

.ax-side-nav {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.ax-side-nav a {
  min-height: 44px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #cdd0e2;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ax-side-nav a:hover {
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.ax-side-nav a.is-active {
  color: #fff;
  border-color: rgba(255, 52, 178, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 53, 173, 0.18), rgba(122, 24, 98, 0.16)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 52, 178, 0.12);
}

.ax-side-nav svg {
  width: 18px;
  height: 18px;
}

.ax-profile-mini {
  display: none;
}

.ax-side-bottom {
  margin-top: auto;
}

.ax-logout {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #d9dced;
  font: inherit;
}

.ax-logout svg {
  width: 18px;
  height: 18px;
}

.ax-main {
  width: calc(100% - var(--ax-sidebar-width) - 18px);
  min-width: 0;
  margin-left: calc(var(--ax-sidebar-width) + 18px);
  padding: 0 !important;
  display: grid;
  gap: 18px;
}

.ax-pane {
  display: grid;
  gap: 18px;
}

.ax-pane-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 6px 0;
}

.ax-pane-breadcrumb {
  margin: 0;
  color: #bdbfd4;
  font-size: 13px;
}

.ax-pane-header h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 42px;
  line-height: 1.04;
}

.ax-pane-header p:last-child {
  margin: 8px 0 0;
  color: #9c9fb8;
  font-size: 15px;
}

.ax-panel-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 12, 29, 0.96), rgba(8, 10, 24, 0.94)),
    radial-gradient(circle at top right, rgba(159, 46, 255, 0.08), transparent 38%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.ax-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.ax-section-head h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.ax-section-head p {
  margin: 6px 0 0;
  color: #8e92ad;
  font-size: 14px;
}

.ax-gradient-button,
.ax-outline-button,
.ax-inline-action,
.ax-inline-link-plain,
.ax-outline-icon-button {
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.ax-gradient-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #f236a8 0%, #bf165d 100%);
  box-shadow:
    0 16px 28px rgba(255, 45, 168, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
}

.ax-gradient-button:hover {
  filter: brightness(1.04);
}

.ax-gradient-button:disabled,
.ax-outline-button:disabled,
.ax-outline-icon-button:disabled {
  opacity: 0.54;
  cursor: not-allowed;
}

.ax-gradient-button--wide {
  width: 100%;
}

.ax-outline-button,
.ax-outline-icon-button,
.ax-inline-action.is-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #d5d8ec;
}

.ax-inline-link-plain {
  min-height: 38px;
  padding: 0;
  border: 0;
  color: #e1e4f4;
  background: transparent;
  justify-content: start;
}

.ax-inline-action {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.ax-inline-action.is-primary {
  background: linear-gradient(180deg, #f236a8 0%, #bf165d 100%);
}

.ax-inline-action.is-success {
  color: #83e8a9;
  background: rgba(25, 210, 121, 0.12);
  border-color: rgba(25, 210, 121, 0.16);
}

.ax-chip {
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.ax-chip.active,
.ax-chip.online,
.ax-chip.succeeded {
  color: #86eba8;
  background: rgba(25, 210, 121, 0.12);
}

.ax-chip.paused,
.ax-chip.pending {
  color: #ffbde0;
  background: rgba(255, 57, 200, 0.12);
}

.ax-chip.failed,
.ax-chip.offline,
.ax-chip.blocked,
.ax-chip.expired,
.ax-chip.canceled {
  color: #ff9fb7;
  background: rgba(255, 69, 99, 0.12);
}

.ax-balance-pane,
.ax-settings-pane {
  padding: 8px 0 0;
}

.ax-balance-stack,
.ax-settings-grid {
  display: grid;
  gap: 18px;
}

.ax-balance-summary-card,
.ax-history-card,
.ax-account-card,
.ax-security-card,
.ax-sessions-card,
.ax-home-hero-card,
.ax-locations-card,
.ax-step-card {
  padding: 18px;
}

.ax-balance-summary-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ax-balance-summary-head img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 57, 200, 0.34));
}

.ax-balance-summary-head strong {
  display: block;
  font-size: 18px;
}

.ax-balance-summary-head small {
  display: block;
  margin-top: 4px;
  color: #8e92ad;
}

.ax-balance-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.ax-balance-stat-strip > div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.ax-balance-stat-strip span {
  display: block;
  color: #8e92ad;
  font-size: 13px;
}

.ax-balance-stat-strip strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
}

.ax-balance-topup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.ax-balance-topup-field {
  display: grid;
  gap: 8px;
}

.ax-balance-topup-field span,
.ax-balance-note {
  color: #8e92ad;
  font-size: 13px;
}

.ax-balance-topup-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #eef0fd;
}

.ax-balance-note {
  margin-top: 12px;
}

.ax-history-table {
  display: grid;
  margin-top: 10px;
}

.ax-history-head,
.ax-history-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(120px, 0.8fr) minmax(150px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
}

.ax-history-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #8e92ad;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ax-history-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ax-history-row:last-child {
  border-bottom: 0;
}

.ax-history-row strong,
.ax-history-row span,
.ax-history-row time {
  color: #eef0fd;
}

.ax-settings-grid {
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.95fr);
  align-items: start;
}

.ax-settings-left {
  display: grid;
  gap: 18px;
}

.ax-account-list,
.ax-session-list {
  display: grid;
}

.ax-account-item,
.ax-session-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ax-account-item:last-child,
.ax-session-item:last-child {
  border-bottom: 0;
}

.ax-account-item--single {
  padding: 0;
  border-bottom: 0;
}

.ax-account-item--interactive {
  margin: 0 -10px;
  padding: 16px 10px;
  border-radius: 14px;
  text-decoration: none;
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.ax-account-item--interactive:hover,
.ax-account-item--interactive:focus-visible {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
  outline: none;
}

.ax-account-item--button {
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ax-account-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  flex-wrap: wrap;
}

.ax-trial-offer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ax-trial-offer-actions form {
  margin: 0;
}

.ax-account-actions form {
  margin: 0;
}

.ax-item-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe0f5;
}

.ax-item-icon svg {
  width: 20px;
  height: 20px;
}

.ax-item-icon.is-telegram {
  background: rgba(53, 165, 255, 0.16);
  color: #58b6ff;
}

.ax-item-icon.is-mail {
  background: rgba(126, 104, 255, 0.16);
  color: #9e8fff;
}

.ax-item-icon.is-lock {
  background: rgba(255, 255, 255, 0.06);
}

.ax-item-icon.is-shield {
  background: rgba(255, 57, 200, 0.12);
  color: #ef7be2;
}

.ax-account-copy strong,
.ax-session-copy strong,
.ax-location-copy strong {
  display: block;
  color: #fff;
}

.ax-account-copy small,
.ax-session-copy small,
.ax-location-copy small {
  display: block;
  margin-top: 4px;
  color: #8e92ad;
}

.ax-email-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 0 0 0 60px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease,
    transform 0.28s ease,
    margin 0.28s ease;
}

.ax-email-form.is-open {
  max-height: 84px;
  opacity: 1;
  margin: 10px 0 12px 60px;
  pointer-events: auto;
  transform: translateY(0);
}

.ax-email-form input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.ax-session-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.ax-session-side small {
  color: #8e92ad;
}

.ax-session-current {
  color: #7be89f;
  font-size: 14px;
}

.ax-session-footer {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.ax-session-footer p {
  margin: 0;
  color: #8e92ad;
  font-size: 13px;
  text-align: center;
}

.ax-home-pane {
  padding: 0;
}

.ax-home-hero-card {
  display: grid;
  gap: 18px;
}

.ax-home-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.ax-home-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.ax-home-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 46px;
  line-height: 1.03;
}

.ax-home-copy > p:last-of-type {
  margin: 0;
  color: #98a0b8;
}

.ax-plan-card-hero {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.ax-plan-card-copy span,
.ax-stat-panel span {
  display: block;
  color: #8e92ad;
  font-size: 13px;
}

.ax-plan-card-copy strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 20px;
}

.ax-plan-card-copy small {
  display: block;
  margin-top: 10px;
  color: #f171a4;
}

.ax-plan-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 2px;
}

.ax-plan-card-actions .ax-gradient-button {
  min-width: 210px;
}

.ax-plan-card-badge {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: end;
  border-radius: 18px;
  color: #ff79cd;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 57, 200, 0.22), rgba(255, 57, 200, 0.08)),
    rgba(255, 255, 255, 0.03);
}

.ax-plan-card-badge svg {
  width: 28px;
  height: 28px;
}

.ax-home-visual {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ax-home-visual img {
  position: relative;
  z-index: 2;
  width: min(100%, 330px);
  object-fit: contain;
  filter:
    drop-shadow(0 0 32px rgba(255, 57, 200, 0.24))
    drop-shadow(0 32px 36px rgba(0, 0, 0, 0.26));
}

.ax-home-visual::before {
  content: "";
  position: absolute;
  inset: 20px 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(125, 46, 255, 0.26), transparent 56%),
    radial-gradient(circle, rgba(255, 57, 200, 0.18) 1px, transparent 2px);
  background-size: auto, 20px 20px;
  opacity: 0.85;
}

.ax-home-shield {
  position: absolute;
  left: 28px;
  top: 30px;
  z-index: 1;
  color: rgba(154, 56, 255, 0.34);
}

.ax-home-shield svg {
  width: 120px;
  height: 120px;
}

.ax-home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ax-stat-panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.ax-stat-panel strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 18px;
  color: #fff;
}

.ax-stat-panel strong small {
  color: #97a0bb;
  font-size: 15px;
}

.ax-stat-panel p {
  margin: 12px 0 0;
  color: #8e92ad;
}

.ax-stat-panel .ax-inline-link-plain {
  margin-top: 10px;
}

.ax-locations-card {
  display: grid;
  gap: 12px;
}

.ax-location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.ax-location-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ax-location-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.ax-location-copy small {
  margin-top: 2px;
}

.ax-telegram-pane {
  padding-top: 6px;
}

.ax-telegram-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.ax-step-arrow {
  display: grid;
  place-items: center;
  color: rgba(230, 232, 244, 0.62);
  font-size: 34px;
}

.ax-step-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 430px;
}

.ax-step-badge {
  justify-self: start;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d3bdf7;
  font-size: 12px;
  font-weight: 700;
}

.ax-step-badge--done {
  color: #89eab1;
  background: rgba(25, 210, 121, 0.12);
}

.ax-step-mascot {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(255, 57, 200, 0.34));
}

.ax-step-card h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.ax-step-card p {
  margin: 0;
  color: #8e92ad;
  line-height: 1.6;
}

.ax-step-benefits {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 2px 0 0;
  list-style: none;
}

.ax-step-benefits li {
  position: relative;
  padding-left: 18px;
  color: #d9dceb;
}

.ax-step-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff35b1, #cf2e9b);
}

.ax-step-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.ax-step-actions .ax-inline-link-plain,
.ax-step-actions form {
  display: block;
}

.ax-empty-bind-cta {
  max-width: 280px;
  margin-top: 14px;
}

.ax-empty-state-pane {
  display: grid;
  gap: 18px;
}

.ax-empty-state-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 220px;
  gap: 24px;
  padding: 28px;
  align-items: center;
}

.ax-empty-state-copy h1 {
  margin: 6px 0 0;
  color: #fff;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.02;
}

.ax-empty-state-copy > p:last-of-type {
  max-width: 760px;
  margin: 14px 0 0;
  color: #9ea5c4;
  font-size: 15px;
  line-height: 1.6;
}

.ax-empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.ax-empty-state-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.ax-empty-state-points article,
.ax-empty-state-sidecard {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.ax-empty-state-points article {
  padding: 16px;
}

.ax-empty-state-points strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.ax-empty-state-points span {
  display: block;
  margin-top: 8px;
  color: #8e92ad;
  font-size: 13px;
  line-height: 1.5;
}

.ax-empty-state-visual {
  display: grid;
  place-items: center;
}

.ax-empty-state-orb {
  width: 188px;
  height: 188px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #73b7ff;
  border: 1px solid rgba(115, 183, 255, 0.16);
  background:
    radial-gradient(circle at 50% 50%, rgba(115, 183, 255, 0.18), transparent 52%),
    radial-gradient(circle at 30% 30%, rgba(255, 43, 167, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

.ax-empty-state-orb svg {
  width: 82px;
  height: 82px;
}

.ax-empty-state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ax-empty-state-sidecard {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.ax-empty-state-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ax-empty-state-checklist li {
  position: relative;
  padding-left: 18px;
  color: #c8cce1;
  font-size: 14px;
  line-height: 1.5;
}

.ax-empty-state-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff2ea0 0%, #6aa9ff 100%);
}

.ax-empty-state-plans {
  padding: 24px;
}

.ax-empty-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ax-empty-plan-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 46, 160, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(17, 20, 42, 0.94), rgba(9, 11, 28, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ax-empty-plan-card.is-popular {
  border-color: rgba(255, 46, 160, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 44px rgba(255, 46, 160, 0.12);
}

.ax-empty-plan-badge {
  justify-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 46, 160, 0.12);
  color: #ff86c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ax-empty-plan-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.ax-empty-plan-head h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.ax-empty-plan-head p {
  margin: 6px 0 0;
  color: #ff87c8;
  font-size: 18px;
  font-weight: 800;
}

.ax-empty-plan-head p small {
  color: #8e92ad;
  font-size: 13px;
  font-weight: 600;
}

.ax-empty-plan-head > span {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.ax-empty-plan-note {
  margin: 0;
  color: #9ea5c4;
  font-size: 14px;
  line-height: 1.5;
}

.ax-empty-plan-note s {
  color: #737891;
}

.ax-empty-plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ax-empty-plan-list li {
  color: #d2d7ea;
  font-size: 14px;
  line-height: 1.45;
}

.ax-empty-plan-list li.is-saving {
  color: #7be2a9;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .ax-empty-state-hero {
    grid-template-columns: 1fr;
  }

  .ax-empty-state-visual {
    justify-content: start;
  }

  .ax-empty-plan-grid,
  .ax-empty-state-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ax-empty-state-grid,
  .ax-empty-plan-grid,
  .ax-empty-state-points {
    grid-template-columns: 1fr;
  }

  .ax-empty-state-hero,
  .ax-empty-state-plans,
  .ax-empty-state-sidecard {
    padding: 20px;
  }

  .ax-empty-state-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ax-empty-state-actions .ax-gradient-button,
  .ax-empty-state-actions .ax-outline-button,
  .ax-empty-state-sidecard .ax-gradient-button,
  .ax-empty-state-sidecard .ax-outline-button,
  .ax-empty-plan-card .ax-gradient-button {
    width: 100%;
  }

  .ax-empty-state-orb {
    width: 148px;
    height: 148px;
  }
}

.ax-step-actions form {
  display: contents;
}

.ax-step-orb {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(118, 142, 255, 0.16);
  background:
    radial-gradient(circle at 50% 50%, rgba(96, 159, 255, 0.2), transparent 54%),
    rgba(255, 255, 255, 0.02);
  color: #54b7ff;
  box-shadow: 0 0 30px rgba(96, 159, 255, 0.12);
}

.ax-step-orb svg {
  width: 54px;
  height: 54px;
}

.ax-step-copy-box,
.ax-code-hint {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.ax-step-copy-box {
  display: grid;
  gap: 12px;
}

.ax-step-copy-box span {
  display: block;
  color: #8e92ad;
  font-size: 13px;
}

.ax-step-copy-box strong {
  display: block;
  margin-top: 8px;
  color: #fff;
}

.ax-outline-icon-button {
  justify-self: start;
}

.ax-muted-copy {
  font-size: 13px;
}

.ax-chat-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 11, 24, 0.95), rgba(12, 10, 30, 0.92)),
    radial-gradient(circle at top right, rgba(255, 57, 200, 0.08), transparent 36%);
}

.ax-chat-preview-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ax-chat-preview-head img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.ax-chat-preview-head strong,
.ax-chat-preview-head small {
  display: block;
}

.ax-chat-preview-head small {
  margin-top: 2px;
  color: #8e92ad;
}

.ax-chat-command {
  justify-self: end;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(173, 73, 255, 0.14);
  color: #e0b8ff;
  font-size: 13px;
}

.ax-chat-bubble {
  padding: 14px;
  border-radius: 16px 16px 16px 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #f0f2ff;
  line-height: 1.5;
}

.ax-chat-button {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #f236a8 0%, #bf165d 100%);
  color: #fff;
  font-weight: 700;
}

.ax-code-hint {
  color: #d4d7e8;
  font-size: 13px;
}

.ax-code-hint--muted {
  background: rgba(255, 255, 255, 0.03);
  color: #9ca1bb;
}

.ax-step-card--success.is-complete {
  background:
    radial-gradient(circle at 50% 12%, rgba(25, 210, 121, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(10, 12, 29, 0.96), rgba(8, 10, 24, 0.94));
}

body.ax-modal-open {
  overflow: hidden;
}

.ax-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(4, 6, 17, 0.78);
  backdrop-filter: blur(0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, backdrop-filter 0.28s ease;
}

.ax-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(18px);
}

.ax-modal-dialog {
  width: min(1440px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(8, 10, 25, 0.98), rgba(6, 8, 21, 0.97)),
    radial-gradient(circle at top right, rgba(255, 57, 200, 0.08), transparent 36%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
  transform: translateY(22px) scale(0.985);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.ax-modal.is-open .ax-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ax-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(8, 10, 25, 0.98), rgba(8, 10, 25, 0.9)),
    rgba(8, 10, 25, 0.96);
}

.ax-modal-head-copy h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.06;
}

.ax-modal-head-copy p:last-child {
  margin: 10px 0 0;
  color: #9ca1bb;
  max-width: 760px;
}

.ax-modal-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #eef0fd;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ax-modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.ax-modal-close svg {
  width: 18px;
  height: 18px;
}

.ax-modal-body {
  padding: 22px 24px 24px;
}

.ax-telegram-steps--modal {
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  gap: 16px;
}

.ax-telegram-steps--modal .ax-step-card {
  min-height: 100%;
}

.ax-bottom-nav {
  display: none;
}

@media (max-width: 1340px) {
  .ax-settings-grid {
    grid-template-columns: 1fr;
  }

  .ax-home-hero-main,
  .ax-home-stats,
  .ax-location-grid {
    grid-template-columns: 1fr;
  }

  .ax-location-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .ax-location-item:last-child {
    border-bottom: 0;
  }

  .ax-telegram-steps,
  .ax-telegram-steps--modal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .ax-step-arrow {
    display: none;
  }
}

@media (max-width: 760px) {
  .ax-cabinet {
    width: 100%;
    overflow: visible;
    padding: 0 0 calc(110px + env(safe-area-inset-bottom));
  }

  .ax-side {
    display: none;
  }

  .ax-main {
    width: 100%;
    margin-left: 0;
    padding: calc(18px + env(safe-area-inset-top)) 18px calc(110px + env(safe-area-inset-bottom)) !important;
    margin-bottom: 0;
    gap: 16px;
  }

  .ax-pane-header {
    padding: 0;
  }

  .ax-pane-header h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .ax-panel-card {
    border-radius: 16px;
  }

  .ax-balance-stat-strip,
  .ax-history-head,
  .ax-telegram-steps {
    grid-template-columns: 1fr;
  }

  .ax-section-head {
    flex-direction: column;
  }

  .ax-trial-offer-actions {
    width: 100%;
    justify-content: stretch;
  }

  .ax-trial-offer-actions form,
  .ax-trial-offer-actions .ax-gradient-button,
  .ax-trial-offer-actions .ax-outline-button,
  .ax-trial-offer-actions .ax-inline-link-plain {
    width: 100%;
  }

  .ax-balance-topup-form {
    grid-template-columns: 1fr;
  }

  .ax-history-head {
    display: none;
  }

  .ax-history-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ax-account-item,
  .ax-session-item,
  .ax-location-item {
    grid-template-columns: 40px 1fr;
    align-items: start;
  }

  .ax-account-actions,
  .ax-session-side,
  .ax-account-item .ax-inline-action,
  .ax-account-item .ax-inline-link-plain,
  .ax-location-item .ax-chip {
    grid-column: 2;
    justify-self: start;
  }

  .ax-account-actions {
    display: flex;
    width: 100%;
    margin-top: 8px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .ax-account-actions form {
    width: 100%;
  }

  .ax-account-actions .ax-inline-action,
  .ax-account-actions .ax-inline-link-plain,
  .ax-account-actions form .ax-inline-action {
    width: 100%;
    max-width: 100%;
  }

  .ax-account-copy strong,
  .ax-account-copy small,
  .ax-session-copy strong,
  .ax-session-copy small {
    overflow-wrap: anywhere;
  }

  .ax-email-form {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .ax-email-form.is-open {
    margin-left: 0;
  }

  .ax-step-card {
    min-height: 0;
  }

  .ax-modal {
    padding: 14px;
  }

  .ax-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 28px);
    border-radius: 20px;
  }

  .ax-modal-head {
    padding: 18px;
  }

  .ax-modal-head-copy h2 {
    font-size: 28px;
  }

  .ax-modal-body {
    padding: 18px;
  }

  .ax-telegram-steps--modal {
    grid-template-columns: 1fr;
  }

  .ax-bottom-nav {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: min(420px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    transform: translateX(-50%);
    box-sizing: border-box;
    z-index: 40;
    min-height: 72px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(7, 10, 24, 0.96);
    backdrop-filter: blur(18px);
  }

  .ax-bottom-nav a {
    display: grid;
    place-items: center;
    gap: 4px;
    min-width: 0;
    padding: 0 6px;
    border-radius: 14px;
    color: #bfc3d7;
    font-size: 12px;
  }

  .ax-bottom-nav a span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ax-bottom-nav a.is-active {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
  }

  .ax-bottom-nav svg {
    width: 20px;
    height: 20px;
  }
}
 .ax-modal-dialog--compact {
  width: min(640px, calc(100vw - 32px));
}

.ax-modal-progress {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.ax-modal-progress span {
  width: 42px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.ax-modal-progress span.is-active,
.ax-modal-progress span.is-done {
  background: linear-gradient(90deg, rgba(255, 84, 186, 0.95), rgba(121, 163, 255, 0.95));
  box-shadow: 0 0 24px rgba(255, 84, 186, 0.24);
}

.ax-flow-panel {
  display: block;
  animation: ax-step-panel-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.ax-flow-panel.is-active {
  display: block;
}

.ax-flow-card {
  display: grid;
  gap: 18px;
  min-height: 100%;
}

.ax-flow-card h3 {
  margin: 0;
  color: #fff;
  font-size: 30px;
}

.ax-flow-card p {
  margin: 0;
  color: #9ca1bb;
}

.ax-flow-card--success {
  background:
    linear-gradient(180deg, rgba(10, 19, 31, 0.98), rgba(6, 16, 24, 0.96)),
    radial-gradient(circle at top right, rgba(59, 211, 158, 0.12), transparent 42%);
}

.ax-modal-form {
  display: grid;
  gap: 12px;
}

.ax-modal-form input {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.ax-step-actions--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ax-step-actions--stack {
  display: grid;
  gap: 12px;
}

.ax-gradient-button--danger {
  background: linear-gradient(180deg, #ff4b91, #d8185f);
}

.auth-code-shell {
  display: grid;
  gap: 16px;
}

.auth-code-shell h2 {
  margin: 0;
}

.auth-code-shell p {
  margin: 0;
}

.auth-code-label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.auth-links--inline {
  margin-top: 16px;
}

.step-indicator--confirm span {
  opacity: 1;
}

@keyframes ax-step-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  .ax-bottom-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(10, 13, 26, 0.98), rgba(8, 10, 21, 0.96)),
      radial-gradient(circle at top center, rgba(132, 152, 255, 0.12), transparent 44%);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(28px);
    overflow: hidden;
    z-index: 50;
  }

  .ax-bottom-nav-indicator {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: calc((100% - 20px) / 3);
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
      radial-gradient(circle at top, rgba(255, 84, 186, 0.26), transparent 60%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 12px 24px rgba(0, 0, 0, 0.24);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), width 0.24s ease;
    pointer-events: none;
  }

  .ax-bottom-nav a {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 66px;
    padding: 8px 6px;
    color: rgba(234, 238, 255, 0.72);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.24s ease, transform 0.24s ease;
  }

  .ax-bottom-nav a span {
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  .ax-bottom-nav a.is-active {
    color: #fff;
    background: none;
    margin: 0;
  }

  .ax-bottom-nav a.is-active svg {
    transform: translateY(-1px);
  }

  .ax-bottom-nav svg {
    width: 22px;
    height: 22px;
    transition: transform 0.24s ease;
  }

  .ax-modal {
    padding: 12px;
    align-items: end;
  }

  .ax-modal-dialog,
  .ax-modal-dialog--compact {
    width: min(100vw - 12px, 100%);
    max-height: min(88vh, 920px);
    border-radius: 24px 24px 20px 20px;
  }

  .ax-modal-head-copy h2,
  .ax-flow-card h3 {
    font-size: 26px;
  }

  .ax-step-actions--split {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Final polish pass for auth flows and mobile nav */
.auth-card {
  border-radius: 24px;
}

.step-indicator {
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.step-indicator span {
  height: 6px;
  opacity: 0.38;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.step-indicator span.is-active {
  opacity: 1;
  transform: scaleY(1.08);
}

.auth-step {
  display: grid;
  gap: 16px;
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-step.is-active {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  animation: none;
}

.auth-step label {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.auth-step input,
.auth-step select,
.auth-step textarea {
  width: 100%;
}

@media (max-width: 760px) {
  .auth-card {
    border-radius: 22px;
  }

  .step-indicator {
    gap: 6px;
  }

  .ax-bottom-nav {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    transform: none !important;
    padding: 8px !important;
    border-radius: 24px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    z-index: 1000 !important;
  }

  .ax-bottom-nav-indicator {
    display: none !important;
  }

  .ax-bottom-nav a {
    min-height: 58px !important;
    border-radius: 16px !important;
  }

  .ax-bottom-nav a.is-active {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
      radial-gradient(circle at top, rgba(255, 84, 186, 0.18), transparent 58%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 10px 26px rgba(0, 0, 0, 0.18);
  }

  .ax-bottom-nav svg {
    width: 20px !important;
    height: 20px !important;
    transform: none !important;
  }
}

/* Auth flow overrides */
body.auth-page .auth-stage-grid--single {
  width: min(100%, 460px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr);
}

body.auth-page .auth-stage-grid--single .auth-step {
  display: none;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

body.auth-page .auth-stage-grid--single .auth-step.is-active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: auth-step-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.auth-page .auth-stage-grid--signup,
body.auth-page .auth-stage-grid--login,
body.auth-page .auth-stage-grid--telegram {
  grid-template-columns: minmax(0, 1fr);
}

body.auth-page .auth-stage-connector,
body.auth-page .auth-signup-head-art,
body.auth-page .auth-preview-card {
  display: none !important;
}

body.auth-page .auth-figure,
body.auth-page .auth-figure--mascot,
body.auth-page .auth-figure--signup,
body.auth-page .auth-figure--verify {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.auth-page .auth-telegram-wait[hidden] {
  display: none !important;
}

body.auth-page .auth-telegram-wait.is-visible {
  display: block;
  animation: auth-step-in 320ms ease;
}

body.auth-page .auth-page-brand strong {
  font-family: "Space Grotesk", "Inter", sans-serif;
}

body.auth-page .auth-head-copy {
  max-width: 640px;
}

body.auth-page .auth-signup-head {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

body.auth-page .auth-brandmark {
  justify-content: center;
}

body.auth-page .auth-benefit-strip {
  width: min(100%, 1120px);
  margin: 0 auto;
}

body.auth-page .auth-inline-row {
  align-items: center;
}

body.auth-page .auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 0 !important;
  width: auto !important;
  color: #d2cde0;
  font-size: 14px;
  line-height: 1.2;
}

body.auth-page .auth-check input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
  accent-color: #ff2ea0;
  cursor: pointer;
}

body.auth-page .auth-check span {
  display: inline-block;
  transform: translateY(1px);
}

body.auth-page .auth-check input[type="checkbox"]:focus-visible {
  outline: 1px solid rgba(255, 46, 160, 0.32);
  outline-offset: 2px;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  flex-wrap: wrap;
}

.nav-actions {
  justify-content: flex-end;
}

.site-footer {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto 28px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(12, 9, 31, 0.88), rgba(9, 8, 24, 0.94)),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.ax-cabinet-page .site-footer {
  width: calc(var(--ax-shell-width) - var(--ax-sidebar-width) - 18px);
  margin:
    0
    0
    28px
    calc((100vw - var(--ax-shell-width)) / 2 + var(--ax-sidebar-width) + 18px);
}

.site-footer-copy {
  display: grid;
  gap: 8px;
}

.site-footer-copy strong {
  color: #fff;
  font-size: 18px;
}

.site-footer-copy p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer-links a,
.legal-link,
.support-card-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.site-footer-links a:hover,
.legal-link:hover,
.support-card-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.landing-legal-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.legal-page,
.support-page {
  padding-top: 18px;
}

.legal-shell,
.support-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.legal-hero {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(97, 240, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(14, 10, 33, 0.96), rgba(9, 8, 24, 0.96));
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #ff82ca;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 16px 0 12px;
  color: #fff;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
}

.legal-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.legal-card,
.support-card {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(12, 9, 29, 0.94), rgba(7, 7, 20, 0.96)),
    rgba(255, 255, 255, 0.02);
}

.legal-card h2,
.support-card strong {
  margin: 0 0 14px;
  color: #fff;
}

.support-card {
  display: grid;
  gap: 12px;
}

.support-card-label {
  color: #ff82ca;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-card strong {
  font-size: clamp(28px, 4vw, 40px);
}

.legal-card p,
.support-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-list li + li {
  margin-top: 8px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px) {
  .topbar,
  .nav {
    align-items: flex-start;
  }

  .nav {
    flex-direction: column;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
  }

  .site-footer,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
    justify-content: stretch;
  }

  .site-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .legal-hero,
  .legal-card,
  .support-card {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .site-footer {
    width: min(100%, calc(100% - 24px));
    padding: 20px;
    border-radius: 20px;
  }

  .ax-cabinet-page .site-footer {
    width: min(100%, calc(100% - 24px));
    margin: 0 auto 18px;
  }

  .site-footer-links a,
  .support-card-button,
  .legal-link {
    width: 100%;
  }

  .landing-legal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.site-subpage > .topbar,
  body.site-subpage main,
  body.site-subpage > .site-footer {
    width: min(100%, calc(100% - 24px));
  }

  body.site-subpage > .topbar {
    margin-top: 12px;
    padding: 16px 18px;
    border-radius: 22px;
  }

  body.site-subpage main {
    padding: 24px 0 40px;
  }

  body.site-subpage .subdash-head,
  body.site-subpage .legal-hero {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .subpage-info-grid {
    grid-template-columns: 1fr;
  }

  .subpage-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
