:root {
  --bg: #09090b;
  --panel: rgba(20, 20, 22, 0.86);
  --panel-strong: rgba(14, 14, 16, 0.96);
  --line: rgba(245, 245, 247, 0.08);
  --line-strong: rgba(255, 181, 71, 0.24);
  --text: #f5f5f7;
  --muted: #71717a;
  --soft: #e5e7eb;
  --primary: #ffb547;
  --primary-2: #ffd08a;
  --accent: #f59e0b;
  --good: #48f5a7;
  --warn: #ffd166;
  --bad: #ff4f7b;
  --radius: 20px;
  --shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.55), 0 8px 22px -10px rgba(0, 0, 0, 0.35), inset 0 0 0 0.5px rgba(255, 255, 255, 0.04);
  --motion-smooth: 220ms cubic-bezier(0.22, 1, 0.36, 1);
  --motion-glow: 360ms cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Geist, system-ui, sans-serif;
  background:
    radial-gradient(60% 50% at 50% 0, rgba(255, 181, 71, 0.05), transparent 70%),
    linear-gradient(180deg, #09090b 0%, #0d0d0f 55%, #09090b 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(50% 50% at 50% 18%, rgba(255, 181, 71, 0.12), rgba(255, 181, 71, 0.04) 40%, transparent 70%);
  opacity: 1;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.happ-landing {
  padding: 0 20px 96px;
}

.happ-nav,
.happ-hero,
.happ-section {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}

.happ-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(10px);
}

.happ-brand,
.happ-links a,
.happ-login-link {
  color: var(--text);
  text-decoration: none;
}

.happ-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 600;
}

.happ-brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.happ-brand-mark::after {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
  content: "";
}

.happ-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.happ-links a {
  color: var(--muted);
  font-size: 15px;
  transition: color var(--motion-smooth), text-shadow var(--motion-smooth), transform var(--motion-smooth);
}

.happ-links a:hover,
.happ-login-link:hover {
  color: var(--text);
  text-shadow: 0 0 16px rgba(255, 181, 71, 0.2);
}

.happ-login-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  overflow: hidden;
  border-radius: 12px;
  padding: 0 18px;
  color: #0d0d0f;
  font-size: 15px;
  font-weight: 600;
  background: var(--primary);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 26px rgba(255, 181, 71, 0.3);
  transition: transform var(--motion-smooth), box-shadow var(--motion-glow), filter var(--motion-smooth);
}

.happ-login-link::before {
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 45%, transparent 70%);
  transform: translateX(-140%);
  opacity: 0;
  content: "";
}

.happ-login-link:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 0 34px rgba(255, 181, 71, 0.42), 0 14px 34px -20px rgba(255, 181, 71, 0.58);
  filter: saturate(1.05);
}

.happ-login-link:hover::before {
  opacity: 1;
  transform: translateX(140%);
  transition: transform 620ms cubic-bezier(0.19, 1, 0.22, 1), opacity 220ms ease;
}

.happ-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100svh - 64px);
  padding: 72px 0 56px;
}

.happ-copy {
  max-width: 640px;
}

.section-kicker {
  margin: 0 0 24px;
  color: rgba(255, 181, 71, 0.45);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.happ-copy h1 {
  max-width: 760px;
  color: #6b6b71;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.happ-copy h1 span {
  color: #b37b25;
}

.happ-lead {
  max-width: 580px;
  margin-top: 28px;
  color: #8f8f96;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
}

.happ-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.happ-hint {
  margin-top: 14px;
}

.happ-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 28px;
  color: #6f6f75;
  font-size: 14px;
}

.happ-bullets span::before {
  margin-right: 8px;
  color: rgba(255, 181, 71, 0.7);
  content: "✓";
}

.happ-stage {
  position: relative;
  min-height: 520px;
}

.stage-shell,
.stage-glow,
.stage-pulse {
  position: absolute;
  inset: 0;
  border-radius: 28px;
}

