:root {
  color-scheme: dark;
  --bg: #07111d;
  --bg-2: #0b1a2d;
  --panel: rgba(10, 20, 34, 0.72);
  --panel-strong: rgba(10, 20, 34, 0.88);
  --border: rgba(201, 222, 255, 0.12);
  --text: #eef4ff;
  --muted: rgba(238, 244, 255, 0.72);
  --accent: #f3b247;
  --accent-2: #4fa1ff;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 18%, rgba(79, 161, 255, 0.2), transparent 26%),
    radial-gradient(circle at 80% 72%, rgba(243, 178, 71, 0.14), transparent 22%),
    linear-gradient(180deg, #06111c 0%, #081423 38%, #050b13 100%);
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

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

.container {
  width: min(1320px, calc(100% - 24px));
  margin: 0 auto;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  mix-blend-mode: screen;
  z-index: 1;
}

.ambient-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient-scene__orb,
.ambient-scene__beam,
.ambient-scene__glow {
  position: absolute;
  will-change: transform, opacity, filter;
  transform: translate3d(0, 0, 0);
}

.ambient-scene__orb {
  border-radius: 999px;
  filter: blur(24px);
  mix-blend-mode: screen;
  opacity: 0.78;
}

.ambient-scene__orb--a {
  left: -6%;
  top: 8%;
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(79, 161, 255, 0.42) 0%, rgba(79, 161, 255, 0.14) 36%, transparent 72%);
  animation: float-a 26s ease-in-out infinite alternate;
}

.ambient-scene__orb--b {
  right: -10%;
  top: 12%;
  width: 32vw;
  height: 32vw;
  background: radial-gradient(circle, rgba(243, 178, 71, 0.28) 0%, rgba(243, 178, 71, 0.11) 34%, transparent 70%);
  animation: float-b 30s ease-in-out infinite alternate;
}

.ambient-scene__orb--c {
  left: 22%;
  bottom: -10%;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(28, 108, 206, 0.2) 0%, rgba(28, 108, 206, 0.06) 40%, transparent 74%);
  animation: float-c 34s ease-in-out infinite alternate;
}

.ambient-scene__orb--d {
  right: 8%;
  bottom: -8%;
  width: 26vw;
  height: 26vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 36%, transparent 72%);
  animation: float-d 20s ease-in-out infinite alternate;
}

.ambient-scene__beam {
  left: -18%;
  width: 86vw;
  height: 12vw;
  opacity: 0.44;
  transform: rotate(-18deg);
  filter: blur(12px);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 10%, rgba(79, 161, 255, 0.2) 35%, rgba(243, 178, 71, 0.18) 62%, transparent 100%);
}

.ambient-scene__beam--a {
  top: 18%;
  animation: beam-sweep 18s ease-in-out infinite alternate;
}

.ambient-scene__beam--b {
  top: 58%;
  opacity: 0.26;
  width: 72vw;
  animation: beam-sweep-alt 24s ease-in-out infinite alternate;
}

.ambient-scene__glow {
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 14%, transparent 70%);
  filter: blur(8px);
  opacity: 0.66;
}

.ambient-scene__glow--a {
  right: 14%;
  top: 32%;
  width: 16vw;
  height: 16vw;
  animation: pulse-a 12s ease-in-out infinite alternate;
}

.ambient-scene__glow--b {
  left: 38%;
  top: 66%;
  width: 12vw;
  height: 12vw;
  animation: pulse-b 16s ease-in-out infinite alternate;
}

@keyframes float-a {
  0% { transform: translate3d(-1%, -2%, 0) scale(1); opacity: 0.72; }
  100% { transform: translate3d(5%, 4%, 0) scale(1.1); opacity: 0.92; }
}

@keyframes float-b {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.66; }
  100% { transform: translate3d(-4%, 3%, 0) scale(1.12); opacity: 0.88; }
}

@keyframes float-c {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.42; }
  100% { transform: translate3d(2%, -3%, 0) scale(1.08); opacity: 0.7; }
}

@keyframes float-d {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.42; }
  100% { transform: translate3d(-2%, -2%, 0) scale(1.08); opacity: 0.62; }
}

@keyframes beam-sweep {
  0% { transform: translate3d(-1%, -2%, 0) rotate(-18deg); opacity: 0.22; }
  100% { transform: translate3d(3%, 2%, 0) rotate(-15deg); opacity: 0.48; }
}

