* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #b3b4ff;
  --secondary: #8c8eff;
  --accent: #dadbff;
  --bg-dark: #04060a;
  --bg-card: rgba(12, 20, 30, 0.56);
  --bg-card-strong: rgba(14, 24, 36, 0.72);
  --border: rgba(179, 180, 255, 0.28);
  --border-strong: rgba(179, 180, 255, 0.55);
  --text: #f8fbff;
  --text-muted: rgba(230, 244, 255, 0.65);
  --glow-1: rgba(179, 180, 255, 0.26);
  --glow-2: rgba(179, 180, 255, 0.18);
  --glass-blur: 22px;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.45);
}

@font-face {
  font-family: 'Energy';
  src: url('/fonts/energy.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  font-family:
    'Manrope',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
  font-feature-settings:
    'cv02' 1,
    'cv03' 1,
    'cv04' 1,
    'cv11' 1;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  opacity: 0;
  animation: page-fade-in 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.page-leave {
  animation: page-fade-out 200ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes page-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.navbar .container > *,
.hero-text > *,
.hero-actions > *,
.hero-visual img,
.features-grid > *,
.stats-grid > *,
.auth-head > *,
.auth-container > *,
.auth-form > *,
.dashboard-container > *,
.dash-main > *,
.dash-sidebar > *,
.dashboard-grid > *,
.dashboard-actions > *,
.shop-container > *,
.shop-grid > * {
  opacity: 0;
  transform: translateY(12px);
  animation: element-fade-in 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--anim-delay, 0ms);
  will-change: opacity, transform;
}

.navbar .logo {
  animation-name: element-fade-in, logo-sheen;
  animation-duration: 560ms, 6.8s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1), ease-in-out;
  animation-delay: var(--anim-delay, 0ms), 0s;
  animation-fill-mode: both, none;
  animation-iteration-count: 1, infinite;
  will-change: opacity, transform, background-position;
}

@keyframes element-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions > * {
  transform: none;
  animation-name: element-fade-in-opacity;
  will-change: opacity;
}

@keyframes element-fade-in-opacity {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.navbar .container > *:nth-child(1) {
  --anim-delay: 40ms;
}
.navbar .container > *:nth-child(2) {
  --anim-delay: 80ms;
}
.navbar .container > *:nth-child(3) {
  --anim-delay: 120ms;
}
.navbar .container > *:nth-child(4) {
  --anim-delay: 160ms;
}

.hero-text > *:nth-child(1) {
  --anim-delay: 120ms;
}
.hero-text > *:nth-child(2) {
  --anim-delay: 170ms;
}
.hero-text > *:nth-child(3) {
  --anim-delay: 220ms;
}
.hero-text > *:nth-child(4) {
  --anim-delay: 270ms;
}

.hero-actions > *:nth-child(1) {
  --anim-delay: 260ms;
}
.hero-actions > *:nth-child(2) {
  --anim-delay: 310ms;
}
.hero-actions > *:nth-child(3) {
  --anim-delay: 360ms;
}

.features-grid > *:nth-child(1) {
  --anim-delay: 80ms;
}
.features-grid > *:nth-child(2) {
  --anim-delay: 120ms;
}
.features-grid > *:nth-child(3) {
  --anim-delay: 160ms;
}
.features-grid > *:nth-child(4) {
  --anim-delay: 200ms;
}
.features-grid > *:nth-child(5) {
  --anim-delay: 240ms;
}
.features-grid > *:nth-child(6) {
  --anim-delay: 280ms;
}
.features-grid > *:nth-child(7) {
  --anim-delay: 320ms;
}
.features-grid > *:nth-child(8) {
  --anim-delay: 360ms;
}
.features-grid > *:nth-child(9) {
  --anim-delay: 400ms;
}
.features-grid > *:nth-child(10) {
  --anim-delay: 440ms;
}
.features-grid > *:nth-child(11) {
  --anim-delay: 480ms;
}
.features-grid > *:nth-child(12) {
  --anim-delay: 520ms;
}

.stats-grid > *:nth-child(1) {
  --anim-delay: 100ms;
}
.stats-grid > *:nth-child(2) {
  --anim-delay: 140ms;
}
.stats-grid > *:nth-child(3) {
  --anim-delay: 180ms;
}
.stats-grid > *:nth-child(4) {
  --anim-delay: 220ms;
}
.stats-grid > *:nth-child(5) {
  --anim-delay: 260ms;
}
.stats-grid > *:nth-child(6) {
  --anim-delay: 300ms;
}

.auth-container > *:nth-child(1) {
  --anim-delay: 120ms;
}
.auth-container > *:nth-child(2) {
  --anim-delay: 160ms;
}
.auth-container > *:nth-child(3) {
  --anim-delay: 200ms;
}
.auth-container > *:nth-child(4) {
  --anim-delay: 240ms;
}
.auth-container > *:nth-child(5) {
  --anim-delay: 280ms;
}
.auth-container > *:nth-child(6) {
  --anim-delay: 320ms;
}
.auth-container > *:nth-child(7) {
  --anim-delay: 360ms;
}
.auth-container > *:nth-child(8) {
  --anim-delay: 400ms;
}

.auth-form > *:nth-child(1) {
  --anim-delay: 140ms;
}
.auth-form > *:nth-child(2) {
  --anim-delay: 180ms;
}
.auth-form > *:nth-child(3) {
  --anim-delay: 220ms;
}
.auth-form > *:nth-child(4) {
  --anim-delay: 260ms;
}
.auth-form > *:nth-child(5) {
  --anim-delay: 300ms;
}
.auth-form > *:nth-child(6) {
  --anim-delay: 340ms;
}
.auth-form > *:nth-child(7) {
  --anim-delay: 380ms;
}
.auth-form > *:nth-child(8) {
  --anim-delay: 420ms;
}
.auth-form > *:nth-child(9) {
  --anim-delay: 460ms;
}
.auth-form > *:nth-child(10) {
  --anim-delay: 500ms;
}

.dashboard-grid > *:nth-child(1) {
  --anim-delay: 80ms;
}
.dashboard-grid > *:nth-child(2) {
  --anim-delay: 120ms;
}
.dashboard-grid > *:nth-child(3) {
  --anim-delay: 160ms;
}
.dashboard-grid > *:nth-child(4) {
  --anim-delay: 200ms;
}
.dashboard-grid > *:nth-child(5) {
  --anim-delay: 240ms;
}
.dashboard-grid > *:nth-child(6) {
  --anim-delay: 280ms;
}
.dashboard-grid > *:nth-child(7) {
  --anim-delay: 320ms;
}
.dashboard-grid > *:nth-child(8) {
  --anim-delay: 360ms;
}
.dashboard-grid > *:nth-child(9) {
  --anim-delay: 400ms;
}
.dashboard-grid > *:nth-child(10) {
  --anim-delay: 440ms;
}
.dashboard-grid > *:nth-child(11) {
  --anim-delay: 480ms;
}
.dashboard-grid > *:nth-child(12) {
  --anim-delay: 520ms;
}

.dashboard-actions > *:nth-child(1) {
  --anim-delay: 140ms;
}
.dashboard-actions > *:nth-child(2) {
  --anim-delay: 180ms;
}
.dashboard-actions > *:nth-child(3) {
  --anim-delay: 220ms;
}
.dashboard-actions > *:nth-child(4) {
  --anim-delay: 260ms;
}
.dashboard-actions > *:nth-child(5) {
  --anim-delay: 300ms;
}
.dashboard-actions > *:nth-child(6) {
  --anim-delay: 340ms;
}
.dashboard-actions > *:nth-child(7) {
  --anim-delay: 380ms;
}
.dashboard-actions > *:nth-child(8) {
  --anim-delay: 420ms;
}
.dashboard-actions > *:nth-child(9) {
  --anim-delay: 460ms;
}
.dashboard-actions > *:nth-child(10) {
  --anim-delay: 500ms;
}

.shop-grid > *:nth-child(1) {
  --anim-delay: 80ms;
}
.shop-grid > *:nth-child(2) {
  --anim-delay: 120ms;
}
.shop-grid > *:nth-child(3) {
  --anim-delay: 160ms;
}
.shop-grid > *:nth-child(4) {
  --anim-delay: 200ms;
}
.shop-grid > *:nth-child(5) {
  --anim-delay: 240ms;
}
.shop-grid > *:nth-child(6) {
  --anim-delay: 280ms;
}
.shop-grid > *:nth-child(7) {
  --anim-delay: 320ms;
}
.shop-grid > *:nth-child(8) {
  --anim-delay: 360ms;
}
.shop-grid > *:nth-child(9) {
  --anim-delay: 400ms;
}
.shop-grid > *:nth-child(10) {
  --anim-delay: 440ms;
}
.shop-grid > *:nth-child(11) {
  --anim-delay: 480ms;
}
.shop-grid > *:nth-child(12) {
  --anim-delay: 520ms;
}

@media (prefers-reduced-motion: reduce) {
  body {
    opacity: 1;
    animation: none;
  }
  body.page-leave {
    animation: none;
  }
  .navbar .container > *,
  .hero-text > *,
  .hero-actions > *,
  .hero-visual img,
  .features-grid > *,
  .stats-grid > *,
  .auth-head > *,
  .auth-container--v2,
  .auth-container > *,
  .auth-form > *,
  .dashboard-container > *,
  .dash-main > *,
  .dash-sidebar > *,
  .dashboard-grid > *,
  .dashboard-actions > *,
  .shop-container > *,
  .shop-grid > * {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .dashboard-container.dashboard-v2::before,
  .dash-dock::before,
  .dash-card::before,
  .dash-metric::before,
  .dash-btn:hover::before,
  .dock-btn:hover::after {
    animation: none !important;
  }
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(
      900px 520px at 50% -10%,
      rgba(218, 219, 255, 0.22),
      rgba(218, 219, 255, 0) 70%
    ),
    radial-gradient(
      760px 520px at 14% 18%,
      rgba(179, 180, 255, 0.18),
      rgba(179, 180, 255, 0) 72%
    ),
    radial-gradient(
      820px 540px at 86% 12%,
      rgba(179, 180, 255, 0.18),
      rgba(179, 180, 255, 0) 72%
    ),
    radial-gradient(
      980px 620px at 50% 82%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 76%
    );
  filter: blur(28px);
  opacity: 0.9;
}

body::after {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(179, 180, 255, 0.06) 0,
      rgba(179, 180, 255, 0.06) 1px,
      rgba(179, 180, 255, 0) 1px,
      rgba(179, 180, 255, 0) 72px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(179, 180, 255, 0.05) 0,
      rgba(179, 180, 255, 0.05) 1px,
      rgba(179, 180, 255, 0) 1px,
      rgba(179, 180, 255, 0) 72px
    );
  opacity: 0.6;
  mask-image: radial-gradient(
    120% 120% at 50% 20%,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0) 70%
  );
}

input,
textarea,
.dashboard-item span {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 12, 18, 0.55);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(179, 180, 255, 0.55),
    rgba(140, 142, 255, 0.55)
  );
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 18, 0.65);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(179, 180, 255, 0.68),
    rgba(140, 142, 255, 0.68)
  );
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(179, 180, 255, 0.55) rgba(8, 12, 18, 0.55);
  overflow-x: hidden;
}

img {
  transition: filter 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.navbar {
  position: fixed;
  top: 12px;
  left: 0;
  transform: none;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.navbar .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  padding: 10px clamp(16px, 3.2vw, 44px);
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  background: rgba(10, 16, 24, 0.62);
  border-radius: 18px;
  border: 1px solid rgba(179, 180, 255, 0.16);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(var(--glass-blur));
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  transition:
    background 320ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 320ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 320ms cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 320ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar .container::before {
  content: '';
  position: absolute;
  inset: -70% -40% auto -40%;
  height: 170%;
  background: radial-gradient(
    closest-side,
    rgba(179, 180, 255, 0.22),
    rgba(179, 180, 255, 0)
  );
  pointer-events: none;
  filter: blur(7px);
  opacity: 0.8;
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.navbar--glass .container {
  background: rgba(10, 16, 24, 0.62);
  border-radius: 18px;
  border: 1px solid rgba(179, 180, 255, 0.16);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(var(--glass-blur));
  transform: translateY(0);
}

.navbar.navbar--glass .container::before {
  background: radial-gradient(
    closest-side,
    rgba(179, 180, 255, 0.22),
    rgba(179, 180, 255, 0)
  );
  opacity: 0.8;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background:
    linear-gradient(
      125deg,
      rgba(248, 251, 255, 0.98) 0%,
      #dadbff 22%,
      #b3b4ff 50%,
      #8c8eff 78%,
      rgba(248, 251, 255, 0.92) 100%
    ),
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 1) 50%,
      rgba(255, 255, 255, 0) 70%,
      rgba(255, 255, 255, 0) 100%
    );
  background-size:
    280% 280%,
    340% 100%;
  background-position:
    10% 50%,
    -140% 50%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  cursor: pointer;
  justify-self: start;
  animation: logo-sheen 5.6s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(179, 180, 255, 0.1))
    drop-shadow(0 0 5px rgba(218, 219, 255, 0.12));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(12px, 2vw, 22px);
  margin: 0;
  padding: 0;
  justify-content: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(179, 180, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(18, 30, 42, 0.9), rgba(10, 18, 28, 0.6)),
    radial-gradient(
      80% 120% at 20% 0%,
      rgba(179, 180, 255, 0.22),
      rgba(179, 180, 255, 0)
    );
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(179, 180, 255, 0.06);
  gap: 5px;
  padding: 0;
  backdrop-filter: blur(var(--glass-blur));
  isolation: isolate;
}