.stage-shell {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    radial-gradient(80% 60% at 50% 30%, rgba(255, 181, 71, 0.08), transparent 60%),
    linear-gradient(180deg, #060608 0%, #0a0a0d 100%);
  box-shadow: var(--shadow);
}

.stage-glow {
  inset: 16% 18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 181, 71, 0.08), transparent 68%);
  animation: pulseGlow 5.5s ease-in-out infinite;
}

.stage-pulse {
  inset: auto auto 56px 56px;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  border: 1px solid rgba(255, 181, 71, 0.16);
  background: radial-gradient(circle at 50% 50%, rgba(255, 181, 71, 0.22), transparent 72%);
  animation: pulseGlow 4s ease-in-out infinite;
}

.stage-panel {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.024)),
    rgba(22, 22, 24, 0.92);
  box-shadow: var(--shadow);
}

.panel-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.stage-panel strong {
  display: block;
  font-size: 24px;
  font-weight: 600;
}

.stage-panel span {
  display: block;
  margin-top: 8px;
  color: #8f8f96;
  line-height: 1.5;
}

.stage-panel-main {
  top: 70px;
  left: 42px;
  width: min(74%, 360px);
}

.stage-panel-speed {
  top: 120px;
  right: 34px;
  width: 210px;
}

.stage-panel-device {
  right: 58px;
  bottom: 62px;
  width: 260px;
}

.happ-section {
  padding: 96px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-heading {
  max-width: 680px;
}

.section-heading h2 {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.section-heading .muted {
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.6;
}

.pricing-grid,
.setup-grid,
.faq-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-tile,
.setup-grid article,
.faq-grid article {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(13, 13, 15, 0.86);
  box-shadow: var(--shadow);
}

.plan-tile-featured {
  border-color: rgba(255, 181, 71, 0.24);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 0 26px rgba(255, 181, 71, 0.14);
}

.plan-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #0d0d0f;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  background: var(--primary);
}

.plan-tile h3,
.faq-grid h3,
.setup-grid h3 {
  margin-top: 18px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.plan-price {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.setup-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.setup-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #0d0d0f;
  font-family: "Geist Mono", ui-monospace, monospace;
  background: rgba(255, 181, 71, 0.9);
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.platform-row span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 0 18px;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.025);
}

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

.landing {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 26px clamp(18px, 5vw, 84px) 80px;
  overflow: hidden;
}

.landing::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 38%;
  pointer-events: none;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.96), transparent);
}

.ambient {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.82;
}

.ambient-one {
  top: 9%;
  right: 5%;
  width: min(42vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(199, 165, 255, 0.32);
  border-radius: 42% 58% 46% 54%;
  box-shadow: inset 0 0 70px rgba(139, 92, 246, 0.12), 0 0 100px rgba(139, 92, 246, 0.18);
  animation: morph 10s ease-in-out infinite;
}

.ambient-two {
  left: -9%;
  bottom: 11%;
  width: 28vw;
  min-width: 280px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 66%);
  animation: floatSlow 7s ease-in-out infinite;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 0;
}

.brand,
.nav-links a {
  color: var(--text);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  border: 1px solid rgba(199, 165, 255, 0.38);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.96), rgba(27, 16, 52, 0.9));
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.42);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(199, 165, 255, 0.16);
  border-radius: 999px;
  background: rgba(12, 10, 18, 0.58);
  backdrop-filter: blur(18px);
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--soft);
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1220px;
  min-height: calc(100svh - 92px);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) 0 48px;
}

.hero-copy {
  max-width: 760px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 850px;
  font-size: clamp(48px, 7.2vw, 88px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
}

h3 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.lead {
  max-width: 650px;
  color: var(--soft);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
}

.muted {
  color: var(--muted);
}

.telegram-login {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.orbit {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.orbit-main {
  inset: 34px 0 38px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 90px rgba(139, 92, 246, 0.32), inset 0 0 60px rgba(139, 92, 246, 0.14);
  animation: breathe 4s ease-in-out infinite;
}

.orbit-soft {
  inset: 120px 62px 116px;
  border: 1px dashed rgba(199, 165, 255, 0.22);
  transform: rotate(-14deg);
  animation: orbitTilt 12s linear infinite;
}

.vpn-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  color: #fff;
  border: 1px solid rgba(199, 165, 255, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.42), transparent 58%),
    rgba(7, 5, 13, 0.8);
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.28), inset 0 0 40px rgba(139, 92, 246, 0.12);
  transform: translate(-50%, -50%);
  animation: coreFloat 5.8s ease-in-out infinite;
}

