/* ═══════════════════════════════════════════════════════════════
   LumaConnect — ascii.css (rewrite 2026-10-06)
   Clean design system. Mobile-first. No perf killers.
   ═══════════════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --bg-0: #05080e;
  --bg-1: #0a0f1a;
  --bg-2: #0f1626;
  --fg: #c8d4e0;
  --fg-dim: #6b7a90;
  --fg-mute: #3d4a5c;
  --acc: #7dd3fc;
  --acc-2: #38bdf8;
  --acc-soft: rgba(125,211,252,.06);
  --acc-soft-2: rgba(125,211,252,.1);
  --border: rgba(125,211,252,.14);
  --border-strong: rgba(125,211,252,.4);
  --ok: #4ade80;
  --warn: #fbbf24;
  --err: #f87171;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
html { font-size: 16px; }
body {
  background: var(--bg-0);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--acc); text-decoration: none; }
a:hover { color: #a5e0fd; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 12px; font-weight: 500; line-height: 1.3; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px dashed var(--border); margin: 20px 0; }
code, pre { font-family: var(--mono); }

/* ─── BG: layered depth ─── */
#parallax-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-0);
}

/* Слой 1 — тонкая сетка с растворением по краям */
#parallax-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125,211,252,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,211,252,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, #000 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, #000 20%, transparent 80%);
}

/* Слой 2 — aurora: 4 огромных градиента медленно плывут */
#parallax-bg::after {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 900px 700px at 12% 8%,  rgba(56,189,248,.16), transparent 62%),
    radial-gradient(ellipse 800px 600px at 88% 18%, rgba(125,211,252,.13), transparent 62%),
    radial-gradient(ellipse 950px 750px at 72% 92%, rgba(56,189,248,.11), transparent 62%),
    radial-gradient(ellipse 600px 500px at 8% 88%,  rgba(167,139,250,.09), transparent 62%);
  animation: aurora-drift 45s ease-in-out infinite alternate;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}
@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(1.5%, -1%, 0) scale(1.02); }
}

/* Слой 3 — мягкий свет сверху (под nav) */
.wrap::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 380px;
  background: radial-gradient(ellipse 65% 100% at 50% 0%, rgba(56,189,248,.09), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Слой 4 — vignette для глубины */
#parallax-bg > .vignette,
#parallax-bg + .vignette { display: none; }

/* Слой 5 — тонкие горизонтальные блики (опциональный hatching) */
.wrap::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(125,211,252,.012) 0px,
    rgba(125,211,252,.012) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  mix-blend-mode: normal;
}

#parallax-bg .layer { display: none; }

/* ─── LAYOUT ─── */
.wrap {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 1 auto; padding-bottom: 24px; }

/* ─── NAV ─── */
.nav {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-decoration: none;
  transition: color .22s var(--ease);
}
.nav-logo:hover { color: #ffffff; }
.nav-logo-mark {
  color: var(--acc);
  font-size: 16px;
  line-height: 1;
  transition: color .22s var(--ease), transform .35s var(--ease);
  display: inline-block;
}
.nav-logo:hover .nav-logo-mark { transform: rotate(90deg); }
.nav-logo-luma { color: var(--acc); }
.nav-logo-connect { color: var(--fg-dim); transition: color .22s var(--ease); }
.nav-logo:hover .nav-logo-connect { color: var(--fg); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
}
.nav-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  color: var(--fg-dim);
  font-size: 16px;
  text-decoration: none;
  transition: color .22s var(--ease), background-color .22s var(--ease);
}
.nav-admin:hover { color: var(--warn); background: rgba(251,191,36,.08); }
.nav-out {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  color: var(--fg-dim);
  font-size: 12px;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .22s var(--ease), background-color .22s var(--ease);
}
.nav-out:hover { color: var(--acc); background: var(--acc-soft); }
.nav-out-arrow { display: inline-block; transition: transform .25s var(--ease); }
.nav-out:hover .nav-out-arrow { transform: translateX(3px); }
.nav-links {
  grid-column: 1 / -1;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  margin: 0 -2px;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  color: var(--fg-dim);
  font-size: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
  text-decoration: none;
  transition: color .22s var(--ease), background-color .22s var(--ease);
}
.nav-links a:hover { color: var(--acc); background: var(--acc-soft); }
.nav-links a.active {
  color: var(--acc);
  background: var(--acc-soft-2);
  box-shadow: inset 0 0 0 1px rgba(125,211,252,.22);
}
@media (min-width: 780px) {
  .nav { grid-template-columns: auto 1fr auto; gap: 16px; padding: 16px 0 14px; }
  .nav-links { grid-column: 2; justify-content: center; overflow: visible; margin: 0; }
  .nav-logo { font-size: 13.5px; }
  .nav-links a { font-size: 12.5px; padding: 8px 14px; }
}

/* ─── FOOTER ─── */
.footer {
  margin-top: auto;
  padding: 24px 0 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--fg-mute);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.8;
}
.footer a { color: var(--fg-dim); text-decoration: none; transition: color .22s var(--ease); }
.footer a:hover { color: var(--acc); }

/* ─── BUTTONS ─── */
.wow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--fg);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.wow-btn:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); }
.wow-btn-primary {
  background: var(--acc);
  color: var(--bg-0);
  border-color: var(--acc);
  font-weight: 600;
}
.wow-btn-primary:hover { background: #a5e0fd; border-color: #a5e0fd; color: var(--bg-0); }
.wow-btn-ghost { background: transparent; border-color: var(--border); color: var(--fg-dim); }
.wow-btn-block { display: flex; width: 100%; }
.wow-btn-big { padding: 15px 26px; font-size: 13.5px; }
.wow-arr { display: inline-block; transition: transform .25s var(--ease); }
.wow-btn:hover .wow-arr { transform: translateX(4px); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--fg);
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.btn:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); }

/* ─── SEPARATOR ─── */
.wow-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 14px;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.wow-sep-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px rgba(125,211,252,.7);
  flex-shrink: 0;
}

/* ─── CARDS ─── */
.wow-card {
  display: block;
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(10,15,26,.55);
  color: inherit;
  text-decoration: none;
  transition: border-color .22s var(--ease), background-color .22s var(--ease), box-shadow .25s var(--ease);
}
.wow-card:hover { border-color: var(--border-strong); background: var(--acc-soft); box-shadow: 0 0 0 1px rgba(125,211,252,.08); }
.wow-card-ico { font-size: 20px; line-height: 1; color: var(--acc); margin-bottom: 12px; transition: color .22s var(--ease); }
.wow-card:hover .wow-card-ico { color: #ffffff; }
.wow-card-title {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--acc);
  transition: color .22s var(--ease);
}
.wow-card:hover .wow-card-title { color: #ffffff; }
.wow-card-text { margin: 0; font-size: 12px; color: var(--fg-dim); line-height: 1.6; }

/* ─── GRIDS ─── */
.wow-grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .wow-grid-4 { grid-template-columns: repeat(3, 1fr); gap: 12px; } }