@keyframes beam-sweep-alt {
  0% { transform: translate3d(2%, 1%, 0) rotate(-18deg); opacity: 0.14; }
  100% { transform: translate3d(-2%, -2%, 0) rotate(-14deg); opacity: 0.34; }
}

@keyframes pulse-a {
  0% { transform: scale(0.92); opacity: 0.42; }
  100% { transform: scale(1.2); opacity: 0.72; }
}

@keyframes pulse-b {
  0% { transform: scale(1); opacity: 0.34; }
  100% { transform: scale(1.28); opacity: 0.62; }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1320px, calc(100% - 28px));
  margin: 12px auto 0;
  padding: 12px 18px;
  background: rgba(5, 11, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand__mark {
  color: var(--text);
  font-size: 1.18rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  margin: 0 auto;
  padding: 0 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a:hover,
.topbar__cta:hover {
  color: var(--text);
}

.topbar__cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.topbar__cta {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.topbar--cabinet {
  margin-bottom: 14px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar__action {
  padding: 11px 16px;
  font-size: 0.93rem;
  white-space: nowrap;
}

.btn:hover,
.topbar__cta:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #09111b;
  background: linear-gradient(135deg, #ffe0a0 0%, #f3b247 55%, #ff8f3c 100%);
  box-shadow: 0 18px 34px rgba(243, 178, 71, 0.24);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn--full {
  width: 100%;
}

.hero {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: 0;
  padding: clamp(72px, 6.8vw, 124px) 0 clamp(88px, 7.2vw, 132px);
  min-height: clamp(760px, 96vh, 1100px);
  background:
    radial-gradient(circle at 20% 14%, rgba(79, 161, 255, 0.16), transparent 24%),
    radial-gradient(circle at 84% 10%, rgba(5, 11, 19, 0.78), transparent 30%),
    radial-gradient(circle at 80% 18%, rgba(243, 178, 71, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(5, 11, 19, 0.52), rgba(5, 11, 19, 0.92));
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.06), transparent 30%),
    radial-gradient(circle at 74% 14%, rgba(8, 16, 26, 0.72), transparent 28%),
    radial-gradient(circle at 76% 30%, rgba(79, 161, 255, 0.18), transparent 32%),
    radial-gradient(circle at 74% 70%, rgba(243, 178, 71, 0.18), transparent 28%);
  mix-blend-mode: screen;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  gap: clamp(22px, 4.4vw, 52px);
  align-items: stretch;
}

.hero__copy h1,
.section h2,
.login-card h3,
.cabinet-preview h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero__copy h1 {
  max-width: 12.6ch;
  font-size: clamp(2.9rem, 4.7vw, 5.8rem);
  line-height: 0.9;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
}

.eyebrow--rotator {
  position: relative;
  min-height: 1.15em;
  padding-right: 14px;
  white-space: nowrap;
}

.eyebrow--rotator::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 1em;
  transform: translateY(-50%);
  background: rgba(243, 178, 71, 0.9);
  animation: caret-blink 1.1s steps(1) infinite;
}

@keyframes caret-blink {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}

.hero__lead,
.section p,
.login-card p,
.cabinet-preview p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero__lead {
  max-width: 54ch;
  margin: 20px 0 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero__chips span,
.plan-card__badge,
.panel-card__label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-card__label-row,
.panel-stat__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-card__icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.96;
}

.hero__chips span {
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero__chip--accent {
  color: #09111b;
  background: linear-gradient(135deg, #ffe5b0 0%, #f3b247 52%, #ff9a49 100%);
  border-color: rgba(243, 178, 71, 0.4);
  box-shadow: 0 18px 36px rgba(243, 178, 71, 0.18);
}

.hero__panel {
  display: grid;
  gap: 14px;
  justify-self: end;
  align-self: stretch;
  width: min(100%, 580px);
  min-height: 100%;
}

.panel-card,
.login-card,
.cabinet-preview,
.faq-item,
.plan-card {
  background: linear-gradient(180deg, rgba(13, 25, 40, 0.86), rgba(8, 15, 25, 0.82));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.plan-card {
  isolation: isolate;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.06) 42%, transparent 58%);
  transform: translateX(-140%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.panel-card:hover,
.login-card:hover,
.cabinet-preview:hover,
.faq-item:hover,
.plan-card:hover,
.cabinet-status:hover,
.cabinet-card:hover,
.device-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.46);
}

.plan-card:hover::before {
  opacity: 1;
  animation: card-shine 1.15s ease;
}

.panel-card {
  padding: 20px;
}

.panel-card--highlight {
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(243, 178, 71, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(13, 25, 40, 0.92), rgba(8, 15, 25, 0.9));
  position: relative;
  overflow: hidden;
}

.panel-card--highlight::after {
  content: "";
  position: absolute;
  inset: auto -12% -24% auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(79, 161, 255, 0.22), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

.panel-card strong,
.panel-stats strong,
.mini-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.panel-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel-card--highlight strong {
  font-size: clamp(1.55rem, 2.15vw, 2.25rem);
  line-height: 0.98;
  max-width: 10ch;
}

.panel-card--highlight p {
  max-width: 34ch;
}

.panel-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.panel-row .panel-card {
  min-height: 156px;
}

.panel-row .panel-card p {
  max-width: 22ch;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.panel-stats div,
.mini-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-stats div {
  min-height: 118px;
  display: flex;
  flex-direction: column;
}

.panel-stats strong {
  margin-top: auto;
}

.panel-stats span,
.mini-card span,
.plan-card__top span {
  display: block;
  color: rgba(238, 244, 255, 0.6);
  font-size: 0.84rem;
}

.panel-stat__label {
  color: rgba(238, 244, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section {
  position: relative;
  z-index: 2;
  padding: clamp(66px, 6.5vw, 98px) 0;
  scroll-margin-top: 116px;
}

#plans {
  padding-top: clamp(104px, 9vw, 182px);
  padding-bottom: clamp(98px, 8vw, 138px);
}

#faq {
  padding-top: clamp(108px, 8vw, 156px);
}

#plans .section__head,
#faq .section__head {
  margin-bottom: clamp(34px, 4vw, 52px);
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  max-width: 12ch;
}

.term-switch {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.term-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 11px 16px;
  border-radius: 999px;
  background: transparent;
  color: rgba(238, 244, 255, 0.75);
  font-weight: 700;
  cursor: pointer;
}

.term-switch__btn.is-active {
  color: #08111a;
  background: linear-gradient(135deg, #ffe3af, #f3b247);
}

.term-switch__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(243, 178, 71, 0.14);
  color: #f8c66f;
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 900;
  flex: none;
}

.term-switch__btn.is-active .term-switch__hint {
  color: #08111a;
  background: rgba(8, 17, 26, 0.16);
}

.plans-trial {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px 26px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(243, 178, 71, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(15, 27, 44, 0.96), rgba(8, 15, 25, 0.9));
  border: 1px solid rgba(243, 178, 71, 0.18);
  box-shadow: var(--shadow);
}

.plans-trial__copy span,
.plans-trial__chips span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plans-trial__copy span {
  color: #ffdca0;
  margin-bottom: 12px;
}

.plans-trial__copy strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 16ch;
}

.plans-trial__copy p {
  max-width: 52ch;
  margin: 12px 0 0;
}

.plans-trial__actions {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.plans-trial__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.plans-trial__chips span {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.plans-trial__status {
  max-width: 34ch;
  margin: -2px 0 0;
  color: rgba(238, 244, 255, 0.68);
  font-size: 0.9rem;
  text-align: right;
}

.plans-trial__status.is-success {
  color: rgba(181, 255, 216, 0.86);
}

.plans-trial__status.is-error {
  color: rgba(255, 184, 171, 0.9);
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(243, 178, 71, 0.28);
  border-radius: 18px;
  color: #09111b;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.45), transparent 24%),
    linear-gradient(135deg, #ffe4af 0%, #f3b247 48%, #ff8f3c 100%);
  box-shadow: 0 18px 42px rgba(243, 178, 71, 0.22);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top:hover {
  box-shadow: 0 22px 46px rgba(243, 178, 71, 0.28);
  transform: translateY(-2px) scale(1.02);
}

.scroll-top span {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  margin-top: -2px;
}

@media (min-width: 1600px) {
  .container,
  .topbar {
    width: min(1500px, calc(100% - 64px));
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
    gap: clamp(28px, 4vw, 72px);
  }

  .hero__panel {
    width: min(100%, 680px);
  }

  .split-grid,
  .auth-shell,
  .cabinet-hero__grid {
    gap: 24px;
  }

  .plan-card,
  .cabinet-card,
  .login-card,
  .auth-card,
  .cabinet-preview {
    padding: 30px;
  }

  .plans-grid {
    gap: 20px;
  }
}

@media (min-width: 2200px) {
  .container,
  .topbar {
    width: min(1680px, calc(100% - 96px));
  }

  .hero__copy h1 {
    max-width: 11ch;
    font-size: clamp(4rem, 4vw, 7rem);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(500px, 0.9fr);
  }

  .hero__panel {
    width: min(100%, 760px);
  }

  .section h2 {
    max-width: 10ch;
  }

  .ambient-scene__orb--a {
    width: 32vw;
    height: 32vw;
  }

  .ambient-scene__orb--b {
    width: 28vw;
    height: 28vw;
  }

  .ambient-scene__orb--c {
    width: 40vw;
    height: 40vw;
  }
}

@media (max-height: 860px) and (min-width: 900px) {
  .hero,
  .auth-hero,
  .cabinet-hero {
    padding-top: 28px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 24px;
  }

  .section {
    padding: 48px 0;
  }

  .auth-page {
    padding-bottom: 48px;
  }

  .hero__copy h1,
  .auth-copy h1,
  .cabinet-hero h1 {
    font-size: clamp(2.4rem, 4vw, 4.8rem);
  }

  .hero__lead,
  .section p,
  .login-card p,
  .cabinet-preview p {
    font-size: 0.98rem;
  }
}

@media (max-width: 1080px) and (max-height: 820px) {
  .hero {
    min-height: auto;
  }

  .hero__grid,
  .split-grid,
  .cabinet-hero__grid,
  .auth-shell {
    gap: 16px;
  }

  .hero__panel {
    width: min(100%, 640px);
  }
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.plan-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.plan-card--accent {
  border-color: rgba(243, 178, 71, 0.3);
  background:
    radial-gradient(circle at top right, rgba(243, 178, 71, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(14, 26, 44, 0.96), rgba(8, 15, 25, 0.86));
}

.plan-card--accent::after {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.plan-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.plan-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #121922 !important;
  -webkit-text-fill-color: #121922;
  background: linear-gradient(135deg, #f9df9d 0%, #eeb85a 52%, #e89a35 100%);
  border: 1px solid rgba(18, 25, 34, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 228, 0.18),
    0 8px 18px rgba(243, 178, 71, 0.14);
  letter-spacing: 0.05em;
  text-shadow: none;
}

.plan-card__badge--personal {
  background: linear-gradient(135deg, #ffe3b0 0%, #f0b651 54%, #de8f2d 100%);
}

.plan-card__badge--family {
  background: linear-gradient(135deg, #ffe9bb 0%, #f0b95b 54%, #d8832a 100%);
}

.plan-card__badge--whitelist {
  background: linear-gradient(135deg, #ffe4a8 0%, #efb151 54%, #d97826 100%);
}

.plan-card__price {
  text-align: right;
  position: relative;
  z-index: 1;
}

.plan-card__old-price {
  display: block;
  margin-bottom: 4px;
  color: rgba(238, 244, 255, 0.42);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration-line: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(238, 244, 255, 0.5);
  text-underline-offset: 3px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.plan-card__old-price[hidden] {
  display: none;
}

.plan-card__price strong {
  display: block;
  font-size: 2rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.plan-card ul {
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.plan-card li::before {
  content: "•";
  color: var(--accent);
  margin-right: 10px;
}

@keyframes card-shine {
  0% {
    transform: translateX(-140%);
  }
  100% {
    transform: translateX(140%);
  }
}

.section--split {
  padding-top: clamp(112px, 9vw, 180px);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 18px;
  align-items: stretch;
}

.cabinet-preview,
.login-card {
  padding: 28px;
  height: 100%;
}

.cabinet-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

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

.auth-step__caption {
  display: grid;
  gap: 6px;
  margin-bottom: 4px;
}

.auth-step__caption span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-step__caption strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form span {
  color: rgba(238, 244, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

.login-form input::placeholder {
  color: rgba(238, 244, 255, 0.42);
}

.login-form input:focus {
  border-color: rgba(243, 178, 71, 0.4);
  box-shadow: 0 0 0 4px rgba(243, 178, 71, 0.12);
}

.form-note {
  margin: -2px 0 0;
  color: rgba(238, 244, 255, 0.64);
  font-size: 0.92rem;
  line-height: 1.55;
}

.form-note strong {
  color: var(--text);
}

.auth-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(238, 244, 255, 0.82);
}

.auth-status.is-error {
  border-color: rgba(255, 118, 118, 0.34);
  color: #ffb0b0;
  background: rgba(255, 118, 118, 0.08);
}

.auth-status.is-success {
  border-color: rgba(90, 196, 124, 0.32);
  color: #9ff0ba;
  background: rgba(90, 196, 124, 0.09);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.faq-item {
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  height: 100%;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.faq-item[open] {
  border-color: rgba(243, 178, 71, 0.18);
  background:
    radial-gradient(circle at top right, rgba(243, 178, 71, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(15, 27, 44, 0.98), rgba(8, 15, 25, 0.9));
}

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

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.45rem;
  line-height: 1;
  margin-top: -2px;
  transition: transform 180ms ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 12px;
  margin-bottom: 0;
  color: rgba(238, 244, 255, 0.74);
  line-height: 1.68;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 28px 0 42px;
  color: rgba(238, 244, 255, 0.56);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.footer__brand {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer__copy {
  color: rgba(238, 244, 255, 0.62);
}

.cabinet-page {
  position: relative;
  z-index: 2;
  padding-bottom: 18px;
}

.auth-page {
  position: relative;
  z-index: 2;
  padding: 18px 0 64px;
}

body[data-page="register"] .auth-page {
  padding: 12px 0 48px;
}

.auth-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 4vw, 56px) 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(79, 161, 255, 0.12), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(243, 178, 71, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(5, 11, 19, 0.34), rgba(5, 11, 19, 0.82));
}

body[data-page="register"] {
  font-family: "Golos Text", "Manrope", sans-serif;
}

body[data-page="register"] .brand__mark,
body[data-page="register"] .auth-stage__intro h1,
body[data-page="register"] .auth-card h3 {
  font-family: "Unbounded", "Space Grotesk", sans-serif;
}

.auth-hero--centered {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: flex-start;
  padding: clamp(42px, 6vw, 88px) 0 clamp(64px, 7vw, 96px);
}

body[data-page="register"] .auth-hero--centered {
  min-height: calc(100vh - 108px);
  padding: clamp(26px, 4vw, 46px) 0 clamp(40px, 5vw, 64px);
}

.auth-stage {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

body[data-page="register"] .auth-stage {
  gap: 16px;
}

.auth-stage__intro {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.auth-stage__intro .eyebrow {
  margin-bottom: 0;
}

.auth-stage__intro h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.4rem, 4.8vw, 4.5rem);
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.auth-stage__intro .hero__lead {
  max-width: 54ch;
  margin: 0;
  color: rgba(238, 244, 255, 0.76);
}

.auth-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-mode-switch__btn {
  min-width: 156px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(238, 244, 255, 0.7);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.auth-mode-switch__btn:hover {
  color: var(--text);
}

.auth-mode-switch__btn.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 22px;
  align-items: stretch;
}

.auth-copy {
  padding: clamp(18px, 1.6vw, 28px) 0;
}

.auth-copy h1 {
  margin: 0;
  max-width: 9.4ch;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
  line-height: 0.92;
  font-size: clamp(3rem, 5vw, 5.8rem);
}

.auth-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.auth-step-card {
  min-height: 170px;
  padding: 22px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 27, 44, 0.88), rgba(8, 15, 25, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 24px 44px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-step-card__index {
  color: rgba(243, 178, 71, 0.92);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-step-card strong {
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.25;
}

.auth-step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-card {
  padding: 34px 32px;
  height: 100%;
  border-radius: 34px;
  background: radial-gradient(circle at top right, rgba(243, 178, 71, 0.08), transparent 30%), linear-gradient(180deg, rgba(14, 26, 42, 0.94), rgba(8, 15, 25, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.auth-card__header {
  display: grid;
  gap: 12px;
}

.auth-card--compact {
  width: min(100%, 560px);
  padding: 32px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.985), rgba(241, 246, 253, 0.975));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.16),
    0 10px 28px rgba(7, 17, 29, 0.06);
  backdrop-filter: blur(18px);
}

.auth-card--compact .eyebrow {
  color: #4f76ff;
  margin-bottom: 0;
}

.auth-card--compact .auth-card__header--compact {
  justify-items: start;
  text-align: left;
  gap: 10px;
}

.auth-card h3 {
  margin: 0;
  font-size: 2rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1;
}

.auth-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-card--compact h3 {
  color: #091321;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.auth-card--compact p,
.auth-card--compact .form-note {
  color: rgba(9, 19, 33, 0.64);
}

.auth-step.auth-step--active {
  gap: 16px;
}

.auth-step {
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.auth-step.auth-step--active label:first-child {
  gap: 10px;
}

.auth-step.auth-step--active input {
  min-height: 64px;
  padding: 18px 20px;
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-step.auth-step--active .btn {
  min-height: 62px;
  margin-top: 2px;
  font-size: 1rem;
}

.auth-step[hidden] {
  display: none !important;
}

.auth-card--compact .login-form label {
  gap: 10px;
}

.auth-card--compact .login-form span {
  color: rgba(9, 19, 33, 0.72);
  font-size: 0.88rem;
}

.auth-card--compact .login-form input {
  border: 1px solid rgba(11, 24, 38, 0.12);
  background: rgba(255, 255, 255, 0.98);
  color: #091321;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 10px 24px rgba(13, 25, 40, 0.045);
}

.auth-card--compact .login-form input::placeholder {
  color: rgba(9, 19, 33, 0.32);
}

.auth-card--compact .login-form input:focus {
  border-color: rgba(79, 118, 255, 0.32);
  box-shadow:
    0 0 0 4px rgba(79, 118, 255, 0.12),
    0 16px 30px rgba(13, 25, 40, 0.08);
}

.auth-card--compact .btn--auth-submit {
  min-height: 64px;
  border: 1px solid rgba(18, 25, 34, 0.22);
  border-radius: 999px;
  color: #09111b;
  background: linear-gradient(90deg, #f6bf5b 0%, #f1b04d 46%, #ff9842 100%);
  box-shadow:
    0 0 0 1px rgba(18, 25, 34, 0.18),
    0 22px 42px rgba(243, 178, 71, 0.2),
    inset 0 0 0 1px rgba(18, 25, 34, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.auth-card--compact .btn--auth-submit:hover {
  transform: translateY(-1px) scale(1.002);
  box-shadow:
    0 0 0 1px rgba(18, 25, 34, 0.24),
    0 24px 46px rgba(243, 178, 71, 0.24),
    inset 0 0 0 1px rgba(18, 25, 34, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.auth-card--compact .btn--auth-submit:active {
  transform: translateY(0);
}

.auth-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.auth-card__meta span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(9, 19, 33, 0.05);
  color: rgba(9, 19, 33, 0.56);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cabinet-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 4vw, 60px) 0 28px;
  background:
    radial-gradient(circle at 16% 10%, rgba(79, 161, 255, 0.12), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(243, 178, 71, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(5, 11, 19, 0.36), rgba(5, 11, 19, 0.82));
}

.cabinet-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
}

.cabinet-hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.8rem, 4.8vw, 5.6rem);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.cabinet-status,
.cabinet-card,
.device-card {
  background: linear-gradient(180deg, rgba(13, 25, 40, 0.86), rgba(8, 15, 25, 0.82));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cabinet-status {
  padding: 22px;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cabinet-status::after {
  content: "";
  position: absolute;
  inset: -18% auto auto -18%;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(243, 178, 71, 0.12), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.cabinet-status__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.section--compact {
  padding: 48px 0;
}

.help-section {
  padding-top: clamp(32px, 3.5vw, 54px);
  padding-bottom: clamp(72px, 6vw, 110px);
}

.help-section .section__head,
#faq .section__head {
  margin-bottom: 20px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.help-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(79, 161, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(15, 27, 44, 0.95), rgba(8, 15, 25, 0.88));
  box-shadow: var(--shadow);
}

.help-card--accent {
  border-color: rgba(243, 178, 71, 0.18);
  background:
    radial-gradient(circle at top right, rgba(243, 178, 71, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(18, 30, 48, 0.98), rgba(8, 15, 25, 0.92));
}

.help-card__label {
  color: rgba(238, 244, 255, 0.64);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.46rem;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.help-card p {
  margin: 0;
  color: rgba(238, 244, 255, 0.74);
  line-height: 1.7;
}

.help-card__link,
.support-link {
  color: #ffdca0;
  font-weight: 800;
}

.help-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.help-card__link::after {
  content: "↗";
  font-size: 0.95rem;
}

.help-card__link--accent {
  color: #ffe0a0;
}

.support-link {
  text-decoration: underline;
  text-decoration-color: rgba(255, 220, 160, 0.42);
  text-underline-offset: 3px;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.cabinet-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cabinet-card h3 {
  margin: 0 0 14px;
  font-size: 1.9rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

 .cabinet-card::after,
 .device-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -26% auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(79, 161, 255, 0.08), transparent 68%);
  pointer-events: none;
}

.cabinet-card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 18px 0 8px;
}

.cabinet-card__meta div,
.ledger div {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cabinet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.code-block {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  word-break: break-all;
}

.qr-preview {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.qr-preview__frame {
  width: min(100%, 210px);
  aspect-ratio: 1;
  margin-bottom: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.24), transparent 16%),
    radial-gradient(circle at 72% 24%, rgba(79, 161, 255, 0.2), transparent 18%),
    radial-gradient(circle at 52% 70%, rgba(243, 178, 71, 0.18), transparent 18%),
    linear-gradient(135deg, rgba(12, 23, 38, 0.96), rgba(5, 11, 19, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

.qr-preview__frame::before,
.qr-preview__frame::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 18%, transparent 18% 22%, rgba(255, 255, 255, 0.9) 22% 26%, transparent 26% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0 18%, transparent 18% 22%, rgba(255, 255, 255, 0.9) 22% 26%, transparent 26% 100%);
  opacity: 0.18;
  filter: blur(1px);
}

.qr-preview__frame::after {
  inset: 42px;
  opacity: 0.28;
  background:
    radial-gradient(circle, rgba(243, 178, 71, 0.8) 0 24%, transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0 18%, transparent 18% 100%);
}

.qr-preview__mark {
  position: absolute;
  inset: 28%;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background:
    linear-gradient(135deg, rgba(243, 178, 71, 0.18), rgba(79, 161, 255, 0.08));
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.03);
}

.qr-preview p {
  margin: 0;
  color: rgba(238, 244, 255, 0.64);
  font-size: 0.92rem;
  line-height: 1.6;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.device-card {
  padding: 20px;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.device-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status--ok {
  background: rgba(90, 196, 124, 0.15);
  color: #88ecac;
  border: 1px solid rgba(90, 196, 124, 0.25);
}

.status--idle {
  background: rgba(79, 161, 255, 0.14);
  color: #9ecaff;
  border: 1px solid rgba(79, 161, 255, 0.22);
}

[hidden] {
  display: none !important;
}

.ledger {
  display: grid;
  gap: 12px;
}

.ledger div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ledger span {
  color: rgba(238, 244, 255, 0.68);
}

.ledger strong {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

body[data-page="register"] .reveal,
body[data-page="register"] .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 1080px) {
  .hero__grid,
  .split-grid,
  .cabinet-hero__grid,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    width: min(100%, 720px);
    justify-self: start;
  }

  .hero__copy h1,
  .cabinet-hero h1 {
    max-width: 11ch;
  }

  .cabinet-status,
  .cabinet-card,
  .device-card,
  .login-card,
  .cabinet-preview,
  .auth-card,
  .plan-card {
    height: auto;
  }

  .panel-row,
  .panel-stats,
  .cabinet-preview__grid,
  .cabinet-status__grid,
  .cabinet-card__meta {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .plans-trial {
    grid-template-columns: 1fr;
  }

  .plans-trial__actions {
    justify-items: start;
  }

  .plans-trial__chips {
    justify-content: flex-start;
  }

  .section__head {
    align-items: start;
    flex-direction: column;
  }

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

  .auth-steps {
    grid-template-columns: 1fr;
  }

  .auth-stage {
    width: min(640px, 100%);
  }
}

@media (max-width: 760px) {
  .topbar {
    width: min(100%, calc(100% - 14px));
    border-radius: 22px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 14px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .topbar__actions {
    order: 2;
    width: 100%;
  }

  .topbar__action {
    flex: 1 1 180px;
  }

  .hero {
    padding-top: 44px;
    min-height: auto;
  }

  .ambient-scene__orb--a {
    left: -22%;
    top: 10%;
    width: 58vw;
    height: 58vw;
  }

  .ambient-scene__orb--b {
    right: -20%;
    top: 14%;
    width: 50vw;
    height: 50vw;
  }

  .ambient-scene__orb--c {
    left: 12%;
    bottom: -14%;
    width: 68vw;
    height: 68vw;
  }

  .ambient-scene__orb--d {
    right: 2%;
    bottom: -10%;
    width: 36vw;
    height: 36vw;
  }

  .ambient-scene__beam {
    left: -32%;
    width: 132vw;
    height: 16vw;
    opacity: 0.3;
    filter: blur(16px);
  }

  .ambient-scene__glow--a {
    right: 10%;
    top: 24%;
    width: 24vw;
    height: 24vw;
  }

  .ambient-scene__glow--b {
    left: 18%;
    top: 70%;
    width: 18vw;
    height: 18vw;
  }

  .hero__grid,
  .cabinet-hero__grid,
  .auth-shell {
    gap: 18px;
  }

  .auth-steps {
    grid-template-columns: 1fr;
  }

  .auth-stage {
    gap: 18px;
  }

  .auth-stage__intro h1 {
    max-width: none;
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .auth-mode-switch {
    width: 100%;
  }

  .auth-mode-switch__btn {
    min-width: 0;
  }

  .hero__copy h1 {
    max-width: none;
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .cabinet-hero h1 {
    max-width: none;
    font-size: clamp(2.4rem, 11vw, 3.8rem);
  }

  .panel-row,
  .panel-stats,
  .cabinet-preview__grid,
  .cabinet-status__grid,
  .cabinet-card__meta {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    width: 100%;
  }

  .hero__actions {
    gap: 10px;
    align-items: stretch;
  }

  .hero__actions .btn {
    flex: 1 1 180px;
  }

  .panel-card,
  .plan-card,
  .cabinet-card,
  .device-card,
  .login-card,
  .cabinet-preview,
  .auth-card,
  .faq-item {
    border-radius: 20px;
  }

  .section {
    padding: 64px 0;
  }

  .help-section {
    padding-top: 14px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100%, calc(100% - 16px));
  }

  .hero,
  .cabinet-hero {
    margin-top: 0;
    background-position: center top;
  }

  .hero__copy h1 {
    font-size: clamp(2.2rem, 14vw, 3.4rem);
  }

  .hero__lead,
  .section p,
  .login-card p,
  .cabinet-preview p {
    font-size: 0.98rem;
  }

  .hero__actions .btn,
  .login-form .btn,
  .cabinet-actions .btn {
    width: 100%;
  }

  .topbar__cta {
    width: auto;
    padding-inline: 16px;
  }

  .cabinet-card,
  .login-card,
  .cabinet-preview,
  .auth-card {
    padding: 22px;
  }

  .auth-card--compact {
    width: 100%;
    padding: 22px 18px;
    border-radius: 24px;
  }

  .scroll-top {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .scroll-top span {
    font-size: 1.45rem;
  }

  .section--split {
    padding-top: 84px;
  }

  .help-section {
    padding-top: 12px;
  }
}

@media (orientation: landscape) and (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 28px 0 24px;
  }

  .section {
    padding: 48px 0;
  }

  .section--split {
    padding-top: 96px;
  }

  .help-section {
    padding-top: 10px;
  }

  .hero__grid,
  .split-grid,
  .cabinet-hero__grid,
  .auth-shell {
    gap: 16px;
  }

  .hero__copy h1 {
    max-width: 10ch;
    font-size: clamp(2.4rem, 5vw, 4rem);
  }

  .hero__panel {
    width: min(100%, 620px);
  }
}


.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-left: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.language-switch__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 8px 11px;
  border-radius: 999px;
  color: rgba(238, 244, 255, 0.68);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.language-switch__btn:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.language-switch__btn.is-active {
  color: #09111d;
  background: linear-gradient(135deg, #ffe0a0 0%, #f5be59 52%, #ff9439 100%);
  box-shadow: 0 10px 22px rgba(243, 178, 71, 0.22), inset 0 0 0 1px rgba(7, 17, 29, 0.22);
}

@media (max-width: 720px) {
  .language-switch {
    order: 3;
    margin-left: 0;
  }

  .language-switch__btn {
    padding: 7px 9px;
    font-size: 11px;
  }
}