.nav-toggle:hover {
  transform: translateY(-0.5px);
  border-color: rgba(179, 180, 255, 0.42);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(179, 180, 255, 0.12);
}

.nav-toggle-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.navbar.navbar--open .nav-toggle-icon {
  transform: rotate(180deg);
}

.nav-toggle:hover .nav-toggle-icon {
  filter: brightness(0) invert(1)
    drop-shadow(0 6px 12px rgba(179, 180, 255, 0.24));
}

.nav-actions .btn-account.btn-signin,
.nav-actions .btn-account.btn-signup,
.nav-actions .btn-account.btn-profile {
  border-radius: 16px;
  padding: 10px 14px;
  min-height: 40px;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    filter 0.25s,
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}

.nav-actions .btn-profile {
  display: none;
}

html.auth-in .nav-actions .btn-signin,
html.auth-in .nav-actions .btn-signup {
  display: none !important;
}

html.auth-in .nav-actions .btn-profile {
  display: flex !important;
}

.btn-account.btn-signin,
.btn-account.btn-profile {
  color: rgba(190, 198, 208, 0.9);
}

.btn-account.btn-signin .btn-icon,
.btn-account.btn-profile .btn-icon {
  filter: brightness(0) invert(0.72);
  opacity: 0.9;
}

.btn-account.btn-signup {
  background: linear-gradient(
    135deg,
    rgba(179, 180, 255, 0.92) 0%,
    rgba(179, 180, 255, 0.92) 86%,
    rgba(218, 219, 255, 0.92) 100%
  );
  color: rgba(10, 15, 22, 0.92);
  border-color: rgba(179, 180, 255, 0.65);
  box-shadow: 0 5px 10px rgba(179, 180, 255, 0.08);
}

.btn-account.btn-signup::before,
.btn-account.btn-signup::after {
  opacity: 0;
}

.btn-account.btn-signup:hover {
  border-color: rgba(179, 180, 255, 0.9);
  filter: brightness(1.03);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 12px rgba(179, 180, 255, 0.1);
}

.btn-account.btn-signup .btn-icon {
  filter: brightness(0) invert(0);
  opacity: 0.85;
}

.btn-account.btn-cta-secondary {
  color: rgba(190, 198, 208, 0.9);
}

.btn-account.btn-cta-secondary .btn-icon {
  filter: brightness(0) invert(0.72);
  opacity: 0.9;
}

.btn-account.btn-cta-primary {
  background: var(--primary);
  color: rgba(10, 15, 22, 0.9);
  border-color: rgba(179, 180, 255, 0.65);
}

.btn-account.btn-cta-primary::before {
  opacity: 0;
}

.btn-account.btn-cta-primary::after {
  opacity: 0;
}

.btn-account.btn-cta-primary:hover {
  border-color: rgba(179, 180, 255, 0.9);
  filter: brightness(1.03);
}

.btn-account.btn-cta-primary .btn-icon {
  filter: brightness(0) invert(0);
  opacity: 0.7;
}

.nav-links a {
  color: rgba(190, 198, 208, 0.9);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 6px;
  min-height: 40px;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(72%) sepia(0%) saturate(0%)
    hue-rotate(200deg) brightness(102%) contrast(92%);
  transition:
    filter 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0.92;
  will-change: filter, opacity;
}

.nav-links a:hover .nav-icon {
  filter: brightness(0) saturate(100%) invert(82%) sepia(12%) saturate(1632%)
    hue-rotate(200deg) brightness(104%) contrast(101%);
  opacity: 1;
}

.btn-account {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(18, 30, 42, 0.92),
    rgba(10, 18, 28, 0.68)
  );
  color: var(--text);
  border: 1px solid rgba(179, 180, 255, 0.22);
  padding: 14px 18px;
  font-size: 14px;
  border-radius: 14px;
  cursor: pointer;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease,
    border-color 220ms ease,
    filter 220ms ease;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28);
  justify-self: end;
  min-height: 52px;
  backdrop-filter: blur(var(--glass-blur));
  isolation: isolate;
}

.btn-account::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      120% 140% at 20% 0%,
      rgba(179, 180, 255, 0.34),
      rgba(179, 180, 255, 0) 55%
    ),
    radial-gradient(
      120% 140% at 80% 0%,
      rgba(179, 180, 255, 0.24),
      rgba(179, 180, 255, 0) 60%
    );
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.btn-account::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(14px - 1px);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.45;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}

.btn-account > * {
  position: relative;
  z-index: 1;
}

.btn-account:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(179, 180, 255, 0.42);
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.36),
    0 0 0 3px rgba(179, 180, 255, 0.1);
  filter: brightness(1.03);
}

.btn-account:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-account:focus-visible {
  outline: none;
  border-color: rgba(179, 180, 255, 0.55);
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.36),
    0 0 0 3px rgba(179, 180, 255, 0.16);
}

.btn-account .btn-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 600px);
  align-items: center;
  gap: clamp(24px, 6vw, 90px);
  max-width: 1400px;
}

.hero-text {
  text-align: left;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions .btn-account {
  justify-self: start;
  min-height: 46px;
  padding: 12px 16px;
  font-size: 13px;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-visual img {
  width: min(52vw, 720px);
  max-width: 100%;
  height: auto;
  filter: none;
}

.hero-visual img:hover {
  filter: none;
}

.gradient-bg {
  display: none;
}

.hero-title {
  font-size: clamp(34px, 6.4vw, 76px);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 12px;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 19px);
  color: var(--text-muted);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  line-height: 1.42;
}

.btn-primary {
  background: #0f1824;
  color: var(--text);
  border: none;
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
  z-index: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.features {
  padding: 110px 0;
  background: transparent;
}

.features [data-reveal] {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition:
    opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.features [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.features .features-grid > * {
  animation: none;
}

.advantages {
  padding: 92px 0 120px;
  background: transparent;
}

.advantages-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px;
  background: rgba(10, 16, 24, 0.55);
  border: 1px solid rgba(179, 180, 255, 0.16);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(var(--glass-blur));
  position: relative;
  overflow: hidden;
}

.advantages-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      740px 360px at 14% -10%,
      rgba(179, 180, 255, 0.16),
      rgba(179, 180, 255, 0) 62%
    ),
    radial-gradient(
      740px 360px at 86% 0%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 62%
    );
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
  animation: dash-orbit 14s ease-in-out infinite;
}

.advantages-panel::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 20px;
  background: rgba(8, 12, 18, 0.35);
  pointer-events: none;
  z-index: 0;
}

.advantages-panel > * {
  position: relative;
  z-index: 1;
}

.advantages-head {
  padding: 6px 6px 16px;
  border-bottom: 1px solid rgba(179, 180, 255, 0.14);
  margin-bottom: 16px;
}

.advantages-title {
  margin: 0;
  font-size: clamp(26px, 3.8vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
}

.advantages-subtitle {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 820px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 6px 6px;
}

.advantages [data-reveal] {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 560ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.advantages [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.adv-card {
  background: rgba(10, 16, 24, 0.55);
  border-radius: 18px;
  border: 1px solid rgba(179, 180, 255, 0.14);
  padding: 16px 16px 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--glass-blur));
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s,
    box-shadow 0.35s,
    border-color 0.35s,
    filter 0.35s;
  min-height: 168px;
}

.adv-glint {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 45%,
    rgba(255, 255, 255, 0) 62%
  );
  transform: translateX(-140%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}

.adv-card:hover .adv-glint {
  opacity: 1;
  animation: adv-glint 950ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.adv-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      520px 260px at 18% -10%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 62%
    ),
    radial-gradient(
      520px 260px at 84% 0%,
      rgba(179, 180, 255, 0.1),
      rgba(179, 180, 255, 0) 62%
    );
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.35s ease;
  animation: dash-orbit 18s ease-in-out infinite;
}

.adv-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.35);
  pointer-events: none;
}

.adv-card > * {
  position: relative;
  z-index: 1;
}

.adv-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(179, 180, 255, 0.28);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.55),
    0 0 0 3px rgba(179, 180, 255, 0.08);
  filter: brightness(1.02);
}

.adv-card:hover::before {
  opacity: 1;
}

.adv-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adv-top h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: rgba(248, 251, 255, 0.96);
}