.wow-steps { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 500px) { .wow-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .wow-steps { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.wow-step {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(10,15,26,.4);
  transition: border-color .22s var(--ease), background-color .22s var(--ease);
}
.wow-step:hover { border-color: var(--border-strong); background: rgba(125,211,252,.03); }
.wow-step-num { font-size: 11px; color: var(--acc); letter-spacing: .18em; margin-bottom: 8px; font-weight: 500; }
.wow-step-title { margin: 0 0 6px; font-size: 13px; color: var(--fg); font-weight: 500; }
.wow-step-text { margin: 0; font-size: 11.5px; color: var(--fg-dim); line-height: 1.6; }

/* ─── HINTS ─── */
.wow-hint { margin-top: 10px; font-size: 11.5px; color: var(--fg-mute); text-align: center; letter-spacing: .04em; }
.wow-note {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(10,15,26,.5);
  margin: 14px 0;
}
.wow-note-ico { font-size: 16px; color: var(--acc); flex-shrink: 0; line-height: 1.4; }
.wow-note-body { flex: 1; }
.wow-note-title { font-size: 12.5px; color: var(--acc); margin: 0 0 4px; font-weight: 500; }
.wow-note-text { font-size: 12px; color: var(--fg-dim); margin: 0; line-height: 1.6; }

/* ─── DASHBOARD ─── */
.dash-hero {
  display: grid;
  gap: 16px;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-top-width: 2px;
  border-top-color: var(--fg-mute);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(10,15,26,.85), rgba(5,8,14,.9));
}
.dash-hero-ok { border-top-color: var(--ok); }
.dash-hero-warn { border-top-color: var(--warn); }
.dash-hero-err { border-top-color: var(--err); }
.dash-hero-dim { border-top-color: var(--fg-mute); }
.dash-hero-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.dash-hero-label { line-height: 1; }
.dash-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fg-mute);
  flex-shrink: 0;
  display: inline-block;
}
.dot-ok { background: var(--ok); box-shadow: 0 0 10px rgba(74,222,128,.6); }
.dot-warn { background: var(--warn); box-shadow: 0 0 10px rgba(251,191,36,.6); }
.dot-err { background: var(--err); box-shadow: 0 0 10px rgba(248,113,113,.6); }
.dot-dim { background: var(--fg-mute); }
.dash-hero-days { display: flex; align-items: baseline; gap: 12px; }
.dash-days-num { font-size: 40px; font-weight: 500; color: var(--acc); line-height: 1; letter-spacing: -.02em; }
.dash-days-label { font-size: 12px; color: var(--fg-dim); letter-spacing: .08em; }
.dash-progress { height: 3px; background: rgba(125,211,252,.08); border-radius: var(--r-pill); overflow: hidden; }
.dash-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--acc-2), var(--acc));
  border-radius: var(--r-pill);
  transition: width .7s var(--ease-out);
  min-width: 2px;
}
.dash-hero-user { font-size: 11.5px; color: var(--fg-dim); letter-spacing: .04em; word-break: break-all; line-height: 1.4; }

.dash-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 640px) { .dash-tiles { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.dash-tile {
  display: block;
  padding: 16px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(10,15,26,.55);
  color: inherit;
  text-decoration: none;
  transition: border-color .22s var(--ease), background-color .22s var(--ease), box-shadow .25s var(--ease);
}
.dash-tile:hover { border-color: var(--border-strong); background: var(--acc-soft); box-shadow: 0 0 0 1px rgba(125,211,252,.08); }

.dash-tile-ico { font-size: 18px; line-height: 1; color: var(--acc); margin-bottom: 10px; transition: color .22s var(--ease); }
.dash-tile:hover .dash-tile-ico { color: #ffffff; }

.dash-tile-num { font-size: 14px; color: var(--fg); font-weight: 500; letter-spacing: .02em; margin-bottom: 4px; word-break: break-word; }
.dash-tile-dim { color: var(--fg-mute); font-weight: 400; font-size: 12px; }
.dash-tile-text { font-size: 11px; color: var(--fg-dim); letter-spacing: .02em; line-height: 1.5; }

/* ─── PANEL ─── */
.panel {
  position: relative;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(10,15,26,.55);
}
.panel[data-label]::before {
  content: attr(data-label);
  position: absolute;
  top: -7px;
  left: 16px;
  padding: 0 8px;
  background: var(--bg-0);
  color: var(--acc);
  font-size: 9.5px;
  letter-spacing: .2em;
  font-weight: 500;
}

/* ─── SUBSCRIPTION ─── */
.sub-qr {
  display: flex;
  justify-content: center;
  padding: 14px;
  background: #ffffff;
  border-radius: var(--r-md);
  width: fit-content;
  margin: 0 auto;
}
.sub-qr img { width: 220px; height: 220px; display: block; }
@media (max-width: 380px) { .sub-qr img { width: 180px; height: 180px; } }
.url-box {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(5,8,14,.7);
  color: var(--fg);
  font-size: 11.5px;
  word-break: break-all;
  cursor: pointer;
  transition: border-color .22s var(--ease), background-color .22s var(--ease);
  line-height: 1.5;
}
.url-box:hover { border-color: var(--border-strong); background: var(--acc-soft); }
.url-box code { font-family: var(--mono); color: var(--fg); }
.copy-hint { color: var(--fg-mute); font-size: 11px; }

/* ─── FORM ─── */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="url"],
textarea, select {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(5,8,14,.7);
  color: var(--fg);
  font-size: 13px;
  line-height: 1.4;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--acc);
  background: rgba(125,211,252,.03);
}
input::placeholder, textarea::placeholder { color: var(--fg-mute); }
label {
  display: block;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 500;
}

/* ─── AUTH ─── */
.auth-wrap { max-width: 420px; margin: 20px auto 40px; }
.auth-hero { text-align: center; margin-bottom: 22px; }
.auth-hero-ico { font-size: 36px; color: var(--acc); line-height: 1; margin-bottom: 10px; }
.auth-hero-title { font-size: 20px; color: var(--fg); margin: 0 0 6px; font-weight: 500; }
.auth-hero-text { font-size: 12.5px; color: var(--fg-dim); margin: 0; line-height: 1.6; }
.auth-box { padding: 22px 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: rgba(10,15,26,.6); }
.auth-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-mute);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 16px 0;
}
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-perks { display: grid; gap: 6px; margin: 14px 0; }
.auth-perk { font-size: 12px; color: var(--fg-dim); padding-left: 14px; position: relative; line-height: 1.5; }
.auth-perk::before { content: "·"; position: absolute; left: 0; color: var(--acc); font-weight: 700; }
.auth-foot { text-align: center; font-size: 11.5px; color: var(--fg-mute); margin-top: 16px; line-height: 1.7; }
.auth-brand { text-align: center; margin-bottom: 10px; }
.auth-brand-title { font-size: 14px; color: var(--acc); letter-spacing: .12em; }
.auth-brand-sub { font-size: 11px; color: var(--fg-dim); margin-top: 3px; }

/* ─── DEVICES ─── */
.dev-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.dev-head-label { font-size: 11px; color: var(--fg-dim); letter-spacing: .12em; text-transform: uppercase; }
.dev-head-count { font-size: 13px; color: var(--acc); }
.dev-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(10,15,26,.5);
  margin-bottom: 8px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.dev-item:hover { border-color: var(--border-strong); background: var(--acc-soft); }
.dev-item-icon { font-size: 18px; color: var(--acc); flex-shrink: 0; line-height: 1; }
.dev-item-body { flex: 1; min-width: 0; }
.dev-item-name { font-size: 13px; color: var(--fg); word-break: break-word; line-height: 1.4; }
.dev-item-time { font-size: 11px; color: var(--fg-dim); margin-top: 3px; }
.dev-del {
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--err);
  font-size: 12px;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.dev-del:hover { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.25); }
.dev-empty { text-align: center; padding: 40px 20px; color: var(--fg-dim); }
.dev-empty-ico { font-size: 40px; color: var(--acc); opacity: .45; margin-bottom: 12px; line-height: 1; }
.dev-empty-title { font-size: 14px; color: var(--fg); margin-bottom: 6px; }
.dev-empty-text { font-size: 12px; line-height: 1.6; }

/* ─── REFERRAL ─── */
.ref-hero {
  text-align: center;
  padding: 26px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(10,15,26,.55);
  margin-bottom: 14px;
}
.ref-hero-ico { font-size: 32px; color: var(--acc); margin-bottom: 10px; line-height: 1; }
.ref-hero-text { font-size: 12.5px; color: var(--fg-dim); line-height: 1.6; }
.ref-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ref-stat { padding: 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: rgba(10,15,26,.5); text-align: center; }
.ref-stat-num { font-size: 22px; color: var(--acc); font-weight: 500; line-height: 1; }
.ref-stat-label { font-size: 10.5px; color: var(--fg-dim); letter-spacing: .08em; margin-top: 6px; text-transform: uppercase; }
.ref-stat-ok .ref-stat-num { color: var(--ok); }
.ref-stat-warn .ref-stat-num { color: var(--warn); }

