:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07080f;
  --bg-2: #0c1020;
  --card: #121628;
  --card-2: #181d32;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f3f5ff;
  --muted: #9aa3c0;
  --link: #c4c9ff;
  --violet: #7c5cff;
  --blue: #4f73ff;
  --cyan: #7cffef;
  --ok: #3ee0a0;
  --promo-bg: linear-gradient(90deg, #24185a, #15204a);
  --hero-glow-a: rgba(124, 92, 255, 0.28);
  --hero-glow-b: rgba(79, 115, 255, 0.22);
  --badge-bg: rgba(255, 255, 255, 0.04);
  --app-card-bg: linear-gradient(180deg, #161b31, #0e1222);
  --power-bg: #1c2238;
  --power-fg: #8b93b3;
  --plan-hot-bg: linear-gradient(180deg, #1a1640, #121628);
  --plan-hot-line: rgba(124, 92, 255, 0.45);
  --nav-open-bg: #0d1120;
  --final-glow: rgba(124, 92, 255, 0.28);
  --grad-a: #9db4ff;
  --grad-b: #c4b5ff;
  --grad-c: #7cffef;
  --font: "Onest", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --radius: 22px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5fb;
  --bg-2: #e7ebf6;
  --card: #ffffff;
  --card-2: #f7f8fd;
  --line: rgba(24, 28, 52, 0.10);
  --ink: #12141c;
  --muted: #5a6278;
  --link: #3d4ae0;
  --violet: #6b4dff;
  --blue: #3d5fff;
  --cyan: #0f9d96;
  --ok: #128a5c;
  --promo-bg: linear-gradient(90deg, #ece8ff, #e4ecff);
  --hero-glow-a: rgba(107, 77, 255, 0.18);
  --hero-glow-b: rgba(61, 95, 255, 0.14);
  --badge-bg: rgba(24, 28, 52, 0.04);
  --app-card-bg: linear-gradient(180deg, #ffffff, #eef1fa);
  --power-bg: #e8ecf6;
  --power-fg: #5a6278;
  --plan-hot-bg: linear-gradient(180deg, #f4f0ff, #ffffff);
  --plan-hot-line: rgba(107, 77, 255, 0.42);
  --nav-open-bg: #ffffff;
  --final-glow: rgba(107, 77, 255, 0.16);
  --grad-a: #3d4fd0;
  --grad-b: #6b4dff;
  --grad-c: #0b8f86;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 3px; }
.meta { color: var(--muted); }
img { display: block; max-width: 100%; height: auto; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  z-index: 30;
}
.skip:focus { top: 12px; }

.promo {
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  background: var(--promo-bg);
  border-bottom: 1px solid var(--line);
}
.promo a { color: var(--cyan); text-decoration: none; }
html[data-theme="light"] .promo a { color: var(--link); }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand img {
  width: 32px;
  height: 32px;
  max-width: none;
  flex-shrink: 0;
  aspect-ratio: 1;
  object-fit: contain;
}
.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 6px 4px;
}
.lang-link:hover { color: var(--ink); }
.theme-btn,
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: block;
  overflow: visible;
}
html[data-theme="light"] .theme-btn .icon-sun { display: none; }
html[data-theme="dark"] .theme-btn .icon-moon { display: none; }
.menu-btn { margin-left: auto; }
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(79, 115, 255, 0.28);
}
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-ghost {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--line);
  color: var(--ink);
}
.top-actions .btn {
  min-height: 42px;
  padding: 0 14px;
  font-size: 14px;
}
.top-actions .btn-ghost {
  box-shadow: none;
}
.btn-lg { min-height: 54px; padding: 0 22px; font-size: 16px; }
.btn-wide { min-width: 280px; }

.hero {
  position: relative;
  padding: 56px 0 0;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto;
  height: 520px;
  background:
    radial-gradient(closest-side, var(--hero-glow-a), transparent 70%),
    radial-gradient(closest-side, var(--hero-glow-b), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--badge-bg);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
.hero h1 {
  max-width: 16em;
  margin: 22px auto 16px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.grad {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b) 45%, var(--grad-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 40rem;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 18px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 22px;
}
.play-badge {
  display: inline-flex;
  line-height: 0;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line);
}
.play-badge img {
  display: block;
  height: 60px;
  width: auto;
}
.play-badge:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
html[lang="en"] .play-badge-ru { display: none; }
html:not([lang="en"]) .play-badge-en { display: none; }
.cta-note {
  text-align: left;
  font-size: 14px;
  font-weight: 650;
}
.cta-note span {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}
.trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px 28px;
  margin: 28px 0 36px;
  color: var(--muted);
  font-size: 14px;
}
.trust b { color: var(--ink); font-weight: 650; }

.app-card {
  width: min(420px, 100%);
  margin: 0 auto -24px;
  background: var(--app-card-bg);
  border: 1px solid var(--line);
  border-radius: 28px 28px 0 0;
  padding: 18px 18px 28px;
  text-align: left;
}
.app-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.app-top img {
  width: 28px;
  height: 28px;
  max-width: none;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 7px;
}
.app-top strong { font-size: 15px; }
.app-top em {
  margin-left: auto;
  font-style: normal;
  color: var(--ok);
  font-size: 13px;
  font-weight: 650;
}
.app-top em::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 6px;
}
.power-wrap {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 18px 0 8px;
}
.power {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 0;
  background: var(--power-bg);
  color: var(--power-fg);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--line);
}
.power.connected {
  background: linear-gradient(160deg, #5b4dff, #4f73ff);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(124, 92, 255, 0.18), 0 16px 40px rgba(79, 115, 255, 0.35);
}
.power svg { width: 48px; height: 48px; }
.phone-label { font-weight: 650; }

section { padding: 88px 0; }
section h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
  font-weight: 800;
}
.sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 38rem;
  margin: 0 0 36px;
}
.center { text-align: center; }
.center .sub { margin-inline: auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); }

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feat h3 { margin: 0 0 8px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.plan.hot {
  background: var(--plan-hot-bg);
  border-color: var(--plan-hot-line);
  box-shadow: 0 18px 50px rgba(79, 115, 255, 0.16);
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 10px;
}
.plan h3 { margin: 0; font-size: 15px; color: var(--muted); font-weight: 650; }
.price {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 10px 0 4px;
}
.price-note { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.plan ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.plan ul li::before { content: "✓ "; color: var(--ok); }
.plan .btn { width: 100%; margin-top: auto; }

.invite-box, .panel, .legal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.invite-box {
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}
.code {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.panel { padding: 24px; }
.panel h3 { margin: 0 0 8px; }
.panel p { margin: 0; color: var(--muted); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 10px 0 0; max-width: 42rem; }

.legal { padding: 40px; max-width: 760px; margin: 32px auto 64px; }
.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 6.4vw, 32px);
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.legal .meta { color: var(--muted); margin: 0 0 24px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal ol, .legal ul { padding-left: 1.25em; }
.legal li { margin: 6px 0; }
.legal a { color: inherit; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; }
.legal th, .legal td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.legal th { color: var(--ink); font-weight: 600; }

.final {
  text-align: center;
  padding: 72px 0 96px;
}
.final .card {
  background:
    radial-gradient(600px 200px at 50% 0%, var(--final-glow), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 48px 24px;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .grow { margin-left: auto; }

.page-hero {
  text-align: left;
  padding: 48px 0 24px;
}
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.04em;
}
.page-hero .lede { margin: 0 0 20px; text-align: left; }

@media (max-width: 900px) {
  .page-hero .wrap { grid-template-columns: 1fr !important; }
  .nav { display: none; }
  .top-actions { margin-left: 0; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: var(--nav-open-bg);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 20px;
    gap: 14px;
    z-index: 21;
  }
  .steps, .grid-6, .plans, .invite-box { grid-template-columns: 1fr; }
  .cta-note { text-align: center; }
  .hero { padding-top: 36px; }
  .legal {
    padding: 22px 18px;
    margin: 16px auto 40px;
    border-radius: 20px;
  }
  .legal h1 { font-size: clamp(1.28rem, 7.2vw, 1.7rem); }
  .legal h2 { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html.embed:not(.cabinet-page) .top,
html.embed .foot,
html.embed .promo,
html.embed .cabinet-hint {
  display: none !important;
}
html.embed main.wrap {
  padding-top: 16px;
  padding-bottom: 32px;
}
html.embed .legal h1 {
  font-size: clamp(1.35rem, 6vw, 1.55rem);
}

html.cabinet-page .foot {
  display: none;
}
html.cabinet-page section {
  padding: 0;
}
html.cabinet-page .top-inner {
  min-height: 40px;
  gap: 8px;
}
html.cabinet-page .brand {
  font-size: 15px;
  gap: 8px;
}
html.cabinet-page .brand img {
  width: 22px;
  height: 22px;
  max-width: none;
  border-radius: 6px;
  aspect-ratio: 1;
  object-fit: contain;
  flex-shrink: 0;
}
html.cabinet-page .theme-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
html.cabinet-page .theme-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
html.cabinet-page .wrap {
  width: min(var(--max), calc(100% - 48px));
}
html.cabinet-page .cabinet-hub {
  padding-top: 20px;
  padding-bottom: 36px;
}

.cabinet-hub {
  max-width: 440px;
  padding-top: 24px;
  padding-bottom: 40px;
}
.cabinet-hub .btn {
  width: 100%;
  min-width: 0;
}
.cabinet-hub .btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.cab-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0 0 14px;
}
.cab-gate.cab-card {
  padding: 28px 24px 26px;
}
html.embed .cab-gate.cab-card {
  padding: 24px 20px 22px;
}
.cab-card h1,
.cab-card h2,
.cab-card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.04em;
}
.cab-gate h1 {
  font-size: 1.75rem;
  margin: 0 0 10px;
}
.cab-gate .meta { margin: 0 0 20px; }
.cab-gate .btn { margin-top: 14px; width: 100%; min-width: 0; }
.cab-gate .btn-ghost { width: 100%; margin-top: 10px; }
.cab-field { margin-top: 16px; }
.cab-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.cab-field label .opt { font-weight: 500; opacity: 0.7; }
.cab-field .hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.cab-gate .cab-field input {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 16px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  min-height: 52px;
}
.cab-gate .cab-field input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--violet) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 18%, transparent);
}
.cab-gate .cab-field input::placeholder {
  color: var(--muted);
  font-weight: 500;
  opacity: 0.75;
}
.cab-tg-slot {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 4px;
  padding: 8px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.cab-tg-slot iframe {
  border: 0 !important;
  width: 100%;
  max-width: 280px;
  height: 40px;
}
.cab-methods { display: grid; gap: 10px; margin-top: 6px; }
.cab-gate { max-width: 420px; margin-inline: auto; }
.cab-card label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.cab-card input {
  width: 100%;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
.cab-method {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.cab-method[hidden] {
  display: none !important;
}
.cab-method:hover {
  border-color: color-mix(in srgb, var(--violet) 45%, var(--line));
}
.cab-method:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.cab-method-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--card-2);
  color: var(--violet);
  font-weight: 800;
  font-size: 15px;
}
.cab-method strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.cab-method em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.cab-method-chev { color: var(--muted); font-size: 18px; font-weight: 500; }
.cab-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.cab-back:hover { color: var(--ink); }
.cab-merge {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line, rgba(127,127,127,.25));
}
.cab-hero {
  position: relative;
  text-align: left;
  padding-right: 84px;
}
.cab-hero .cab-avatar-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  line-height: 0;
  overflow: hidden;
}
.cab-hero .cab-avatar-btn:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.cab-avatar-picker { margin-top: 16px; }
.cab-avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cab-avatar-opt {
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  cursor: pointer;
}
.cab-avatar-opt.is-on { border-color: var(--violet); }
.cab-avatar-opt img {
  display: block;
  width: 64px;
  height: 64px;
  max-width: none;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--line);
}
.cab-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
}
.cab-pill-pay {
  background: color-mix(in srgb, var(--violet) 18%, transparent);
  color: var(--violet);
}
.cab-pill-ad {
  background: color-mix(in srgb, #ff6b7a 16%, transparent);
  color: #ff6b7a;
}
html[data-theme="light"] .cab-pill-ad {
  color: #b3261e;
  background: color-mix(in srgb, #b3261e 12%, transparent);
}
.cab-hero h2 { font-size: 1.75rem; margin: 8px 0 4px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cab-avatar {
  width: 52px;
  height: 52px;
  max-width: none;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line);
  flex-shrink: 0;
}
.cab-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cab-profile .cab-name + .cab-row { border-top: 0; }
.cab-row-label {
  width: 88px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.cab-row-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.cab-row-value.is-empty {
  color: var(--muted);
  font-style: italic;
  font-weight: 500;
}
.cab-row-chev { color: var(--muted); font-weight: 500; }
.cab-row-edit { padding: 0 0 12px; }
.cab-profile input {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.cab-row-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.cabinet-hub .cab-row-actions .btn {
  width: auto;
  flex: 1;
  margin-top: 0;
}
.cab-profile-hint { margin: 4px 0 8px; }
.cab-id {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--violet);
  text-align: left;
  font: inherit;
  font-weight: 700;
  padding: 6px 0 0;
  cursor: pointer;
}
.cab-name {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 16px;
}
.cab-code,
.cab-uid {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  padding: 0;
  cursor: pointer;
}
.cab-code {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.cab-uid {
  margin: 8px 0 6px;
  color: var(--violet);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cab-edit { margin: 0 0 16px; }
.cab-edit .btn { margin-top: 10px; }
.cab-edit input {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.cab-pay-hint { margin-top: 10px; }
.cab-pay-plans {
  display: grid;
  gap: 12px;
}
.cab-pay-plans .btn-wide { min-width: 0; width: 100%; }
.cab-pay-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.cab-pay-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 104px;
  margin: 0;
  padding: 12px 6px 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-2);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.cab-pay-tile[aria-checked="true"] {
  border-color: color-mix(in srgb, var(--violet) 55%, var(--line));
  background: color-mix(in srgb, var(--violet) 12%, var(--card));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 18%, transparent);
}
.cab-pay-tile:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.cab-pay-tile-days {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.cab-pay-tile-price {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.cab-pay-tile-tag {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.cab-friends {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.cab-friends li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.cab-friends li:first-child { border-top: 0; padding-top: 0; }
.cab-friend-days { font-weight: 700; color: var(--violet); flex-shrink: 0; }
.cab-friend-who { min-width: 0; }
.cab-friend-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.cab-friends-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
#pay-history .cab-friends { margin-bottom: 0; }
#pay-history-more {
  margin-top: 8px;
}
.cab-more {
  display: flex;
  flex-direction: column;
  padding: 8px 22px;
}
.cab-more a,
.cab-more .cab-more-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 14px 0;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.cab-more a:first-child,
.cab-more .cab-more-action:first-child { border-top: 0; }
.cab-more a span,
.cab-more .cab-more-action span { color: var(--muted); font-weight: 500; }
.cab-more a:hover,
.cab-more .cab-more-action:hover { color: var(--ink); }
.cab-more #delete-link { color: #e35b6a; }
html[data-theme="light"] .cab-more #delete-link { color: #b3261e; }
html.embed .cabinet-hub { padding-top: 16px; }
