/* StaxVPN cabinet — design tokens & layout */
:root {
  --bg-deep: #07080f;
  --bg-card: rgba(18, 22, 38, 0.72);
  --bg-card-solid: #121626;
  --stroke: rgba(120, 140, 220, 0.22);
  --stroke-strong: rgba(160, 180, 255, 0.35);
  --text: #eef0ff;
  --text-muted: rgba(220, 224, 255, 0.62);
  --accent: #6c8cff;
  --accent-2: #a855f7;
  --accent-glow: rgba(108, 140, 255, 0.45);
  --success: #34d399;
  --danger: #fb7185;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.55);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.55;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient__grid {
  position: absolute;
  inset: -50%;
  background-image: linear-gradient(rgba(120, 140, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 140, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, black 10%, transparent 70%);
  animation: gridDrift 28s linear infinite;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orbFloat 18s ease-in-out infinite;
}

.ambient__orb--1 {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -12%;
  left: -8%;
}

.ambient__orb--2 {
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation-delay: -7s;
}

@keyframes gridDrift {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(1.5deg) scale(1.02);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(3%, 4%) scale(1.08);
  }
}

/* Page shell */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-enter {
  animation: pageEnter 0.7s var(--ease-out-expo) both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--stroke);
  background: rgba(7, 8, 15, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  animation: headerSlide 0.6s var(--ease-out-expo) both;
}

@keyframes headerSlide {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 32px var(--accent-glow);
  animation: markPulse 3.5s ease-in-out infinite;
}

@keyframes markPulse {
  0%,
  100% {
    box-shadow: 0 8px 32px var(--accent-glow);
  }
  50% {
    box-shadow: 0 12px 48px rgba(168, 85, 247, 0.35);
  }
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#navAuth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav__guest-sep {
  opacity: 0.45;
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
}

.nav a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.25s, transform 0.2s var(--ease-out-expo);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.nav a.is-active {
  color: var(--text);
  background: rgba(108, 140, 255, 0.15);
  border: 1px solid var(--stroke-strong);
}

.nav__cta {
  margin-left: 8px;
  padding: 10px 18px !important;
  background: linear-gradient(135deg, var(--accent), #4f6fff) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 28px rgba(79, 111, 255, 0.35);
}

.nav__cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px) !important;
}

.site-main {
  flex: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px) 64px;
}

.site-footer {
  padding: 28px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--stroke);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  background: rgba(7, 8, 15, 0.5);
}

/* Typography */
.hero {
  max-width: 720px;
  margin-bottom: clamp(32px, 6vw, 56px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.05s both;
}

.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(120deg, #fff 0%, rgba(220, 224, 255, 0.85) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeUp 0.65s var(--ease-out-expo) 0.1s both;
}

.hero p.lead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  animation: fadeUp 0.65s var(--ease-out-expo) 0.18s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  animation: fadeUp 0.65s var(--ease-out-expo) 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.22s var(--ease-out-expo), box-shadow 0.22s, border-color 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 200, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.btn--primary {
  border: none;
  background: linear-gradient(135deg, var(--accent), #4f6fff);
  color: #fff;
  box-shadow: 0 12px 40px rgba(79, 111, 255, 0.4);
}

.btn--primary:hover {
  box-shadow: 0 16px 48px rgba(79, 111, 255, 0.5);
}

.btn--ghost {
  background: transparent;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Cards & panels */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px) saturate(150%);
  animation: panelIn 0.55s var(--ease-out-expo) both;
}

.panel + .panel {
  margin-top: 24px;
  animation-delay: 0.08s;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel .muted {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Form */
.form-grid {
  display: grid;
  gap: 16px;
}

.form-row-2 {
  display: grid;
  gap: 16px;
}

@media (min-width: 560px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(10, 12, 24, 0.85);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 140, 255, 0.2);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Plans grid */
.plans-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.plan-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: linear-gradient(165deg, rgba(30, 36, 58, 0.9), rgba(14, 16, 28, 0.95));
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.25s, box-shadow 0.3s;
  animation: cardPop 0.5s var(--ease-out-expo) both;
}

.plan-card:nth-child(1) {
  animation-delay: 0.05s;
}
.plan-card:nth-child(2) {
  animation-delay: 0.1s;
}
.plan-card:nth-child(3) {
  animation-delay: 0.15s;
}
.plan-card:nth-child(4) {
  animation-delay: 0.2s;
}
.plan-card:nth-child(5) {
  animation-delay: 0.25s;
}

@keyframes cardPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(108, 140, 255, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--stroke-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.plan-card:hover::before {
  opacity: 1;
}

.plan-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.plan-card__meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.plan-card__price {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.plan-card__price small {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-card--trial {
  border-color: rgba(168, 85, 247, 0.35);
}

.plan-card--trial .plan-card__price {
  color: var(--accent-2);
}

/* Toast */
.toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card-solid);
  border: 1px solid var(--stroke-strong);
  color: var(--text);
  font-size: 0.9rem;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.4s var(--ease-out-expo) both;
}

.toast--ok {
  border-color: rgba(52, 211, 153, 0.4);
}
.toast--err {
  border-color: rgba(251, 113, 133, 0.45);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Feature strip (home) */
.features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 40px;
}

.feature-tile {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.25s var(--ease-out-expo), border-color 0.2s;
  animation: fadeUp 0.55s var(--ease-out-expo) both;
}

.feature-tile:nth-child(1) {
  animation-delay: 0.28s;
}
.feature-tile:nth-child(2) {
  animation-delay: 0.34s;
}
.feature-tile:nth-child(3) {
  animation-delay: 0.4s;
}

.feature-tile:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-strong);
}

.feature-tile h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.feature-tile p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Subscriptions list */
.sub-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sub-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  animation: fadeUp 0.45s var(--ease-out-expo) both;
}