/* ─── TRIAL ─── */
.trl-card { padding: 22px 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: rgba(10,15,26,.55); }
.trl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.trl-h { margin: 0; font-size: 18px; color: var(--fg); font-weight: 500; }
.trl-d { font-size: 12px; color: var(--fg-dim); }
.trl-sub { font-size: 12px; color: var(--fg-dim); }
.trl-icon { font-size: 32px; color: var(--acc); line-height: 1; }
.trl-state { font-size: 12.5px; color: var(--acc); }
.trl-kv { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 12px; }
.trl-kv:last-child { border-bottom: none; }
.trl-meta { font-size: 11px; color: var(--fg-mute); }
.trl-title { font-size: 14px; color: var(--fg); margin: 0 0 6px; }
.trl-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ascii-spin { display: inline-block; animation: spin 1s linear infinite; }

/* ─── MINIAPP ─── */
.mini-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mini-status { font-size: 12px; color: var(--fg-dim); }
.mini-toggle {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--fg);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.mini-toggle:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); }
.mini-log {
  font-size: 11px;
  color: var(--fg-dim);
  background: rgba(5,8,14,.75);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  max-height: 220px;
  overflow-y: auto;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.mini-err { color: var(--err); font-size: 11.5px; }

/* ─── MENU ─── */
.menu-list { display: grid; gap: 8px; }
.menu-item {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(10,15,26,.5);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.menu-item:hover { border-color: var(--border-strong); background: var(--acc-soft); }

/* ─── TABLES ─── */
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 10.5px; color: var(--fg-dim); letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
tr:hover td { background: rgba(125,211,252,.03); }

/* ─── FLASH ─── */
.flash {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 12.5px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  background: rgba(10,15,26,.5);
  line-height: 1.5;
}
.flash.ok { border-color: rgba(74,222,128,.3); background: rgba(74,222,128,.05); color: var(--ok); }
.flash.err { border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.05); color: var(--err); }
.flash.warn { border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.05); color: var(--warn); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.err { color: var(--err); }

/* ─── UTILITIES ─── */
.mono-dim { color: var(--fg-dim); font-size: 11.5px; letter-spacing: .06em; }
.mono-acc { color: var(--acc); font-size: 11.5px; letter-spacing: .06em; }
.mb-1 { margin-bottom: 8px; }
.center { text-align: center; }
.dashed { border-bottom: 1px dashed var(--border); padding-bottom: 8px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sec { margin: 22px 0; }
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--fg-dim);
  font-weight: 500;
}
.logo { color: var(--acc); letter-spacing: .12em; font-weight: 500; }
.sub { font-size: 11px; color: var(--fg-dim); }
.mini { font-size: 11px; }
.v { color: var(--fg); }
.k { color: var(--fg-dim); }
.on { color: var(--ok); }

/* ─── ADMIN BASE ─── */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-title { font-size: 18px; color: var(--fg); margin: 0; font-weight: 500; }

/* ─── SCROLLBAR ─── */
@media (min-width: 780px) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg-0); }
  ::-webkit-scrollbar-thumb {
    background: rgba(125,211,252,.18);
    border-radius: var(--r-pill);
    border: 2px solid var(--bg-0);
  }
  ::-webkit-scrollbar-thumb:hover { background: rgba(125,211,252,.3); }
}
::selection { background: rgba(125,211,252,.25); color: #ffffff; }

/* ═══════════════════════════════════════════════════════════════
   MISSING COMPONENTS 2026-10-06
   Классы, которые используют landing/help, но не попали в rewrite
   ═══════════════════════════════════════════════════════════════ */

/* ─── HERO ─── */
.wow-hero {
  text-align: center;
  padding: 40px 0 24px;
}
.wow-h1 {
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--fg);
  margin: 0 0 14px;
  line-height: 1.25;
  word-spacing: .4em;
}
.wow-h1-accent { color: var(--acc); }
.wow-h1-line { display: inline-block; }
.wow-sub {
  font-size: clamp(12px, 1.6vw, 14px);
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
  letter-spacing: .04em;
}
.wow-hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  color: var(--acc);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ─── CHIPS ─── */
.wow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 18px 0;
}
.wow-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--fg-dim);
  font-size: 11.5px;
  letter-spacing: .04em;
  background: rgba(10,15,26,.4);
  transition: border-color .22s var(--ease), color .22s var(--ease), background-color .22s var(--ease);
}
.wow-chip:hover {
  border-color: var(--border-strong);
  color: var(--acc);
  background: var(--acc-soft);
}

/* ─── CTA ─── */
.wow-cta {
  text-align: center;
  padding: 36px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(10,15,26,.7), rgba(5,8,14,.85));
  margin: 24px 0;
}
.wow-cta .wow-btn { margin: 6px; }

/* ─── FAQ ─── */
.wow-faq { display: grid; gap: 8px; margin: 16px 0; }
.wow-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(10,15,26,.5);
  overflow: hidden;
  transition: border-color .22s var(--ease), background-color .22s var(--ease);
}
.wow-faq-item:hover,
.wow-faq-item[open] {
  border-color: var(--border-strong);
  background: rgba(125,211,252,.03);
}
.wow-faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  font-size: 13px;
  color: var(--fg);
  list-style: none;
  position: relative;
  padding-right: 44px;
  transition: color .22s var(--ease);
  user-select: none;
}
.wow-faq-item summary::-webkit-details-marker { display: none; }
.wow-faq-item summary:hover { color: var(--acc); }
.wow-faq-item[open] summary { color: var(--acc); }
.wow-faq-plus {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--acc);
  font-size: 18px;
  line-height: 1;
  transition: transform .28s var(--ease);
}
.wow-faq-item[open] .wow-faq-plus { transform: translateY(-50%) rotate(45deg); }
.wow-faq-body {
  padding: 0 18px 16px;
  font-size: 12.5px;
  color: var(--fg-dim);
  line-height: 1.7;
}

/* ─── FINAL CTA ─── */
.wow-final {
  text-align: center;
  padding: 20px 0 12px;
}
.wow-final .wow-btn { min-width: 220px; }

/* ─── STEP BLOCK (доп. отступ для help) ─── */
.wow-steps + .wow-sep { margin-top: 32px; }

/* ═══════════════════════════════════════════════════════════════
   FINAL 2026-10-06
   ═══════════════════════════════════════════════════════════════ */

/* nav-logo-text — обёртка LUMA+CONNECT */
.nav-logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

/* wow-dot — пульсирующая точка в hero-badge */
.wow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(74,222,128,.7);
  animation: wow-pulse 2s var(--ease) infinite;
}
@keyframes wow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

/* simple — модификатор panel */
.panel.simple { padding-top: 22px; }

/* Reveal — управляется wow.js (opt-in через JS) */
.wow-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .55s var(--ease-out),
    transform .55s var(--ease-out),
    border-color .22s var(--ease),
    background-color .22s var(--ease),
    box-shadow .25s var(--ease);
}
.wow-reveal.wow-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   WOW LAYER — источники света, глубина, движение
   Все эффекты: transform / opacity / conic-gradient / box-shadow
   Никаких blur() / drop-shadow() / backdrop-filter
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. Aurora — ярче + 2 новых градиента ─── */
#parallax-bg::after {
  background:
    radial-gradient(ellipse 1000px 800px at 15% 10%, rgba(56,189,248,.22), transparent 60%),
    radial-gradient(ellipse 900px 700px at 85% 20%,  rgba(125,211,252,.18), transparent 60%),
    radial-gradient(ellipse 1100px 850px at 70% 95%, rgba(56,189,248,.16), transparent 60%),
    radial-gradient(ellipse 700px 600px at 5% 85%,  rgba(167,139,250,.14), transparent 60%),
    radial-gradient(ellipse 800px 500px at 50% 50%, rgba(139,92,246,.08), transparent 70%),
    radial-gradient(ellipse 600px 900px at 95% 60%, rgba(14,165,233,.12), transparent 65%);
}

