:root {
  color-scheme: dark;
  --bg: #080403;
  --bg-soft: #100806;
  --surface: #17100d;
  --surface-raised: #21150f;
  --surface-light: #f4e7da;
  --ink: #fff4ea;
  --ink-dark: #1b0c07;
  --muted: #a59085;
  --muted-dark: #725c51;
  --line: rgba(255, 162, 104, 0.1);
  --line-strong: rgba(255, 176, 117, 0.19);
  --accent: #ff5c24;
  --accent-deep: #c93114;
  --blue: #ff9a5c;
  --orange: #ffc06f;
  --danger: #ff382e;
  --success: #ffad5c;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --sidebar-width: 248px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% -8%, rgba(255, 75, 24, 0.16), transparent 28rem),
    radial-gradient(circle at 15% 42%, rgba(160, 24, 7, 0.07), transparent 32rem),
    linear-gradient(180deg, #090403 0%, #080403 54%, #0d0604 100%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

body.app-mode {
  background:
    radial-gradient(circle at 85% 4%, rgba(255, 72, 21, 0.09), transparent 30rem),
    #0b0604;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 122, 53, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 34%, rgba(255, 75, 24, 0.15) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 77%, rgba(255, 159, 82, 0.12) 0 1px, transparent 2px);
  background-size: 170px 190px, 230px 210px, 290px 260px;
  content: "";
  opacity: 0.8;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.is-hidden {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface-light);
  color: var(--ink-dark);
  transform: translateY(-150%);
  transition: transform 180ms var(--ease-out);
}

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

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  padding: 8px 10px 8px 20px;
  border: 1px solid rgba(255, 143, 86, 0.14);
  border-radius: 18px;
  background: rgba(17, 9, 6, 0.8);
  box-shadow: 0 18px 60px rgba(35, 5, 0, 0.32), inset 0 1px 0 rgba(255, 202, 161, 0.035);
  backdrop-filter: blur(20px) saturate(145%);
  transform: translateX(-50%);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.wordmark-mark {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(145deg, #ffb23e 0%, #ff5c24 48%, #ad160b 100%);
  box-shadow: 0 0 24px rgba(255, 70, 22, 0.24), inset 0 0 0 1px rgba(255, 225, 193, 0.34);
}

.wordmark-mark::before,
.wordmark-mark::after,
.wordmark-mark i {
  position: absolute;
  content: "";
  background: var(--ink-dark);
}

.wordmark-mark::before {
  width: 4px;
  height: 17px;
  left: 8px;
  border-radius: 2px;
}

.wordmark-mark::after {
  width: 4px;
  height: 17px;
  right: 8px;
  border-radius: 2px;
}

.wordmark-mark i {
  width: 12px;
  height: 4px;
  border-radius: 2px;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #b7bdc7;
  font-size: 13px;
}

.public-nav a,
.site-footer a {
  transition: color 160ms ease;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: -0.01em;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.button:active,
.inline-action:active,
.app-nav-link:active,
.quick-action-grid button:active {
  transform: scale(0.97);
}

.button-primary {
  background: linear-gradient(135deg, #ff8b3d 0%, var(--accent) 52%, #e43818 100%);
  color: var(--ink-dark);
  box-shadow: 0 12px 38px rgba(255, 66, 20, 0.2), inset 0 1px 0 rgba(255, 236, 211, 0.34);
}

.button-light {
  background: var(--surface-light);
  color: var(--ink-dark);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
}

.button-danger {
  border-color: rgba(255, 118, 111, 0.24);
  background: rgba(255, 118, 111, 0.08);
  color: #ffaaa5;
}

.button-quiet {
  color: #c6cad0;
}

.button-large {
  min-height: 52px;
  padding-inline: 22px;
  border-radius: 14px;
  font-size: 14px;
}

.button-full {
  width: 100%;
}

.button.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.hero-section {
  display: grid;
  min-height: 770px;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: 70px;
  padding-top: 124px;
  padding-bottom: 70px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.status-pill,
.soft-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #c0c6ce;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.status-pill span,
.connection-row i,
#topbarStatus i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 92, 36, 0.1), 0 0 14px rgba(255, 81, 28, 0.48);
}

.hero-copy h1 {
  max-width: 680px;
  margin: 26px 0 22px;
  font-size: clamp(3.7rem, 6vw, 6.6rem);
  font-weight: 720;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.hero-copy h1 em {
  color: var(--accent);
  font-style: normal;
  font-weight: 570;
  text-shadow: 0 0 42px rgba(255, 69, 20, 0.19);
}

.hero-copy > p {
  max-width: 550px;
  margin: 0;
  color: #a9afb9;
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.text-link,
.inline-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  color: #c8ccd2;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: color 160ms ease, transform 140ms var(--ease-out);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 48px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  margin-left: -7px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: #343b45;
  color: #dbe0e6;
  font-size: 9px;
  font-weight: 800;
}

.avatar-stack span:first-child {
  margin-left: 0;
  background: var(--accent);
  color: var(--ink-dark);
}

.hero-note p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.hero-note strong {
  color: #dadddf;
  font-size: 12px;
}

.product-stage {
  position: relative;
  min-height: 560px;
  perspective: 1200px;
}

.product-stage::before {
  position: absolute;
  top: -24px;
  right: -45px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, transparent 0 28%, rgba(255, 52, 14, 0.22) 42%, rgba(255, 171, 72, 0.12) 51%, transparent 66% 100%);
  content: "";
  filter: blur(8px);
  mask: radial-gradient(circle, transparent 0 58%, #000 62% 67%, transparent 72%);
  opacity: 0.75;
  pointer-events: none;
  transform: rotate(-9deg);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.6;
}

.orb-one {
  top: 55px;
  right: 20px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 65, 17, 0.29), rgba(168, 25, 7, 0.08) 42%, transparent 70%);
}

.orb-two {
  bottom: 15px;
  left: 30px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 148, 60, 0.17), rgba(255, 49, 14, 0.05) 46%, transparent 70%);
}

.preview-window {
  position: absolute;
  top: 68px;
  right: -45px;
  width: 650px;
  overflow: hidden;
  border: 1px solid rgba(255, 147, 91, 0.18);
  border-radius: 22px;
  background: #130a07;
  box-shadow: -30px 40px 100px rgba(30, 3, 0, 0.58), 0 0 70px rgba(255, 57, 14, 0.055);
  transform: rotateY(-7deg) rotateX(3deg) rotateZ(0.7deg);
  transform-origin: center;
}

.preview-topbar {
  display: flex;
  height: 52px;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.preview-logo {
  position: relative;
  width: 21px;
  height: 21px;
  border-radius: 6px;
  background: linear-gradient(145deg, #ffb13d, #ff4f1e 55%, #a81409);
}

.preview-logo::before,
.preview-logo::after,
.preview-logo i {
  position: absolute;
  content: "";
  background: #1b0c07;
}

.preview-logo::before,
.preview-logo::after {
  top: 5px;
  width: 3px;
  height: 11px;
  border-radius: 2px;
}

.preview-logo::before { left: 6px; }
.preview-logo::after { right: 6px; }
.preview-logo i { top: 9px; left: 7px; width: 7px; height: 3px; }

.preview-address {
  color: #646c77;
  font-size: 10px;
}

.window-dots {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #343b44;
}

.preview-body {
  display: grid;
  min-height: 410px;
  grid-template-columns: 135px 1fr;
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 38px 22px;
  border-right: 1px solid var(--line);
}

.preview-line {
  display: block;
  height: 6px;
  border-radius: 4px;
  background: #343a44;
}

.preview-line.wide { width: 82px; }
.preview-line.medium { width: 65px; }
.preview-line.short { width: 48px; }
.preview-line.active { background: var(--accent); box-shadow: -8px 0 0 rgba(255, 92, 36, 0.17), 0 0 12px rgba(255, 71, 20, 0.24); }

.preview-content {
  padding: 38px 34px 34px;
  background: radial-gradient(circle at 70% 0, rgba(255, 91, 35, 0.12), transparent 240px);
}

.preview-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.preview-welcome small,
.preview-card small,
.floating-chip small {
  display: block;
  color: #737b87;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preview-welcome strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.preview-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 92, 36, 0.11);
  color: var(--accent);
  font-size: 8px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.preview-card {
  min-height: 135px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.preview-card strong {
  display: block;
  margin: 13px 0 5px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.preview-card > span {
  color: #707984;
  font-size: 8px;
}

.accent-card {
  border-color: rgba(255, 111, 50, 0.16);
  background: linear-gradient(145deg, rgba(255, 81, 28, 0.14), rgba(117, 19, 5, 0.04) 62%, rgba(255, 255, 255, 0.018));
}

.progress-track {
  height: 3px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track i {
  display: block;
  width: 73%;
  height: 100%;
  background: var(--accent);
}

.connection-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.preview-news-card {
  min-height: 100px;
  grid-column: 1 / -1;
}

.preview-news-card strong {
  margin-bottom: 7px;
  font-size: 14px;
}

.floating-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(27, 14, 9, 0.92);
  box-shadow: 0 18px 45px rgba(30, 3, 0, 0.46), inset 0 1px 0 rgba(255, 183, 132, 0.04);
  backdrop-filter: blur(16px);
  color: #d9dde2;
  font-size: 9px;
  line-height: 1.45;
}

.floating-chip > i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #ff9c44, var(--accent));
  color: var(--ink-dark);
  font-style: normal;
  font-weight: 800;
}

.floating-chip small {
  margin-bottom: 2px;
}

.chip-secure { bottom: 48px; left: -7px; }
.chip-update { top: 35px; right: -18px; }
.chip-update > i { background: #2c150d; color: #ffb36b; }

.signal-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.signal-grid p {
  margin: 0;
  padding: 27px 24px;
  border-right: 1px solid var(--line);
}

.signal-grid p:first-child { padding-left: 0; }
.signal-grid p:last-child { border: 0; }
.signal-grid strong,
.signal-grid span { display: block; }
.signal-grid strong { color: #dedfe0; font-size: 12px; }
.signal-grid span { margin-top: 4px; color: #656d78; font-size: 10px; }

.content-section {
  padding-top: 135px;
  padding-bottom: 40px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.start-panel h2 {
  margin: 12px 0 16px;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 660;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.section-heading > p:not(.eyebrow),
.row-heading > p,
.view-intro > p:last-child,
.welcome-line > div > p:last-child {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.row-heading,
.row-intro {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

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

.row-heading > p {
  padding-bottom: 8px;
  text-align: right;
  font-size: 13px;
}

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

.feature-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 130, 71, 0.045), rgba(255, 255, 255, 0.012));
}

.feature-card::before,
.plan-card::before,
.surface-card::before {
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 110, 48, 0.2), transparent);
  content: "";
  pointer-events: none;
}

.feature-card::after {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 72, 24, 0.13), transparent 68%);
  right: -80px;
  bottom: -100px;
  content: "";
}

.feature-large {
  display: grid;
  min-height: 430px;
  grid-column: 1 / -1;
  grid-template-columns: 54px 1fr 0.8fr;
  align-items: center;
  gap: 32px;
}

.feature-icon {
  align-self: flex-start;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 111, 47, 0.24);
  border-radius: 14px;
  background: rgba(255, 73, 24, 0.1);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.feature-icon.warm { border-color: rgba(255, 184, 96, 0.22); background: rgba(255, 146, 58, 0.09); color: var(--orange); }
.feature-icon.cool { border-color: rgba(255, 82, 35, 0.22); background: rgba(160, 25, 8, 0.1); color: #ff7650; }

.feature-card h3 {
  max-width: 520px;
  margin: 10px 0 16px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 640;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.feature-card > p,
.feature-card > div > p:last-child {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.mini-subscription {
  position: relative;
  z-index: 2;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #1b0e09, #110907);
  box-shadow: 0 24px 50px rgba(35, 4, 0, 0.36);
}

.mini-subscription > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c5cbd2;
  font-size: 10px;
}

.mini-subscription > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.mini-subscription strong {
  display: block;
  margin-top: 30px;
  font-size: 43px;
  letter-spacing: -0.06em;
}

.mini-subscription small {
  color: #6e7681;
}

.mini-subscription > div {
  height: 4px;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
}

.mini-subscription > div i {
  display: block;
  width: 73%;
  height: 100%;
  background: var(--accent);
}

.telegram-demo,
.version-demo {
  position: absolute;
  right: 36px;
  bottom: 34px;
  left: 36px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(17, 8, 5, 0.8);
}

.telegram-demo > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--blue);
  color: #101722;
  font-weight: 900;
}

.telegram-demo div {
  display: flex;
  flex-direction: column;
}

.telegram-demo strong { font-size: 12px; }
.telegram-demo small { color: #69717c; font-size: 9px; }
.telegram-demo > i { margin-left: auto; color: var(--accent); font-style: normal; }

.version-demo {
  justify-content: space-between;
  font-size: 12px;
}

.version-demo span {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 800;
}

.version-demo i {
  color: #6b737e;
  font-size: 9px;
  font-style: normal;
}

.public-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.public-news-card,
.skeleton-card {
  min-height: 340px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.public-news-card {
  display: flex;
  flex-direction: column;
}

.news-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5e6671;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.news-index i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.public-news-card h3 {
  margin: auto 0 15px;
  font-size: 23px;
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.public-news-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.public-news-card button {
  align-self: flex-start;
}

.skeleton-card {
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.045) 50%, transparent 80%);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.5s linear infinite;
}

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

.plans-section {
  margin-top: 100px;
  padding-bottom: 120px;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 108%, rgba(255, 57, 16, 0.1), transparent 28rem),
    #100806;
}

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

.plan-card {
  position: relative;
  display: flex;
  min-height: 455px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, #1a0e0a, #120907);
}

.plan-card.featured {
  border-color: rgba(255, 99, 40, 0.48);
  background: linear-gradient(160deg, rgba(255, 76, 24, 0.15), #1b0e09 38%, #110806 100%);
  box-shadow: 0 28px 70px rgba(35, 3, 0, 0.38), 0 0 54px rgba(255, 54, 14, 0.055);
}

.popular-label {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9e42, #ff4d1c);
  color: var(--ink-dark);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-number {
  color: #5c6470;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.plan-card h3 {
  margin: 40px 0 5px;
  font-size: 28px;
  font-weight: 640;
  letter-spacing: -0.045em;
}

.plan-period {
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.plan-price {
  display: block;
  margin-top: 24px;
  color: #e7e9e5;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.plan-card > p {
  min-height: 50px;
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.plan-card ul {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bcc1c8;
  font-size: 12px;
}

.plan-card li::before {
  color: var(--accent);
  content: "✓";
  font-size: 11px;
}

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

.plans-note {
  margin: 30px 0 0;
  color: #6f7782;
  text-align: center;
  font-size: 12px;
}

.plans-note a {
  color: #cfd3d8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.start-panel {
  display: flex;
  min-height: 370px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  padding: 55px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 82, 29, 0.18), transparent 240px),
    radial-gradient(circle at 15% 105%, rgba(139, 20, 6, 0.12), transparent 260px),
    #190d09;
}

.start-panel h2 {
  margin-bottom: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 30px;
  padding-top: 70px;
  padding-bottom: 45px;
  color: #747c87;
  font-size: 11px;
}

.site-footer > div {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.site-footer .wordmark { color: var(--ink); }
.site-footer small { text-align: right; }

.reveal-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Account application */
.account-app {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar-width) 1fr;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 18px 18px;
  border-right: 1px solid var(--line);
  background: rgba(14, 7, 5, 0.97);
  backdrop-filter: blur(20px);
}

.wordmark-button {
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.nav-caption {
  margin: 38px 12px 10px;
  color: #555e6a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.app-nav {
  display: grid;
  gap: 4px;
}

.app-nav-link {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7e8793;
  cursor: pointer;
  font-size: 12px;
  font-weight: 630;
  text-align: left;
  transition: transform 120ms var(--ease-out), background-color 150ms ease, color 150ms ease;
}

.app-nav-link.active {
  background: rgba(255, 255, 255, 0.055);
  color: #f1f2ee;
}

.nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #727b86;
  font-size: 15px;
}

.app-nav-link.active .nav-icon {
  color: var(--accent);
}

.sidebar-profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.profile-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 105, 43, 0.28);
  border-radius: 10px;
  background: rgba(255, 73, 23, 0.11);
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.sidebar-profile strong,
.sidebar-profile small {
  display: block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile strong { font-size: 11px; }
.sidebar-profile small { margin-top: 2px; color: #626b77; font-size: 9px; }
.sidebar-profile > button { border: 0; background: none; color: #69727e; cursor: pointer; }

.app-content {
  min-width: 0;
  grid-column: 2;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 7, 5, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
}

.app-topbar h1 {
  margin: 3px 0 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.topbar-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

#topbarStatus {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #747d88;
  font-size: 10px;
}

.topbar-profile .profile-avatar {
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.app-views {
  width: min(1240px, 100%);
  margin-inline: auto;
  padding: 48px 40px 80px;
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.view-intro {
  margin-bottom: 32px;
}

.view-intro h2,
.welcome-line h2 {
  margin: 9px 0 8px;
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.view-intro > p:last-child,
.welcome-line > div > p:last-child {
  font-size: 13px;
}

.welcome-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 36px;
}

.account-stats-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.account-stat,
.surface-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.026);
}

.account-stat {
  min-height: 196px;
  padding: 26px;
}

.account-stat.highlight {
  border-color: rgba(255, 101, 42, 0.16);
  background: linear-gradient(145deg, rgba(255, 75, 23, 0.13), rgba(109, 16, 5, 0.035) 60%, rgba(255, 255, 255, 0.015));
}

.stat-label {
  display: block;
  color: #69727e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-stat > strong {
  display: block;
  margin: 25px 0 4px;
  font-size: 25px;
  font-weight: 640;
  letter-spacing: -0.045em;
}

.account-stat > p {
  min-height: 20px;
  margin: 0;
  color: #777f89;
  font-size: 11px;
}

.account-stat .inline-action {
  margin-top: 22px;
  color: var(--accent);
  font-size: 10px;
}

.stat-progress {
  height: 3px;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: transform 300ms var(--ease-out);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.surface-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.card-heading h3,
.settings-card h3,
.form-help h3 {
  margin: 7px 0 0;
  font-size: 20px;
  font-weight: 630;
  letter-spacing: -0.035em;
}

.surface-card > p,
.settings-card > div > p:last-child,
.form-help p {
  color: #818995;
  font-size: 12px;
  line-height: 1.65;
}

.download-card {
  background: linear-gradient(150deg, rgba(255, 119, 55, 0.09), rgba(111, 18, 5, 0.025) 62%, rgba(255, 255, 255, 0.012));
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.download-actions small {
  color: #5f6874;
  font-size: 9px;
}

.account-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.account-news-card {
  min-height: 255px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.account-news-card time {
  color: #626b77;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-news-card h3 {
  margin: 34px 0 12px;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.account-news-card p {
  color: #7c8490;
  font-size: 12px;
}

.account-news-card button {
  margin-top: 15px;
}

.app-plans .plan-card {
  min-height: 420px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.settings-card {
  position: relative;
  min-height: 470px;
}

.settings-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
  font-weight: 800;
}

.telegram-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px dashed rgba(255, 106, 44, 0.31);
  border-radius: 12px;
  background: rgba(255, 69, 20, 0.055);
}

.telegram-link-box code {
  color: var(--accent);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.telegram-link-box span {
  color: #707984;
  font-size: 9px;
}

.settings-actions,
.form-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.stack-form {
  display: grid;
  gap: 15px;
  margin-top: 28px;
}

label {
  display: grid;
  gap: 7px;
}

label > span {
  color: #9ba2ac;
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.025em;
}

label > small {
  color: #5e6672;
  font-size: 9px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
  background: rgba(3, 5, 8, 0.28);
  color: var(--ink);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

input,
select {
  height: 44px;
  padding: 0 13px;
}

textarea {
  min-height: 100px;
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 102, 40, 0.62);
  background: rgba(255, 70, 22, 0.03);
  box-shadow: 0 0 0 3px rgba(255, 72, 21, 0.09);
}

select option {
  background: #151a21;
}

.form-status {
  min-height: 18px;
  margin: 13px 0 0;
  color: #9099a4;
  font-size: 10px;
}

.form-status.error {
  color: #ff9c96;
}

.admin-stats {
  grid-template-columns: repeat(4, 1fr);
}

.admin-stats .account-stat {
  min-height: 160px;
}

.admin-stats .account-stat > strong {
  font-variant-numeric: tabular-nums;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 28px;
}

.quick-action-grid button {
  min-height: 90px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: #aeb4bc;
  cursor: pointer;
  font-size: 10px;
  transition: transform 130ms var(--ease-out), border-color 150ms ease, background-color 150ms ease;
}

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

.clean-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: #6e7782;
  font-size: 11px;
}

.clean-list li:last-child { border: 0; }
.clean-list strong { color: #c2c7ce; font-weight: 620; }

.table-card {
  padding: 0;
  overflow: hidden;
}

.table-toolbar {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.data-table th {
  padding: 13px 18px;
  color: #59626e;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 17px 18px;
  border-top: 1px solid var(--line);
  color: #9da4ad;
  vertical-align: middle;
}

.user-cell strong,
.user-cell small {
  display: block;
}

.user-cell strong { color: #e0e2df; font-size: 12px; }
.user-cell small { margin-top: 3px; color: #5f6873; font-size: 9px; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.data-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #89919b;
  font-size: 8px;
  font-weight: 700;
}

.data-badge.ok { background: rgba(255, 159, 75, 0.09); color: #ffba78; }
.data-badge.info { background: rgba(255, 97, 40, 0.09); color: #ff9b70; }
.data-badge.danger { background: rgba(255, 118, 111, 0.08); color: #ff9d97; }
.data-badge.admin { background: rgba(255, 73, 24, 0.1); color: var(--accent); }

.row-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.mini-button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #929aa5;
  cursor: pointer;
  font-size: 8px;
}

.mini-button.danger { color: #ff9690; }
.mobile-account-list { display: none; }

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
}

.admin-form {
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-help {
  align-self: start;
  display: grid;
  gap: 10px;
}

.help-number {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.form-help code {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #b8bec6;
  font-size: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
}

.checkbox-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkbox-label span {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label i {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #2a3039;
  transition: background-color 160ms ease;
}

.checkbox-label i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #818995;
  content: "";
  transition: transform 180ms var(--ease-out), background-color 160ms ease;
}

.checkbox-label input:checked + span i { background: rgba(255, 83, 28, 0.27); }
.checkbox-label input:checked + span i::after { background: var(--accent); transform: translateX(14px); }

.editor-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  gap: 14px;
  align-items: start;
}

.admin-news-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.admin-news-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.admin-news-item h4 {
  margin: 0;
  font-size: 12px;
}

.admin-news-item p {
  margin: 6px 0 11px;
  color: #69727e;
  font-size: 9px;
}

.admin-news-item > div {
  display: flex;
  gap: 6px;
}

/* Dialogs and feedback */
.modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.modal::backdrop {
  background: rgba(9, 2, 0, 0.82);
  backdrop-filter: blur(9px);
}

.modal-shell {
  position: relative;
  width: min(440px, 100%);
  margin: max(2vh, 20px) auto;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(25, 13, 9, 0.985);
  box-shadow: 0 35px 100px rgba(27, 3, 0, 0.64), 0 0 70px rgba(255, 55, 15, 0.05);
  transform: scale(1);
  transform-origin: center;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  @starting-style {
    opacity: 0;
    transform: scale(0.96);
  }
}

.modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: #7d8590;
  cursor: pointer;
  font-size: 20px;
}

.modal-wordmark {
  margin-bottom: 36px;
}

.auth-heading h2,
.news-modal h2 {
  margin: 9px 0 8px;
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -0.05em;
}

.auth-heading > p:last-child,
.modal-summary {
  margin: 0;
  color: #7e8792;
  font-size: 12px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 26px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.auth-tabs button {
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #707985;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.auth-tabs button.active {
  background: #242a33;
  color: #e4e6e3;
}

.auth-form {
  margin-top: 22px;
}

.auth-terms {
  margin: 20px 20px 0;
  color: #565e69;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.news-modal .modal-shell {
  width: min(680px, 100%);
  margin-top: max(5vh, 30px);
}

.modal-summary {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}

.news-full-content {
  padding-top: 24px;
  color: #b0b6be;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: grid;
  width: min(340px, calc(100% - 40px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(31, 16, 11, 0.97);
  box-shadow: 0 18px 45px rgba(30, 3, 0, 0.42);
  color: #dce0e4;
  font-size: 11px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  @starting-style {
    opacity: 0;
    transform: translateY(8px);
  }
}

.toast.error {
  border-color: rgba(255, 118, 111, 0.25);
}

.toast.leaving {
  opacity: 0;
  transform: translateY(6px);
}

.empty-state {
  padding: 35px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: #6b7480;
  font-size: 12px;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .public-nav a:hover,
  .site-footer a:hover,
  .text-link:hover,
  .inline-action:hover { color: var(--accent); }
  .button:hover { transform: translateY(-1px); }
  .button:active { transform: scale(0.97); }
  .button-primary:hover { background: linear-gradient(135deg, #ffa350, #ff6a2d 55%, #ed401c); }
  .button-light:hover { background: #ffffff; }
  .button-secondary:hover { border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.065); }
  .app-nav-link:hover { background: rgba(255, 255, 255, 0.035); color: #c6cbd2; }
  .plan-card { transition: transform 180ms var(--ease-out), border-color 180ms ease; }
  .plan-card:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-3px); }
  .plan-card.featured:hover { border-color: rgba(255, 103, 43, 0.7); }
  .public-news-card { transition: transform 180ms var(--ease-out), border-color 180ms ease; }
  .public-news-card:hover { border-color: rgba(255, 255, 255, 0.18); transform: translateY(-3px); }
  .quick-action-grid button:hover { border-color: rgba(255, 104, 43, 0.3); background: rgba(255, 72, 22, 0.05); color: var(--accent); }
  .mini-button:hover { border-color: var(--line-strong); color: #dce0e4; }
}

@media (max-width: 1050px) {
  .hero-section {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 165px;
  }
  .hero-copy { max-width: 700px; }
  .product-stage { width: min(720px, 100%); min-height: 550px; margin-inline: auto; }
  .preview-window { right: 3%; width: 94%; }
  .chip-update { right: 0; }
  .signal-grid { grid-template-columns: 1fr 1fr; }
  .signal-grid p:nth-child(2) { border-right: 0; }
  .signal-grid p:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .signal-grid p:nth-child(3) { padding-left: 0; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .account-stats-grid { grid-template-columns: 1fr 1fr; }
  .account-stat.highlight { grid-column: 1 / -1; }
  .editor-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .public-nav { display: none; }
  .header-actions .button-quiet { display: none; }
  .feature-grid,
  .public-news-grid,
  .plans-grid,
  .settings-grid,
  .dashboard-grid,
  .account-news-grid { grid-template-columns: 1fr; }
  .feature-large { grid-template-columns: 50px 1fr; }
  .feature-large .mini-subscription { grid-column: 1 / -1; }
  .start-panel { align-items: flex-start; flex-direction: column; }
  .account-app { display: block; }
  .app-sidebar {
    width: min(290px, 86vw);
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.5);
    transform: translateX(-105%);
    transition: transform 220ms var(--ease-out);
  }
  .menu-open .app-sidebar { transform: translateX(0); }
  .app-content { width: 100%; }
  .mobile-menu-button { display: grid; place-items: center; }
  .app-topbar { justify-content: flex-start; gap: 16px; padding-inline: 20px; }
  .topbar-profile { margin-left: auto; }
  #topbarStatus { display: none; }
  .app-views { padding-inline: 20px; }
  .form-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section-shell { width: min(100% - 28px, 1180px); }
  .site-header { top: 10px; width: calc(100% - 20px); min-height: 58px; padding-left: 14px; border-radius: 15px; }
  .site-header .wordmark > span:last-child { display: none; }
  .header-actions .button { min-height: 38px; padding-inline: 13px; font-size: 11px; }
  .hero-section { gap: 35px; padding-top: 135px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 12.5vw, 3.4rem); }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-note { margin-top: 35px; }
  .product-stage { min-height: 375px; }
  .preview-window { top: 35px; right: -4%; width: 108%; transform: rotateY(-4deg) rotateX(2deg); }
  .preview-body { min-height: 295px; grid-template-columns: 76px 1fr; }
  .preview-sidebar { padding: 25px 14px; }
  .preview-line.wide { width: 45px; }
  .preview-line.medium { width: 36px; }
  .preview-line.short { width: 27px; }
  .preview-content { padding: 24px 18px; }
  .preview-card { min-height: 105px; padding: 14px; }
  .preview-card strong { font-size: 14px; }
  .preview-news-card { display: none; }
  .floating-chip { display: none; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-grid p { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-grid p:nth-child(3) { padding-left: 0; }
  .content-section { padding-top: 95px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: 2.7rem; }
  .row-heading { align-items: flex-start; flex-direction: column; }
  .row-heading > p { padding: 0; text-align: left; }
  .feature-card { min-height: 390px; padding: 26px; }
  .feature-large { display: block; }
  .feature-large .feature-icon { margin-bottom: 30px; }
  .feature-large .mini-subscription { margin-top: 30px; }
  .feature-card h3 { font-size: 2rem; }
  .telegram-demo,
  .version-demo { right: 25px; bottom: 25px; left: 25px; }
  .plans-section { margin-top: 55px; padding-bottom: 80px; }
  .plan-card { min-height: 420px; }
  .start-panel { min-height: 400px; padding: 34px 26px; }
  .start-panel h2 { font-size: 2.65rem; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > p,
  .site-footer > div { display: none; }
  .welcome-line { align-items: flex-start; flex-direction: column; }
  .account-stats-grid,
  .admin-stats { grid-template-columns: 1fr; }
  .account-stat.highlight { grid-column: auto; }
  .app-topbar h1 { font-size: 16px; }
  .app-topbar .eyebrow { font-size: 8px; }
  .app-views { padding: 35px 14px 70px; }
  .view-intro h2,
  .welcome-line h2 { font-size: 2.25rem; }
  .surface-card { padding: 22px; }
  .download-actions { align-items: flex-start; flex-direction: column; }
  .settings-card { min-height: auto; }
  .table-toolbar { grid-template-columns: 1fr; }
  .table-wrap { display: none; }
  .mobile-account-list { display: grid; gap: 8px; padding: 12px; }
  .mobile-account-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
  .mobile-account-card h3 { margin: 0 0 8px; font-size: 13px; }
  .mobile-account-card p { margin: 8px 0; color: #727b86; font-size: 9px; }
  .mobile-account-card .row-buttons { justify-content: flex-start; margin-top: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .editor-layout { grid-template-columns: minmax(0, 1fr); }
  .modal { padding: 10px; }
  .modal-shell { margin-top: 10px; padding: 28px 22px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-item { opacity: 1; transform: none; transition: opacity 160ms ease; }
  .app-sidebar,
  .modal-shell,
  .toast,
  .button,
  .inline-action,
  .app-nav-link,
  .plan-card,
  .public-news-card { transition-duration: 1ms !important; transform: none !important; }
  .skeleton-card::after { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .app-sidebar,
  .app-topbar,
  .floating-chip { background: #1b0e09; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(255, 255, 255, 0.22); --line-strong: rgba(255, 255, 255, 0.38); --muted: #b9bec6; }
  .site-header,
  .app-sidebar,
  .app-topbar { background: #0b0503; }
}