.vpn-core strong {
  align-self: end;
  font-size: 20px;
  font-weight: 600;
}

.vpn-core small {
  align-self: start;
  color: var(--muted);
}

.core-dot {
  position: absolute;
  top: 32px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 26px rgba(72, 245, 167, 0.8);
}

.pulse-card {
  position: absolute;
  z-index: 2;
  min-width: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: linear-gradient(160deg, rgba(19, 15, 29, 0.96), rgba(0, 0, 0, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: cardFloat 5s ease-in-out infinite;
}

.speed-card {
  right: 2%;
  top: 19%;
}

.ping-card {
  left: 2%;
  bottom: 20%;
  min-width: 170px;
  animation-delay: -1.4s;
}

.pulse-card span {
  color: var(--muted);
}

.pulse-card strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  font-weight: 300;
}

.signal-card {
  position: absolute;
  right: 19%;
  bottom: 18%;
  display: flex;
  align-items: end;
  gap: 7px;
  width: 92px;
  height: 74px;
  border: 1px solid rgba(199, 165, 255, 0.2);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.2);
}

.signal-card i {
  width: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c7a5ff, #8b5cf6);
  animation: signalPulse 1.2s ease-in-out infinite;
}

.signal-card i:nth-child(1) { height: 16px; }
.signal-card i:nth-child(2) { height: 27px; animation-delay: 100ms; }
.signal-card i:nth-child(3) { height: 39px; animation-delay: 200ms; }
.signal-card i:nth-child(4) { height: 24px; animation-delay: 300ms; }

.metric-strip,
.landing-section {
  max-width: 1220px;
  margin: 0 auto;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(199, 165, 255, 0.18);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), rgba(255, 255, 255, 0.025));
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.1);
}

.metric-strip div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip strong {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 300;
}

.metric-strip span {
  margin-top: 4px;
  color: var(--muted);
}

.landing-section {
  margin-top: clamp(28px, 5vw, 72px);
}

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

.feature-card,
.pricing-teaser,
.flow {
  border: 1px solid rgba(199, 165, 255, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(139, 92, 246, 0.16), transparent 70%),
    rgba(8, 7, 12, 0.78);
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.1);
  backdrop-filter: blur(18px);
}

.feature-card {
  min-height: 230px;
  padding: 24px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  border-color: rgba(199, 165, 255, 0.36);
  box-shadow: 0 0 42px rgba(139, 92, 246, 0.18);
  transform: translateY(-4px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 34px;
  color: var(--primary-2);
  border: 1px solid rgba(199, 165, 255, 0.22);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
}

.feature-card h3 {
  margin-top: 44px;
  font-size: clamp(24px, 2.5vw, 34px);
}

.pricing-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
}

.price-preview {
  display: grid;
  gap: 12px;
}

.price-preview span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border: 1px solid rgba(199, 165, 255, 0.17);
  border-radius: 18px;
  padding: 0 18px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
}

.flow {
  padding: clamp(24px, 4vw, 42px);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.flow-grid p {
  min-height: 104px;
  margin: 0;
  border: 1px solid rgba(199, 165, 255, 0.14);
  border-radius: 18px;
  padding: 18px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
}

.flow-grid strong {
  color: var(--primary-2);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms cubic-bezier(0.4, 0, 0.2, 1), transform 560ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.dashboard {
  padding: 24px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(20, 20, 23, 0.96), rgba(11, 11, 13, 0.96));
  box-shadow: var(--shadow);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 181, 71, 0.2);
  border-radius: 12px;
  color: var(--primary);
  font-weight: 600;
  background: rgba(255, 181, 71, 0.06);
}

.sidebar-brand strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
}

.sidebar-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 2px 0 6px;
}

.profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 181, 71, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 181, 71, 0.08);
}

.profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-fallback {
  color: var(--primary);
  font-weight: 600;
}

.profile-meta {
  min-width: 0;
}

.profile-meta strong,
.profile-meta .user-label {
  display: block;
}

.profile-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.sidebar-logout {
  min-height: 36px;
  color: var(--primary-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  color: #0d0d0f;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(90deg, rgba(255, 181, 71, 0.86), rgba(255, 206, 125, 0.96));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 24px rgba(255, 181, 71, 0.18);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 0 14px;
  color: #d4d4d8;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--motion-smooth), transform var(--motion-smooth), color var(--motion-smooth), box-shadow var(--motion-glow), background var(--motion-smooth);
}

.sidebar-link::after {
  color: rgba(255, 181, 71, 0.5);
  content: "›";
}

.sidebar-link:hover,
.sidebar-link.is-active {
  border-color: rgba(255, 181, 71, 0.2);
  color: #fff;
  transform: translateX(2px);
  background: rgba(255, 181, 71, 0.06);
  box-shadow: 0 12px 24px -20px rgba(255, 181, 71, 0.42), inset 0 0 0 0.5px rgba(255, 255, 255, 0.03);
}

.dashboard-content {
  display: grid;
  gap: 22px;
}

.cabinet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 22px;
  align-items: stretch;
  min-height: 420px;
}

.cabinet-hero-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.cabinet-hero-copy h2 {
  max-width: 760px;
  font-size: clamp(42px, 4.2vw, 62px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.cabinet-lead {
  max-width: 620px;
  font-size: 19px;
  line-height: 1.6;
}

.cabinet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cabinet-refresh {
  min-height: 36px;
  padding: 0 14px;
}

.overview-referral {
  margin-top: 4px;
}

.cabinet-hero-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.panel-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(255, 181, 71, 0.1), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
    rgba(12, 12, 14, 0.96);
}

.visual-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(42, 42, 46, 0.84), rgba(24, 24, 28, 0.92));
  box-shadow: var(--shadow);
}

.visual-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-family: "Geist Mono", ui-monospace, monospace;
  text-transform: uppercase;
}

.visual-card strong {
  display: block;
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.25;
}

.visual-primary {
  top: 12%;
  left: 8%;
  width: min(74%, 320px);
}

.visual-secondary {
  right: 8%;
  bottom: 12%;
  width: min(66%, 250px);
}

.visual-orb {
  position: absolute;
  left: 16%;
  bottom: 14%;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 181, 71, 0.18);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 181, 71, 0.22), transparent 68%);
  box-shadow: 0 0 20px rgba(255, 181, 71, 0.12);
}

.hero-action-stack {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-action-stack .ghost-button {
  flex: 1 1 0;
  min-height: 54px;
}

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

.cabinet-dual {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.78fr);
  gap: 18px;
  align-items: start;
}

.compact-head {
  margin-bottom: 14px;
}

.cabinet-panel-wide {
  grid-column: 1 / -1;
}

.topbar,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  margin-bottom: 18px;
}

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

.user-label {
  color: var(--primary-2);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.panel {
  padding: 22px;
}

.main-panel,
.order-panel {
  min-height: 330px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  white-space: nowrap;
  color: var(--primary-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 181, 71, 0.09);
}

.badge.good {
  color: var(--good);
  border-color: rgba(72, 245, 167, 0.28);
}

.badge.warn {
  color: var(--warn);
  border-color: rgba(255, 209, 102, 0.3);
}

.badge.bad {
  color: var(--bad);
  border-color: rgba(255, 79, 123, 0.28);
}

.subscription-block {
  display: grid;
  gap: 10px;
  color: var(--soft);
}

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

.kv span {
  color: var(--muted);
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  min-height: 46px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.42);
}

textarea {
  resize: vertical;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.soft-button,
.ghost-button,
.danger-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  overflow: hidden;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 24px rgba(255, 181, 71, 0.26);
  text-decoration: none;
  transition: transform var(--motion-smooth), box-shadow var(--motion-glow), filter var(--motion-smooth), border-color var(--motion-smooth), background var(--motion-smooth);
}