/* ─── 2. Звёзды-искры (3 источника света, пульсируют) ─── */
#parallax-bg > .sparks,
.sparks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.sparks::before,
.sparks::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.sparks::before {
  top: 14%;
  right: 12%;
  width: 3px;
  height: 3px;
  background: #ffffff;
  box-shadow: 0 0 14px 4px rgba(125,211,252,.9), 0 0 40px 12px rgba(56,189,248,.5);
  animation: spark-pulse 6s ease-in-out infinite;
}
.sparks::after {
  top: 68%;
  left: 8%;
  width: 2px;
  height: 2px;
  background: #ffffff;
  box-shadow: 0 0 12px 3px rgba(167,139,250,.8), 0 0 32px 10px rgba(139,92,246,.4);
  animation: spark-pulse 8s ease-in-out infinite 2s;
}
@keyframes spark-pulse {
  0%, 100% { opacity: .3; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.4); }
}

/* ─── 3. H1 — градиентный текст (переливается) ─── */
.wow-h1 {
  background: linear-gradient(
    120deg,
    #c8d4e0 0%,
    #7dd3fc 35%,
    #38bdf8 50%,
    #7dd3fc 65%,
    #c8d4e0 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: h1-shine 8s linear infinite;
}
.wow-h1-accent {
  background: linear-gradient(120deg, #7dd3fc, #38bdf8, #7dd3fc);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: h1-shine 6s linear infinite;
}
@keyframes h1-shine {
  to { background-position: 200% center; }
}

/* ─── 4. Conic-рамка вокруг hero (вращается) ─── */
.wow-hero {
  position: relative;
  padding: 52px 24px 40px;
  margin: 0 -4px 24px;
  border-radius: 20px;
  isolation: isolate;
}
.wow-hero::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(125,211,252,.65) 60deg,
    transparent 120deg,
    transparent 240deg,
    rgba(56,189,248,.5) 300deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: hero-rotate 12s linear infinite;
  pointer-events: none;
  opacity: .85;
  z-index: -1;
}
@keyframes hero-rotate {
  to { transform: rotate(360deg); }
}

/* ─── 5. Shine — световой блик на карточках при hover ─── */
.wow-card,
.dash-tile {
  position: relative;
  overflow: hidden;
}
.wow-card::before,
.dash-tile::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(125,211,252,.15) 45%,
    rgba(255,255,255,.2) 50%,
    rgba(125,211,252,.15) 55%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform .9s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.wow-card:hover::before,
.dash-tile:hover::before {
  transform: translateX(20%);
}

/* ─── 6. nav-logo glow при hover ─── */
.nav-logo-mark {
  text-shadow: 0 0 12px rgba(125,211,252,.55);
  transition: text-shadow .3s var(--ease), transform .5s cubic-bezier(.4,0,.2,1), color .3s var(--ease);
}
.nav-logo:hover .nav-logo-mark {
  text-shadow: 0 0 20px rgba(125,211,252,1), 0 0 40px rgba(56,189,248,.6);
  transform: rotate(180deg) scale(1.05);
}
.nav-logo-luma {
  text-shadow: 0 0 10px rgba(125,211,252,.35);
  transition: text-shadow .3s var(--ease);
}
.nav-logo:hover .nav-logo-luma {
  text-shadow: 0 0 16px rgba(125,211,252,.9);
}

/* ─── 7. Усиливаю primary-кнопку (gradient + glow) ─── */
.wow-btn-primary {
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%);
  border-color: transparent;
  color: #05080e;
  box-shadow: 0 0 0 1px rgba(125,211,252,.4), 0 8px 24px -8px rgba(56,189,248,.5);
  transition: box-shadow .25s var(--ease), transform .18s var(--ease);
}
.wow-btn-primary:hover {
  background: linear-gradient(135deg, #a5e0fd 0%, #7dd3fc 100%);
  color: #05080e;
  box-shadow: 0 0 0 1px rgba(165,224,253,.6), 0 12px 32px -8px rgba(56,189,248,.75);
  transform: translateY(-1px);
}
.wow-btn-primary:active {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   POLISH 2026-10-06 — то, чего не хватало для «до ума»
   ═══════════════════════════════════════════════════════════════ */

/* 1. Focus-ring — доступность + приятный вид */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* 2. Плавный focus для input без сдвига */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(125,211,252,.12);
}

/* 3. Контент — отзывчивые отступы */
.wrap { padding: 0 14px; }
@media (min-width: 480px) { .wrap { padding: 0 18px; } }
@media (min-width: 780px) { .wrap { padding: 0 24px; } }

/* 4. Карточки в сетке — одинаковая высота */
.wow-grid-4,
.wow-steps,
.dash-tiles,
.ref-stats {
  align-items: stretch;
}
.wow-card,
.wow-step,
.dash-tile,
.ref-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* 5. Разделители — плавный fade по краям */
.wow-sep {
  background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 1px;
  padding-bottom: 6px;
  border: none;
}

/* 6. Scrollbar — тонкий, только на десктопе */
@media (hover: hover) and (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: rgba(125,211,252,.22) transparent; }
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: rgba(125,211,252,.2);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover { background: rgba(125,211,252,.35); }
}

/* 7. URL-box — легче тапать на телефоне */
.url-box { min-height: 44px; display: flex; align-items: center; }

/* 8. Кнопки — крупнее на телефоне (Apple HIG = 44pt) */
@media (max-width: 640px) {
  .wow-btn { min-height: 46px; padding: 12px 22px; font-size: 13px; }
  .wow-btn-big { min-height: 52px; font-size: 14px; }
  .nav-links a { min-height: 40px; padding: 10px 14px; }
}

/* 9. Мягкий hover-lift на карточках (только desktop, чтобы не дёргалось на тач) */
@media (hover: hover) and (pointer: fine) {
  .wow-card:hover,
  .dash-tile:hover {
    transform: translateY(-2px);
    transition:
      transform .28s cubic-bezier(.4,0,.2,1),
      border-color .22s var(--ease),
      background-color .22s var(--ease),
      box-shadow .3s var(--ease);
  }
}

/* 10. Плавное появление страницы */
@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
main > *:first-child { animation: page-in .35s ease-out; }

/* 11. Плавное открытие FAQ */
.wow-faq-item[open] .wow-faq-body {
  animation: faq-open .32s cubic-bezier(.4,0,.2,1);
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 12. Тач — убираем дефолтную подсветку */
* { -webkit-tap-highlight-color: transparent; }

/* 13. Плавный скролл при якорях */
html { scroll-behavior: smooth; }

/* 14. <details> summary — не мигает маркером в Safari */
summary { -webkit-tap-highlight-color: transparent; }

/* ═══════════════════════════════════════════════════════════════
   ANIM BOOST — фон реально живой
   ═══════════════════════════════════════════════════════════════ */

/* Слой Aurora #1 — основной, крупные градиенты плывут */
#parallax-bg::after {
  animation: aurora-drift-1 28s ease-in-out infinite alternate;
}
@keyframes aurora-drift-1 {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(-4%, 3%, 0) scale(1.12) rotate(2deg); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.06) rotate(-1deg); }
}

/* Слой Aurora #2 — вторичное «дыхание» яркости */
#parallax-bg {
  animation: aurora-breathe 14s ease-in-out infinite;
}
@keyframes aurora-breathe {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.25); }
}