.adv-ico {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(179, 180, 255, 0.12);
  border: 1px solid rgba(179, 180, 255, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}

.adv-ico img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(0.9);
  opacity: 0.95;
  transition:
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.adv-card:hover .adv-ico img {
  transform: scale(1.12) rotate(-8deg);
  filter: brightness(0) saturate(100%) invert(82%) sepia(12%) saturate(1632%)
    hue-rotate(200deg) brightness(104%) contrast(101%);
}

.adv-card p {
  margin: 10px 0 0;
  color: rgba(230, 244, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.adv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.adv-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(179, 180, 255, 0.18);
  background: rgba(8, 12, 18, 0.22);
  color: rgba(230, 244, 255, 0.78);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  transition:
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.adv-card:hover .adv-tag {
  transform: translateY(-2px);
  border-color: rgba(179, 180, 255, 0.32);
  background: rgba(8, 12, 18, 0.28);
}

.adv-card:hover .adv-tag:nth-child(1) {
  transition-delay: 0ms;
}
.adv-card:hover .adv-tag:nth-child(2) {
  transition-delay: 60ms;
}

.adv-card:hover .adv-ico {
  border-color: rgba(179, 180, 255, 0.32);
}

@media (max-width: 980px) {
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .advantages-panel {
    padding: 16px;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
    padding: 12px 4px 4px;
  }
  .advantages-head {
    padding: 4px 4px 12px;
  }
}

@keyframes adv-glint {
  0% {
    transform: translateX(-140%);
  }
  100% {
    transform: translateX(140%);
  }
}

.servers {
  padding: 40px 0 140px;
  background: transparent;
}

.servers .container {
  max-width: 1480px;
  padding: 0 26px;
}

.servers-shell {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
  overflow: visible;
}

.servers-shell::before {
  display: none;
}

.servers-shell::after {
  display: none;
}

.servers-shell > * {
  position: relative;
  z-index: 1;
}

.servers-diagram {
  --center: 640px;
  --gap: 68px;
  display: grid;
  padding: 6px 6px 14px;
  position: relative;
}

.servers-map {
  position: relative;
  width: 100%;
  min-height: min(760px, 84vh);
  border-radius: 26px;
  overflow: visible;
}

.servers-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      880px 440px at 50% 40%,
      rgba(179, 180, 255, 0.06),
      rgba(179, 180, 255, 0) 62%
    ),
    radial-gradient(
      880px 440px at 50% 60%,
      rgba(218, 219, 255, 0.04),
      rgba(218, 219, 255, 0) 66%
    );
  opacity: 0.72;
  pointer-events: none;
}

.servers-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.servers-link {
  fill: none;
  stroke: url(#serversLine);
  stroke-width: 2.2;
  filter: url(#serversGlow);
  stroke-linecap: round;
  stroke-dasharray: 6 12;
  opacity: 0.85;
  animation: servers-dash 3.8s linear infinite;
}

.servers-link--b,
.servers-link--d {
  animation-duration: 4.4s;
  opacity: 0.75;
}

@keyframes servers-dash {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -220;
  }
}

.servers [data-reveal] {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 560ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.servers [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1100px) {
  .servers-diagram {
    --center: 520px;
    --gap: 34px;
  }
}

@media (max-width: 560px) {
  .servers .container {
    padding: 0 16px;
  }
  .servers-head {
    padding: 4px 4px 12px;
  }
  .servers-diagram {
    grid-template-columns: 1fr;
    row-gap: 14px;
    column-gap: 0;
    padding: 12px 4px 4px;
  }
}

.servers-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  pointer-events: auto;
}

.servers-core-hero {
  width: min(640px, 100%);
  padding: 0;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  pointer-events: auto;
}

.servers-core-hero::before {
  content: '';
  position: absolute;
  inset: -140px -120px -120px -120px;
  background:
    radial-gradient(
      680px 320px at 50% 40%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 62%
    ),
    radial-gradient(
      680px 320px at 50% 60%,
      rgba(218, 219, 255, 0.08),
      rgba(218, 219, 255, 0) 66%
    );
  opacity: 0.82;
  pointer-events: none;
  filter: blur(3px);
  animation: dash-orbit 16s ease-in-out infinite;
}

.servers-core-hero::after {
  display: none;
}

@keyframes servers-core-shine {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  30% {
    opacity: 0.85;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

.servers-core-badge {
  display: inline-flex;
  justify-self: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(179, 180, 255, 0.18);
  background: rgba(8, 12, 18, 0.24);
  color: rgba(230, 244, 255, 0.78);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.servers-core-title {
  font-size: clamp(22px, 3vw, 46px);
  letter-spacing: -0.03em;
  font-weight: 900;
  color: rgba(248, 251, 255, 0.98);
  background: linear-gradient(
    125deg,
    rgba(248, 251, 255, 0.98) 0%,
    #dadbff 22%,
    #b3b4ff 50%,
    #8c8eff 78%,
    rgba(248, 251, 255, 0.92) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 1.05;
  text-shadow: 0 20px 50px rgba(179, 180, 255, 0.04);
}

.servers-core-sub {
  color: rgba(230, 244, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  margin: 0;
}

.servers-core-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.servers-core-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(179, 180, 255, 0.18);
  background: rgba(8, 12, 18, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transform: translateZ(0);
  transition:
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.servers-core-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.06) brightness(0.92);
}

.servers-core-hero:hover .servers-core-icon {
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(179, 180, 255, 0.3);
  filter: brightness(1.03);
}

.servers-core-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

.servers-core-actions .btn-account {
  min-height: 50px;
  padding: 12px 18px;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .servers-link {
    animation: none;
    stroke-dasharray: none;
    opacity: 0.6;
  }
  .servers-link {
    animation: none;
  }
}

.servers-col {
  display: contents;
}

.server-node {
  width: min(480px, 100%);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 20px;
  border: 1px solid rgba(179, 180, 255, 0.18);
  background:
    radial-gradient(
      520px 260px at 18% 10%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 62%
    ),
    linear-gradient(135deg, rgba(14, 22, 34, 0.74), rgba(9, 14, 22, 0.46));
  box-shadow:
    0 22px 62px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: absolute;
  overflow: hidden;
  transition:
    transform 0.35s,
    box-shadow 0.35s,
    border-color 0.35s,
    filter 0.35s;
  z-index: 2;
}

.server-node::before {
  content: '';
  position: absolute;
  inset: -60% -40% auto -40%;
  height: 140%;
  background: radial-gradient(
    560px 240px at 50% 0%,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0.6;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.server-node::after {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(179, 180, 255, 0),
    rgba(179, 180, 255, 0.86),
    rgba(218, 219, 255, 0),
    rgba(179, 180, 255, 0)
  );
  opacity: 0.88;
  box-shadow: 0 0 24px rgba(179, 180, 255, 0.18);
  pointer-events: none;
}

.server-node--left {
  left: 0;
  transform: translateY(-50%);
}

.server-node--right {
  right: 0;
  transform: translateY(-50%);
}

.server-node--a {
  top: 31%;
}
.server-node--b {
  top: 73%;
}
.server-node--c {
  top: 31%;
}
.server-node--d {
  top: 73%;
}

.server-node-thumb {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(179, 180, 255, 0.16);
  background: rgba(8, 12, 18, 0.24);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  position: relative;
}

.server-node-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(179, 180, 255, 0.16),
    rgba(179, 180, 255, 0)
  );
  opacity: 0.7;
  pointer-events: none;
}

.server-node-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.06) brightness(0.92);
  transform: scale(1.06);
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.server-node-text {
  display: grid;
  gap: 4px;
}

.server-node-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(248, 251, 255, 0.96);
}

.server-node-sub {
  color: rgba(230, 244, 255, 0.7);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.server-node-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.server-node-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(179, 180, 255, 0.18);
  background: rgba(8, 12, 18, 0.18);
  color: rgba(230, 244, 255, 0.78);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.02em;
  transition:
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.server-node {
  z-index: 2;
}

.server-node:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(179, 180, 255, 0.26);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.68),
    0 0 0 3px rgba(179, 180, 255, 0.08);
  filter: brightness(1.02);
}

.server-node:hover::before {
  opacity: 0.95;
  transform: translateY(0);
}

.server-node:hover .server-node-tag {
  transform: translateY(-2px);
  border-color: rgba(179, 180, 255, 0.3);
  background: rgba(8, 12, 18, 0.24);
}

.server-node:hover .server-node-tag:nth-child(1) {
  transition-delay: 0ms;
}
.server-node:hover .server-node-tag:nth-child(2) {
  transition-delay: 60ms;
}

.server-node--left:hover {
  transform: translateY(calc(-50% - 3px)) scale(1.02);
}

.server-node--right:hover {
  transform: translateY(calc(-50% - 3px)) scale(1.02);
}

.server-node:hover .server-node-thumb img {
  transform: scale(1.14);
  filter: saturate(1.1) contrast(1.1) brightness(0.98);
}

@media (max-width: 880px) {
  .servers-diagram {
    grid-template-columns: 1fr;
    row-gap: 14px;
    column-gap: 0;
  }
  .servers-col--left,
  .servers-col--right {
    justify-items: stretch;
  }
  .servers-links {
    display: none;
  }
  .servers-core {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto 16px;
  }
  .servers-core-hero {
    width: min(720px, 100%);
  }
  .server-node {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
  }
  .server-node--left:hover,
  .server-node--right:hover {
    transform: translateY(-3px) scale(1.02);
  }
}

.reviews {
  padding: 0 0 120px;
  background: transparent;
}

.reviews-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px;
  background: rgba(10, 16, 24, 0.55);
  border: 1px solid rgba(179, 180, 255, 0.16);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(var(--glass-blur));
  position: relative;
  overflow: hidden;
}

.reviews-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      780px 380px at 18% -10%,
      rgba(179, 180, 255, 0.14),
      rgba(179, 180, 255, 0) 62%
    ),
    radial-gradient(
      780px 380px at 82% 0%,
      rgba(179, 180, 255, 0.1),
      rgba(179, 180, 255, 0) 62%
    );
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  animation: dash-orbit 16s ease-in-out infinite;
}

.reviews-shell::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 20px;
  background: rgba(8, 12, 18, 0.35);
  pointer-events: none;
  z-index: 0;
}

.reviews-shell > * {
  position: relative;
  z-index: 1;
}

.reviews-head {
  padding: 6px 6px 16px;
  border-bottom: 1px solid rgba(179, 180, 255, 0.14);
  margin-bottom: 16px;
}

.reviews-title {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.reviews-subtitle {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 860px;
}

.reviews-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px 6px 6px;
  align-items: start;
}

.reviews-carousel {
  position: relative;
  display: grid;
  align-items: center;
}

.reviews-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 18px;
  border: 1px solid rgba(179, 180, 255, 0.18);
  background: rgba(10, 16, 24, 0.62);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.58);
  color: rgba(248, 251, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    transform 0.3s,
    border-color 0.3s,
    filter 0.3s,
    opacity 0.3s;
  z-index: 3;
}

.reviews-nav svg {
  width: 22px;
  height: 22px;
}

.reviews-nav--prev {
  left: 10px;
}

.reviews-nav--next {
  right: 10px;
}

.reviews-carousel:hover .reviews-nav {
  opacity: 1;
}

.reviews-nav:hover {
  transform: translateY(calc(-50% - 2px)) scale(1.04);
  border-color: rgba(179, 180, 255, 0.32);
  filter: brightness(1.04);
}

.reviews-nav:active {
  transform: translateY(calc(-50% - 1px)) scale(1.01);
}

.reviews-player {
  position: relative;
  z-index: 1;
}

.reviews-player {
  border-radius: 18px;
  border: 1px solid rgba(179, 180, 255, 0.14);
  background: rgba(10, 16, 24, 0.55);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.58);
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur));
  transition:
    transform 0.35s,
    box-shadow 0.35s,
    border-color 0.35s,
    filter 0.35s;
}

.reviews-top {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(179, 180, 255, 0.14);
  background: rgba(8, 12, 18, 0.16);
}

.reviews-nowthumb {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(179, 180, 255, 0.16);
  background: rgba(8, 12, 18, 0.24);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.reviews-nowthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.06) brightness(0.92);
}

.reviews-toptext {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.reviews-toplabel {
  color: rgba(230, 244, 255, 0.66);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reviews-toptitle {
  color: rgba(248, 251, 255, 0.94);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reviews-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
  background: rgba(6, 10, 16, 0.55);
}

.reviews-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.reviews-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(179, 180, 255, 0.14);
}

.reviews-now {
  color: rgba(230, 244, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.reviews-now span {
  color: rgba(248, 251, 255, 0.92);
}

.reviews-open {
  color: rgba(218, 219, 255, 0.9);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(179, 180, 255, 0.18);
  background: rgba(8, 12, 18, 0.18);
  transition:
    transform 0.3s,
    border-color 0.3s,
    filter 0.3s;
  white-space: nowrap;
}

.reviews-open:hover {
  transform: translateY(-2px);
  border-color: rgba(179, 180, 255, 0.3);
  filter: brightness(1.04);
}

.reviews-player.is-switching {
  filter: brightness(0.98);
}

.reviews-player.is-switching .reviews-frame {
  opacity: 0.82;
  transition: opacity 180ms ease;
}

.reviews-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 18px;
  margin-top: 10px;
}

.review-item {
  width: min(320px, 100%);
  flex: 0 0 auto;
  text-align: left;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(179, 180, 255, 0.14);
  background: rgba(10, 16, 24, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s,
    box-shadow 0.35s,
    border-color 0.35s,
    filter 0.35s;
}

.review-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      480px 220px at 18% 0%,
      rgba(179, 180, 255, 0.1),
      rgba(179, 180, 255, 0) 62%
    ),
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.1) 46%,
      rgba(255, 255, 255, 0) 62%
    );
  opacity: 0;
  pointer-events: none;
  transform: translateX(-120%);
  transition: opacity 240ms ease;
}

.review-item > * {
  position: relative;
  z-index: 1;
}

.review-thumb {
  width: 84px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(179, 180, 255, 0.16);
  background: rgba(8, 12, 18, 0.24);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.06) brightness(0.92);
  transition:
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.review-main {
  display: grid;
  gap: 4px;
}

.review-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(248, 251, 255, 0.96);
}

.review-sub {
  color: rgba(230, 244, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.review-item:hover {
  transform: none;
  border-color: rgba(179, 180, 255, 0.22);
  filter: brightness(1.02);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.55),
    0 0 0 3px rgba(179, 180, 255, 0.06);
}

.review-item:hover .review-thumb img {
  filter: saturate(1.1) contrast(1.1) brightness(0.98);
}

.review-item.is-active {
  border-color: rgba(179, 180, 255, 0.32);
  background: rgba(10, 16, 24, 0.62);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.62),
    0 0 0 3px rgba(179, 180, 255, 0.08);
}

.review-item.is-active::before {
  opacity: 1;
  animation: review-active-sheen 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes review-active-sheen {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 980px) {
  .reviews-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .reviews-shell {
    padding: 16px;
  }
  .reviews-head {
    padding: 4px 4px 12px;
  }
  .reviews-layout {
    padding: 12px 4px 4px;
  }
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 4.4vw, 48px);
  margin-bottom: 18px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 60px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  background: linear-gradient(
    135deg,
    rgba(18, 30, 42, 0.72),
    rgba(10, 18, 28, 0.46)
  );
  padding: 34px 28px;
  border-radius: 18px;
  text-align: center;
  transition:
    transform 0.35s,
    box-shadow 0.35s,
    border-color 0.35s;
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: -60% -40% auto -40%;
  height: 120%;
  background: radial-gradient(
    420px 180px at 50% 0%,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0.6;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(179, 180, 255, 0.2);
  border-color: var(--border-strong);
}

.feature-card:hover::before {
  opacity: 0.9;
  transform: translateY(0);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.feature-card:hover .feature-icon {
  filter: brightness(0) saturate(100%) invert(56%) sepia(89%) saturate(2476%)
    hue-rotate(195deg) brightness(103%) contrast(96%);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.stats-section {
  padding: 110px 0;
  background: transparent;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  background: linear-gradient(
    135deg,
    rgba(18, 30, 42, 0.72),
    rgba(10, 18, 28, 0.46)
  );
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  transition:
    transform 0.35s,
    box-shadow 0.35s,
    border-color 0.35s;
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-card);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(179, 180, 255, 0.2);
  border-color: var(--border-strong);
}

.stat-icon {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
}

.stat-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
}

.footer {
  background: transparent;
  padding: 26px 0 34px;
  text-align: center;
  color: var(--text-muted);
  border-top: none;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.social-links a {
  transition:
    transform 0.3s,
    opacity 0.3s,
    filter 0.3s;
  opacity: 0.75;
}

.social-links a:hover {
  transform: translateY(-3px);
  opacity: 1;
  filter: drop-shadow(0 6px 16px rgba(179, 180, 255, 0.32));
}

.social-links img {
  width: 32px;
  height: 32px;
  filter: brightness(0) saturate(100%) invert(84%) sepia(6%) saturate(434%)
    hue-rotate(182deg) brightness(92%) contrast(87%);
}

#loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 10001;
  transition:
    width 0.3s ease,
    opacity 0.3s ease;
  opacity: 1;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 10, 0.8);
  backdrop-filter: blur(10px);
}

.modal-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      460px 260px at 35% 18%,
      rgba(179, 180, 255, 0.22),
      transparent 60%
    ),
    radial-gradient(
      520px 300px at 80% 10%,
      rgba(179, 180, 255, 0.2),
      transparent 60%
    ),
    radial-gradient(
      380px 260px at 12% 80%,
      rgba(218, 219, 255, 0.14),
      transparent 60%
    );
  animation: glowMove 18s ease-in-out infinite alternate;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 36px;
  width: 90%;
  max-width: 420px;
  background: linear-gradient(
    135deg,
    rgba(18, 30, 42, 0.82),
    rgba(12, 20, 30, 0.58)
  );
  border-radius: 20px;
  border: 1px solid var(--border);
  text-align: center;
  z-index: 10001;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(var(--glass-blur));
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: var(--text);
}

