/* VPN GENESIS — design system */

@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url(fonts/unbounded-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url(fonts/unbounded-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url(fonts/unbounded-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url(fonts/unbounded-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 800; font-display: swap; src: url(fonts/unbounded-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Unbounded'; font-weight: 800; font-display: swap; src: url(fonts/unbounded-cyrillic-800-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(fonts/manrope-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url(fonts/manrope-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url(fonts/manrope-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url(fonts/manrope-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(fonts/manrope-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(fonts/manrope-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url(fonts/manrope-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url(fonts/manrope-cyrillic-800-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

:root {
  --bg: #05060a;
  --bg-2: #0a0c13;
  --panel: rgba(17, 20, 31, 0.72);
  --card: rgba(255, 255, 255, 0.035);
  --card-hi: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef0f8;
  --muted: #9aa1b8;
  --dim: #626a82;
  --cyan: #3ee6f0;
  --blue: #5b8cff;
  --violet: #9b6bff;
  --pink: #f062c0;
  --green: #3ddc97;
  --amber: #fbbf24;
  --red: #ff6b7d;
  --grad: linear-gradient(120deg, #3ee6f0 0%, #5b8cff 48%, #9b6bff 100%);
  --grad-soft: linear-gradient(120deg, rgba(62, 230, 240, 0.16), rgba(155, 107, 255, 0.16));
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
  --glow: 0 0 0 1px rgba(62, 230, 240, 0.25), 0 10px 40px -10px rgba(91, 140, 255, 0.55);
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(91, 140, 255, 0.45); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }

/* ---------- ambient background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 85%);
}
.bg-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.bg-orb.a { width: 560px; height: 560px; left: -140px; top: -180px; background: radial-gradient(circle, rgba(62,230,240,0.55), transparent 65%); animation: drift-a 26s ease-in-out infinite alternate; }
.bg-orb.b { width: 620px; height: 620px; right: -200px; top: 60px; background: radial-gradient(circle, rgba(155,107,255,0.55), transparent 65%); animation: drift-b 32s ease-in-out infinite alternate; }
.bg-orb.c { width: 480px; height: 480px; left: 30%; top: 70vh; background: radial-gradient(circle, rgba(91,140,255,0.35), transparent 65%); animation: drift-a 40s ease-in-out infinite alternate-reverse; }
.bg-noise { position: absolute; inset: 0; background: radial-gradient(ellipse at bottom, rgba(5,6,10,0) 0%, var(--bg) 75%); }
@keyframes drift-a { to { transform: translate(120px, 80px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-100px, 120px) scale(0.92); } }
@media (prefers-reduced-motion: reduce) { .bg-orb, .orbit, .pulse, .eq i { animation: none !important; } }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap-ok { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .g2, .g3 { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; letter-spacing: 0.02em; }
.mono { font-family: var(--mono); font-size: 13px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
.mt0 { margin-top: 0 !important; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: 18px; }
h4 { font-size: 15px; }
.eyebrow { font: 700 12px/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); }

/* ---------- surfaces ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
}
.card.tight { padding: 16px; border-radius: var(--r); }
.card.hover { transition: transform .25s ease, border-color .25s ease, background .25s; }
.card.hover:hover { transform: translateY(-3px); border-color: var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)); }
.card.glow::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(62,230,240,0.55), rgba(91,140,255,0.1) 40%, rgba(155,107,255,0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-title h3 { font-size: 16px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* tinted stat tiles (as in the reference screenshot) */
.tile {
  border-radius: var(--r); padding: 14px 16px; border: 1px solid var(--line);
  background: var(--card); min-width: 0;
}
.tile .label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.tile .value { font: 700 19px/1.3 var(--body); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .sub { color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.tile.blue { background: linear-gradient(160deg, rgba(91,140,255,0.16), rgba(91,140,255,0.04)); border-color: rgba(91,140,255,0.28); }
.tile.green { background: linear-gradient(160deg, rgba(61,220,151,0.15), rgba(61,220,151,0.04)); border-color: rgba(61,220,151,0.28); }
.tile.red { background: linear-gradient(160deg, rgba(255,107,125,0.15), rgba(255,107,125,0.04)); border-color: rgba(255,107,125,0.28); }
.tile.amber { background: linear-gradient(160deg, rgba(251,191,36,0.14), rgba(251,191,36,0.03)); border-color: rgba(251,191,36,0.28); }
.tile.violet { background: linear-gradient(160deg, rgba(155,107,255,0.16), rgba(155,107,255,0.04)); border-color: rgba(155,107,255,0.28); }
.tile.cyan { background: linear-gradient(160deg, rgba(62,230,240,0.14), rgba(62,230,240,0.03)); border-color: rgba(62,230,240,0.28); }
.tile .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,0.06); }
.tile.blue .ic { color: var(--blue); } .tile.green .ic { color: var(--green); } .tile.red .ic { color: var(--red); }
.tile.amber .ic { color: var(--amber); } .tile.violet .ic { color: var(--violet); } .tile.cyan .ic { color: var(--cyan); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.05); color: var(--text); font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s, opacity .2s;
  white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.24); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn.primary { background: var(--grad); border-color: transparent; color: #061018; box-shadow: var(--glow); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: rgba(255,107,125,0.12); border-color: rgba(255,107,125,0.35); color: #ffc3cb; }
.btn.danger:hover { background: rgba(255,107,125,0.2); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(255,255,255,0.06); }
.btn.sm { height: 34px; padding: 0 12px; border-radius: 11px; font-size: 13px; }
.btn.xs { height: 28px; padding: 0 10px; border-radius: 9px; font-size: 12px; gap: 6px; }
.btn.lg { height: 54px; padding: 0 26px; border-radius: 17px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.icon { width: 44px; padding: 0; }
.btn.sm.icon { width: 34px; }
.btn.xs.icon { width: 28px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px;
  font-size: 12.5px; font-weight: 700; border: 1px solid var(--line-2); background: rgba(255,255,255,0.045); color: var(--muted);
  white-space: nowrap;
}
.chip.active, .chip.on { color: var(--text); background: var(--grad-soft); border-color: rgba(62,230,240,0.4); }
button.chip { cursor: pointer; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; letter-spacing: 0.01em; white-space: nowrap; }
.badge.green { color: var(--green); background: rgba(61,220,151,0.12); }
.badge.amber { color: var(--amber); background: rgba(251,191,36,0.12); }
.badge.red { color: var(--red); background: rgba(255,107,125,0.12); }
.badge.blue { color: #9db8ff; background: rgba(91,140,255,0.14); }
.badge.violet { color: #c4acff; background: rgba(155,107,255,0.14); }
.badge.cyan { color: var(--cyan); background: rgba(62,230,240,0.12); }
.badge.gray { color: var(--muted); background: rgba(255,255,255,0.06); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; position: relative; }
.dot.green { background: var(--green); box-shadow: 0 0 12px var(--green); }
.dot.amber { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.dot.red { background: var(--red); box-shadow: 0 0 12px var(--red); }
.dot.blue { background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.dot.pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ping 2.2s ease-out infinite; }
.dot.green.pulse::after { color: var(--green); }
.dot.amber.pulse::after { color: var(--amber); }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }

.input, .select, .textarea {
  width: 100%; height: 44px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(5,6,10,0.55);
  color: var(--text); padding: 0 14px; font: 600 14.5px var(--body); outline: none; transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.textarea.mono { font: 13px/1.5 var(--mono); }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(62,230,240,0.55); box-shadow: 0 0 0 4px rgba(62,230,240,0.1); }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: #11141f; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.01em; }
.field .hint { font-size: 12px; color: var(--dim); font-weight: 500; }

.toggle { position: relative; width: 46px; height: 28px; flex: none; cursor: pointer; border: 0; padding: 0; background: none; }
.toggle i { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,0.1); border: 1px solid var(--line-2); transition: background .25s, border-color .25s; }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #cfd4e3; transition: transform .25s cubic-bezier(.3,1.5,.6,1), background .25s; }
.toggle.on i { background: var(--grad); border-color: transparent; }
.toggle.on i::after { transform: translateX(18px); background: #fff; }
.toggle[disabled] { opacity: 0.4; pointer-events: none; }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: none; height: 34px; padding: 0 14px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; transition: background .2s, color .2s; }
.seg button.on { background: rgba(255,255,255,0.09); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.07); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .8s cubic-bezier(.2,.8,.2,1); position: relative; }
.progress > i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); animation: shimmer 2.4s infinite; }
.progress.warn > i { background: linear-gradient(90deg, var(--amber), #ff9f43); }
.progress.bad > i { background: linear-gradient(90deg, var(--red), #ff3d6b); }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.skeleton { border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.spin { animation: rot 0.9s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.fade-in { animation: fadeUp .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

svg.i { width: 18px; height: 18px; flex: none; stroke-width: 2; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }
svg.i.xl { width: 28px; height: 28px; }

/* ---------- top navigation ---------- */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); background: rgba(5,6,10,0.62); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 66px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 4px; margin-left: 10px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
@media (max-width: 860px) { .nav-links { display: none; } }

.eq { display: inline-flex; align-items: center; gap: 3px; height: 26px; }
.eq i { display: block; width: 4px; border-radius: 3px; background: var(--grad); animation: eq 1.4s ease-in-out infinite; }
.eq i:nth-child(1) { height: 12px; animation-delay: -0.2s; }
.eq i:nth-child(2) { height: 22px; animation-delay: -0.6s; }
.eq i:nth-child(3) { height: 26px; animation-delay: -0.9s; }
.eq i:nth-child(4) { height: 16px; animation-delay: -0.4s; }
.eq i:nth-child(5) { height: 9px; animation-delay: -1.1s; }
@keyframes eq { 50% { transform: scaleY(0.45); } }

/* ---------- landing ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 42px; } }
.hero h1 .line2 { display: block; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 22px 0 30px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

.globe { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; margin: 0 auto; }
.globe .core {
  position: absolute; inset: 31%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.35), rgba(91,140,255,0.35) 30%, rgba(20,24,40,0.9) 70%);
  box-shadow: 0 0 80px rgba(91,140,255,0.55), inset 0 0 40px rgba(62,230,240,0.35);
}
.globe .core::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 14px), repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 14px); mask-image: radial-gradient(circle, #000 60%, transparent 71%); -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 71%); }
.orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.12); animation: rot 60s linear infinite; }
.orbit.o1 { inset: 20%; animation-duration: 28s; }
.orbit.o2 { inset: 9%; animation-duration: 44s; animation-direction: reverse; border-style: solid; border-color: rgba(62,230,240,0.12); }
.orbit.o3 { inset: 0; animation-duration: 70s; }
.orbit .sat { position: absolute; top: -21px; left: calc(50% - 21px); width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: rgba(12,15,26,0.9); border: 1px solid var(--line-2); box-shadow: 0 0 24px rgba(62,230,240,0.35); animation: rot 60s linear infinite reverse; }
.orbit.o1 .sat { animation-duration: 28s; animation-direction: reverse; }
.orbit.o2 .sat { animation-duration: 44s; animation-direction: normal; top: auto; bottom: -21px; }
.orbit.o3 .sat { animation-duration: 70s; top: calc(50% - 21px); left: -21px; }
.globe .beam { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 80%, rgba(62,230,240,0.22) 95%, transparent); animation: rot 8s linear infinite; mask-image: radial-gradient(circle, transparent 30%, #000 31%, #000 70%, transparent 71%); -webkit-mask-image: radial-gradient(circle, transparent 30%, #000 31%, #000 70%, transparent 71%); }

section.block { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 560px; margin: 10px 0 0; }

.node-card { display: flex; flex-direction: column; gap: 14px; }
.flag { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); flex: none; }
.flag.sm { width: 38px; height: 38px; border-radius: 12px; font-size: 21px; }
.flag.xs { width: 30px; height: 30px; border-radius: 10px; font-size: 17px; }
.proto-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.proto-pills span { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 3px 9px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); }

.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(62,230,240,0.25); color: var(--cyan); margin-bottom: 16px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }

.step { display: flex; gap: 16px; }
.step .num { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; font: 800 16px var(--display); background: var(--grad); color: #061018; }

details.faq { border-bottom: 1px solid var(--line); padding: 18px 4px; }
details.faq summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary svg { transition: transform .25s; color: var(--muted); }
details.faq[open] summary svg { transform: rotate(180deg); }
details.faq p { color: var(--muted); margin: 12px 0 0; }

.cta-band { border-radius: var(--r-lg); padding: 42px; text-align: center; background: radial-gradient(ellipse at top, rgba(91,140,255,0.3), transparent 60%), linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)); border: 1px solid var(--line-2); }
footer.foot { padding: 34px 0 48px; color: var(--dim); font-size: 13px; }

/* ---------- app shell (cabinet / sub page) ---------- */
.app-top { display: flex; align-items: center; gap: 14px; padding: 18px 0 8px; }
.avatar { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font: 800 17px var(--display); background: var(--grad); color: #061018; flex: none; }
.hello h2 { font-size: 20px; }
.status-hero { display: flex; align-items: center; gap: 16px; }
.status-hero .check { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.status-hero .check.ok { background: rgba(61,220,151,0.12); color: var(--green); box-shadow: 0 0 0 1px rgba(61,220,151,0.35), 0 0 30px rgba(61,220,151,0.25); }
.status-hero .check.bad { background: rgba(255,107,125,0.12); color: var(--red); box-shadow: 0 0 0 1px rgba(255,107,125,0.35); }
.status-hero .check.warn { background: rgba(251,191,36,0.12); color: var(--amber); box-shadow: 0 0 0 1px rgba(251,191,36,0.35); }
.status-hero h2 { font-size: 22px; word-break: break-word; }

.app-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line);
  background: rgba(255,255,255,0.035); position: relative; overflow: hidden; transition: border-color .2s, background .2s, transform .15s;
}
.app-card:hover { border-color: var(--line-2); background: rgba(255,255,255,0.06); }
.app-card.featured { border-color: rgba(62,230,240,0.45); background: linear-gradient(120deg, rgba(62,230,240,0.12), rgba(155,107,255,0.08)); }
.app-card .logo { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font: 800 18px var(--display); background: rgba(255,255,255,0.08); flex: none; }
.app-card.featured div.logo { background: var(--grad); color: #061018; }
.app-card .sub-links { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.app-card .sub-links a { font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; }
.app-card .sub-links a:hover { color: var(--text); }
.app-card .tv-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.app-card img.logo { display: block; object-fit: cover; background: #fff1; box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 4px 12px rgba(0,0,0,0.25); }
.app-card .name { font-weight: 800; font-size: 16px; }
.app-card .ghost-name { position: absolute; right: -6px; bottom: -14px; font: 800 44px var(--display); opacity: 0.05; pointer-events: none; white-space: nowrap; }

.linkbox { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(5,6,10,0.55); }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

.bars { display: flex; align-items: end; gap: 5px; height: 110px; }
.bars .b { flex: 1; min-width: 4px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--cyan), var(--violet)); opacity: 0.85; position: relative; transition: height .6s cubic-bezier(.2,.8,.2,1); }
.bars .b.zero { background: rgba(255,255,255,0.06); }
.bars .b:hover { opacity: 1; }
.bars-labels { display: flex; justify-content: space-between; margin-top: 8px; color: var(--dim); font-size: 11px; }

.qr { background: #fff; padding: 14px; border-radius: 18px; display: inline-block; line-height: 0; }
.qr svg { width: 220px; height: 220px; display: block; }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid rgba(91,140,255,0.35); background: rgba(91,140,255,0.1); }
.banner.warn { border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.08); }
.banner.bad { border-color: rgba(255,107,125,0.35); background: rgba(255,107,125,0.08); }

.empty { text-align: center; padding: 36px 20px; }
.empty .big { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(62,230,240,0.3); color: var(--cyan); }

/* ---------- modal / sheet / toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(3,4,8,0.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; background: #0d1019; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 30px 90px rgba(0,0,0,0.7); animation: pop .28s cubic-bezier(.2,1.2,.4,1) both; }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.modal-head h3 { flex: 1; font-size: 18px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@media (max-width: 640px) {
  .overlay { align-items: flex-end; padding: 0; }
  .modal { max-height: 92vh; border-radius: 26px 26px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); animation: sheet .3s cubic-bezier(.2,1,.3,1) both; }
  @keyframes sheet { from { transform: translateY(100%); } }
}
.toasts { position: fixed; z-index: 100; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #151926; border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,0.6); font-weight: 700; font-size: 14px; animation: pop .3s cubic-bezier(.2,1.2,.4,1) both; max-width: min(92vw, 460px); }
.toast.ok svg { color: var(--green); }
.toast.err svg { color: var(--red); }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding: 20px 0 60px; }
.side { position: sticky; top: 20px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.side a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px; color: var(--muted); font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.side a:hover { color: var(--text); background: rgba(255,255,255,0.045); }
.side a.on { color: var(--text); background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(62,230,240,0.3); }
.side a.on svg { color: var(--cyan); }
.side .count { margin-left: auto; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,0.08); }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; gap: 14px; padding-top: 8px; }
  .side { position: sticky; top: 0; z-index: 30; flex-direction: row; overflow-x: auto; padding: 10px 0; margin: 0 -20px; padding-left: 20px; padding-right: 20px; background: rgba(5,6,10,0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); scrollbar-width: none; border-bottom: 1px solid var(--line); }
  .side::-webkit-scrollbar { display: none; }
  .side a { white-space: nowrap; padding: 9px 13px; }
  .side .count { display: none; }
}
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 24px; flex: 1; min-width: 180px; }
.kpi .value { font: 800 26px/1.1 var(--display); letter-spacing: -0.02em; }
.kpi .label { color: var(--muted); font-weight: 700; font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.kpi .delta { font-size: 12px; color: var(--dim); margin-top: 6px; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); font-weight: 800; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.click { cursor: pointer; transition: background .15s; }
.table tr.click:hover { background: rgba(255,255,255,0.03); }

.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.025); cursor: pointer; transition: background .15s, border-color .15s; }
.list-item:hover { background: rgba(255,255,255,0.05); border-color: var(--line-2); }

.gauge { position: relative; width: 64px; height: 64px; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .v { position: absolute; inset: 0; display: grid; place-items: center; font: 800 13px var(--body); }
.spark { width: 100%; height: 46px; display: block; }
.metric { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); min-width: 0; }
.metric .k { font-size: 12px; color: var(--muted); font-weight: 700; }
.metric .v { font-weight: 800; font-size: 15px; }

.proto-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.025); border: 1px solid var(--line); }
.logs { max-height: 220px; overflow: auto; background: rgba(0,0,0,0.35); border-radius: 12px; padding: 10px 12px; font: 12px/1.6 var(--mono); color: #b9c0d6; border: 1px solid var(--line); white-space: pre-wrap; word-break: break-all; }
.feed { display: flex; flex-direction: column; }
.feed .ev { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.feed .ev:last-child { border-bottom: 0; }
.feed .ev time { color: var(--dim); font-size: 12px; white-space: nowrap; min-width: 64px; }

.opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.025); }
.opt .t { font-weight: 800; }
.opt .d { color: var(--muted); font-size: 13px; margin-top: 2px; }
.opt.on { border-color: rgba(62,230,240,0.35); background: linear-gradient(120deg, rgba(62,230,240,0.07), rgba(155,107,255,0.05)); }
.choice { cursor: pointer; text-align: left; border: 1px solid var(--line); background: rgba(255,255,255,0.025); border-radius: 16px; padding: 14px 16px; transition: border-color .2s, background .2s; display: block; width: 100%; }
.choice:hover { border-color: var(--line-2); }
.choice.on { border-color: rgba(62,230,240,0.55); background: linear-gradient(120deg, rgba(62,230,240,0.1), rgba(155,107,255,0.07)); box-shadow: 0 0 0 1px rgba(62,230,240,0.25); }
.choice .t { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.choice .d { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; max-height: 210px; overflow: auto; padding: 4px; }
.emoji-grid button { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); font-size: 22px; cursor: pointer; }
.emoji-grid button.on { border-color: var(--cyan); background: var(--grad-soft); }
.sticky-save { position: sticky; bottom: 14px; z-index: 20; display: flex; justify-content: flex-end; gap: 10px; padding: 12px; border-radius: 18px; background: rgba(13,16,25,0.9); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); margin-top: 18px; }

/* Telegram Mini App tweaks */
.tg .nav { display: none; }
.tg body, body.tg { background: var(--bg); }
.safe-bottom { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* ---------- responsive refinements ---------- */
.brand span { white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.os-seg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); }
.os-seg button { border: 0; background: none; border-radius: 12px; padding: 9px 4px; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; transition: background .2s, color .2s; min-width: 0; }
.os-seg button.on { background: rgba(255,255,255,0.09); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.app-card .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card .ghost-name { opacity: 0.035; }
@media (max-width: 560px) {
  .tile { padding: 12px 13px; }
  .tiles .tile .value { font-size: 16px; }
  .tile .label { font-size: 12px; gap: 6px; }
  .tile .ic { width: 22px; height: 22px; border-radius: 7px; }
  .kpi .value { font-size: 20px; }
  .hello h2 { font-size: 17px; }
  .os-seg button { flex-direction: column; gap: 4px; font-size: 11.5px; padding: 8px 2px; }
  .status-hero h2 { font-size: 19px; }
  .card { padding: 18px; }
}
