:root {
  --bg: #10121a;
  --bg-deep: #0a0b11;
  --side: rgba(16, 18, 28, .78);
  --top: rgba(14, 16, 24, .78);
  --panel: rgba(26, 29, 42, .72);
  --panel-2: rgba(32, 36, 52, .78);
  --panel-3: rgba(40, 44, 62, .85);
  --line: rgba(160, 180, 255, .1);
  --line-strong: rgba(160, 180, 255, .18);
  --text: #f3f5fb;
  --muted: #9aa4bd;
  --dim: #6d7691;
  --blue: #5b8cff;
  --blue-hi: #8ec8ff;
  --violet: #7b6cff;
  --orange: #8ec8ff; /* бывший тёплый акцент → в холодную гамму */
  --pink: #8b7bff;
  --green: #5ee2a6;
  --yellow: #8ec8ff;
  --red: #ff6b81;
  --grad-primary: linear-gradient(135deg, #5ad0ff 0%, #5b8cff 48%, #7b6cff 100%);
  --grad-cyan: var(--grad-primary);
  --grad-coral: linear-gradient(135deg, #6aa8ff 0%, #7b6cff 100%);
  --grad-gold: linear-gradient(135deg, #7ec8ff 0%, #5b8cff 100%);
  --grad-violet: linear-gradient(135deg, #8b7bff 0%, #5b8cff 100%);
  --glow: 0 12px 32px rgba(91, 140, 255, .32);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --display: "Sora", "Segoe UI", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --sidebar: 236px;
  --glass: blur(18px) saturate(1.1);
  --shadow: 0 18px 50px rgba(0, 0, 0, .38);
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 140, 255, .55) rgba(255, 255, 255, .04);
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: rgba(10, 12, 20, .55);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, #5ad0ff, #5b8cff 48%, #7b6cff) padding-box,
    transparent border-box;
  box-shadow: 0 0 12px rgba(91, 140, 255, .25);
}
*::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, #8ec8ff, #6a9bff 48%, #8b7bff) padding-box,
    transparent border-box;
}
*::-webkit-scrollbar-corner { background: transparent; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg-deep);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
svg { display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 38% at 10% 14%, rgba(91, 140, 255, .2), transparent 58%),
    radial-gradient(ellipse 42% 34% at 88% 12%, rgba(123, 108, 255, .14), transparent 55%),
    radial-gradient(ellipse 48% 40% at 70% 86%, rgba(90, 208, 255, .1), transparent 60%),
    linear-gradient(165deg, #12141e 0%, #0e1018 48%, #0a0b11 100%);
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .48;
  animation: glow-drift 18s ease-in-out infinite alternate;
}
.bg-glow--a {
  width: 40vw;
  height: 40vw;
  left: -10%;
  top: 4%;
  background: rgba(91, 140, 255, .28);
}
.bg-glow--b {
  width: 34vw;
  height: 34vw;
  right: -8%;
  bottom: 4%;
  background: rgba(123, 108, 255, .18);
  animation-delay: -7s;
}
.bg-mesh {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(150, 170, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 170, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 55% 35%, #000 18%, transparent 78%);
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3%, -2%, 0) scale(1.08); }
}

/* Sidebar */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 24, 36, .82), rgba(14, 16, 24, .9));
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: 18px 0 48px rgba(0, 0, 0, .28);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin: 0 6px 22px;
  padding: 4px;
  border-radius: 16px;
  transition: background .18s ease;
}
.logo:hover { background: rgba(255, 255, 255, .03); }
.logo-badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-primary);
  border: 0;
  border-radius: 14px;
  box-shadow: var(--glow);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b {
  font: 800 16px/1 var(--display);
  letter-spacing: .02em;
}
.logo-text i {
  margin-top: 6px;
  color: var(--blue-hi);
  font: normal 700 10px/1 var(--display);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
}
.side-label {
  margin: 16px 10px 7px;
  color: var(--dim);
  font: 700 11px/1 var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.side-label:first-child { margin-top: 0; }
.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 10px 0 9px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, border-radius .18s ease;
}
.side-nav a::before {
  content: "";
  position: absolute;
  left: -14px;
  width: 3px;
  height: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-primary);
  box-shadow: 0 0 12px rgba(142, 200, 255, .55);
  transition: height .18s ease;
}
.side-ico {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #a9b3c9;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.side-ico svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .045);
  border-radius: 9px;
}
.side-nav a:hover .side-ico {
  color: #fff;
  border-color: rgba(122, 215, 255, .22);
  background: rgba(79, 140, 255, .14);
  border-radius: 9px;
}
.side-nav a.is-active {
  color: #fff;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(91, 140, 255, .2), rgba(123, 108, 255, .05) 72%);
  box-shadow: inset 0 0 0 1px rgba(142, 200, 255, .12);
}
.side-nav a.is-active::before { height: 22px; }
.side-nav a.is-active .side-ico {
  color: #fff;
  border-color: transparent;
  border-radius: 9px;
  background: var(--grad-primary);
  box-shadow: var(--glow);
}
.side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 16px;
}
.side-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 11px;
  border: 1px solid rgba(94, 226, 166, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(10px);
}
.side-card-led {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 11px rgba(94, 226, 166, .65);
  animation: led-pulse 2.4s ease-in-out infinite;
}
.side-card b,
.side-card small { display: block; }
.side-card b { font-size: 13px; font-weight: 800; letter-spacing: .01em; }
.side-card small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.side-place {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-primary);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: var(--glow);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.side-place svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.side-place:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(91, 140, 255, .4);
}
.side-rule {
  display: block;
  width: 100%;
  height: 0;
  margin: 12px 0 2px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.side-brand {
  margin-top: 2px;
  padding: 10px 4px 2px;
  text-align: center;
}
.side-brand b,
.side-brand small { display: block; }
.side-brand b {
  color: #fff;
  font: 700 12px/1.15 var(--display);
}
.side-brand small {
  margin-top: 3px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.3;
}

/* Topbar and frame */
.app-view {
  min-height: 100vh;
  margin-left: var(--sidebar);
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(18px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
  background: var(--top);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}
.nav-toggle { display: none; }
.topbar-search {
  position: relative;
  min-width: min(360px, 48vw);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.topbar-search:focus-within {
  color: var(--blue-hi);
  border-color: rgba(142, 200, 255, .35);
  background: rgba(91, 140, 255, .08);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, .12);
}
.topbar-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 600 13px/1.2 var(--body);
}
.topbar-search input::placeholder { color: var(--dim); }
.topbar-search svg,
.topbar-actions > a svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.search-suggest {
  position: absolute;
  z-index: 60;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  padding: 6px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(18, 20, 30, .96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow: auto;
}
.search-suggest[hidden] { display: none !important; }
.search-suggest-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.search-suggest-item:hover,
.search-suggest-item:focus {
  background: rgba(91, 140, 255, .14);
  outline: none;
}
.search-suggest-item b { font-size: 13px; font-weight: 700; }
.search-suggest-item small { color: var(--muted); font-size: 12px; }
.search-suggest-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}
.pcard.is-flash {
  box-shadow: 0 0 0 2px rgba(142, 200, 255, .55), 0 22px 48px rgba(91, 140, 255, .28);
}
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(10px);
}
.auth-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font: 700 13px/1 var(--display);
  letter-spacing: .02em;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.auth-chip--ghost {
  color: #d7deef;
  background: transparent;
}
.auth-chip--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}
.auth-chip--primary {
  color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 8px 20px rgba(91, 140, 255, .28);
}
.auth-chip--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: var(--glow);
}
.auth-chip--user {
  padding: 4px 14px 4px 4px;
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}
.auth-chip--user:hover {
  border-color: rgba(142, 200, 255, .28);
  background: rgba(91, 140, 255, .1);
}
.auth-chip-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-primary);
  font: 800 11px/1 var(--display);
  box-shadow: 0 6px 14px rgba(91, 140, 255, .28);
}
.auth-chip-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.auth-chip-copy b {
  font-size: 13px;
  line-height: 1.1;
}
.auth-chip-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.shell {
  width: min(1450px, 100%);
  margin: 0 auto;
  padding: 31px clamp(18px, 3vw, 40px) 48px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 38px;
}