.modal-content h2 {
  margin-bottom: 24px;
  font-size: 26px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-shell {
  width: min(380px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.auth-head {
  margin-bottom: 0;
  width: 100%;
  text-align: center;
}

.auth-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}

.auth-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.auth-link:hover {
  color: var(--accent);
}

.auth-label {
  display: block;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: rgba(190, 198, 208, 0.9);
  margin: 8px 0 -6px 10px;
}

.auth-field {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.85;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.auth-form.auth-form--v2 {
  gap: 10px;
}

.auth-form.auth-form--v2 .auth-options {
  margin-top: 6px;
}

.auth-form.auth-form--v2 input[type='text'],
.auth-form.auth-form--v2 input[type='password'],
.auth-form.auth-form--v2 input[type='email'] {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: rgba(8, 12, 18, 0.35);
  border: 1px solid rgba(179, 180, 255, 0.14);
  border-radius: 14px;
  color: var(--text);
  font-size: 14px;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}

.auth-form.auth-form--v2 input:focus {
  outline: none;
  border-color: rgba(179, 180, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(179, 180, 255, 0.12);
  background: rgba(8, 12, 18, 0.46);
}

.btn-login.btn-login--v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-radius: 16px;
  padding: 14px 16px;
  min-height: 52px;
  font-family: inherit;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    rgba(179, 180, 255, 0.16),
    rgba(179, 180, 255, 0.08)
  );
  border: 1px solid rgba(179, 180, 255, 0.26);
  color: rgba(230, 244, 255, 0.94);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(var(--glass-blur));
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    filter 0.25s,
    background 0.25s,
    border-color 0.25s;
}

.btn-login.btn-login--v2:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(179, 180, 255, 0.42);
  background: linear-gradient(
    135deg,
    rgba(179, 180, 255, 0.22),
    rgba(179, 180, 255, 0.12)
  );
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(179, 180, 255, 0.12);
  filter: brightness(1.02);
}

.btn-login-icon {
  width: 20px;
  height: 20px;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.ps-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.ps-check span {
  font-size: 13px;
  color: rgba(190, 198, 208, 0.92);
}

.ps-check input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.ps-check.ps-check--box {
  align-items: flex-start;
}

.ps-check.ps-check--box input[type='checkbox'] {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  border: 1px solid rgba(179, 180, 255, 0.22);
  background: rgba(12, 18, 28, 0.62);
  display: grid;
  place-content: center;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s,
    transform 0.2s;
}

.ps-check.ps-check--box input[type='checkbox']::after {
  content: '';
  width: 7px;
  height: 4px;
  border-left: 2px solid rgba(10, 15, 22, 0.92);
  border-bottom: 2px solid rgba(10, 15, 22, 0.92);
  transform: rotate(-45deg) scale(0);
  transition: transform 0.16s ease-out;
}

.ps-check.ps-check--box input[type='checkbox']:checked {
  background: linear-gradient(
    135deg,
    rgba(179, 180, 255, 0.92),
    rgba(218, 219, 255, 0.92)
  );
  border-color: rgba(179, 180, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(179, 180, 255, 0.1);
}

.ps-check.ps-check--box input[type='checkbox']:checked::after {
  transform: rotate(-45deg) scale(1);
}

.ps-check.ps-check--box input[type='checkbox']:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(179, 180, 255, 0.16);
}

.ps-check--terms span {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(190, 198, 208, 0.9);
}

.ps-check--terms a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.ps-check--terms a:hover {
  color: var(--accent);
}

.auth-form input[type='text'],
.auth-form input[type='password'],
.auth-form input[type='email'] {
  padding: 14px 16px;
  background: rgba(12, 18, 28, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(179, 180, 255, 0.18);
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 10px;
}

.auth-options .ps-check.ps-check--box {
  align-items: center;
}

.auth-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.forgot-password {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

.forgot-password:hover {
  color: var(--accent);
}

.btn-login {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0a0f16;
  border: none;
  padding: 14px;
  font-size: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    filter 0.3s;
  margin-top: 8px;
  font-weight: 600;
}

.btn-login:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(179, 180, 255, 0.26);
  filter: brightness(1.05);
}

.register-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.register-link:hover {
  color: var(--primary);
}

.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  margin-top: -5px;
}

.terms-label input[type='checkbox'],
.auth-options input[type='checkbox'] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.dashboard-content {
  max-width: 800px;
  padding: 40px 30px;
}

.dashboard-grid {
  display: grid;
  gap: 15px;
  margin-bottom: 30px;
}

.dashboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(18, 30, 42, 0.72),
    rgba(10, 18, 28, 0.46)
  );
  padding: 16px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  gap: 20px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--glass-blur));
}

.dashboard-item > span:last-child {
  text-align: right;
  margin-left: auto;
}

.dashboard-item.full-width {
  grid-column: 1 / -1;
}

.dashboard-label {
  color: var(--primary);
  font-weight: 600;
  min-width: 180px;
  text-align: left;
}

.hwid-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.key-input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(12, 18, 28, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
}

.key-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(179, 180, 255, 0.16);
}

.btn-action {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0a0f16;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    filter 0.3s;
  white-space: nowrap;
  font-weight: 600;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(179, 180, 255, 0.22);
  filter: brightness(1.05);
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn-dashboard {
  background: rgba(10, 16, 24, 0.8);
  color: var(--text);
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  text-decoration: none;
  display: inline-block;
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-card);
}

.btn-dashboard:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 30px rgba(179, 180, 255, 0.18);
}

.btn-logout {
  background: linear-gradient(135deg, #ff5f78, #ff3d57);
  color: #0b0f14;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    filter 0.3s;
  font-weight: 600;
}

.btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 92, 120, 0.3);
  filter: brightness(1.05);
}

.auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.auth-container,
.dashboard-container {
  position: relative;
  z-index: 1;
  padding: 38px;
  width: 90%;
  max-width: 420px;
  background: linear-gradient(
    135deg,
    rgba(18, 30, 42, 0.78),
    rgba(12, 20, 30, 0.52)
  );
  border-radius: 20px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(var(--glass-blur));
}

.auth-container--v2 {
  width: 100%;
  max-width: none;
  padding: 14px;
  background: rgba(10, 16, 24, 0.55);
  border: 1px solid rgba(179, 180, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--glass-blur));
  overflow: hidden;
}

.auth-container--v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      520px 260px at 12% -10%,
      rgba(179, 180, 255, 0.14),
      rgba(179, 180, 255, 0) 60%
    ),
    radial-gradient(
      520px 260px at 88% 0%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 60%
    );
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.auth-container--v2::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.35);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.auth-container--v2 > * {
  position: relative;
  z-index: 1;
}

.auth-route .auth-container--v2 {
  opacity: 0;
  transform: translateY(12px);
  animation: element-fade-in 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 180ms;
  will-change: opacity, transform;
}

.auth-route .auth-container--v2 > *,
.auth-route .auth-container--v2 .auth-form > * {
  opacity: 1;
  transform: none;
  animation: none;
}

.dashboard-container {
  max-width: 800px;
}

.dashboard-container > h2 {
  margin-bottom: 40px;
  margin-top: -10px;
}

.dashboard-container.dashboard-v2 {
  width: min(1080px, calc(100% - 48px));
  max-width: none;
  padding: 14px;
  text-align: left;
  background: rgba(10, 16, 24, 0.55);
  border: 1px solid rgba(179, 180, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(var(--glass-blur));
  overflow: hidden;
}

.page-dashboard {
  --dash-control-radius: 13px;
  --dash-control-radius-lg: 16px;
  --dash-control-bg: rgba(8, 12, 18, 0.25);
  --dash-control-bg-soft: rgba(8, 12, 18, 0.22);
  --dash-control-border: rgba(179, 180, 255, 0.16);
  --dash-control-border-strong: rgba(179, 180, 255, 0.32);
  --dash-control-shadow: 0 16px 30px rgba(179, 180, 255, 0.14);
}

.page-dashboard .btn-account {
  border-radius: var(--dash-control-radius);
  padding: 10px 12px;
  min-height: 40px;
  font-size: 13px;
  letter-spacing: 0.02em;
  background: rgba(10, 16, 24, 0.55);
  border: 1px solid rgba(179, 180, 255, 0.16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--glass-blur));
  isolation: isolate;
}

.page-dashboard .btn-account::before,
.page-dashboard .btn-account::after {
  opacity: 0.65;
}

.page-dashboard .btn-account:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(179, 180, 255, 0.26);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.52);
  filter: brightness(1.02);
}

.page-dashboard .btn-account:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: none;
}

.page-dashboard .btn-account .btn-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(0.78);
  opacity: 0.95;
}

.page-dashboard .btn-account.btn-signup {
  background: linear-gradient(
    135deg,
    rgba(179, 180, 255, 0.92),
    rgba(140, 142, 255, 0.92)
  );
  color: rgba(10, 15, 22, 0.92);
  border-color: rgba(179, 180, 255, 0.55);
}

.page-dashboard .btn-account.btn-signup .btn-icon {
  filter: brightness(0) invert(0);
  opacity: 0.85;
}

.dashboard-container.dashboard-v2,
.dashboard-container.dashboard-v2 * {
  -webkit-tap-highlight-color: transparent;
}

.dashboard-container.dashboard-v2 a:focus-visible,
.dashboard-container.dashboard-v2 button:focus-visible {
  outline: 2px solid rgba(179, 180, 255, 0.55);
  outline-offset: 3px;
}

.dash-head > *:nth-child(1) {
  --anim-delay: 110ms;
}
.dash-head > *:nth-child(2) {
  --anim-delay: 160ms;
}

.dash-main > *:nth-child(1) {
  --anim-delay: 190ms;
}
.dash-main > *:nth-child(2) {
  --anim-delay: 240ms;
}
.dash-main > *:nth-child(3) {
  --anim-delay: 290ms;
}
.dash-main > *:nth-child(4) {
  --anim-delay: 340ms;
}
.dash-main > *:nth-child(5) {
  --anim-delay: 390ms;
}

.dash-sidebar > *:nth-child(1) {
  --anim-delay: 260ms;
}
.dash-sidebar > *:nth-child(2) {
  --anim-delay: 310ms;
}
.dash-sidebar > *:nth-child(3) {
  --anim-delay: 360ms;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.88fr);
  gap: 14px;
  padding: 14px 6px 6px;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dash-metric {
  background: rgba(10, 16, 24, 0.55);
  border-radius: 16px;
  border: 1px solid rgba(179, 180, 255, 0.14);
  padding: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--glass-blur));
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s,
    box-shadow 0.35s,
    border-color 0.35s,
    filter 0.35s;
}

.dash-metric::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      520px 260px at 18% -10%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 62%
    ),
    radial-gradient(
      520px 260px at 84% 0%,
      rgba(179, 180, 255, 0.1),
      rgba(179, 180, 255, 0) 62%
    );
  opacity: 0.85;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.35s ease;
  animation: dash-orbit 18s ease-in-out infinite;
}

.dash-metric::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 14px;
  background: rgba(8, 12, 18, 0.35);
  pointer-events: none;
}

.dash-metric > * {
  position: relative;
  z-index: 1;
}

.dash-metric:hover {
  transform: translateY(-3px);
  border-color: rgba(179, 180, 255, 0.26);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.52);
  filter: brightness(1.02);
}

.dash-metric:hover::before {
  opacity: 1;
}

.dash-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dash-metric-label {
  color: rgba(230, 244, 255, 0.68);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-metric-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(230, 244, 255, 0.5);
  box-shadow: 0 0 0 5px rgba(230, 244, 255, 0.08);
  transition:
    box-shadow 0.35s,
    background 0.35s;
}

.dash-metric[data-state='on'] .dash-metric-dot {
  background: #3ee6a8;
  box-shadow: 0 0 0 5px rgba(62, 230, 168, 0.12);
}

.dash-metric[data-state='off'] .dash-metric-dot {
  background: #ff5f78;
  box-shadow: 0 0 0 5px rgba(255, 95, 120, 0.14);
}

.dash-metric-value {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: rgba(248, 251, 255, 0.96);
}

.dash-metric-hint {
  margin-top: 8px;
  color: rgba(230, 244, 255, 0.6);
  font-size: 12px;
  line-height: 1.55;
}

.dash-metric-hint .client-remaining {
  color: rgba(248, 251, 255, 0.92);
  font-weight: 600;
}

.dashboard-container.dashboard-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      680px 320px at 14% -8%,
      rgba(179, 180, 255, 0.16),
      rgba(179, 180, 255, 0) 60%
    ),
    radial-gradient(
      680px 320px at 86% 0%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 60%
    );
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
  animation: dash-orbit 14s ease-in-out infinite;
}

.dashboard-container.dashboard-v2::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  background: rgba(8, 12, 18, 0.35);
  pointer-events: none;
  z-index: 0;
}

.dashboard-container.dashboard-v2 > * {
  position: relative;
  z-index: 1;
}

.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 6px 14px;
  border-bottom: 1px solid rgba(179, 180, 255, 0.14);
}

.dash-head-main {
  min-width: 0;
}

.dash-title {
  font-size: clamp(24px, 3.2vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.dash-subtitle {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 680px;
}

.dash-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(179, 180, 255, 0.22);
  background: rgba(8, 12, 18, 0.3);
  color: rgba(230, 244, 255, 0.82);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.dash-head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dash-main,
.dash-sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
}

.dash-dock {
  background: rgba(10, 16, 24, 0.55);
  border-radius: 16px;
  border: 1px solid rgba(179, 180, 255, 0.16);
  padding: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--glass-blur));
  position: sticky;
  top: 86px;
  overflow: hidden;
}