/* Сетка — медленно плывёт и мигает */
#parallax-bg::before {
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift {
  0%   { background-position: 0 0, 0 0; opacity: 1; }
  50%  { opacity: .75; }
  100% { background-position: 48px 48px, 48px 48px; opacity: 1; }
}

/* Искры — ярче и заметнее */
.sparks::before {
  animation: spark-pulse 3.5s ease-in-out infinite;
  width: 4px;
  height: 4px;
}
.sparks::after {
  animation: spark-pulse 5s ease-in-out infinite 1.2s;
  width: 3px;
  height: 3px;
}
@keyframes spark-pulse {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50%      { opacity: 1; transform: scale(1.6); }
}

/* H1 — быстрее переливается */
.wow-h1 { animation-duration: 5s; }
.wow-h1-accent { animation-duration: 4s; }

/* Conic-рамка — 8s вместо 12s */
.wow-hero::before { animation-duration: 8s; }

/* Тач — если reduced-motion, оставляем только лёгкие эффекты */

/* ═══════════════════════════════════════════════════════════════
   HERO v2 — убираем крутящуюся conic-рамку, ставим мягкую ауру
   ═══════════════════════════════════════════════════════════════ */

/* УБИРАЕМ крутящуюся рамку */
.wow-hero::before {
  display: none !important;
  content: none !important;
  animation: none !important;
}

/* Переопределяем .wow-hero — снимаем border-radius (нет рамки) */
.wow-hero {
  position: relative;
  padding: 56px 24px 44px;
  margin: 0 0 28px;
  isolation: isolate;
}

/* ─── Аура — мягкое свечение за контентом, «дышит» ─── */
.wow-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 140%;
  height: 140%;
  max-width: 1100px;
  max-height: 800px;
  background: radial-gradient(
    ellipse at center,
    rgba(56,189,248,.28) 0%,
    rgba(125,211,252,.20) 18%,
    rgba(56,189,248,.12) 38%,
    rgba(139,92,246,.07) 58%,
    transparent 82%
  );
  pointer-events: none;
  z-index: -1;
  animation: hero-aura-breathe 14s ease-in-out infinite;
}
@keyframes hero-aura-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: .85; }
  50%      { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

/* ─── Тонкая градиентная линия сверху (Linear-style) ─── */
.wow-hero {
  border-top: 1px solid transparent;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(125,211,252,.5) 20%,
    rgba(56,189,248,.7) 50%,
    rgba(125,211,252,.5) 80%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-position: top;
  background-size: 100% 1px;
}

/* ─── Убираем кручение у nav-logo-mark (было rotate 180deg) ─── */
.nav-logo:hover .nav-logo-mark {
  transform: rotate(180deg);
  text-shadow: 0 0 22px rgba(125,211,252,1), 0 0 42px rgba(56,189,248,.7);
}

/* ─── H1 — чуть спокойнее перелив (8s вместо 5s) ─── */
.wow-h1         { animation-duration: 9s; }
.wow-h1-accent  { animation-duration: 7s; }

/* ═══════════════════════════════════════════════════════════════
   HERO SCI-FI — уголки + сканлайн + орбита + подчёркивание
   Всё через transform/opacity. Без blur, drop-shadow.
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. Уголки hero + сканлайн ─── */
.wow-hero::before {
  content: "";
  position: absolute;
  inset: -12px -8px;
  pointer-events: none;
  z-index: -1;
  background-image:
    /* Сканлайн (горизонтальная линия, бежит сверху) */
    linear-gradient(90deg, transparent, rgba(125,211,252,.9), transparent),
    /* 4 уголка — TL */
    linear-gradient(90deg, rgba(125,211,252,.55) 0%, transparent 100%),
    linear-gradient(180deg, rgba(125,211,252,.55) 0%, transparent 100%),
    /* TR */
    linear-gradient(270deg, rgba(125,211,252,.55) 0%, transparent 100%),
    linear-gradient(180deg, rgba(125,211,252,.55) 0%, transparent 100%),
    /* BL */
    linear-gradient(90deg, rgba(125,211,252,.55) 0%, transparent 100%),
    linear-gradient(0deg, rgba(125,211,252,.55) 0%, transparent 100%),
    /* BR */
    linear-gradient(270deg, rgba(125,211,252,.55) 0%, transparent 100%),
    linear-gradient(0deg, rgba(125,211,252,.55) 0%, transparent 100%);

  background-size:
    35% 1.5px,       /* сканлайн */
    28px 1.5px,      /* TL horiz */
    1.5px 28px,      /* TL vert  */
    28px 1.5px,      /* TR horiz */
    1.5px 28px,      /* TR vert  */
    28px 1.5px,      /* BL horiz */
    1.5px 28px,      /* BL vert  */
    28px 1.5px,      /* BR horiz */
    1.5px 28px;      /* BR vert  */

  background-position:
    -30% 0,          /* сканлайн — стартует слева */
    0 0, 0 0,
    100% 0, 100% 0,
    0 100%, 0 100%,
    100% 100%, 100% 100%;

  background-repeat: no-repeat;

  animation: hero-scan 7s ease-in-out infinite;
}

@keyframes hero-scan {
  0%   { background-position: -30% 0, 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%; }
  55%  { background-position: 130% 0, 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%; }
  100% { background-position: 130% 0, 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%; }
}

/* Пульсирующее свечение уголков (точечная анимация opacity через доп. слой) */
.wow-hero::before {
  filter: drop-shadow(0 0 6px rgba(125,211,252,.35));
}

/* ─── 2. Бейдж: орбитальная точка ─── */
.wow-hero-badge {
  position: relative;
  display: inline-block;
}
.wow-hero-badge::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 10px 3px rgba(125,211,252,.85),
    0 0 24px 8px rgba(56,189,248,.4);
  transform: translate(-50%, -50%);
  animation: badge-dot-orbit 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes badge-dot-orbit {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: .7; left: -14px; }
  50%      { transform: translate(-50%, -50%) scale(1.5);  opacity: 1;  left: calc(100% + 14px); }
}

/* ─── 3. Подчёркивание под субтитлом ─── */
.wow-sub {
  position: relative;
  padding-bottom: 18px;
}
.wow-sub::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(125,211,252,.6) 50%,
    transparent 100%
  );
  animation: sub-line-breathe 4s ease-in-out infinite;
}
@keyframes sub-line-breathe {
  0%, 100% { width: 80px; opacity: .55; }
  50%      { width: 140px; opacity: 1; }
}

/* ─── 4. Уголки пульсируют яркостью (мягко) ─── */
.wow-hero {
  animation: hero-breathe 6s ease-in-out infinite;
}
@keyframes hero-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: .97; }
}

/* ─── 5. Свечение бейджа ─── */
.wow-hero-badge {
  box-shadow:
    0 0 0 1px rgba(125,211,252,.25) inset,
    0 0 18px rgba(125,211,252,.18);
  animation: badge-glow 3.5s ease-in-out infinite;
}
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(125,211,252,.25) inset, 0 0 18px rgba(125,211,252,.18); }
  50%      { box-shadow: 0 0 0 1px rgba(125,211,252,.4)  inset, 0 0 28px rgba(125,211,252,.32); }
}

/* ═══════════════════════════════════════════════════════════════
   POLISH v2 — static tile полностью изолирован, лаги убраны
   ═══════════════════════════════════════════════════════════════ */

/* 2. Aurora "дыхание" — без filter: brightness (был главный тормоз) */
#parallax-bg {
  animation: none !important;
}
#parallax-bg::after {
  animation: aurora-drift-1 28s ease-in-out infinite alternate !important;
  opacity: 1;
}
#parallax-bg::after::after { content: none; }

/* Дополнительный световой слой через отдельный псевдо (opacity-анимация) */
#parallax-bg .wrap-lift {
  display: none;
}

/* 3. Сетка: убираем анимацию позиции (лишний paint), оставляем статичной */
#parallax-bg::before {
  animation: none !important;
  opacity: 1;
}