.sub-item strong {
  font-weight: 600;
}

.sub-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Telegram widget container */
.tg-widget-wrap {
  min-height: 48px;
  display: flex;
  align-items: center;
}

/* Links inline */
.link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link:hover {
  color: #9ab4ff;
}

.hidden {
  display: none !important;
}

/* Landing (index) */
.site-main--landing .hero--landing {
  max-width: 760px;
}

.btn-row--landing {
  flex-wrap: wrap;
}

.features--landing {
  margin-top: clamp(24px, 5vw, 48px);
}

/* Landing — контент и «туннель» */
.hero--landing .hero-title-shimmer {
  background: linear-gradient(
    115deg,
    #fff 0%,
    rgba(230, 232, 255, 0.95) 22%,
    var(--accent) 48%,
    rgba(200, 180, 255, 0.9) 72%,
    #fff 100%
  );
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    fadeUp 0.65s var(--ease-out-expo) 0.1s both,
    heroTitleShimmer 16s ease-in-out infinite;
}

@keyframes heroTitleShimmer {
  0%,
  100% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
}

/* Главная: смена текстов (landing.js) */
.landing-text--out {
  animation: landingTextOut 0.36s ease forwards;
}

@keyframes landingTextOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

.landing-text--snap-in {
  animation: landingTextSnapIn 0.48s var(--ease-out-expo) both;
}

@keyframes landingTextSnapIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landingTextOutOp {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes landingTextSnapInOp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero--landing #landingHeadline.landing-text--out {
  animation:
    landingTextOutOp 0.36s ease forwards,
    heroTitleShimmer 16s ease-in-out infinite;
}

.hero--landing #landingHeadline.landing-text--snap-in {
  animation:
    landingTextSnapInOp 0.48s var(--ease-out-expo) both,
    heroTitleShimmer 16s ease-in-out infinite;
}

.tunnel-showcase {
  margin-bottom: clamp(40px, 8vw, 72px);
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: rgba(12, 14, 28, 0.5);
  backdrop-filter: blur(14px) saturate(150%);
  animation: fadeUp 0.65s var(--ease-out-expo) 0.2s both;
}

.tunnel-showcase__heading {
  margin: 0 0 10px;
  font-size: clamp(1.12rem, 2.4vw, 1.38rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.tunnel-showcase__sub {
  margin: 0 0 22px;
  max-width: 62ch;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.tunnel-showcase__viz {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 22px);
  padding: clamp(16px, 3vw, 24px) clamp(12px, 2vw, 18px);
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.22);
  --mx: 50%;
  --my: 50%;
}

.tunnel-showcase__endpoint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 88px;
}

.tunnel-showcase__icon {
  display: grid;
  place-items: center;
  color: var(--accent);
  opacity: 0.95;
}

.tunnel-showcase__ep-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.25;
  max-width: 11ch;
}

.tunnel-showcase__track-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: min(100%, 260px);
  max-width: 420px;
}

.tunnel-showcase__track {
  position: relative;
  width: 100%;
  height: 50px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: linear-gradient(
    90deg,
    rgba(108, 140, 255, 0.07),
    rgba(108, 140, 255, 0.14) 50%,
    rgba(168, 85, 247, 0.1)
  );
}