.dash-dock::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      520px 260px at 12% -10%,
      rgba(179, 180, 255, 0.14),
      rgba(179, 180, 255, 0) 60%
    ),
    radial-gradient(
      520px 260px at 88% 0%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 60%
    );
  opacity: 0.8;
  pointer-events: none;
  animation: dash-orbit 18s ease-in-out infinite;
}

.dash-dock::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 14px;
  background: rgba(8, 12, 18, 0.35);
  pointer-events: none;
}

.dash-dock-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.dock-btn {
  width: 100%;
  border-radius: var(--dash-control-radius-lg, 16px);
  border: 1px solid rgba(179, 180, 255, 0.14);
  background: rgba(10, 16, 24, 0.55);
  color: rgba(248, 251, 255, 0.92);
  padding: 14px 14px;
  min-height: 82px;
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-areas:
    'icon title'
    'icon sub';
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s,
    filter 0.25s;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--glass-blur));
  isolation: isolate;
}

.dock-btn:focus-visible {
  outline: 2px solid rgba(179, 180, 255, 0.55);
  outline-offset: 2px;
}

.dock-btn-icon {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  opacity: 0.95;
  filter: brightness(0) invert(0.78)
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.dock-btn-icon--logout {
  transform: rotate(180deg);
}

.dock-btn-iconwrap {
  grid-area: icon;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(179, 180, 255, 0.12);
  border: 1px solid rgba(179, 180, 255, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.25s,
    filter 0.25s,
    background 0.25s,
    border-color 0.25s;
}

.dock-btn-svg {
  width: 18px;
  height: 18px;
  opacity: 0.95;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
}

.dock-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(248, 251, 255, 0.16) 45%,
    transparent 62%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.dock-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(179, 180, 255, 0.26);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
  filter: brightness(1.02);
}

.dock-btn:hover .dock-btn-iconwrap {
  transform: translateY(-1px) scale(1.02);
}

.dock-btn:hover::after {
  opacity: 1;
  animation: dash-shine 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dock-btn:active {
  transform: translateY(-1px) scale(0.99);
}

.dock-btn-title {
  grid-area: title;
  padding-left: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-btn-sub {
  grid-area: sub;
  padding-left: 0;
  color: rgba(230, 244, 255, 0.62);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-btn--primary {
  background: rgba(10, 16, 24, 0.55);
  color: rgba(248, 251, 255, 0.92);
  border-color: rgba(179, 180, 255, 0.32);
}

.dock-btn--primary .dock-btn-sub {
  color: rgba(230, 244, 255, 0.62);
}

.dock-btn--primary .dock-btn-iconwrap {
  background: linear-gradient(
    135deg,
    rgba(179, 180, 255, 0.92),
    rgba(140, 142, 255, 0.92)
  );
  border-color: rgba(179, 180, 255, 0.55);
  color: #0a0f16;
}

.dock-btn--ghost {
  background: rgba(10, 16, 24, 0.55);
}

.dock-btn--danger {
  background: rgba(10, 16, 24, 0.55);
  color: rgba(248, 251, 255, 0.92);
  border: 1px solid rgba(255, 95, 120, 0.45);
}

.dock-btn--danger .dock-btn-sub {
  color: rgba(230, 244, 255, 0.62);
}

.dock-btn--danger .dock-btn-iconwrap {
  background: linear-gradient(
    135deg,
    rgba(255, 95, 120, 0.95),
    rgba(255, 61, 87, 0.95)
  );
  border-color: rgba(255, 95, 120, 0.55);
  color: #0b0f14;
}

.dash-card {
  background: rgba(10, 16, 24, 0.55);
  border-radius: 16px;
  border: 1px solid rgba(179, 180, 255, 0.16);
  padding: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--glass-blur));
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition:
    transform 0.35s,
    box-shadow 0.35s,
    border-color 0.35s,
    filter 0.35s;
}

.dash-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      520px 260px at 12% -10%,
      rgba(179, 180, 255, 0.14),
      rgba(179, 180, 255, 0) 60%
    ),
    radial-gradient(
      520px 260px at 88% 0%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 60%
    );
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 0;
  animation: dash-orbit 20s ease-in-out infinite;
}

.dash-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 14px;
  background: rgba(8, 12, 18, 0.35);
  pointer-events: none;
  z-index: 0;
}

.dash-card > * {
  position: relative;
  z-index: 1;
}

.dash-card:hover {
  transform: translateY(-3px);
  border-color: rgba(179, 180, 255, 0.26);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.52);
  filter: brightness(1.02);
}

.dash-card:hover::before {
  opacity: 1;
}

.dash-card-head {
  margin-bottom: 12px;
}

.dash-card-head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dash-card-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.dash-card-subtitle {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.dash-kv {
  display: grid;
  gap: 8px;
}

.dash-kv-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 13px;
  border: 1px solid rgba(179, 180, 255, 0.12);
  background: rgba(8, 12, 18, 0.25);
}

.dash-kv-key {
  color: rgba(230, 244, 255, 0.66);
  font-weight: 600;
  font-size: 12px;
}

.dash-kv-value {
  text-align: right;
  font-weight: 400;
  font-size: 12px;
  color: rgba(248, 251, 255, 0.96);
  word-break: break-word;
}

.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(179, 180, 255, 0.16);
  background: rgba(8, 12, 18, 0.25);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.dash-status-key {
  color: rgba(230, 244, 255, 0.62);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dash-actions--stack {
  flex-direction: column;
}

.dash-btn {
  appearance: none;
  border: 1px solid var(--dash-control-border, rgba(179, 180, 255, 0.16));
  background: rgba(10, 16, 24, 0.55);
  color: rgba(248, 251, 255, 0.94);
  padding: 10px 12px;
  border-radius: var(--dash-control-radius, 13px);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s,
    filter 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  width: fit-content;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--glass-blur));
  isolation: isolate;
}

.dash-btn img.btn-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  filter: brightness(0) invert(0.75);
  opacity: 0.95;
}

.dash-btn svg.btn-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: 0.9;
}

.dash-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(179, 180, 255, 0.32);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.52);
}

.dash-btn:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: none;
}

.dash-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      420px 220px at 12% -10%,
      rgba(179, 180, 255, 0.14),
      rgba(179, 180, 255, 0) 60%
    ),
    radial-gradient(
      420px 220px at 88% 0%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 60%
    );
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.dash-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(248, 251, 255, 0.22) 45%,
    transparent 62%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.dash-btn:hover::after {
  opacity: 1;
  animation: dash-shine 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dash-btn--compact {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.dash-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dash-btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0a0f16;
  border-color: rgba(179, 180, 255, 0.45);
}

.dash-btn--primary:hover {
  box-shadow: 0 20px 40px rgba(179, 180, 255, 0.22);
  filter: brightness(1.05);
}

.dash-btn--ghost {
  background: rgba(8, 12, 18, 0.25);
}

.dash-btn--danger {
  background: linear-gradient(135deg, #ff5f78, #ff3d57);
  color: #0b0f14;
  border: none;
}

.dash-btn--danger:hover {
  box-shadow: 0 18px 34px rgba(255, 92, 120, 0.26);
  filter: brightness(1.05);
}

.dash-btn--danger::before {
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(0, 0, 0, 0.14) 45%,
    transparent 62%
  );
}

.dash-code {
  border-radius: 16px;
  border: 1px solid rgba(179, 180, 255, 0.14);
  background: rgba(8, 12, 18, 0.25);
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.dash-code::before {
  content: '';
  position: absolute;
  inset: -40% -10%;
  background: radial-gradient(
    closest-side,
    rgba(179, 180, 255, 0.18),
    rgba(179, 180, 255, 0)
  );
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.dash-code:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.dash-code-label {
  display: block;
  color: rgba(230, 244, 255, 0.66);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.dash-code .hwid-text {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace;
  font-size: 12px;
  color: rgba(248, 251, 255, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  text-align: left;
}

.dash-hwid-help {
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid rgba(179, 180, 255, 0.14);
  background: rgba(8, 12, 18, 0.18);
  padding: 12px;
  position: relative;
  overflow: hidden;
  transform-origin: top;
  transition:
    transform 0.35s,
    box-shadow 0.35s,
    border-color 0.35s,
    filter 0.35s;
  animation: hwid-panel-enter 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dash-hwid-help::before {
  content: '';
  position: absolute;
  inset: -22% -8%;
  background: radial-gradient(
    closest-side,
    rgba(179, 180, 255, 0.16),
    rgba(179, 180, 255, 0)
  );
  opacity: 0.75;
  pointer-events: none;
  transform: translateY(14px) scaleY(0.96);
  transform-origin: top;
}

.dash-hwid-help::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(248, 251, 255, 0.16) 45%,
    transparent 62%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.dash-hwid-help:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(179, 180, 255, 0.26);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
  filter: brightness(1.03);
}

.dash-hwid-help:hover::after {
  opacity: 1;
  animation: dash-shine 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dash-hwid-help.is-switching {
  animation: hwid-panel-grow 720ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.dash-hwid-help.is-switching::before {
  animation: hwid-panel-glow 720ms ease;
}

.dash-hwid-help-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.dash-hwid-help-heading {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(230, 244, 255, 0.78);
  position: relative;
  min-height: 1em;
  text-shadow:
    0 0 14px rgba(179, 180, 255, 0.18),
    0 0 22px rgba(179, 180, 255, 0.12);
}

.dash-hwid-help-heading::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 160px;
  height: 22px;
  transform: translateY(-50%) scaleX(0.92);
  border-radius: 999px;
  background: radial-gradient(
    closest-side,
    rgba(179, 180, 255, 0.28),
    rgba(179, 180, 255, 0)
  );
  filter: blur(10px);
  opacity: 0.72;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: -1;
}

.dash-hwid-help-heading.is-typing::before {
  transform: translateY(-50%) scaleX(1);
  opacity: 0.92;
}

.dash-hwid-help-heading.is-typing::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 0.1em;
  width: 2px;
  height: 0.9em;
  background: rgba(230, 244, 255, 0.8);
  animation: hwid-caret 800ms steps(2, end) infinite;
}

.dash-seg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(179, 180, 255, 0.18);
  background: rgba(10, 16, 24, 0.55);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(var(--glass-blur));
}

.dash-seg-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(248, 251, 255, 0.78);
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    filter 0.2s;
}

.dash-seg-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.dash-seg-btn:active {
  transform: translateY(0);
  filter: none;
}

.dash-seg-btn.is-active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0a0f16;
  border-color: rgba(179, 180, 255, 0.45);
}

.dash-hwid-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(230, 244, 255, 0.74);
  font-size: 12px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  transition:
    filter 0.35s,
    transform 0.35s;
}

.dash-hwid-step {
  padding-left: 2px;
  opacity: 0;
  transform: translateY(6px);
  animation: hwid-step-in 420ms ease forwards;
}

.dash-hwid-step:nth-child(1) {
  animation-delay: 40ms;
}

.dash-hwid-step:nth-child(2) {
  animation-delay: 80ms;
}

.dash-hwid-step:nth-child(3) {
  animation-delay: 120ms;
}

.dash-hwid-step:nth-child(4) {
  animation-delay: 160ms;
}

.dash-hwid-step:nth-child(5) {
  animation-delay: 200ms;
}

.dash-typing-text {
  display: inline-block;
  position: relative;
  min-height: 1em;
  padding-right: 6px;
}

.dash-typing-text::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0.1em;
  width: 2px;
  height: 0.9em;
  background: rgba(230, 244, 255, 0.7);
  animation: hwid-caret 800ms steps(2, end) infinite;
}

.dash-typing-text.is-done::after {
  opacity: 0;
  animation: none;
}

.dash-inline-code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(179, 180, 255, 0.18);
  background: rgba(10, 16, 24, 0.55);
  color: rgba(248, 251, 255, 0.92);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s,
    filter 0.2s;
}

.dash-inline-code:hover {
  transform: translateY(-1px);
  border-color: rgba(179, 180, 255, 0.28);
  background: rgba(10, 16, 24, 0.66);
  filter: brightness(1.04);
}

.dash-inline-code:active {
  transform: translateY(0);
  filter: none;
}

.dash-inline-code.is-hidden {
  opacity: 0;
  transform: translateY(1px);
}

@media (max-width: 520px) {
  .dash-hwid-help-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .dash-seg {
    width: 100%;
    justify-content: space-between;
  }
  .dash-seg-btn {
    flex: 1;
    justify-content: center;
    text-align: center;
  }
}

@keyframes hwid-panel-enter {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hwid-panel-grow {
  0% {
    transform: scaleY(0.96);
    filter: brightness(0.99);
  }
  60% {
    transform: scaleY(1.03);
    filter: brightness(1.03);
  }
  100% {
    transform: scaleY(1);
    filter: brightness(1);
  }
}

@keyframes hwid-panel-glow {
  0% {
    opacity: 0.35;
    transform: translateY(12px) scaleY(0.96);
  }
  60% {
    opacity: 0.85;
    transform: translateY(2px) scaleY(1.06);
  }
  100% {
    opacity: 0.6;
    transform: translateY(8px) scaleY(1);
  }
}

@keyframes hwid-step-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hwid-caret {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.dash-icon-btn {
  border: 1px solid var(--dash-control-border, rgba(179, 180, 255, 0.18));
  background: rgba(10, 16, 24, 0.55);
  color: rgba(248, 251, 255, 0.86);
  border-radius: var(--dash-control-radius, 13px);
  padding: 9px 10px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--glass-blur));
  isolation: isolate;
}