/* 4. Sci-fi hero: убираем drop-shadow с уголков (был тормоз)
   Свечение уголков делаем через box-shadow на отдельных ::before/::after
   Но проще — просто снять filter, уголки и так видны */
.wow-hero::before {
  filter: none !important;
}

/* 5. Бейдж: заменяем пульсацию box-shadow на пульсацию opacity слоя */
.wow-hero-badge {
  animation: none !important;
  box-shadow: 0 0 0 1px rgba(125,211,252,.3) inset, 0 0 22px rgba(125,211,252,.22);
}

/* 6. Уменьшаем количество will-change (создают долгоживущие GPU слои) */
* { will-change: auto !important; }
#parallax-bg::after { will-change: transform !important; }

/* 7. H1 — убеждаемся что анимация не тормозит */
.wow-h1, .wow-h1-accent {
  animation-duration: 9s !important;
  will-change: background-position;
}

/* 8. Логотип mark — плавное вращение */
.nav-logo-mark {
  transition: transform .7s cubic-bezier(.34,1.56,.64,1),
              text-shadow .35s var(--ease),
              color .3s var(--ease) !important;
}

/* ═══════════════════════════════════════════════════════════════
   POLISH v3 — финальный проход по всем страницам
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. URL-box: подсказка отделена, не сливается ─── */
.url-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  position: relative;
}
.url-box code {
  display: block;
  font-size: 11.5px;
  line-height: 1.5;
  word-break: break-all;
  padding-right: 0;
}
.copy-hint {
  display: block;
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: .06em;
  margin-top: 2px;
  transition: color .2s var(--ease);
}
.url-box:hover .copy-hint {
  color: var(--acc);
}

/* ─── 2. Панель ПОДПИСКА — компактнее ─── */
.panel[data-label] {
  padding: 28px 22px 24px;
  margin-top: 18px;
}
.panel[data-label]::before {
  content: attr(data-label);
  position: absolute;
  top: -8px;
  left: 18px;
  padding: 2px 10px;
  background: var(--bg-0);
  color: var(--acc);
  font-size: 10px;
  letter-spacing: .22em;
  font-weight: 500;
  border-radius: 2px;
}