.soft-button::before,
.ghost-button::before,
.danger-button::before {
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.24) 42%, transparent 66%);
  transform: translateX(-145%);
  opacity: 0;
  content: "";
}

.ghost-button {
  color: var(--primary-2);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.danger-button {
  background: linear-gradient(135deg, #ff477e, #9f1239);
  box-shadow: 0 0 24px rgba(255, 79, 123, 0.22);
}

.soft-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.06);
}

.soft-button:hover {
  box-shadow: 0 0 34px rgba(255, 181, 71, 0.34), 0 18px 34px -24px rgba(255, 181, 71, 0.56);
}

.ghost-button:hover {
  box-shadow: 0 0 28px rgba(255, 181, 71, 0.14), 0 14px 26px -22px rgba(255, 181, 71, 0.32);
  border-color: rgba(255, 181, 71, 0.2);
  background: rgba(255, 181, 71, 0.06);
}

.danger-button:hover {
  box-shadow: 0 0 28px rgba(255, 79, 123, 0.3), 0 18px 34px -24px rgba(255, 79, 123, 0.5);
}

.soft-button:hover::before,
.ghost-button:hover::before,
.danger-button:hover::before {
  opacity: 1;
  transform: translateX(145%);
  transition: transform 620ms cubic-bezier(0.19, 1, 0.22, 1), opacity 220ms ease;
}

.hero-button {
  min-height: 52px;
  padding: 0 22px;
}

.plans,
.devices {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.plan,
.device,
.order-box,
.empty-state {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform var(--motion-smooth), border-color var(--motion-smooth), background var(--motion-smooth), box-shadow var(--motion-glow);
}

.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.plan strong,
.device strong {
  display: block;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.proof-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.steps {
  display: grid;
  gap: 8px;
  color: var(--soft);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 420px;
  color: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(9, 8, 14, 0.96);
  box-shadow: var(--shadow);
}

.panel,
.plan-tile,
.metric-strip div,
.plan,
.device,
.order-box,
.empty-state,
.happ-stat-card,
.happ-feature-card,
.happ-step,
.happ-platform-card {
  transition: transform var(--motion-smooth), border-color var(--motion-smooth), box-shadow var(--motion-glow), background var(--motion-smooth);
}

.panel:hover,
.plan-tile:hover,
.metric-strip div:hover,
.plan:hover,
.device:hover,
.order-box:hover,
.empty-state:hover,
.happ-stat-card:hover,
.happ-feature-card:hover,
.happ-step:hover,
.happ-platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 181, 71, 0.14);
  box-shadow: 0 24px 44px -28px rgba(255, 181, 71, 0.2), var(--shadow);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.028));
}

@keyframes softFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 26px rgba(255, 181, 71, 0.24);
  }
  50% {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28), 0 0 34px rgba(255, 181, 71, 0.34);
  }
}

.hero-button,
.happ-login-link {
  animation: pulseGlow 4.8s ease-in-out infinite;
}

.visual-card,
.pulse-card,
.signal-card {
  animation: softFloat 5.4s ease-in-out infinite;
}

.visual-card:nth-child(2),
.signal-card {
  animation-delay: -1.9s;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes breathe {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

@keyframes cardFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -18px, 0);
  }
}

@keyframes coreFloat {
  0%, 100% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0);
  }
  50% {
    transform: translate(-50%, -50%) translate3d(0, -18px, 0);
  }
}

@keyframes morph {
  0%, 100% {
    border-radius: 42% 58% 46% 54%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 58% 42% 54% 46%;
    transform: rotate(4deg) scale(1.03);
  }
}

@keyframes orbitTilt {
  from {
    transform: rotate(-14deg);
  }
  to {
    transform: rotate(346deg);
  }
}