.dash-icon-btn img.btn-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  filter: brightness(0) invert(0.78);
  opacity: 0.95;
}

.dash-icon-btn svg.btn-ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: 0.92;
}

.dash-icon-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(179, 180, 255, 0.32);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.52);
}

.dash-icon-btn:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: none;
}

.dash-icon-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      420px 220px at 12% -10%,
      rgba(179, 180, 255, 0.14),
      rgba(179, 180, 255, 0) 60%
    ),
    radial-gradient(
      420px 220px at 88% 0%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 60%
    );
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.dash-icon-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(248, 251, 255, 0.22) 45%,
    transparent 62%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.dash-icon-btn:hover::after {
  opacity: 1;
  animation: dash-shine 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dash-hwid-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(179, 180, 255, 0.14);
  background: rgba(8, 12, 18, 0.22);
  color: rgba(230, 244, 255, 0.8);
  font-weight: 800;
  font-size: 11px;
}

.dash-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--dash-control-radius, 13px);
  background: rgba(10, 16, 24, 0.55);
  border: 1px solid var(--dash-control-border, rgba(179, 180, 255, 0.16));
  color: rgba(248, 251, 255, 0.92);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--glass-blur));
  isolation: isolate;
}

.dash-link:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(179, 180, 255, 0.32);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.52);
}

.dash-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      420px 220px at 12% -10%,
      rgba(179, 180, 255, 0.14),
      rgba(179, 180, 255, 0) 60%
    ),
    radial-gradient(
      420px 220px at 88% 0%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 60%
    );
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.dash-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(248, 251, 255, 0.22) 45%,
    transparent 62%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.dash-link:hover::after {
  opacity: 1;
  animation: dash-shine 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-dashboard .modal-btn {
  border-radius: var(--dash-control-radius);
  border-color: var(--dash-control-border);
}

.page-dashboard .modal-btn-cancel {
  background: rgba(10, 16, 24, 0.55);
}

.page-dashboard .modal-btn-cancel:hover {
  background: rgba(12, 18, 28, 0.72);
  border-color: var(--dash-control-border-strong);
}

.page-dashboard .modal-icon-btn {
  border-radius: var(--dash-control-radius);
  background: rgba(10, 16, 24, 0.55);
  border-color: var(--dash-control-border);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.legal-container.legal-v2 {
  width: min(980px, calc(100% - 56px));
  margin: 0 auto;
  padding: 20px 20px 22px;
  text-align: left;
  background: rgba(10, 16, 24, 0.55);
  border: 1px solid rgba(179, 180, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(var(--glass-blur));
  position: relative;
  overflow: hidden;
}

.legal-container.legal-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      680px 320px at 14% -8%,
      rgba(179, 180, 255, 0.16),
      rgba(179, 180, 255, 0) 60%
    ),
    radial-gradient(
      680px 320px at 86% 0%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 60%
    );
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
  animation: dash-orbit 14s ease-in-out infinite;
}

.legal-container.legal-v2::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  background: rgba(8, 12, 18, 0.35);
  pointer-events: none;
  z-index: 0;
}

.legal-container.legal-v2 > * {
  position: relative;
  z-index: 1;
}

.legal-hero {
  padding: 6px 6px 14px;
  border-bottom: 1px solid rgba(179, 180, 255, 0.14);
  margin-bottom: 14px;
}

.legal-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.legal-subtitle {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 720px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.legal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(179, 180, 255, 0.22);
  background: rgba(8, 12, 18, 0.3);
  color: rgba(230, 244, 255, 0.82);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.legal-email {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace;
  letter-spacing: 0.01em;
}

.legal-rules a {
  color: rgba(248, 251, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(179, 180, 255, 0.28);
  transition:
    border-color 220ms ease,
    color 220ms ease,
    filter 220ms ease;
}

.legal-rules a:hover {
  border-bottom-color: rgba(179, 180, 255, 0.55);
  color: rgba(248, 251, 255, 0.96);
  filter: brightness(1.03);
}

.legal-pill--link:hover {
  border-color: rgba(179, 180, 255, 0.32);
  box-shadow: 0 16px 30px rgba(179, 180, 255, 0.12);
  transform: translateY(-1px);
}

.legal-card {
  background: rgba(10, 16, 24, 0.55);
  border-radius: 16px;
  border: 1px solid rgba(179, 180, 255, 0.16);
  padding: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--glass-blur));
  position: relative;
  overflow: hidden;
}

.legal-card + .legal-card {
  margin-top: 12px;
}

.legal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      520px 260px at 12% -10%,
      rgba(179, 180, 255, 0.14),
      rgba(179, 180, 255, 0) 60%
    ),
    radial-gradient(
      520px 260px at 88% 0%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 60%
    );
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 0;
  animation: dash-orbit 20s ease-in-out infinite;
}

.legal-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 14px;
  background: rgba(8, 12, 18, 0.35);
  pointer-events: none;
  z-index: 0;
}

.legal-card > * {
  position: relative;
  z-index: 1;
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.legal-card p {
  margin: 0;
  color: rgba(230, 244, 255, 0.78);
  font-size: 13px;
  line-height: 1.65;
}

.legal-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(230, 244, 255, 0.78);
  font-size: 13px;
  line-height: 1.65;
}

.legal-card li + li {
  margin-top: 6px;
}

.legal-rules p + p {
  margin-top: 8px;
}

.legal-rules ul {
  margin-top: 10px;
}

.legal-footer {
  margin-top: 14px;
  padding: 8px 6px 4px;
  display: grid;
  gap: 10px;
}

.legal-footer-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .dash-head {
    flex-direction: column;
    align-items: stretch;
  }
  .dash-dock {
    position: relative;
    top: auto;
  }
  .dash-head-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .dashboard-container.dashboard-v2 {
    width: calc(100% - 22px);
    padding: 12px;
  }
  .dash-grid {
    padding: 12px 4px 4px;
  }
  .dash-head {
    padding: 4px 4px 12px;
  }
  .dash-kv-row {
    grid-template-columns: 1fr;
  }
  .dash-kv-value {
    text-align: left;
  }
  .dash-btn {
    width: 100%;
  }
  .dash-actions {
    width: 100%;
  }
  .dash-metrics {
    grid-template-columns: 1fr;
  }
  .dash-dock {
    position: relative;
    top: auto;
  }

  .legal-container.legal-v2 {
    width: calc(100% - 22px);
    padding: 14px 14px 16px;
  }
  .legal-hero {
    padding: 4px 4px 12px;
  }
}

@keyframes dash-shine {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes dash-orbit {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1);
  }
  50% {
    transform: translate3d(0, -10px, 0) scale(1.02);
    filter: saturate(1.06);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1);
  }
}

@keyframes logo-sheen {
  0% {
    background-position:
      10% 50%,
      -140% 50%;
  }
  30% {
    background-position:
      62% 44%,
      -140% 50%;
  }
  55% {
    background-position:
      78% 40%,
      160% 50%;
  }
  100% {
    background-position:
      10% 50%,
      160% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navbar .logo {
    animation: none;
    background-position:
      50% 50%,
      -120% 50%;
  }
}

#registerOptions {
  text-align: center;
}

.shop-container {
  width: min(1320px, calc(100% - 56px));
  padding: 16px 0 44px;
  text-align: center;
}

.shop-container h2 {
  font-size: clamp(26px, 3.8vw, 44px);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  margin-top: -4px;
  text-align: center;
}

.shop-subtitle {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  align-items: start;
}

@media (min-width: 1280px) {
  .shop-grid {
    grid-template-columns: 1fr 1.06fr 1.16fr 1.06fr 1fr;
  }
}

.shop-card {
  background: rgba(10, 16, 24, 0.55);
  border-radius: 18px;
  border: 1px solid rgba(179, 180, 255, 0.16);
  padding: 12px;
  text-align: center;
  transition:
    transform 0.35s,
    box-shadow 0.35s,
    border-color 0.35s,
    background 0.35s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(var(--glass-blur));
  min-height: 280px;
  transform-origin: center center;
}

.shop-card > * {
  position: relative;
  z-index: 1;
}

.shop-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      520px 260px at 12% -10%,
      rgba(179, 180, 255, 0.14),
      rgba(179, 180, 255, 0) 60%
    ),
    radial-gradient(
      520px 260px at 88% 0%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 60%
    );
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.shop-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.35);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.shop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
  border-color: rgba(179, 180, 255, 0.32);
  background: rgba(10, 16, 24, 0.62);
}

@media (min-width: 1280px) {
  .shop-grid > .shop-card:nth-child(2),
  .shop-grid > .shop-card:nth-child(4) {
    padding: 14px;
    min-height: 310px;
  }
}

.shop-card-head {
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(179, 180, 255, 0.14);
}

.shop-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(230, 244, 255, 0.92);
  background: rgba(179, 180, 255, 0.08);
  border: 1px solid rgba(179, 180, 255, 0.18);
  margin-bottom: 10px;
}

.shop-card-head h3 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.shop-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.shop-image {
  border-radius: 14px;
  margin-bottom: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(179, 180, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.shop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.92;
  filter: saturate(1.1) contrast(1.02);
}

.shop-price {
  margin-top: 2px;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 10px;
  flex-grow: 1;
  justify-content: center;
  line-height: 1.4;
}

.price-value {
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
}

.price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 14px;
  margin-right: 5px;
}

.price-discount {
  flex-basis: 100%;
  width: max-content;
  margin-top: 6px;
  margin-left: auto;
  margin-right: auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(209, 255, 236, 0.95);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.38);
}

.shop-features {
  list-style: none;
  margin: 0;
  padding: 2px 8px 0;
  display: grid;
  gap: 8px;
  text-align: left;
  color: rgba(230, 244, 255, 0.88);
  font-size: 13px;
  line-height: 1.45;
}

.shop-features li {
  position: relative;
  padding-left: 20px;
  color: rgba(230, 244, 255, 0.82);
}

.shop-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(179, 180, 255, 0.95);
  font-weight: 900;
}

.btn-shop {
  background: linear-gradient(
    135deg,
    rgba(179, 180, 255, 0.16),
    rgba(179, 180, 255, 0.08)
  );
  color: rgba(230, 244, 255, 0.94);
  border: 1px solid rgba(179, 180, 255, 0.26);
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    filter 0.3s,
    border-color 0.3s,
    background 0.3s;
  width: 100%;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(var(--glass-blur));
}

.btn-shop:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(179, 180, 255, 0.42);
  background: linear-gradient(
    135deg,
    rgba(179, 180, 255, 0.22),
    rgba(179, 180, 255, 0.12)
  );
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(179, 180, 255, 0.12);
  filter: brightness(1.02);
}

.btn-shop:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.98);
}

.btn-shop:focus-visible {
  outline: 2px solid rgba(179, 180, 255, 0.65);
  outline-offset: 2px;
}

.btn-shop-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.shop-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 15, 22, 0.92);
  background: linear-gradient(
    135deg,
    rgba(179, 180, 255, 1),
    rgba(218, 219, 255, 1)
  );
  box-shadow: 0 14px 28px rgba(179, 180, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  z-index: 3;
  user-select: none;
}

.shop-card--popular {
  border-color: rgba(179, 180, 255, 0.45);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.58);
  background: rgba(10, 16, 24, 0.7);
  overflow: visible;
  z-index: 2;
  padding: 16px;
  min-height: 340px;
}