/* ─── 3. QR — ограничиваем размер ─── */
.sub-qr {
  padding: 12px;
  border-radius: var(--r-md);
  background: #ffffff;
  width: fit-content;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.sub-qr img {
  width: 200px !important;
  height: 200px !important;
  display: block;
}
@media (max-width: 400px) {
  .sub-qr img { width: 160px !important; height: 160px !important; }
}

/* ─── 4. Меньше отступ между sep и панелью ─── */
.wow-sep + .panel { margin-top: 12px; }

/* ─── 5. Шаги в панели — компактнее ─── */
.panel .wow-steps { gap: 10px; margin-top: 4px; }
.panel .wow-step { padding: 14px; }
.panel .wow-step-num { font-size: 10.5px; }
.panel .wow-step-title { font-size: 12.5px; margin-bottom: 4px; }
.panel .wow-step-text { font-size: 11px; line-height: 1.55; }

/* ─── 6. Кнопки-ссылки в panel — плотнее ─── */
.panel .wow-btn-block { margin-top: 12px; }
.panel .mono-dim.mb-1 { margin-bottom: 8px; }

/* ─── 7. DEVICES — карточки компактнее ─── */
.dev-item {
  padding: 12px 14px;
  gap: 10px;
}
.dev-item-icon { font-size: 16px; }
.dev-item-name { font-size: 12.5px; }
.dev-item-time { font-size: 10.5px; }
.dev-del {
  padding: 5px 10px;
  font-size: 11px;
  min-height: 32px;
}

/* ─── 8. REFERRAL — статистика плотнее ─── */
.ref-stat {
  padding: 14px 12px;
}
.ref-stat-num { font-size: 20px; }
.ref-stat-label { font-size: 9.5px; margin-top: 4px; }
.ref-hero {
  padding: 20px 16px;
  margin-bottom: 12px;
}
.ref-hero-ico { font-size: 26px; margin-bottom: 8px; }
.ref-hero-text { font-size: 12px; }
.ref-hero-text b { color: var(--acc); }

/* ─── 9. SECURITY / auth-формы — плотнее ─── */
.panel[data-label] .auth-hero { margin-bottom: 18px; }
.panel[data-label] .auth-hero-ico { font-size: 28px; margin-bottom: 8px; }
.panel[data-label] .auth-hero-title { font-size: 16px; }
.panel[data-label] .auth-hero-text { font-size: 11.5px; line-height: 1.55; }
.panel[data-label] label { margin-top: 12px; }
.panel[data-label] input {
  padding: 10px 12px;
  font-size: 12.5px;
}

/* ─── 10. TRIAL-страница — компактнее ─── */
.trl-card {
  padding: 22px 20px;
}
.trl-title { font-size: 17px; margin-bottom: 4px; }
.trl-sub { font-size: 11.5px; margin-bottom: 18px; }
.trl-icon { font-size: 40px; margin: 10px 0; }
.trl-h { font-size: 14px; margin: 8px 0; }
.trl-d { font-size: 12px; margin: 6px 0 16px; }
.trl-spinner { width: 36px; height: 36px; margin: 14px auto; }

/* ─── 11. HELP — компактнее ─── */
.wow-hero + .wow-sep { margin-top: 12px; }
.wow-note { padding: 14px; margin: 12px 0; }
.wow-note-ico { font-size: 14px; }
.wow-note-title { font-size: 12px; }
.wow-note-text { font-size: 11.5px; line-height: 1.6; }

/* ─── 12. Общий ритм — уменьшить разрывы ─── */
.wow-sep { margin: 22px 0 12px; }
.wow-final { padding: 16px 0 10px; }
.wow-final .wow-btn { min-width: 200px; }

/* ─── 13. Ссылка «тап → копировать» — accent при hover контейнера ─── */
.url-box:active { transform: scale(.997); }
.url-box { transition: border-color .22s var(--ease), background-color .22s var(--ease), transform .1s var(--ease); }

/* ─── 14. Мобильное: панель + QR ─── */
@media (max-width: 640px) {
  .panel[data-label] { padding: 22px 16px 18px; }
  .sub-qr { margin-bottom: 16px; padding: 10px; }
  .sub-qr img { width: 180px !important; height: 180px !important; }
  .url-box { padding: 12px; }
  .url-box code { font-size: 11px; }
}

/* ─── 15. Убираем визуальный шум — обводки стали тоньше ─── */
.panel[data-label] { border-color: rgba(125,211,252,.14); }

/* ─── 16. Плавная страница при переходах ─── */
main { animation: page-fade .3s ease-out; }
@keyframes page-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Иконка светлеет, но текст НЕ меняется */

/* Shine-эффект на static не работает */

/* Никакого поднятия */


/* dash-tile-static = обычная плитка, но не кликается */
.dash-tile-static { cursor: default; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN — система для admin.html / admin_*.html
   Покрывает: panel[data-label], row, k/v, badge.ok/err/warn,
              btn.sec, menu-item, breadcrumbs, grid сервисов
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. Panel с меткой (перекрываю общие стили для админки) ─── */
.panel[data-label] {
  position: relative;
  padding: 26px 22px 22px;
  border: 1px solid rgba(125,211,252,.14);
  border-radius: var(--r-lg);
  background: rgba(10,15,26,.55);
  margin-bottom: 14px;
}
.panel[data-label]::before {
  content: attr(data-label);
  position: absolute;
  top: -8px;
  left: 18px;
  padding: 2px 10px;
  background: var(--bg-0);
  color: var(--acc);
  font-size: 10px;
  letter-spacing: .22em;
  font-weight: 500;
  border-radius: 2px;
}

/* ─── 2. row: универсальная строка ─── */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed rgba(125,211,252,.08);
}
.row:last-child { border-bottom: none; }
.row .k {
  color: var(--fg-dim);
  font-size: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.row .v {
  color: var(--fg);
  font-size: 12.5px;
  text-align: right;
  word-break: break-all;
}

/* Многоэлементный row (админ-users: 3 колонки) */
.row > div { min-width: 0; }

/* ─── 3. badge варианты ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  letter-spacing: .04em;
  border: 1px solid var(--border);
  color: var(--fg-dim);
  background: rgba(10,15,26,.5);
  font-weight: 500;
  white-space: nowrap;
}
.badge.ok {
  color: var(--ok);
  border-color: rgba(74,222,128,.35);
  background: rgba(74,222,128,.06);
}
.badge.err {
  color: var(--err);
  border-color: rgba(248,113,113,.35);
  background: rgba(248,113,113,.06);
}
.badge.warn {
  color: var(--warn);
  border-color: rgba(251,191,36,.35);
  background: rgba(251,191,36,.06);
}
.badge.acc {
  color: var(--acc);
  border-color: rgba(125,211,252,.4);
  background: rgba(125,211,252,.06);
}
/* Активный фильтр */
.badge[style*="border-color:var(--acc)"] {
  color: var(--acc) !important;
  border-color: var(--acc) !important;
  background: rgba(125,211,252,.08) !important;
}

/* ─── 4. btn.sec — secondary ─── */
.btn.sec {
  border-color: var(--border);
  color: var(--fg-dim);
  background: transparent;
}
.btn.sec:hover {
  color: var(--fg);
  border-color: var(--border-strong);
  background: rgba(125,211,252,.04);
}

/* ─── 5. menu-item — 2 колонки (label + desc) ─── */
.menu-list {
  display: grid;
  gap: 6px;
}
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(10,15,26,.5);
  color: var(--fg);
  text-decoration: none;
  font-size: 13px;
  transition: border-color .22s var(--ease), background-color .22s var(--ease);
}
.menu-item:hover {
  border-color: rgba(125,211,252,.35);
  background: rgba(125,211,252,.04);
}
.menu-item > span:first-child {
  color: var(--fg);
  font-weight: 500;
}
.menu-item:hover > span:first-child {
  color: var(--acc);
}
.menu-item > .mono-dim {
  font-size: 11px;
  color: var(--fg-mute);
  text-align: right;
  flex-shrink: 0;
}

/* ─── 6. Формы в админке (инпуты без inline-стилей) ─── */
.panel[data-label] input:not([type="hidden"]),
.panel[data-label] select {
  min-height: 36px;
}
.panel[data-label] input::placeholder {
  color: var(--fg-mute);
}

/* ─── 7. Хлебные крошки ─── */
a[href="/admin"] {
  color: var(--fg-dim);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a[href="/admin"]:hover {
  color: var(--acc);
}

/* ─── 8. Кнопка "＋ создать / продлить" (btn без sec) ─── */
.btn:not(.sec):not(.wow-btn) {
  border-color: var(--border-strong);
  color: var(--acc);
  background: rgba(125,211,252,.05);
}
.btn:not(.sec):not(.wow-btn):hover {
  border-color: var(--acc);
  color: #05080e;
  background: var(--acc);
}

/* ─── 9. Строка юзера в списке (inline flex-wrap) ─── */
.row[style*="flex-wrap"] {
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(125,211,252,.1);
}
.row[style*="flex-wrap"]:last-child {
  border-bottom: none;
}

/* ─── 10. Flash-сообщения в админке (перебиваю inline фон) ─── */
.flash {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 12.5px;
  border: 1px solid var(--border);
  background: rgba(10,15,26,.5);
  line-height: 1.5;
  color: var(--fg);
}
.flash[style*="rgba(74,222,128"] {
  border-color: rgba(74,222,128,.35) !important;
  background: rgba(74,222,128,.06) !important;
  color: var(--ok) !important;
  border-left: 3px solid var(--ok) !important;
  padding: 12px 16px !important;
}
.flash[style*="rgba(248,113,113"] {
  border-color: rgba(248,113,113,.35) !important;
  background: rgba(248,113,113,.06) !important;
  color: var(--err) !important;
  border-left: 3px solid var(--err) !important;
  padding: 12px 16px !important;
}

/* ─── 11. Mеню-разделы (карточки в admin/) ─── */
.panel[data-label="УПРАВЛЕНИЕ"] .menu-item > span:first-child {
  min-width: 130px;
}

/* ─── 12. Мобильный — админка ─── */
@media (max-width: 640px) {
  .panel[data-label] {
    padding: 22px 16px 18px;
  }
  .panel[data-label]::before {
    left: 14px;
    font-size: 9.5px;
    padding: 2px 8px;
  }
  .menu-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
  }
  .menu-item > .mono-dim {
    text-align: left;
  }
  .row {
    padding: 6px 0;
    font-size: 12px;
  }
  .row .k { font-size: 11.5px; }
  .row .v { font-size: 12px; }
  .badge { font-size: 10px; padding: 2px 7px; }
}

/* ═══════════════════════════════════════════════════════════════
   FINISH 2026-10-06 — последние дыры
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. .btn.alt — альтернативная кнопка (miniapp fallback) ─── */
.btn.alt {
  border-color: var(--border);
  color: var(--fg-dim);
  background: transparent;
}
.btn.alt:hover {
  color: var(--acc);
  border-color: var(--border-strong);
  background: rgba(125,211,252,.04);
}

/* ─── 2. hr.dashed ─── */
hr.dashed,
.dashed {
  border: 0;
  border-top: 1px dashed var(--border);
  margin: 16px 0;
  height: 0;
}
/* Если .dashed на диве — сохраняем padding */
div.dashed {
  border-top: 0;
  border-bottom: 1px dashed var(--border);
  margin: 0;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

/* ─── 3. Кнопки с inline-фоном (admin_user: ban/unban) ─── */
.btn[style*="background:var(--err)"] {
  color: #ffffff !important;
  font-weight: 600;
  border-color: transparent !important;
}
.btn[style*="background:var(--err)"]:hover {
  background: #dc2626 !important;
}
.btn[style*="background:var(--ok)"] {
  color: #05080e !important;
  font-weight: 600;
  border-color: transparent !important;
}
.btn[style*="background:var(--ok)"]:hover {
  background: #22c55e !important;
}

/* ─── 4. button.badge — сброс дефолта (admin_ddos IP-кнопки) ─── */
button.badge {
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
button.badge:hover {
  transform: translateY(-1px);
}
button.badge.err:hover {
  background: rgba(248,113,113,.15) !important;
  border-color: var(--err) !important;
}
button.badge.ok:hover {
  background: rgba(74,222,128,.15) !important;
  border-color: var(--ok) !important;
}

/* ─── 5. OTP-код в verify.html ─── */
input[inputmode="numeric"],
input[name="code"] {
  font-size: 20px !important;
  letter-spacing: .5em !important;
  text-align: center !important;
  padding: 14px 16px !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ─── 6. miniapp — panel внутри .mini ─── */
.mini .panel[data-label] {
  margin: 0 auto;
  padding: 22px 18px 18px;
  max-width: 100%;
}
.mini-head .logo {
  color: var(--acc);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .28em;
  font-weight: 700;
}
.mini-head .sub {
  color: var(--fg-dim);
  font-size: 11px;
  margin-top: 6px;
  letter-spacing: .1em;
}
.mini-status {
  font-family: var(--mono);
  color: var(--fg);
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
  padding: 8px 0;
}
.mini-status b { color: var(--acc); }
.mini-err {
  color: var(--err);
  margin-top: 12px;
  font-size: 12px;
  background: rgba(248,113,113,.08);
  border-left: 3px solid var(--err);
  padding: 8px 12px;
  font-family: var(--mono);
  word-break: break-word;
}
.mini-err:empty { display: none; }
.mini-log {
  color: var(--fg-dim);
  margin-top: 16px;
  font-size: 11px;
  text-align: left;
  background: rgba(5,8,14,.85);
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: var(--mono);
  max-height: 180px;
  overflow-y: auto;
  display: none;
  white-space: pre-wrap;
  line-height: 1.5;
}
.mini-log.on { display: block; }
.mini-toggle {
  margin-top: 14px;
  font-size: 10px;
  color: var(--fg-dim);
  cursor: pointer;
  text-align: center;
  letter-spacing: .15em;
  user-select: none;
}
.mini-toggle:hover { color: var(--acc); }
.ascii-spin {
  font-family: var(--mono);
  color: var(--acc);
  font-size: 16px;
  text-align: center;
  padding: 12px 0;
  letter-spacing: .15em;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ascii-spin span { animation: ascii-pulse 1s linear infinite; }
@keyframes ascii-pulse {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; }
}
/* Кнопки в fallback miniapp — вертикально, с отступом */
.mini .panel[data-label] #actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.mini .panel[data-label] #actions .btn {
  width: 100%;
  justify-content: center;
  padding: 12px 18px;
}

/* ─── 7. admin_backup: иконки-кнопки ⬇ 🗑 ─── */
.btn[style*="padding:5px 12px"] {
  min-width: 36px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ─── 8. admin_user: формы в столбик на телефоне ─── */
@media (max-width: 640px) {
  .panel[data-label] form[style*="display:flex"][style*="flex-wrap"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .panel[data-label] form[style*="display:flex"][style*="flex-wrap"] > span,
  .panel[data-label] form[style*="display:flex"][style*="flex-wrap"] > label {
    min-width: 0 !important;
  }
  .panel[data-label] form[style*="display:flex"][style*="flex-wrap"] input {
    width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }
  .panel[data-label] form[style*="display:flex"][style*="flex-wrap"] .btn,
  .panel[data-label] form[style*="display:flex"][style*="flex-wrap"] button {
    width: 100% !important;
    justify-content: center;
    padding: 10px 16px !important;
  }
  /* Действия в admin_user — тоже столбиком */
  .panel[data-label="ДЕЙСТВИЯ"] > div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }
  .panel[data-label="ДЕЙСТВИЯ"] > div[style*="display:flex"] .btn,
  .panel[data-label="ДЕЙСТВИЯ"] > div[style*="display:flex"] button,
  .panel[data-label="ДЕЙСТВИЯ"] > div[style*="display:flex"] a {
    width: 100% !important;
    justify-content: center;
    text-align: center;
  }
}

/* ─── 9. admin_ddos: списки IP ─── */
.panel[data-label] button.badge {
  font-size: 11px;
  padding: 4px 10px;
  min-height: 26px;
}

/* ─── 10. verify.html: авто-center для 6-значного кода ─── */
#verify-form input[name="code"] {
  margin: 0 auto;
  max-width: 240px;
}

/* ─── 11. link_telegram / verify: центр QR и url-box ─── */
.panel[data-label] .sub-qr { margin-left: auto; margin-right: auto; }

/* ─── 12. admin_logs — pre ─── */
pre#logbox {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--fg);
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  background: transparent;
}
@media (max-width: 640px) {
  pre#logbox { font-size: 10px; }
}

/* ─── 13. admin_services — кнопка restart на телефоне ─── */
@media (max-width: 640px) {
  .panel[data-label] form[action*="/restart"] button {
    width: 100% !important;
    justify-content: center;
    padding: 10px 16px !important;
  }
}

/* ─── 14. verify / link_telegram: auth-hero в panel ─── */
.panel[data-label] .auth-hero {
  padding: 6px 0 14px;
}
.panel[data-label] .auth-hero-ico {
  font-size: 32px;
  margin-bottom: 8px;
}
.panel[data-label] .auth-hero-title {
  font-size: 16px;
  margin: 0 0 6px;
}
.panel[data-label] .auth-hero-text {
  font-size: 12px;
  line-height: 1.55;
  color: var(--fg-dim);
}
.panel[data-label] .auth-hero-text b { color: var(--acc); }

/* ─── 15. .wow-btn-ghost, если вдруг упустили ─── */
.wow-btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--fg-dim);
}
.wow-btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--acc);
  background: rgba(125,211,252,.04);
}