.tunnel-showcase__glow {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background: radial-gradient(
    circle 90px at var(--mx) var(--my),
    rgba(108, 140, 255, 0.5),
    transparent 68%
  );
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.tunnel-showcase__packet {
  position: absolute;
  top: 50%;
  left: 6%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 28% 28%, #fff, var(--accent));
  box-shadow: 0 0 16px var(--accent-glow);
  z-index: 1;
  animation: tunnelPacket 2.9s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.tunnel-showcase__packet--2 {
  animation-delay: -1s;
  width: 9px;
  height: 9px;
  opacity: 0.88;
}

.tunnel-showcase__packet--3 {
  animation-delay: -1.95s;
  width: 8px;
  height: 8px;
  opacity: 0.75;
  background: radial-gradient(circle at 28% 28%, #fff, var(--accent-2));
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
}

@keyframes tunnelPacket {
  0% {
    left: 5%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  45% {
    opacity: 1;
  }
  55% {
    opacity: 0.35;
  }
  65% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 95%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

.tunnel-showcase__lock {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(8, 10, 20, 0.94);
  border: 1px solid var(--stroke-strong);
  color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(108, 140, 255, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.45);
  animation: tunnelLockPulse 3s ease-in-out infinite;
}

@keyframes tunnelLockPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(108, 140, 255, 0.12),
      0 8px 28px rgba(0, 0, 0, 0.45);
    color: var(--accent);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(168, 85, 247, 0.25),
      0 10px 36px rgba(108, 140, 255, 0.25);
    color: #9ab4ff;
  }
}

.tunnel-showcase__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tunnel-showcase__badges li {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  animation: tunnelBadgeBob 4.5s ease-in-out infinite;
}

.tunnel-showcase__badges li:nth-child(2) {
  animation-delay: -1.2s;
}

.tunnel-showcase__badges li:nth-child(3) {
  animation-delay: -2.4s;
}

@keyframes tunnelBadgeBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.tunnel-showcase--static .tunnel-showcase__packet,
.tunnel-showcase--static .tunnel-showcase__glow,
.tunnel-showcase--static .tunnel-showcase__lock,
.tunnel-showcase--static .tunnel-showcase__badges li {
  animation: none !important;
}

.tunnel-showcase--static .tunnel-showcase__packet {
  left: 32%;
  opacity: 0.85;
}

.tunnel-showcase--static .tunnel-showcase__packet--2 {
  left: 58%;
  opacity: 0.65;
}

.tunnel-showcase--static .tunnel-showcase__packet--3 {
  display: none;
}

@media (max-width: 520px) {
  .tunnel-showcase__viz {
    flex-direction: column;
  }

  .tunnel-showcase__track-wrap {
    order: 2;
    max-width: none;
  }

  .tunnel-showcase__endpoint--left {
    order: 1;
  }

  .tunnel-showcase__endpoint--right {
    order: 3;
  }
}

/* Auth */
.auth-home-link {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.hero--auth .hero__subtitle {
  margin: -4px 0 12px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  animation: fadeUp 0.65s var(--ease-out-expo) 0.14s both;
}

/* Auth — компактная форма входа, те же токены что на остальных страницах */
.auth-page .auth-page__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  max-width: none;
  padding-top: clamp(20px, 4vh, 40px);
  padding-bottom: clamp(28px, 5vw, 56px);
}

.auth-page__center {
  width: 100%;
  max-width: 440px;
}

.auth-logon-card.panel {
  width: 100%;
}

.auth-logon-card__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.auth-logon-card__lead {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.auth-logon-card .auth-logon-card__fields label {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.875rem;
}

.auth-logon-card__fields {
  gap: 14px;
}

.auth-logon-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.auth-logon-card__actions .btn {
  width: 100%;
  justify-content: center;
}

.auth-logon-card__actions--row {
  flex-direction: row;
  flex-wrap: wrap;
}

.auth-logon-card__actions--row .btn {
  flex: 1 1 auto;
  min-width: 140px;
}

.auth-logon-card__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-logon-card__divider::before,
.auth-logon-card__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--stroke);
}

.auth-logon-card__tg-label {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-logon-card__tg {
  justify-content: flex-start;
}

.auth-logon-card__status {
  margin: 12px 0 0;
  min-height: 1.25em;
  font-size: 0.9rem;
  color: var(--danger);
}

.auth-logon-card__back {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
  text-align: center;
  font-size: 0.9rem;
}

/* Tariffs page */
.site-main--tariffs .tariffs-guest-cta {
  margin-top: 32px;
}

.plan-card__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.plan-card--static .plan-card__price {
  margin-bottom: 12px;
}

/* Dashboard */
.site-main--dashboard .dashboard-hero {
  margin-bottom: clamp(28px, 5vw, 48px);
}

.dashboard-status-panel .muted {
  margin-bottom: 0;
}

.dashboard-support-panel .btn {
  margin-top: 0;
}

/* Support chat */
.support-layout {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .support-layout {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }
}

.support-chat {
  display: flex;
  flex-direction: column;
  min-height: min(72vh, 640px);
  max-height: 80vh;
}

.support-chat__head {
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--stroke);
}

.support-chat__head h2 {
  margin: 0 0 6px;
}

.support-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 4px 16px;
  scroll-behavior: smooth;
}

.support-msg {
  max-width: min(92%, 420px);
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.45;
  animation: msgIn 0.35s var(--ease-out-expo) both;
  word-break: break-word;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.support-msg--guest,
.support-msg--user {
  align-self: flex-end;
  background: linear-gradient(145deg, rgba(108, 140, 255, 0.35), rgba(79, 111, 255, 0.2));
  border: 1px solid rgba(160, 180, 255, 0.35);
  border-bottom-right-radius: 4px;
}

.support-msg--support {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-bottom-left-radius: 4px;
}

.support-msg__meta {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-family: var(--font-mono);
}

.support-compose {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}

.support-compose textarea {
  flex: 1;
  min-height: 52px;
  max-height: 160px;
}

.support-compose .btn {
  flex-shrink: 0;
  align-self: flex-end;
}