@keyframes signalPulse {
  0%, 100% {
    opacity: 0.45;
    transform: scaleY(0.82);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (max-width: 920px) {
  .dashboard-shell,
  .cabinet-hero,
  .cabinet-grid,
  .cabinet-dual {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

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

  .cabinet-hero {
    min-height: auto;
  }

  .panel-visual {
    min-height: 320px;
  }

  .happ-nav {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
    padding: 14px 0 18px;
  }

  .happ-links {
    justify-content: flex-start;
    gap: 20px;
  }

  .happ-hero,
  .pricing-grid,
  .setup-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

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

  .happ-stage {
    min-height: 420px;
  }

  .stage-panel-main {
    width: min(78%, 360px);
  }

  .stage-panel-speed,
  .stage-panel-device {
    width: 220px;
  }

  .section-heading .muted {
    font-size: 18px;
  }

  .hero,
  .grid,
  .feature-grid,
  .pricing-teaser,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    width: 100%;
    overflow-x: auto;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .dashboard {
    padding: 16px;
  }

  .sidebar-profile {
    grid-template-columns: auto 1fr;
  }

  .sidebar-logout {
    grid-column: 1 / -1;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .cabinet-hero-copy h2 {
    font-size: 34px;
  }

  .cabinet-lead {
    font-size: 16px;
  }

  .cabinet-meta,
  .hero-action-stack {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel-visual {
    min-height: 260px;
  }

  .visual-primary,
  .visual-secondary {
    width: calc(100% - 36px);
    left: 18px;
    right: 18px;
  }

  .visual-primary {
    top: 18px;
  }

  .visual-secondary {
    bottom: 18px;
  }

  .happ-landing {
    padding: 0 16px 72px;
  }

  .happ-nav,
  .happ-hero,
  .happ-section {
    width: min(100%, calc(100vw - 32px));
  }

  .happ-brand {
    font-size: 20px;
  }

  .happ-links {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .happ-login-link {
    width: 100%;
  }

  .happ-copy h1,
  .section-heading h2 {
    font-size: 32px;
    line-height: 1.02;
  }

  .happ-copy,
  .section-heading,
  .happ-lead {
    max-width: 310px;
  }

  .happ-copy h1,
  .section-heading h2 {
    max-width: 300px;
  }

  .happ-lead,
  .section-heading .muted {
    font-size: 16px;
  }

  .happ-actions {
    display: grid;
    gap: 12px;
  }

  .happ-actions .hero-button,
  .telegram-login {
    width: 100%;
  }

  .happ-bullets {
    gap: 10px;
    flex-direction: column;
  }

  .happ-stage {
    min-height: 340px;
  }

  .stage-panel {
    padding: 16px;
  }

  .stage-panel strong {
    font-size: 18px;
  }

  .stage-panel-main {
    top: 24px;
    left: 18px;
    width: calc(100% - 36px);
  }

  .stage-panel-speed {
    top: auto;
    right: 18px;
    bottom: 96px;
    width: 154px;
  }

  .stage-panel-device {
    right: 18px;
    bottom: 22px;
    width: calc(100% - 36px);
  }

  .stage-panel-device strong {
    font-size: 16px;
    line-height: 1.3;
  }

  .plan-price {
    font-size: 32px;
  }

  .setup-grid article,
  .faq-grid article,
  .plan-tile {
    padding: 22px;
  }

  .dashboard,
  .landing {
    padding: 16px;
  }

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

  h1 {
    font-size: clamp(36px, 10.8vw, 42px);
    line-height: 1.08;
  }

  .hero-copy,
  .nav-links,
  .metric-strip,
  .landing-section {
    max-width: 358px;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-button {
    width: 100%;
  }

  .telegram-login {
    order: -1;
  }

  .telegram-fallback {
    margin-top: 10px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.45;
  }

  #loginHint {
    display: none;
  }

  .hero-visual {
    min-height: 340px;
  }

  .pulse-card {
    min-width: 160px;
    padding: 16px;
  }

  .pulse-card strong {
    font-size: 26px;
  }

  .vpn-core {
    width: 142px;
    height: 142px;
  }

  .signal-card {
    right: 5%;
    bottom: 14%;
  }

  .copy-row,
  .plan {
    grid-template-columns: 1fr;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-button,
  .happ-login-link,
  .visual-card,
  .pulse-card,
  .signal-card {
    animation: none !important;
  }
}