/* ─── 16. Flash в verify / link — теперь красиво ─── */
.panel[data-label] > .flash {
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   CALIBRATE 2026-10-06 — мягче яркость + легче на мобиле
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. Aurora приглушить (было слишком ярко) ─── */
#parallax-bg::after {
  background:
    radial-gradient(ellipse 1000px 800px at 15% 10%, rgba(56,189,248,.11), transparent 60%),
    radial-gradient(ellipse 900px 700px at 85% 20%,  rgba(125,211,252,.09), transparent 60%),
    radial-gradient(ellipse 1100px 850px at 70% 95%, rgba(56,189,248,.08), transparent 60%),
    radial-gradient(ellipse 700px 600px at 5% 85%,   rgba(167,139,250,.07), transparent 60%),
    radial-gradient(ellipse 800px 500px at 50% 50%,  rgba(139,92,246,.04), transparent 70%),
    radial-gradient(ellipse 600px 900px at 95% 60%,  rgba(14,165,233,.06), transparent 65%);
}

/* Сетку ещё тише */
#parallax-bg::before {
  background-image:
    linear-gradient(rgba(125,211,252,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,211,252,.028) 1px, transparent 1px);
}

/* Hatching-полосы приглушить */
.wrap::after {
  opacity: .28;
}

/* Свет сверху под nav — мягче */
.wrap::before {
  background: radial-gradient(ellipse 65% 100% at 50% 0%, rgba(56,189,248,.06), transparent 70%);
}

/* ─── 2. На мобиле ГАСИМ тяжёлые анимации (композит-ад) ─── */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  /* Aurora не двигается, только статичный градиент */
  #parallax-bg::after {
    animation: none !important;
    transform: none !important;
  }
  /* Сетка не двигается */
  #parallax-bg::before {
    animation: none !important;
  }
  /* Искры не пульсируют */
  .sparks::before,
  .sparks::after {
    animation: none !important;
    opacity: .5;
  }
  /* H1 не переливается */
  .wow-h1, .wow-h1-accent {
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: var(--fg) !important;
    color: var(--fg) !important;
  }
  .wow-h1-accent { color: var(--acc) !important; -webkit-text-fill-color: var(--acc) !important; }
  /* Сканлайн hero не бегает */
  .wow-hero::before {
    animation: none !important;
    background-position: -200% 0, 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100% !important;
  }
  /* Аура hero не дышит */
  .wow-hero::after {
    animation: none !important;
    opacity: .7;
  }
  /* Бейдж не пульсирует */
  .wow-hero-badge {
    animation: none !important;
  }
  .wow-hero-badge::before {
    animation: none !important;
    opacity: .8;
    left: calc(100% + 10px);
  }
  /* Подсветка субтитра не дышит */
  .wow-sub::after {
    animation: none !important;
    width: 100px;
    opacity: .5;
  }
  /* Hero opacity не дышит */
  .wow-hero {
    animation: none !important;
  }
  /* Wow-dot не пульсирует */
  .wow-dot {
    animation: none !important;
  }
  /* Conic-рамка (если осталась где-то) */
  .wow-hero::before {
    filter: none !important;
  }
  /* Убираем will-change (мобильный не тянет лишние слои) */
  * { will-change: auto !important; }
}

/* ─── 3. Дополнительно на узких экранах: чуть темнее ─── */
@media (max-width: 640px) {
  #parallax-bg::after { opacity: .8; }
  body { background: #04060a; }
}

/* ─── 4. Планшет/десктоп: не гасим, но чуть тише aurora ─── */
@media (min-width: 769px) {
  #parallax-bg::after {
    animation: aurora-drift-1 32s ease-in-out infinite alternate;
  }
}