/* Hero */
.welcome {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 42px 42px 88px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 55% 70% at 78% 28%, rgba(91, 140, 255, .26), transparent 55%),
    radial-gradient(ellipse 40% 50% at 90% 80%, rgba(123, 108, 255, .12), transparent 50%),
    linear-gradient(180deg, transparent 55%, rgba(10, 12, 20, .45) 100%),
    rgba(22, 24, 36, .72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: rise-in .7s cubic-bezier(.2, .8, .2, 1) both;
}
.welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(107, 185, 225, .18) 49%, transparent 50%),
    linear-gradient(150deg, transparent 48%, rgba(107, 185, 225, .12) 49%, transparent 50%);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 35%, #000 70%);
  pointer-events: none;
}
.welcome::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(3, 12, 20, .45));
  pointer-events: none;
}
.welcome > div:first-child { position: relative; z-index: 2; max-width: 570px; }
.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--dim);
  font: 700 12px/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow span { color: var(--blue-hi); margin: 0 6px; }
.welcome h1 {
  margin: 0;
  font: 700 clamp(28px, 3.6vw, 46px)/1.05 var(--display);
  letter-spacing: -.02em;
  text-shadow: 0 8px 32px rgba(0, 0, 0, .25);
}
.welcome h1 strong { color: var(--blue-hi); font-weight: inherit; }
.welcome-text {
  max-width: 500px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: 800 12px/1 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn--primary,
.btn--neon {
  color: #fff;
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: var(--glow);
}
.btn--primary:hover,
.btn--neon:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(91, 140, 255, .42);
}
.btn--quiet,
.btn--ghost {
  color: #d5dbeb;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
}
.btn--quiet:hover,
.btn--ghost:hover {
  color: #fff;
  border-color: rgba(122, 215, 255, .35);
  background: rgba(79, 140, 255, .12);
}
.btn--sm { min-height: 34px; padding-inline: 13px; font-size: 12px; }
.welcome-visual {
  position: absolute;
  z-index: 1;
  right: clamp(20px, 8vw, 120px);
  top: 50%;
  width: 270px;
  height: 270px;
  transform: translateY(-56%);
}
.radar-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(95, 210, 255, .2);
  background:
    radial-gradient(circle, rgba(19, 168, 232, .32), rgba(19, 168, 232, .06) 36%, transparent 68%);
  box-shadow: 0 0 60px rgba(19, 168, 232, .18);
  animation: hover 6s ease-in-out infinite;
}
.radar-disc::before,
.radar-disc::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px dashed rgba(95, 210, 255, .28);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
.radar-disc::after { inset: 34%; animation-direction: reverse; animation-duration: 11s; }
.radar-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 116%;
  height: 32%;
  border: 1px solid rgba(239, 113, 71, .34);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(18deg);
}
.radar-orbit--two { transform: translate(-50%, -50%) rotate(-42deg); border-color: rgba(95, 210, 255, .32); }
.radar-core {
  position: absolute;
  inset: 36%;
  display: grid;
  place-items: center;
  color: var(--blue-hi);
  border: 1px solid rgba(95, 210, 255, .45);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(19, 168, 232, .22), rgba(5, 24, 38, .88));
  box-shadow:
    0 0 55px rgba(19, 168, 232, .48),
    inset 0 0 24px rgba(95, 210, 255, .12);
  transform: rotate(45deg);
}
.radar-core svg { width: 34px; height: 34px; fill: currentColor; transform: rotate(-45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hover { 50% { transform: translateY(-6px); } }
@keyframes led-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(85, 212, 151, .45); opacity: 1; }
  50% { box-shadow: 0 0 16px rgba(85, 212, 151, .85); opacity: .75; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hud {
  position: absolute;
  z-index: 3;
  left: 25px;
  right: 25px;
  bottom: 17px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(12, 14, 22, .55);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .25);
}
.hud-cell {
  padding: 12px 16px;
  background: rgba(18, 20, 30, .72);
  border-right: 0;
}
.hud-cell:last-child { border-right: 0; }
.hud-cell span {
  display: block;
  color: #6e8fa3;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}
.hud-cell b {
  display: block;
  margin-top: 5px;
  font: 800 22px/1 var(--display);
  letter-spacing: -.02em;
}
.hud-cell.is-online {
  background: linear-gradient(180deg, rgba(85, 212, 151, .1), rgba(4, 20, 32, .82));
}
.hud-cell.is-online b { color: var(--green); }
.hud-cell.is-online span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(85, 212, 151, .7);
  vertical-align: 1px;
  animation: led-pulse 2.4s ease-in-out infinite;
}
.hud-cell.is-slow {
  background: linear-gradient(180deg, rgba(239, 198, 95, .1), rgba(4, 20, 32, .82));
}
.hud-cell.is-slow b { color: var(--yellow); }
.hud-cell.is-offline {
  background: linear-gradient(180deg, rgba(239, 106, 119, .1), rgba(4, 20, 32, .82));
}
.hud-cell.is-offline b { color: var(--red); }

/* Sections and category tiles */
.category-zone {
  animation: rise-in .7s cubic-bezier(.2, .8, .2, 1) .08s both;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.section-head h2,
.promo h2,
.page-title {
  margin: 0;
  font: 800 clamp(19px, 2.2vw, 27px)/1.1 var(--display);
  letter-spacing: -.01em;
}
.section-head > a {
  color: var(--orange);
  font: 800 13px/1 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-head > a span { margin-left: 6px; font-size: 14px; }
.category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 2px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px 0 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.chip:hover {
  color: #fff;
  border-color: rgba(122, 215, 255, .28);
  background: rgba(255, 255, 255, .04);
}
.chip.is-active {
  color: #fff;
  border-color: rgba(122, 215, 255, .4);
  background: rgba(91, 140, 255, .12);
}
.chip-name {
  font: 600 13px/1 var(--display);
  letter-spacing: .01em;
}
.chip small {
  min-width: 1.4em;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--dim);
  background: rgba(255, 255, 255, .06);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.chip.is-active small {
  color: #cfe7ff;
  background: rgba(91, 140, 255, .22);
}
.chip--placeholder {
  display: none;
}

/* Catalog */
.catalog {
  scroll-margin-top: 85px;
  animation: rise-in .7s cubic-bezier(.2, .8, .2, 1) .14s both;
}
.section-head--catalog { margin-bottom: 8px; }
.catalog-tools { display: flex; align-items: center; gap: 8px; }
.field {
  height: 40px;
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
}
.field svg,
.refresh-btn svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.field { color: var(--dim); }
.field:focus-within { border-color: rgba(95, 210, 255, .4); color: var(--blue-hi); }
.field input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}
.field input::placeholder { color: var(--dim); }
.refresh-btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.refresh-btn:hover { color: #fff; border-color: rgba(122, 215, 255, .35); background: rgba(79, 140, 255, .12); }
.refresh-btn:disabled { opacity: .55; cursor: progress; }
.refresh-btn:disabled svg { animation: spin 1s linear infinite; }
.catalog-sync { margin: 0 0 14px; color: #5a7a8e; font-size: 13px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.pcard {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(28, 31, 44, .72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: card-in .45s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pcard:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 215, 255, .28);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .32);
}
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.pcard-media {
  position: relative;
  height: 155px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(91, 140, 255, .4), transparent 28%),
    radial-gradient(circle at 76% 65%, rgba(123, 108, 255, .22), transparent 25%),
    linear-gradient(135deg, #1a2040, #12131c 60%, #181b2c);
}
.pcard:nth-child(3n+2) .pcard-media {
  background:
    radial-gradient(circle at 25% 25%, rgba(123, 108, 255, .34), transparent 29%),
    radial-gradient(circle at 80% 70%, rgba(90, 208, 255, .2), transparent 24%),
    linear-gradient(135deg, #1e1b3a, #141622 65%);
}
.pcard:nth-child(3n+3) .pcard-media {
  background:
    radial-gradient(circle at 25% 25%, rgba(90, 208, 255, .28), transparent 29%),
    radial-gradient(circle at 80% 70%, rgba(91, 140, 255, .22), transparent 24%),
    linear-gradient(135deg, #172033, #141822 65%);
}
.pcard-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(30deg, transparent 47%, rgba(255, 255, 255, .07) 48%, transparent 49%),
    linear-gradient(150deg, transparent 47%, rgba(255, 255, 255, .04) 48%, transparent 49%);
  background-size: 48px 48px;
}
.pcard-media > img {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 4px solid rgba(5, 20, 32, .65);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .35);
  transition: transform .25s ease;
}
.pcard:hover .pcard-media > img { transform: scale(1.04); }
.pcard-monogram {
  position: relative;
  z-index: 2;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  background: rgba(4, 18, 29, .55);
  backdrop-filter: blur(6px);
  font: 800 24px/1 var(--display);
}
.pcard-live,
.pcard-featured {
  position: absolute;
  z-index: 3;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font: 800 10px/1 var(--display);
  letter-spacing: .08em;
}
.pcard-live { left: 10px; color: #fff; background: rgba(10, 12, 20, .62); backdrop-filter: blur(8px); }
.pcard-live.online { background: rgba(27, 129, 86, .82); }
.pcard-live.degraded { background: rgba(161, 117, 30, .86); }
.pcard-live.offline { background: rgba(164, 51, 67, .86); }
.pcard-led { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pcard-featured { right: 10px; color: #0c1220; background: var(--grad-gold); }
.pcard-body { padding: 12px 13px 13px; }
.pcard-title-row { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.pcard-title-row h3 {
  margin: 0;
  font: 800 15px/1.25 var(--display);
  overflow-wrap: anywhere;
}
.pcard-title-row p { margin: 4px 0 0; color: #6d8a9c; font-size: 13px; }
.pcard-go {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  color: var(--blue-hi);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  transition: .18s ease;
}
.pcard-go:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.pcard-go svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pcard-desc {
  margin: 10px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: #819bab;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.pcard-meta {
  min-height: 24px;
  margin-top: 11px;
  padding-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #557388;
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pcard-meta span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pcard-ping {
  flex: 0 0 auto;
  max-width: 45%;
}
.pcard-tags {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}
.pcard-meta i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--blue); }
.empty-arena {
  grid-column: 1 / -1;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 32px 34px;
  overflow: hidden;
  border: 1px solid rgba(95, 210, 255, .22);
  border-radius: 14px;
  background:
    radial-gradient(ellipse 60% 80% at 8% 50%, rgba(19, 168, 232, .18), transparent 55%),
    radial-gradient(ellipse 40% 70% at 92% 20%, rgba(239, 113, 71, .1), transparent 50%),
    linear-gradient(135deg, rgba(10, 38, 58, .95), rgba(7, 24, 38, .92));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(95, 210, 255, .08);
  animation: rise-in .7s cubic-bezier(.2, .8, .2, 1) .16s both;
}
.empty-arena::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(107, 185, 225, .14) 49%, transparent 50%),
    linear-gradient(150deg, transparent 48%, rgba(107, 185, 225, .08) 49%, transparent 50%);
  background-size: 48px 48px;
  pointer-events: none;
}
.empty-icon {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
  color: var(--blue-hi);
  border: 1px solid rgba(95, 210, 255, .35);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(19, 168, 232, .2), rgba(8, 28, 44, .85));
  box-shadow: 0 0 32px rgba(19, 168, 232, .22);
}
.empty-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}
.empty-kicker {
  margin: 0 0 8px;
  color: var(--blue-hi);
  font: 700 13px/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.empty-arena h3 { margin: 0; font: 800 18px/1.2 var(--display); }
.empty-arena p:not(.empty-kicker) {
  margin: 8px 0 0;
  max-width: 420px;
  color: #8fa9ba;
  font-size: 15px;
  line-height: 1.55;
}
.empty-arena .btn { position: relative; z-index: 1; margin-left: auto; flex: 0 0 auto; }
.catalog-note { color: var(--muted); text-align: center; font-size: 14px; }

/* Promo */
.promo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 32px 34px;
  border: 1px solid rgba(239, 113, 71, .28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 18%, rgba(239, 113, 71, .28), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(19, 168, 232, .12), transparent 40%),
    linear-gradient(110deg, #0e3048, #0a2438 55%, #091d2e);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 180, 140, .08);
  animation: rise-in .7s cubic-bezier(.2, .8, .2, 1) .2s both;
}
.promo::after {
  content: "GL";
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .035);
  font: 800 120px/1 var(--display);
  pointer-events: none;
}
.promo > div { position: relative; z-index: 2; }
.promo h2 { letter-spacing: -.01em; }
.promo > div > p:last-child {
  margin: 12px 0 0;
  max-width: 460px;
  color: #9bb4c4;
  font-size: 15px;
  line-height: 1.55;
}
.promo-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; }

/* Legal */
.page-head {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(120deg, #0d2e45, #081c2c);
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0 0 0 55%;
  opacity: .28;
  background-image:
    linear-gradient(30deg, transparent 47%, rgba(95, 210, 255, .16) 48%, transparent 49%),
    linear-gradient(150deg, transparent 47%, rgba(95, 210, 255, .1) 48%, transparent 49%);
  background-size: 55px 55px;
}
.tagline {
  color: var(--orange);
  font: 800 12px/1 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tagline-dot { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--orange); }
.page-title { position: relative; z-index: 2; margin-top: 10px; font-size: clamp(25px, 4vw, 42px); }
.page-title--big { font-size: clamp(55px, 10vw, 100px); }
.page-lede { position: relative; z-index: 2; max-width: 680px; margin: 10px 0 0; color: #8aa5b6; font-size: 14px; line-height: 1.65; }
.page-head--404 { text-align: center; }
.page-head--404 .page-lede { margin-inline: auto; }
.page-head--404 .promo-actions { justify-content: center; margin-top: 18px; }
.doc-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.doc-card {
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: .2s ease;
}
.doc-card:hover { transform: translateY(-3px); border-color: rgba(95, 210, 255, .34); }
.doc-card-num { color: var(--orange); font: 800 14px/1 var(--display); letter-spacing: .1em; }
.doc-card h2 { margin: 13px 0 0; font: 800 17px/1.2 var(--display); }
.doc-card p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.doc-card-go { margin-top: auto; display: flex; align-items: center; gap: 6px; color: var(--blue-hi); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.doc-card-go svg { transition: transform .18s ease; }
.doc-card:hover .doc-card-go svg { transform: translateX(3px); }
.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.doc-nav {
  position: sticky;
  top: 86px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.doc-nav-head { margin: 0 0 9px; color: var(--dim); font: 800 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.doc-nav ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; list-style: none; }
.doc-nav a:not(.btn) { display: block; padding: 9px 10px; color: var(--muted); border-radius: 5px; font-size: 12px; font-weight: 700; }
.doc-nav a:hover,
.doc-nav a.is-active { color: #fff; background: rgba(19, 168, 232, .09); }
.doc-nav a.is-active { box-shadow: inset 2px 0 var(--blue); }
.doc-nav-btn { width: 100%; margin-top: 12px; }
.doc {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.doc h2 { margin: 29px 0 10px; color: #fff; font: 800 17px/1.3 var(--display); }
.doc h2:first-child { margin-top: 0; }
.doc h2::before { content: ""; display: inline-block; width: 3px; height: 14px; margin-right: 9px; vertical-align: -2px; background: var(--orange); }
.doc p,
.doc li { color: #91a8b7; font-size: 14px; line-height: 1.75; }
.doc p { margin: 0 0 12px; }
.doc ul { padding-left: 18px; }
.doc b { color: #dceaf1; }
.doc a { color: var(--blue-hi); }
.doc-updated { margin-top: 30px !important; padding-top: 15px; border-top: 1px solid var(--line); color: var(--dim) !important; }

/* Footer */
.ftr {
  position: relative;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px 28px;
  flex-wrap: wrap;
  padding: 16px clamp(18px, 3vw, 40px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(22, 24, 36, .55), rgba(12, 14, 22, .88));
  backdrop-filter: blur(14px);
  font-size: 12px;
  overflow: hidden;
}
.ftr::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 208, 255, .55), rgba(123, 108, 255, .55), transparent);
  opacity: .85;
}
.ftr nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ftr nav a {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.ftr nav a:hover {
  color: #fff;
  border-color: rgba(142, 200, 255, .22);
  background: rgba(91, 140, 255, .1);
}
.ftr-mail {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(142, 200, 255, .2);
  color: var(--blue-hi);
  background: rgba(91, 140, 255, .08);
  font-weight: 700;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ftr-mail:hover {
  color: #fff;
  background: rgba(91, 140, 255, .16);
  box-shadow: 0 8px 20px rgba(91, 140, 255, .2);
  transform: translateY(-1px);
}
.mobile-shade { display: none; }

@media (max-width: 1120px) {
  .category-rail { display: flex; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-visual { right: 25px; opacity: .58; }
}

@media (max-width: 820px) {
  :root { --sidebar: 0px; }
  .sidebar {
    width: 230px;
    transform: translateX(-102%);
    transition: transform .22s ease;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .nav-toggle {
    width: 34px;
    height: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: transparent;
  }
  .nav-toggle span { width: 14px; height: 1px; background: currentColor; }
  .mobile-shade {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(0, 0, 0, .52);
    backdrop-filter: blur(2px);
  }
  body.nav-open .mobile-shade { display: block; }
  .welcome { padding-inline: 28px; }
  .welcome-visual { right: -65px; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; }
}

@media (max-width: 600px) {
  .topbar { height: 58px; padding-inline: 13px; }
  .topbar-search { min-width: 0; flex: 1; }
  .auth-chip-copy { display: none; }
  .auth-chip--user { padding: 4px; }
  .auth-pair { gap: 4px; padding: 3px; }
  .auth-chip { min-height: 34px; padding: 0 12px; font-size: 12px; }
  .topbar-actions { margin-left: 0; gap: 7px; }
  .shell { padding: 20px 13px 36px; gap: 28px; }
  .welcome { min-height: 360px; padding: 27px 20px 94px; }
  .welcome h1 { font-size: 31px; }
  .welcome-text { max-width: 85%; }
  .welcome-visual { top: 47%; right: -85px; width: 230px; height: 230px; opacity: .43; }
  .hud { left: 10px; right: 10px; bottom: 10px; grid-template-columns: repeat(2, 1fr); }
  .hud-cell:nth-child(2) { border-right: 0; }
  .hud-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head { align-items: flex-start; }
  .section-head--catalog { flex-direction: column; }
  .catalog-tools { width: 100%; }
  .field { min-width: 0; flex: 1; }
  .cards,
  .doc-cards { grid-template-columns: 1fr; }
  .pcard-media { height: 175px; }
  .empty-arena {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .empty-icon { margin-inline: auto; }
  .empty-arena .btn { width: 100%; margin-left: 0; }
  .promo { align-items: flex-start; flex-direction: column; padding: 24px 20px; }
  .promo-actions { width: 100%; flex-direction: column; }
  .ftr { align-items: stretch; flex-direction: column; gap: 12px; }
  .ftr nav { margin-left: 0; justify-content: center; }
  .ftr-mail { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .welcome,
  .category-zone,
  .catalog,
  .promo,
  .empty-arena,
  .pcard {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .radar-disc,
  .radar-disc::before,
  .radar-disc::after,
  .side-card-led,
  .hud-cell.is-online span::before,
  .signal-aura,
  .signal-ring,
  .signal-beam,
  .signal-node,
  .signal-core {
    animation: none !important;
  }
}

/* Marketing home */
.hero-market {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: 20px;
  align-items: center;
  min-height: min(78vh, 680px);
  padding: 12px 4px 4px;
  overflow: hidden;
}
.brand-mark {
  margin: 0 0 14px;
  color: var(--blue-hi);
  font: 700 12px/1 var(--display);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-market h1 {
  margin: 0;
  font: 800 clamp(34px, 5vw, 58px)/1.05 var(--display);
  letter-spacing: -.03em;
}
.hero-lead {
  margin: 16px 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.hero-market-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(58vh, 560px);
}
.signal-stage {
  position: relative;
  width: min(520px, 92%);
  aspect-ratio: 1;
  filter: drop-shadow(0 30px 60px rgba(91, 140, 255, .18));
}
.signal-aura {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 140, 255, .28), rgba(123, 108, 255, .08) 42%, transparent 68%);
  filter: blur(8px);
  animation: signal-pulse 5.5s ease-in-out infinite;
}
.signal-ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(142, 200, 255, .14);
  box-shadow: inset 0 0 24px rgba(91, 140, 255, .04);
  animation: signal-breathe 8s ease-in-out infinite;
}
.signal-ring--1 { inset: 2%; border-color: rgba(90, 208, 255, .16); }
.signal-ring--2 { inset: 12%; border-color: rgba(123, 108, 255, .18); animation-delay: -.8s; animation-duration: 9.5s; }
.signal-ring--3 { inset: 24%; border-color: rgba(91, 140, 255, .2); animation-delay: -1.6s; animation-duration: 7.2s; }
.signal-ring--4 { inset: 36%; border-color: rgba(142, 200, 255, .22); animation-delay: -2.4s; animation-duration: 6.4s; }
.signal-beam {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(142, 200, 255, .55), transparent);
  opacity: .4;
}
.signal-beam--a { animation: signal-scan-a 8s linear infinite; }
.signal-beam--b { animation: signal-scan-b 11s linear infinite reverse; opacity: .26; }
@keyframes signal-scan-a {
  from { transform: rotate(18deg); }
  to { transform: rotate(378deg); }
}
@keyframes signal-scan-b {
  from { transform: rotate(130deg); }
  to { transform: rotate(490deg); }
}
.signal-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8ec8ff;
  box-shadow: 0 0 0 4px rgba(91, 140, 255, .18), 0 0 18px rgba(142, 200, 255, .7);
  animation: signal-node 4.8s ease-in-out infinite;
}
.signal-node--a { top: 14%; left: 58%; background: #5ee2a6; box-shadow: 0 0 0 4px rgba(94, 226, 166, .18), 0 0 16px rgba(94, 226, 166, .7); }
.signal-node--b { bottom: 22%; left: 18%; animation-delay: -1.4s; }
.signal-node--c { top: 42%; right: 10%; animation-delay: -2.2s; background: #b5a8ff; }
.signal-core {
  position: absolute;
  inset: 34%;
  display: grid;
  place-items: center;
  border-radius: 28%;
  color: #fff;
  background: var(--grad-primary);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow:
    0 24px 60px rgba(91, 140, 255, .42),
    0 0 40px rgba(123, 108, 255, .28),
    inset 0 1px 0 rgba(255, 255, 255, .28);
  animation: signal-float 6s ease-in-out infinite;
}
.signal-core svg { width: 52%; height: 52%; }
@keyframes signal-pulse {
  0%, 100% { transform: scale(.96); opacity: .7; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes signal-breathe {
  0%, 100% { transform: scale(1); opacity: .75; }
  50% { transform: scale(1.03); opacity: 1; }
}
@keyframes signal-node {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.25); opacity: 1; }
}
@keyframes signal-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 34px;
}
.home-stat {
  padding: 16px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(28, 31, 44, .66);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.home-stat span { display: block; color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.home-stat b { display: block; margin-top: 8px; font: 800 28px/1 var(--display); }
.home-stat.is-online b { color: var(--green); }

.home-pitch { margin-bottom: 34px; }
.pitch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pitch-item {
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(28, 31, 44, .66);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.pitch-item h3 { margin: 0; font: 700 16px/1.25 var(--display); }
.pitch-item p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.home-cta,
.about-page {
  padding: 28px 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(91, 140, 255, .16), transparent 50%),
    rgba(22, 24, 36, .72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.about-page h1,
.home-cta h2 { margin: 8px 0 0; font: 800 clamp(26px, 3.5vw, 36px)/1.15 var(--display); }
.about-lead { margin: 12px 0 0; max-width: 42rem; color: var(--muted); font-size: 16px; }

.contact-channels {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  max-width: 34rem;
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(28, 31, 44, .66);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.contact-channel:hover {
  border-color: rgba(122, 215, 255, .28);
  background: rgba(36, 40, 56, .8);
  transform: translateY(-1px);
}
.contact-channel-ico {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 10px 22px rgba(91, 140, 255, .28);
}
.contact-channel-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-channel b,
.contact-channel small { display: block; }
.contact-channel b {
  font: 700 15px/1.25 var(--display);
  color: #fff;
}
.contact-channel small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.welcome--projects { min-height: auto; padding-bottom: 42px; }

/* Auth */
.auth-shell {
  display: grid;
  place-items: start center;
  padding: 18px 0 40px;
}
.auth-card {
  width: min(460px, 100%);
  padding: 28px 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(100% 80% at 100% 0%, rgba(123, 108, 255, .12), transparent 45%),
    rgba(22, 24, 36, .82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.auth-card h1 { margin: 8px 0 0; font: 800 30px/1.1 var(--display); }
.auth-lead { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-field span { font-size: 13px; font-weight: 700; color: #c5ddd7; }
.auth-field small { color: var(--dim); font-size: 12px; line-height: 1.4; }
.auth-field input {
  height: 44px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(10, 12, 20, .72);
  color: var(--text);
  outline: none;
}
.auth-field input:focus {
  border-color: rgba(122, 215, 255, .45);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, .18);
}
.auth-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.auth-check a { color: var(--blue-hi); }
.auth-error,
.auth-notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}
.auth-error {
  border: 1px solid rgba(232, 121, 132, .35);
  background: rgba(90, 24, 34, .35);
  color: #ffc9cf;
}
.auth-notice {
  border: 1px solid rgba(62, 184, 196, .28);
  background: rgba(20, 60, 66, .4);
  color: #c9f3ec;
}
.auth-switch { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--blue-hi); font-weight: 700; }
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.account-meta {
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.account-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.account-meta dt { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.account-meta dd { margin: 0; font-weight: 700; }

@media (max-width: 900px) {
  .hero-market { grid-template-columns: 1fr; min-height: auto; }
  .hero-market-visual { order: -1; min-height: 360px; }
  .signal-stage { width: min(380px, 88%); }
  .home-stats,
  .pitch-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .home-stats,
  .pitch-grid { grid-template-columns: 1fr; }
}

/* Motion polish */
.btn--primary,
.btn--neon,
.auth-chip--primary,
.side-place {
  position: relative;
  overflow: hidden;
}
.btn--primary::after,
.btn--neon::after,
.auth-chip--primary::after,
.side-place::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg) translateX(-120%);
  pointer-events: none;
}
.btn--primary:hover::after,
.btn--neon:hover::after,
.auth-chip--primary:hover::after,
.side-place:hover::after {
  animation: shine-sweep .7s ease;
}
@keyframes shine-sweep {
  to { transform: skewX(-18deg) translateX(420%); }
}

.home-stats { animation: rise-in .7s cubic-bezier(.2, .8, .2, 1) .08s both; }
.home-pitch { animation: rise-in .7s cubic-bezier(.2, .8, .2, 1) .16s both; }
.home-cta { animation: rise-in .7s cubic-bezier(.2, .8, .2, 1) .24s both; }
.hero-market-copy { animation: rise-in .75s cubic-bezier(.2, .8, .2, 1) both; }
.hero-market-visual { animation: rise-in .85s cubic-bezier(.2, .8, .2, 1) .08s both; }

.home-stat,
.pitch-item {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.home-stat:hover,
.pitch-item:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 200, 255, .28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28), 0 0 24px rgba(91, 140, 255, .1);
}

.side-nav a {
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, border-radius .18s ease, transform .18s ease;
}
.side-nav a:hover { transform: translateX(2px); }
.side-nav a.is-active { transform: none; }

.side-place {
  animation: cta-glow 3.6s ease-in-out infinite;
}
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 12px 28px rgba(91, 140, 255, .28); }
  50% { box-shadow: 0 14px 34px rgba(123, 108, 255, .4); }
}

.chip {
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary::after,
  .btn--neon::after,
  .auth-chip--primary::after,
  .side-place::after,
  .home-stats,
  .home-pitch,
  .home-cta,
  .hero-market-copy,
  .hero-market-visual,
  .side-place {
    animation: none !important;
  }
  .home-stat:hover,
  .pitch-item:hover,
  .side-nav a:hover {
    transform: none;
  }
}