.shop-card--popular .shop-badge {
  top: -14px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.shop-card--popular .shop-card-head {
  padding-top: 16px;
}

.shop-card--popular .shop-card-head {
  background: linear-gradient(
    135deg,
    rgba(179, 180, 255, 0.1),
    rgba(179, 180, 255, 0.05)
  );
  border-color: rgba(179, 180, 255, 0.24);
}

.shop-card--popular:hover {
  transform: translateY(-8px);
}

@media (max-width: 1200px) {
  .navbar .container {
    width: calc(100% - 32px);
    padding: 12px 22px;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 500px);
    gap: clamp(20px, 4vw, 60px);
  }

  .hero-visual img {
    width: min(46vw, 600px);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .navbar .container {
    width: calc(100% - 28px);
    padding: 12px 18px;
    gap: 16px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    padding: 10px 8px;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-visual img {
    width: min(44vw, 460px);
  }

  .dashboard-item {
    padding: 14px 18px;
  }

  .dashboard-label {
    min-width: 140px;
  }
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-visual img {
    width: min(58vw, 420px);
  }
}

@media (max-width: 768px) {
  body::before {
    background:
      radial-gradient(
        520px 320px at 50% -10%,
        rgba(218, 219, 255, 0.18),
        rgba(218, 219, 255, 0) 70%
      ),
      radial-gradient(
        460px 320px at 12% 20%,
        rgba(179, 180, 255, 0.14),
        rgba(179, 180, 255, 0) 72%
      ),
      radial-gradient(
        520px 340px at 88% 16%,
        rgba(179, 180, 255, 0.14),
        rgba(179, 180, 255, 0) 72%
      );
    filter: blur(20px);
    opacity: 0.65;
  }

  body::after {
    opacity: 0.35;
    mask-image: radial-gradient(
      120% 120% at 50% 10%,
      rgba(0, 0, 0, 0.85),
      rgba(0, 0, 0, 0) 70%
    );
  }

  .hero-content {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-visual img {
    width: min(60vw, 360px);
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .nav-links {
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .section-title {
    font-size: 36px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
    max-width: 100%;
    width: 100%;
  }

  .navbar {
    top: 10px;
  }

  .navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    width: calc(100% - 20px);
    max-width: 100%;
  }

  .logo {
    order: 1;
    font-size: 18px;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .nav-actions {
    order: 4;
    gap: 10px;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin-top: 10px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .nav-links li {
    flex: 0 0 auto;
  }

  .nav-links a {
    font-size: 13px;
    gap: 6px;
    padding: 10px 10px;
    white-space: nowrap;
    justify-content: flex-start;
  }

  .navbar.navbar--open .nav-links,
  .navbar.navbar--open .nav-actions {
    display: flex;
  }

  .nav-icon {
    width: 16px;
    height: 16px;
  }

  .btn-account {
    padding: 12px 14px;
    font-size: 13px;
    gap: 8px;
    min-height: 48px;
  }

  .btn-icon {
    width: 16px;
    height: 16px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 18px;
    padding: 0 10px;
  }

  .btn-primary {
    padding: 14px 26px;
    font-size: 15px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-subtitle {
    font-size: 16px;
    padding: 0 10px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-card {
    padding: 20px;
  }

  .modal-content {
    width: 95%;
    padding: 30px 20px;
  }

  .modal-content h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  body::before {
    background:
      radial-gradient(
        420px 260px at 50% -6%,
        rgba(218, 219, 255, 0.16),
        rgba(218, 219, 255, 0) 70%
      ),
      radial-gradient(
        360px 260px at 18% 26%,
        rgba(179, 180, 255, 0.12),
        rgba(179, 180, 255, 0) 72%
      ),
      radial-gradient(
        420px 280px at 82% 20%,
        rgba(179, 180, 255, 0.12),
        rgba(179, 180, 255, 0) 72%
      );
    filter: blur(18px);
    opacity: 0.55;
  }

  body::after {
    opacity: 0.28;
  }

  .navbar {
    top: 8px;
  }

  .navbar .container {
    padding: 10px 12px;
    gap: 12px;
    width: calc(100% - 16px);
    max-width: 100%;
  }

  .logo {
    font-size: 16px;
  }

  .nav-links {
    margin-top: 8px;
    gap: 10px;
    padding-bottom: 0;
  }

  .nav-actions {
    gap: 10px;
  }

  .nav-links a {
    font-size: 13px;
    padding: 10px 12px;
  }

  .nav-links a .nav-icon {
    width: 18px;
    height: 18px;
  }

  .btn-account {
    font-size: 13px;
    padding: 12px 14px;
    min-height: 48px;
  }

  .btn-icon {
    width: 18px;
    height: 18px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .section-title {
    font-size: 28px;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .stat-value {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .dashboard-container {
    padding: 30px 15px;
    width: 95%;
  }

  .dashboard-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .dashboard-label {
    min-width: auto;
  }

  .dashboard-item > span:last-child {
    text-align: left;
    margin-left: 0;
  }

  .hwid-text {
    text-align: left;
    font-size: 12px;
  }

  .dashboard-actions {
    flex-direction: column;
  }

  .btn-dashboard,
  .btn-logout {
    width: 100%;
  }

  .shop-container {
    width: calc(100% - 26px);
    padding: 22px 0 36px;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .shop-card {
    padding: 12px;
    min-height: auto;
  }

  .shop-card--popular {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 12px;
  }

  .shop-card h3 {
    font-size: 16px;
  }

  .price-value {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .dashboard-container h2,
  .shop-container h2 {
    font-size: 24px;
  }

  .shop-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .shop-card {
    padding: 20px;
  }
}

.notification-stack {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 24px));
  display: grid;
  gap: 10px;
  z-index: 10000;
  pointer-events: none;
}

.notification {
  pointer-events: auto;
  position: relative;
  background: rgba(10, 16, 24, 0.62);
  border-radius: 18px;
  border: 1px solid rgba(179, 180, 255, 0.16);
  color: rgba(248, 251, 255, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(var(--glass-blur));
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 260ms ease;
  will-change: transform, opacity;
}

.notification::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      520px 260px at 16% -10%,
      rgba(179, 180, 255, 0.16),
      rgba(179, 180, 255, 0) 60%
    ),
    radial-gradient(
      520px 260px at 84% 0%,
      rgba(179, 180, 255, 0.12),
      rgba(179, 180, 255, 0) 60%
    );
  opacity: 0.85;
  pointer-events: none;
  animation: dash-orbit 16s ease-in-out infinite;
}

.notification::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.32);
  pointer-events: none;
}

.notification > * {
  position: relative;
  z-index: 1;
}

.notification.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.notification.hide {
  transform: translateY(14px) scale(0.98);
  opacity: 0;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(179, 180, 255, 0.12);
}

.notification-header-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.notification-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(179, 180, 255, 0.12);
  border: 1px solid rgba(179, 180, 255, 0.18);
  color: rgba(248, 251, 255, 0.9);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}

.notification-icon svg {
  width: 18px;
  height: 18px;
}

.notification-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(230, 244, 255, 0.72);
}

.notification-body {
  padding: 12px 14px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(230, 244, 255, 0.78);
}

.notification-close {
  background: rgba(8, 12, 18, 0.22);
  border: 1px solid rgba(179, 180, 255, 0.14);
  color: rgba(248, 251, 255, 0.86);
  width: 34px;
  height: 34px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.notification-close svg {
  width: 18px;
  height: 18px;
}

.notification-close:hover {
  transform: translateY(-1px) scale(1.06);
  border-color: rgba(179, 180, 255, 0.28);
  box-shadow: 0 16px 30px rgba(179, 180, 255, 0.12);
}

.notification-error .notification-icon {
  background: rgba(255, 95, 120, 0.18);
  border-color: rgba(255, 95, 120, 0.26);
  color: rgba(255, 220, 228, 0.95);
}

.notification-success .notification-icon {
  background: rgba(62, 230, 168, 0.16);
  border-color: rgba(62, 230, 168, 0.24);
  color: rgba(215, 255, 242, 0.96);
}

.notification-info .notification-icon {
  background: rgba(179, 180, 255, 0.14);
  border-color: rgba(179, 180, 255, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .notification {
    transition: none;
  }
  .notification::before {
    animation: none !important;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 10, 0.75);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 260ms ease;
}

.modal-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      860px 520px at 20% 10%,
      rgba(179, 180, 255, 0.08),
      rgba(179, 180, 255, 0) 60%
    ),
    radial-gradient(
      820px 520px at 85% 70%,
      rgba(62, 230, 168, 0.06),
      rgba(62, 230, 168, 0) 62%
    );
  pointer-events: none;
}

.modal-overlay.show {
  opacity: 1;
}

.modal-overlay.hide {
  opacity: 0;
}

.modal-custom {
  --modal-glow-1: rgba(179, 180, 255, 0.16);
  --modal-glow-2: rgba(179, 180, 255, 0.12);
  background: rgba(10, 16, 24, 0.55);
  border-radius: 22px;
  border: 1px solid rgba(179, 180, 255, 0.16);
  width: 90%;
  max-width: 480px;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition:
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(var(--glass-blur));
  position: relative;
  overflow: hidden;
}

.modal-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      520px 260px at 12% -10%,
      var(--modal-glow-1),
      rgba(179, 180, 255, 0) 60%
    ),
    radial-gradient(
      520px 260px at 88% 0%,
      var(--modal-glow-2),
      rgba(179, 180, 255, 0) 60%
    );
  opacity: 0.9;
  pointer-events: none;
  animation: dash-orbit 18s ease-in-out infinite;
  z-index: 0;
}

.modal-custom::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 20px;
  background: rgba(8, 12, 18, 0.34);
  pointer-events: none;
  z-index: 0;
}

.modal-custom > * {
  position: relative;
  z-index: 1;
}

.modal-overlay.show .modal-custom {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-overlay.hide .modal-custom {
  transform: translateY(14px) scale(0.98);
  opacity: 0;
}

.modal-custom--key {
  --modal-glow-1: rgba(179, 180, 255, 0.22);
  --modal-glow-2: rgba(140, 142, 255, 0.16);
}

.modal-custom--security {
  --modal-glow-1: rgba(62, 230, 168, 0.18);
  --modal-glow-2: rgba(179, 180, 255, 0.14);
}

.modal-custom--payment {
  --modal-glow-1: rgba(179, 180, 255, 0.22);
  --modal-glow-2: rgba(62, 230, 168, 0.14);
  max-width: 560px;
}

.modal-header {
  background: rgba(8, 12, 18, 0.18);
  padding: 14px 16px;
  border-radius: 22px 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(248, 251, 255, 0.92);
  border-bottom: 1px solid rgba(179, 180, 255, 0.12);
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.modal-close {
  background: transparent;
  border: none;
  color: rgba(248, 251, 255, 0.9);
  cursor: pointer;
  padding: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition:
    opacity 0.2s,
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.2s ease;
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-close:focus-visible {
  outline: 2px solid rgba(179, 180, 255, 0.55);
  outline-offset: 2px;
}

.modal-close:hover {
  opacity: 1;
  transform: scale(1.08);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payment-sheet {
  display: grid;
  gap: 14px;
}

.payment-hero {
  border-radius: 18px;
  border: 1px solid rgba(179, 180, 255, 0.16);
  background: linear-gradient(
    135deg,
    rgba(179, 180, 255, 0.14),
    rgba(10, 16, 24, 0.55)
  );
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.payment-hero::before {
  content: '';
  position: absolute;
  inset: -45% -30%;
  background: radial-gradient(
    closest-side,
    rgba(248, 251, 255, 0.18),
    rgba(248, 251, 255, 0)
  );
  opacity: 0.9;
  pointer-events: none;
  transform: translateY(10px);
}

.payment-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(248, 251, 255, 0.18) 45%,
    transparent 62%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.payment-hero:hover::after {
  opacity: 1;
  animation: dash-shine 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.payment-hero-main {
  min-width: 0;
  display: grid;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.payment-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(230, 244, 255, 0.68);
}

.payment-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: rgba(248, 251, 255, 0.95);
  font-size: 18px;
}

.payment-sub {
  color: rgba(230, 244, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.payment-badges {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(179, 180, 255, 0.2);
  background: rgba(8, 12, 18, 0.26);
  color: rgba(230, 244, 255, 0.82);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.payment-tile {
  text-decoration: none;
  border-radius: 18px;
  border: 1px solid rgba(179, 180, 255, 0.14);
  background: rgba(8, 12, 18, 0.24);
  color: rgba(248, 251, 255, 0.92);
  padding: 12px;
  position: relative;
  overflow: hidden;
  display: block;
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease,
    box-shadow 260ms ease,
    filter 220ms ease,
    background 220ms ease;
}

.payment-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      520px 260px at 18% -10%,
      rgba(179, 180, 255, 0.18),
      rgba(179, 180, 255, 0) 62%
    ),
    radial-gradient(
      520px 260px at 86% 0%,
      rgba(62, 230, 168, 0.1),
      rgba(62, 230, 168, 0) 66%
    );
  opacity: 0.85;
  pointer-events: none;
}

.payment-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(248, 251, 255, 0.16) 45%,
    transparent 62%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.payment-tile:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(179, 180, 255, 0.26);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.62);
  filter: brightness(1.02);
}

.payment-tile:hover::after {
  opacity: 1;
  animation: dash-shine 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.payment-tile:active {
  transform: translateY(-1px) scale(0.995);
}

.payment-tile:focus-visible {
  outline: 2px solid rgba(179, 180, 255, 0.6);
  outline-offset: 2px;
}

.payment-tile-top {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.payment-tile-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 0;
}

.payment-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(179, 180, 255, 0.12);
  border: 1px solid rgba(179, 180, 255, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  color: rgba(248, 251, 255, 0.92);
  flex: 0 0 auto;
}

.payment-icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
  filter: none;
  opacity: 0.98;
}

.payment-tile-labelwrap {
  min-width: 0;
  display: grid;
  flex: 1 1 auto;
}

.payment-tile-title {
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.payment-tile-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(230, 244, 255, 0.62);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(179, 180, 255, 0.18);
  background: rgba(12, 18, 28, 0.55);
  color: rgba(230, 244, 255, 0.82);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.payment-arrow {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  opacity: 0.8;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.payment-arrow svg {
  width: 18px;
  height: 18px;
}

.payment-tile--primary {
  background: linear-gradient(
    135deg,
    rgba(179, 180, 255, 0.92),
    rgba(140, 142, 255, 0.92)
  );
  color: #0a0f16;
  border-color: rgba(179, 180, 255, 0.62);
}

.payment-tile--primary .payment-chip {
  background: rgba(10, 15, 22, 0.2);
  border-color: rgba(10, 15, 22, 0.26);
  color: rgba(10, 15, 22, 0.82);
}

.payment-tile--primary .payment-icon {
  background: rgba(10, 15, 22, 0.18);
  border-color: rgba(10, 15, 22, 0.24);
  color: rgba(10, 15, 22, 0.9);
}

.payment-tile--primary .payment-tile-sub {
  color: rgba(10, 15, 22, 0.74);
}

.payment-tile--alt {
  background: linear-gradient(
    135deg,
    rgba(62, 230, 168, 0.86),
    rgba(179, 180, 255, 0.78)
  );
  color: #0a0f16;
  border-color: rgba(62, 230, 168, 0.5);
}

.payment-tile--alt .payment-chip {
  background: rgba(10, 15, 22, 0.2);
  border-color: rgba(10, 15, 22, 0.26);
  color: rgba(10, 15, 22, 0.82);
}

.payment-tile--alt .payment-icon {
  background: rgba(10, 15, 22, 0.18);
  border-color: rgba(10, 15, 22, 0.24);
  color: rgba(10, 15, 22, 0.9);
}

.payment-tile--alt .payment-tile-sub {
  color: rgba(10, 15, 22, 0.74);
}

@media (prefers-reduced-motion: reduce) {
  .payment-tile,
  .payment-hero {
    transition: none;
  }
  .payment-hero::after,
  .payment-tile::after {
    animation: none !important;
  }
}

.modal-hero {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.22);
  border: 1px solid rgba(179, 180, 255, 0.12);
}

.modal-hero-ico {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: rgba(248, 251, 255, 0.92);
  background: rgba(179, 180, 255, 0.12);
  border: 1px solid rgba(179, 180, 255, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.modal-hero-ico svg {
  width: 18px;
  height: 18px;
}

.modal-hero-title {
  font-weight: 800;
  color: rgba(248, 251, 255, 0.92);
  letter-spacing: 0.01em;
}

.modal-hero-sub {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(230, 244, 255, 0.66);
  line-height: 1.35;
}

.modal-text {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

.modal-field {
  display: grid;
  gap: 10px;
}

.modal-field-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(230, 244, 255, 0.7);
}

.modal-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.modal-input-tools {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.modal-input {
  height: 44px;
  padding: 0 16px;
  background: rgba(12, 18, 28, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.modal-hint {
  font-size: 12px;
  color: rgba(230, 244, 255, 0.6);
  line-height: 1.35;
}

.modal-input--shake {
  animation: modal-shake 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modal-shake {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
  100% {
    transform: translateX(0);
  }
}

.modal-input--mono {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace;
  letter-spacing: 0.06em;
}

.modal-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(179, 180, 255, 0.18);
}

.modal-input:-webkit-autofill,
.modal-input:-webkit-autofill:hover,
.modal-input:-webkit-autofill:focus,
.modal-input:-webkit-autofill:active {
  -webkit-text-fill-color: rgba(230, 244, 255, 0.88);
  box-shadow:
    0 0 0 1000px rgba(12, 18, 28, 0.82) inset,
    0 0 0 0 transparent;
  -webkit-box-shadow:
    0 0 0 1000px rgba(12, 18, 28, 0.82) inset,
    0 0 0 0 transparent;
  border: 1px solid rgba(179, 180, 255, 0.18);
  transition: background-color 9999s ease-in-out 0s;
}

.modal-input:-moz-autofill {
  box-shadow: 0 0 0 1000px rgba(12, 18, 28, 0.82) inset;
  border: 1px solid rgba(179, 180, 255, 0.18);
}

.modal-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(12, 18, 28, 0.55);
  border: 1px solid rgba(179, 180, 255, 0.14);
  color: rgba(248, 251, 255, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.modal-icon-btn svg {
  width: 18px;
  height: 18px;
}

.modal-icon-btn:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(179, 180, 255, 0.28);
  box-shadow: 0 16px 30px rgba(179, 180, 255, 0.12);
}

.modal-footer {
  padding: 14px 16px 16px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid rgba(179, 180, 255, 0.12);
  background: rgba(8, 12, 18, 0.14);
}

.modal-footer-inner {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-btn {
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(179, 180, 255, 0.14);
  border-radius: 14px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.modal-btn-confirm {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #0a0f16;
  border-color: rgba(179, 180, 255, 0.55);
}

.modal-btn-confirm:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 26px rgba(179, 180, 255, 0.22);
}

.modal-btn-cancel {
  background: rgba(12, 18, 28, 0.42);
  color: rgba(230, 244, 255, 0.84);
}

.modal-btn-cancel:hover {
  background: rgba(18, 26, 38, 0.8);
  border-color: rgba(179, 180, 255, 0.24);
  transform: translateY(-1px) scale(1.02);
}

.modal-btn:disabled,
.modal-icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}

.modal-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.payment-methods-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .payment-methods-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.modal-choice {
  display: grid;
  gap: 12px;
}

.modal-choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(179, 180, 255, 0.14);
  background: rgba(8, 12, 18, 0.22);
}

.modal-choice-head-main {
  min-width: 0;
}

.modal-choice-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(230, 244, 255, 0.62);
}

.modal-choice-title {
  margin-top: 4px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: rgba(248, 251, 255, 0.92);
  line-height: 1.2;
}

.modal-choice-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(179, 180, 255, 0.18);
  background: rgba(12, 18, 28, 0.55);
  color: rgba(230, 244, 255, 0.8);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.modal-choice-badge svg {
  width: 16px;
  height: 16px;
}

.modal-card {
  border-radius: 18px;
  border: 1px solid rgba(179, 180, 255, 0.14);
  background: rgba(8, 12, 18, 0.22);
  padding: 14px;
  display: grid;
  gap: 14px;
}

.modal-card-head {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
}

.modal-card-ico {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(179, 180, 255, 0.12);
  border: 1px solid rgba(179, 180, 255, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  color: rgba(248, 251, 255, 0.92);
}

.modal-card-ico svg {
  width: 18px;
  height: 18px;
}

.modal-card-title {
  font-weight: 900;
  letter-spacing: 0.01em;
  color: rgba(248, 251, 255, 0.92);
}

.modal-card-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(230, 244, 255, 0.66);
  line-height: 1.35;
}

.modal-card--tone-key .modal-card-ico {
  background: rgba(179, 180, 255, 0.14);
}

.modal-card--tone-security .modal-card-ico {
  background: rgba(62, 230, 168, 0.16);
  border-color: rgba(62, 230, 168, 0.22);
}

.modal-action-card {
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(179, 180, 255, 0.14);
  background: rgba(8, 12, 18, 0.24);
  color: rgba(248, 251, 255, 0.92);
  padding: 14px 14px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 46px 1fr 18px;
  gap: 12px;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease,
    box-shadow 260ms ease,
    filter 220ms ease;
}

.modal-action-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background:
    radial-gradient(
      420px 220px at 18% -10%,
      rgba(179, 180, 255, 0.16),
      rgba(179, 180, 255, 0) 58%
    ),
    radial-gradient(
      420px 220px at 86% 0%,
      rgba(62, 230, 168, 0.08),
      rgba(62, 230, 168, 0) 62%
    );
  opacity: 0.85;
  pointer-events: none;
}

.modal-action-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(248, 251, 255, 0.14) 45%,
    transparent 62%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.modal-action-card--primary {
  background: linear-gradient(
    135deg,
    rgba(179, 180, 255, 0.92),
    rgba(140, 142, 255, 0.92)
  );
  color: #0a0f16;
  border-color: rgba(179, 180, 255, 0.6);
}

.modal-action-card--buy {
  background: rgba(8, 12, 18, 0.24);
}

.modal-action-ico {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(179, 180, 255, 0.12);
  border: 1px solid rgba(179, 180, 255, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.modal-action-ico svg {
  width: 18px;
  height: 18px;
}

.modal-action-card--primary .modal-action-ico {
  background: rgba(10, 15, 22, 0.18);
  border-color: rgba(10, 15, 22, 0.22);
}

.modal-action-main {
  min-width: 0;
  display: grid;
}

.modal-action-arrow {
  display: grid;
  place-items: center;
  opacity: 0.85;
}

.modal-action-arrow svg {
  width: 18px;
  height: 18px;
}

.modal-action-title {
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.modal-action-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(230, 244, 255, 0.62);
  line-height: 1.35;
}

.modal-action-card--primary .modal-action-sub {
  color: rgba(10, 15, 22, 0.72);
}

.modal-action-card:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(179, 180, 255, 0.26);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
  filter: brightness(1.02);
}

.modal-action-card:hover::after {
  opacity: 1;
  animation: dash-shine 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-action-card:active {
  transform: translateY(-1px) scale(0.995);
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay,
  .modal-custom,
  .modal-btn,
  .modal-close,
  .modal-icon-btn,
  .modal-action-card {
    transition: none;
  }
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

#registerOptions .terms-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.2;
  color: #e6f3ff;
  cursor: pointer;
  vertical-align: middle;
  max-width: 100%;
}

#registerOptions .terms-label input[type='checkbox'] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
  accent-color: #2f8cff;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

#registerOptions .terms-label input[type='checkbox']:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(47, 140, 255, 0.12);
  border-color: rgba(47, 140, 255, 0.9);
}

#registerOptions .terms-text {
  display: inline-block;
  max-width: calc(400px - 56px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  color: inherit;
}

#registerOptions .terms-text a {
  color: #bfefff;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 120ms;
}
#registerOptions .terms-text a:hover,
#registerOptions .terms-text a:focus {
  color: #e6fbff;
  text-decoration: none;
}

@media (max-width: 680px) {
  #registerOptions .terms-text {
    max-width: 100%;
    white-space: normal;
    text-overflow: clip;
    font-size: 13px;
  }
  #registerOptions .terms-label {
    font-size: 13px;
    line-height: 1.3;
    gap: 8px;
  }
}

.help-page {
  padding: 110px 24px 40px;
  align-items: flex-start;
}

.help-container {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(179, 180, 255, 0.16);
  background: rgba(10, 16, 24, 0.56);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(var(--glass-blur));
}

.help-head {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(179, 180, 255, 0.16);
  background: linear-gradient(
    135deg,
    rgba(18, 30, 42, 0.72),
    rgba(12, 20, 30, 0.5)
  );
}

.help-kicker {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.help-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.help-hero-title,
.help-lead,
.help-typed-title,
.help-typed-heading,
.help-typed-line {
  position: relative;
}

.help-hero-title.is-typing::after,
.help-lead.is-typing::after,
.help-typed-title.is-typing::after,
.help-typed-heading.is-typing::after,
.help-typed-line.is-typing::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 0.1em;
  width: 2px;
  height: 0.9em;
  background: rgba(230, 244, 255, 0.72);
  animation: hwid-caret 800ms steps(2, end) infinite;
}

.help-typed-line.is-done::after {
  opacity: 0;
  animation: none;
}

.help-lead {
  min-height: 2.5em;
}

.help-step {
  overflow: hidden;
}

.help-head h1 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.help-lead {
  margin-top: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.help-categories {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  scroll-margin-top: 100px;
}

.help-category {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(179, 180, 255, 0.18);
  background: rgba(8, 12, 18, 0.5);
  text-decoration: none;
  color: var(--text);
  transition:
    transform 0.28s,
    border-color 0.28s,
    box-shadow 0.28s;
}

.help-category span {
  color: rgba(230, 244, 255, 0.66);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.help-category strong {
  font-size: 16px;
}

.help-category small {
  color: var(--text-muted);
  line-height: 1.45;
}

.help-category:hover {
  transform: translateY(-2px);
  border-color: rgba(179, 180, 255, 0.3);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.help-guides {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.help-guide {
  scroll-margin-top: 110px;
  border-radius: 18px;
  border: 1px solid rgba(179, 180, 255, 0.16);
  background: rgba(9, 14, 22, 0.72);
  padding: 18px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.38s ease,
    transform 0.44s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s,
    box-shadow 0.35s,
    filter 0.35s;
}

.help-guide::before {
  content: '';
  position: absolute;
  inset: -20% -8%;
  background: radial-gradient(
    closest-side,
    rgba(179, 180, 255, 0.16),
    rgba(179, 180, 255, 0)
  );
  opacity: 0;
  transform: translateY(10px) scaleY(0.96);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-guide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(248, 251, 255, 0.14) 45%,
    transparent 62%
  );
  transform: translateX(-125%);
  opacity: 0;
  pointer-events: none;
}

.help-guide.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: hwid-panel-enter 640ms cubic-bezier(0.2, 0.8, 0.2, 1)
    var(--guide-delay, 0ms) both;
}

.help-guide.is-visible::before {
  opacity: 0.72;
  transform: translateY(0) scaleY(1);
}

.help-guide:hover {
  transform: translateY(-2px) scale(1.006);
  border-color: rgba(179, 180, 255, 0.3);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  filter: brightness(1.03);
}

.help-guide:hover::after {
  opacity: 1;
  animation: dash-shine 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.help-guide-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.help-guide-index {
  color: rgba(230, 244, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
}

.help-guide h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.2;
}

.help-steps {
  display: grid;
  gap: 10px;
}

.help-steps section {
  border-radius: 14px;
  border: 1px solid rgba(179, 180, 255, 0.12);
  background: rgba(6, 10, 16, 0.45);
  padding: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.4s ease;
}

.help-steps section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.help-steps h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.help-steps p,
.help-steps li {
  color: rgba(230, 244, 255, 0.78);
  line-height: 1.75;
}

.help-steps ul {
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

@media (max-width: 980px) {
  .help-categories {
    grid-template-columns: 1fr;
  }

  .help-head-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .help-page {
    padding: 96px 14px 24px;
  }

  .help-container {
    padding: 14px;
  }
}
