/* ============================================================================
   Paralich — design system

   Direction taken from the wildclient.org reference: dark premium retail.
   A near-black canvas, translucent white planes that stack by opacity rather
   than by shadow, one indigo accent used as a light source rather than as
   decoration, and large confident type set in Onest.

   The reference's behaviour, kept deliberately:
     - Surfaces are white at 2-7% alpha over #16161a, so every plane has the
       same material. No solid greys, no shadows doing the work.
     - Hover lifts a card 4px and warms its border toward the accent.
     - Cards carry a radial wash tinted by their own --fac variable.
     - Radii are generous: 16px cards, 12px inputs, 99px for pills.
     - The accent is a light, not a fill: it appears on borders, glows, and
       one button per view.

   The reference's mistakes, NOT kept:
     - Its full-bleed hero gradients and decorative blobs.
     - Centred-everything: the hero here stays asymmetric.
     - 54px base type: this runs a proper clamp scale.
   ========================================================================== */

:root {
  /* ---- canvas ---------------------------------------------------------- */
  --bg:                 #16161a;
  --bg-deep:            #101014;
  --bg-raise:           #1c1c22;

  /* Planes: white at low alpha, so they stack instead of fighting. */
  --plane-1:            rgba(255, 255, 255, 0.024);
  --plane-2:            rgba(255, 255, 255, 0.043);
  --plane-3:            rgba(255, 255, 255, 0.070);
  --plane-4:            rgba(255, 255, 255, 0.100);

  /* ---- ink ------------------------------------------------------------- */
  --ink:                #e9e9f2;
  --ink-strong:         #f6f7fc;
  --ink-muted:          #9a9aae;
  --ink-subtle:         #8a8a9e;
  --ink-faint:          #6a6a7c;

  /* ---- lines ----------------------------------------------------------- */
  --line:               rgba(255, 255, 255, 0.075);
  --line-2:             rgba(255, 255, 255, 0.12);
  --line-3:             rgba(255, 255, 255, 0.20);

  /* ---- accent: indigo light -------------------------------------------- */
  --accent:             #7c7ce0;
  --accent-bright:      #c3c3fb;
  --accent-soft:        rgba(124, 124, 224, 0.16);
  --accent-line:        rgba(124, 124, 224, 0.42);
  --accent-glow:        rgba(124, 124, 224, 0.32);

  /* ---- state ----------------------------------------------------------- */
  --ok:                 #4bc46b;
  --ok-soft:            rgba(75, 196, 107, 0.16);
  --warn:               #e8b13c;
  --warn-soft:          rgba(232, 177, 60, 0.16);
  --bad:                #e86a6a;
  --bad-soft:           rgba(232, 106, 106, 0.16);
  --info:               #6ba8e8;
  --info-soft:          rgba(107, 168, 232, 0.16);

  /* ---- radius ---------------------------------------------------------- */
  --r-xs:               6px;
  --r-sm:               10px;
  --r:                  12px;
  --r-lg:               16px;
  --r-xl:               26px;
  --r-full:             99px;

  /* ---- type ------------------------------------------------------------ */
  --font:               "Onest", "Inter", -apple-system, BlinkMacSystemFont,
                        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:          "JetBrains Mono", "Cascadia Mono", "SF Mono", Consolas,
                        "Liberation Mono", monospace;

  --text-xs:            0.75rem;
  --text-sm:            0.8125rem;
  --text-base:          0.9375rem;
  --text-lg:            1.0625rem;
  --text-xl:            1.25rem;
  --text-2xl:           1.5rem;
  --text-3xl:           2rem;

  --leading-tight:      1.12;
  --leading-normal:     1.6;

  --tracking-tight:     -0.02em;
  --tracking-tightest:  -0.035em;
  --tracking-wide:      0.06em;

  /* ---- depth: one shadow, used only on things that truly float ---------- */
  --shadow-float:       0 16px 38px rgba(0, 0, 0, 0.38),
                        inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-lift:        0 18px 44px rgba(0, 0, 0, 0.30);

  /* ---- shell ----------------------------------------------------------- */
  --nav-h:              68px;
  --maxw:               1200px;
}

/* ---------------------------------------------------------------- reset -- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background is rendered by bg-field.js WebGL shader. */
body > * { position: relative; z-index: 1; }

img, svg, video, canvas { max-width: 100%; height: auto; }

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 160ms ease;
}
a:hover { color: #dcdcfd; }

::selection { background: var(--accent); color: #10100f; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

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

/* ---------------------------------------------------------------- motion --
   One vocabulary, per motion.md: fade + rise, ease-out, and durations short
   enough to read as response rather than performance.

   Everything here is additive: the hidden state is only ever applied by
   motion.js, so a page without JS shows all of its content.
   -------------------------------------------------------------------------- */

:root {
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --ease-standard:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur-hover:      140ms;
  --dur-reveal:     620ms;
  --dur-page:       200ms;
  --stagger:        70ms;
}

/* A block waiting to arrive. The distance is small on purpose: 14px reads as
   the block settling, 40px reads as a slideshow. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
  /* Drop the hint once it has played: a standing will-change layer per section
     costs memory for no benefit after the animation is over. */
  will-change: auto;
}

/* Children inside a revealed block lag behind it, 70ms each, capped in JS. */
.reveal-child {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 560ms var(--ease-out),
    transform 560ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.reveal.in-view .reveal-child {
  opacity: 1;
  transform: none;
}

/* Landing on a section from the nav: a single soft ring, once. It confirms the
   glide arrived somewhere on purpose without repainting the section. */
@keyframes section-hit {
  0%   { box-shadow: 0 0 0 0 rgba(124, 124, 224, 0.34); }
  100% { box-shadow: 0 0 0 18px rgba(124, 124, 224, 0); }
}
.section-hit { animation: section-hit 820ms var(--ease-out); }

/* The nav tightens into a compact cloud once the page has moved.
 * position: fixed + translateX(-50%) prevents layout-shift jitter. */
.nav {
  transition: max-width 280ms var(--ease-out),
              padding 280ms var(--ease-out),
              background-color 280ms ease,
              border-color 280ms ease,
              box-shadow 280ms ease;
}
.nav.scrolled {
  max-width: 920px;
  padding: 8px 18px;
  background: rgba(16, 16, 20, 0.82);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* Page transitions. Two paths:
   - page-leaving: plain fade-out when View Transitions are unavailable.
   - vt-leaving: the same state, expressed for the View Transition snapshot.
   The incoming document fades up from page-ready. */
html.page-leaving body,
html.vt-leaving body {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-page) ease-in, transform var(--dur-page) ease-in;
}
html body {
  transition: opacity var(--dur-page) var(--ease-out),
              transform var(--dur-page) var(--ease-out);
}

/* View Transitions cross-fade. Named and given a short duration so the new
   page is never hidden behind a slow curtain. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 240ms;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) { animation-name: vt-fade-out; }
::view-transition-new(root) { animation-name: vt-fade-in; }

@keyframes vt-fade-out {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* Hero arriving on load: one moment, not every section. */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero .eyebrow   { animation: hero-in 700ms var(--ease-out) both; }
.hero h1         { animation: hero-in 760ms var(--ease-out) 80ms both; }
.hero .lead      { animation: hero-in 760ms var(--ease-out) 160ms both; }
.hero-actions    { animation: hero-in 760ms var(--ease-out) 240ms both; }
.hero-note       { animation: hero-in 760ms var(--ease-out) 320ms both; }

/* Live dot breathes once every few seconds. It signals "this is current", which
   is why it is allowed to loop at all. */
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(75, 196, 107, 0.55); }
  50%      { box-shadow: 0 0 0 5px rgba(75, 196, 107, 0); }
}
.eyebrow .live { animation: live-pulse 2.4s ease-in-out infinite; }

/* Accordion body opens with a small rise rather than snapping. */
@keyframes detail-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.q .a { animation: detail-in 300ms var(--ease-out) both; }

/* Two modes, both driven by a class that motion.js sets on <html>.
 *
 *   .motion-off   the visitor pressed the footer switch. Nothing moves at all.
 *   .motion-soft  the OS asks for reduced motion. Movement is cut to a short,
 *                 small version instead of being removed, so the page still
 *                 reads as finished while nothing sweeping happens.
 *
 * Nothing here is triggered by the media query alone any more: a site that
 * silently loses its animation looks broken to everyone who has that flag on
 * and does not know it. */
.motion-off .reveal,
.motion-off .reveal-child {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.motion-off .hero .eyebrow,
.motion-off .hero h1,
.motion-off .hero .lead,
.motion-off .hero-actions,
.motion-off .hero-note,
.motion-off .eyebrow .live,
.motion-off .q .a,
.motion-off .section-hit { animation: none !important; }
.motion-off html.page-leaving body,
.motion-off.page-leaving body,
.motion-off .vt-leaving body,
html.motion-off.page-leaving body,
html.motion-off.vt-leaving body { opacity: 1 !important; transform: none !important; }

.motion-soft {
  --dur-reveal: 260ms;
  --stagger:    0ms;
}
.motion-soft .reveal { transform: translateY(5px); }
.motion-soft .reveal-child { transform: translateY(3px); }
.motion-soft .hero .eyebrow,
.motion-soft .hero h1,
.motion-soft .hero .lead,
.motion-soft .hero-actions,
.motion-soft .hero-note { animation-duration: 240ms; animation-delay: 0ms; }
.motion-soft .eyebrow .live { animation: none; }

/* ------------------------------------------------------------ structure -- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-tight { max-width: 440px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }

.page-head { padding: 56px 0 32px; }
.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
  color: var(--ink-strong);
}
.page-head p { margin: 0; color: var(--ink-muted); }

.stack { display: grid; gap: 18px; padding-bottom: 80px; }

.inline { display: inline-flex; align-items: center; gap: 8px; }
.spacer { flex: 1; }
.nowrap { white-space: nowrap; }
.small { font-size: var(--text-sm); }
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
}

.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.sub {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: var(--text-base);
  max-width: 60ch;
}

/* --------------------------------------------------------------- nav ----- */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: calc(100% - 28px);
  max-width: var(--maxw);
  margin: 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--r-full);
  background: rgba(20, 20, 26, 0.62);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.30);
}
body { padding-top: 84px; }
.nav .wrap { display: flex; align-items: center; gap: 14px; width: 100%; padding: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--ink-strong);
  white-space: nowrap;
  transition: transform 220ms var(--ease-out), opacity 180ms ease;
}
.brand:hover { color: var(--ink-strong); transform: translateY(-1px); }
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: none;
  transition: transform 240ms var(--ease-out);
}
.brand:hover .brand-logo { transform: scale(1.06) rotate(-3deg); }

/* Compact horizontal stats bar */
.stats {
  width: fit-content !important;
  max-width: 100%;
  margin: 0 auto !important;
  display: flex !important;
  flex-wrap: wrap;
}
.stat {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 24px !important;
  position: relative;
  transition: background-color 220ms ease, transform 220ms var(--ease-out);
}
.stat:hover {
  background: var(--plane-2);
  transform: translateY(-2px);
}
.stat-ico {
  width: 20px;
  height: 20px;
  color: var(--accent-bright);
  opacity: 0.85;
  margin-bottom: 0 !important;
  flex: none;
  transition: transform 240ms var(--ease-out), opacity 200ms ease;
}
.stat b { font-size: 1.25rem !important; line-height: 1 !important; }
.stat span { font-size: var(--text-xs) !important; }
.stat:hover .stat-ico {
  transform: scale(1.15);
  opacity: 1;
}
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(150deg, var(--accent-bright), var(--accent));
  box-shadow: 0 0 12px var(--accent-glow);
  flex: none;
}

/* Smooth FAQ open & close height animation */
:root { interpolate-size: allow-keywords; }
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition: block-size 280ms var(--ease-out),
              opacity 220ms ease,
              content-visibility 280ms allow-discrete;
}
.faq details[open]::details-content {
  block-size: auto;
  opacity: 1;
}

/* Hide footer motion toggle */
.motion-toggle, [data-motion-toggle] { display: none !important; }
.brand .logo-glyph {
  font-family: "NettyxLogo", var(--font);
  font-size: 1.45rem;
  line-height: 1;
  color: var(--accent-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: none;
  transition: transform 240ms var(--ease-out);
}
.brand:hover .brand-logo { transform: scale(1.06) rotate(-3deg); }

/* Compact horizontal stats bar */
.stats {
  width: fit-content !important;
  max-width: 100%;
  margin: 0 auto !important;
  display: flex !important;
  flex-wrap: wrap;
}
.stat {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 24px !important;
  position: relative;
  transition: background-color 220ms ease, transform 220ms var(--ease-out);
}
.stat:hover {
  background: var(--plane-2);
  transform: translateY(-2px);
}
.stat-ico {
  width: 20px;
  height: 20px;
  color: var(--accent-bright);
  opacity: 0.85;
  margin-bottom: 0 !important;
  flex: none;
  transition: transform 240ms var(--ease-out), opacity 200ms ease;
}
.stat b { font-size: 1.25rem !important; line-height: 1 !important; }
.stat span { font-size: var(--text-xs) !important; }
.stat:hover .stat-ico {
  transform: scale(1.15);
  opacity: 1;
}
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(150deg, var(--accent-bright), var(--accent));
  box-shadow: 0 0 14px var(--accent-glow);
  flex: none;
}
.brand b { font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--r-full);
  color: var(--ink-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms var(--ease-out);
}
.nav-links a:hover {
  color: var(--ink-strong);
  background: var(--plane-2);
  transform: translateY(-1px);
}
.nav-links a svg {
  width: 14px;
  height: 14px;
  flex: none;
  opacity: 0.8;
  display: block;
}
.nav-links a:hover { color: var(--ink-strong); background: var(--plane-2); }

.nav-links a.nav-contact { display: inline-flex; align-items: center; gap: 7px; }
.nav-links a.nav-contact::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5865f2;
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.9);
  flex: none;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  flex: none;
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: 500 var(--text-sm)/1 var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease,
              color 180ms ease, transform 180ms cubic-bezier(.2,.7,.2,1),
              box-shadow 180ms ease;
}
.btn:active { transform: scale(0.98); }

/* Primary is the accent as a fill. One per view where possible. */
.btn.primary {
  background: linear-gradient(180deg, #8b8bef, var(--accent));
  color: #0e0e14;
  font-weight: 600;
  box-shadow: 0 8px 22px -8px var(--accent-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn.primary:hover {
  background: linear-gradient(180deg, #9a9af5, #8686e8);
  color: #0e0e14;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px var(--accent-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn.ghost {
  background: var(--plane-2);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn.ghost:hover {
  background: var(--plane-3);
  border-color: var(--line-3);
  color: var(--ink-strong);
  transform: translateY(-1px);
}

.btn.danger {
  background: var(--bad-soft);
  color: var(--bad);
  border-color: rgba(232, 106, 106, 0.32);
}
.btn.danger:hover {
  background: rgba(232, 106, 106, 0.24);
  border-color: rgba(232, 106, 106, 0.5);
  color: #ff8f8f;
}

.btn.sm { height: 32px; padding: 0 13px; font-size: var(--text-xs); border-radius: var(--r-sm); }
.btn.block { width: 100%; }

.btn.discord {
  background: linear-gradient(180deg, #6772f5, #5865f2);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 22px -8px rgba(88, 101, 242, 0.75),
              inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.btn.discord:hover {
  background: linear-gradient(180deg, #7680f8, #5f6bf0);
  color: #fff;
  transform: translateY(-1px);
}
.btn.discord svg { width: 16px; height: 16px; flex: none; }


.buy-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.buy-row .hint { color: var(--ink-muted); font-size: var(--text-sm); }

/* --------------------------------------------------------------- cards -- */

.card {
  position: relative;
  background: var(--plane-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: border-color 260ms ease, background-color 260ms ease,
              transform 260ms cubic-bezier(.2,.7,.2,1);
}
.card:hover { border-color: var(--line-2); background: var(--plane-2); }

.card h2 {
  margin: 0 0 4px;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--ink-strong);
}
.card h3 {
  margin: 0 0 6px;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--ink-strong);
}
.card p { margin: 0; color: var(--ink-muted); font-size: var(--text-sm); }
.card > form { margin-top: 18px; }

/* -------------------------------------------------------------- inputs -- */

.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field:last-of-type { margin-bottom: 18px; }

.lbl {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-subtle);
  letter-spacing: 0.01em;
}
.hint { font-size: var(--text-xs); color: var(--ink-faint); margin: 0; }

input[type="text"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  font: 400 var(--text-sm)/1.45 var(--font);
  color: var(--ink-strong);
  background: var(--bg-deep);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  transition: border-color 180ms ease, background-color 180ms ease,
              box-shadow 180ms ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent-line);
  background: var(--bg-raise);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[type="file"] { padding: 7px; font-size: var(--text-xs); }
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  font: 500 var(--text-xs)/1 var(--font);
  color: var(--ink);
  background: var(--plane-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color 160ms ease;
}
input[type="file"]::file-selector-button:hover { background: var(--plane-4); }
input[type="number"] { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 12px; margin-bottom: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 .field, .grid-3 .field, .grid-4 .field { margin-bottom: 0; }

/* --------------------------------------------------------------- notes -- */

.note {
  padding: 12px 15px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--plane-2);
  font-size: var(--text-sm);
  margin-bottom: 16px;
}
.note.ok   { border-color: rgba(75, 196, 107, 0.34);  background: var(--ok-soft);  color: #74d98e; }
.note.bad  { border-color: rgba(232, 106, 106, 0.34); background: var(--bad-soft); color: #f08a8a; }
.note.info { border-color: var(--accent-line);        background: var(--accent-soft); color: var(--accent-bright); }

/* -------------------------------------------------------------- pills ---- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: var(--r-full);
  font: 500 var(--text-xs)/1.6 var(--font);
  border: 1px solid var(--line-2);
  color: var(--ink-muted);
  background: var(--plane-2);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  flex: none;
}
.pill.ACTIVE, .pill.ok   { color: #74d98e; border-color: rgba(75, 196, 107, 0.36);  background: var(--ok-soft); }
.pill.UNUSED             { color: var(--ink-subtle); }
.pill.EXPIRED, .pill.warn { color: #f0c45e; border-color: rgba(232, 177, 60, 0.36); background: var(--warn-soft); }
.pill.REVOKED, .pill.bad  { color: #f08a8a; border-color: rgba(232, 106, 106, 0.36); background: var(--bad-soft); }

/* -------------------------------------------------------------- tables -- */

.scroll {
  overflow-x: auto;
  margin: 0 -22px -22px;
  padding: 0 22px 22px;
  -webkit-overflow-scrolling: touch;
}

table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 9px 14px 9px 0;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line-2);
  background: var(--bg);
  white-space: nowrap;
}
tbody td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color 140ms ease; }
tbody tr:hover { background: var(--plane-2); }
thead th:last-child, tbody td:last-child { padding-right: 0; }
td.nowrap, td.mono { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- dash ---- */

.dash {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.dash .card { padding: 18px 20px; }
.dash .card b {
  display: block;
  font: 600 1.875rem/1.05 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tight);
  color: var(--ink-strong);
}
.dash .card span {
  display: block;
  margin-top: 5px;
  font-size: var(--text-xs);
  color: var(--ink-faint);
}
.dash .card.ok   b { color: #74d98e; }
.dash .card.warn b { color: #f0c45e; }
.dash .card.bad  b { color: #f08a8a; }

/* --------------------------------------------------------------- auth ---- */

.auth-shell {
  min-height: calc(100vh - var(--nav-h) - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 0;
}
.auth-card {
  width: 100%;
  padding: 30px;
  background: var(--plane-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-float);
}
.auth-card h1 {
  margin: 0 0 6px;
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tightest);
  font-weight: 600;
  color: var(--ink-strong);
}
.auth-card .sub { margin-bottom: 24px; }
.auth-card:hover { border-color: var(--line-2); background: var(--plane-2); }
.auth-card form { margin-top: 6px; }
.auth-foot {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

/* -------------------------------------------------------------- footer -- */

.foot {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.foot .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.foot .muted { font-size: var(--text-xs); }
.foot .links { display: flex; gap: 20px; margin-left: auto; }
.foot .links a { color: var(--ink-subtle); font-size: var(--text-xs); }
.foot .links a:hover { color: var(--ink-strong); }
/* The motion switch sits in the footer: findable, never in the way. */
.motion-toggle {
  appearance: none;
  padding: 5px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-2);
  background: var(--plane-2);
  color: var(--ink-subtle);
  font: 500 var(--text-xs)/1.4 var(--font);
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}
.motion-toggle:hover {
  color: var(--ink);
  border-color: var(--line-3);
  background: var(--plane-3);
}
.motion-toggle[aria-pressed="true"] {
  color: var(--accent-bright);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

/* ==========================================================================
   Landing — premium retail rhythm: one big claim, then dense proof
   ========================================================================== */

.hero { padding: 104px 0 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 60px;
  align-items: center;
}
.hero-grid.solo { grid-template-columns: minmax(0, 1fr); }

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(2.75rem, 5.2vw + 0.5rem, 4.5rem);
  line-height: 1.03;
  letter-spacing: var(--tracking-tightest);
  font-weight: 650;
  color: var(--ink-strong);
}
/* The accent highlight is light on type, not a rainbow fill. */
.hero h1 .grad {
  background: linear-gradient(180deg, var(--accent-bright), #9b9bec);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-bright);
}

.lead {
  margin: 22px 0 0;
  max-width: 54ch;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-actions .btn { height: 50px; padding: 0 26px; font-size: var(--text-base); }

.hero-note {
  margin: 18px 0 0;
  font-size: var(--text-sm);
  color: var(--ink-faint);
}

/* Kicker: mono, tracked open, reading as metadata not jewellery. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 9px;
  border-radius: var(--r-full);
  background: var(--plane-2);
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  flex: none;
}

/* Stats: four numbers on one plane, divided by hairlines. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--plane-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font: 600 1.75rem/1.05 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tight);
  color: var(--ink-strong);
}
.stat span {
  display: block;
  margin-top: 6px;
  font-size: var(--text-xs);
  color: var(--ink-faint);
}

.section-head { margin-bottom: 40px; max-width: 62ch; }
.section-head h2 {
  margin: 14px 0 0;
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
  color: var(--ink-strong);
}
.section-head p {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: var(--text-base);
}

/* Feature cards: the reference's tinted, lifting card, one --fac per card. */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.features .feature {
  --fac: var(--accent);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--plane-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1),
              border-color 320ms ease, background-color 320ms ease;
}
.features .feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms ease;
  background: radial-gradient(120% 95% at 15% 0%, rgba(124, 124, 224, 0.16), transparent 62%);
}
.features .feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  background: var(--plane-2);
}
.features .feature:hover::after { opacity: 1; }
.features .feature > * { position: relative; z-index: 1; }
.feature .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: var(--r);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-bright);
}
.feature .ico svg { width: 18px; height: 18px; }
.feature h3 { margin-bottom: 6px; }
.feature p { font-size: var(--text-sm); }

.grid-2.cards { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ticks {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ticks li {
  position: relative;
  padding-left: 20px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.steps { display: grid; gap: 14px; }
.step {
  --fac: var(--accent);
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  background: var(--plane-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  align-items: start;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), border-color 320ms ease;
}
.step:hover { transform: translateY(-2px); border-color: var(--line-2); }
.step .num {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent-bright);
  letter-spacing: var(--tracking-tight);
}
.step h3 { margin: 0 0 5px; }
.step p { margin: 0; }

/* Plans: the middle option is the one that matters, marked by light not glow. */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  background: var(--plane-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), border-color 320ms ease,
              background-color 320ms ease;
}
.plan:hover { transform: translateY(-3px); border-color: var(--line-3); background: var(--plane-2); }
.plan.hot {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(124, 124, 224, 0.10), rgba(124, 124, 224, 0.02));
  box-shadow: 0 18px 44px -22px var(--accent-glow);
}
.plan.hot:hover { border-color: var(--accent); }
.plan .tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--plane-3);
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.plan.hot .tag {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-bright);
}
.plan .price {
  font: 600 2.75rem/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tightest);
  color: var(--ink-strong);
}
.plan .price small {
  font: 400 var(--text-sm)/1 var(--font);
  color: var(--ink-faint);
  /* Was 6px plus a literal space in the markup, which read as a gap wide enough
   * to look like a missing value. */
  margin-left: 3px;
  letter-spacing: 0;
}
.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  flex: 1;
}
.plan li {
  position: relative;
  padding-left: 18px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink-faint);
}

/* FAQ: native details on one plane, rows divided by hairlines. */
.faq {
  background: var(--plane-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.q { border-bottom: 1px solid var(--line); }
.q:last-child { border-bottom: 0; }
.q summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  transition: background-color 160ms ease, color 160ms ease;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  line-height: 1;
  color: var(--ink-faint);
  transition: color 160ms ease, transform 200ms ease;
}
.q summary:hover { background: var(--plane-2); color: var(--ink-strong); }
.q summary:hover::after { color: var(--accent-bright); }
.q[open] summary::after { content: "−"; color: var(--accent-bright); }
.q[open] summary { background: var(--plane-2); color: var(--ink-strong); }
.q .a {
  padding: 0 22px 20px;
  max-width: 76ch;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--ink-muted);
}

/* Closing band: the one loud moment on the page. */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-xl);
  padding: 52px 44px;
  background:
    radial-gradient(90% 140% at 12% 0%, rgba(124, 124, 224, 0.20), transparent 58%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  box-shadow: 0 28px 60px -30px var(--accent-glow);
}
.cta-band h2 {
  margin: 0;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: var(--tracking-tightest);
  font-weight: 650;
  color: var(--ink-strong);
}
.cta-band p { margin: 12px 0 0; color: var(--ink-muted); max-width: 52ch; }
.cta-band .hero-actions { margin-top: 28px; }

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .grid-2.cards { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ESP preview miniature in hero */
.esp-preview {
  background: rgba(16, 16, 20, 0.72);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-float);
  transition: transform 280ms var(--ease-out), border-color 220ms ease;
}
.esp-preview:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
}
.esp-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}
.esp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
.esp-fps { margin-left: auto; color: var(--accent-bright); }
.esp-stage {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(124,124,224,0.08), transparent 65%), #0d0d11;
}
.esp-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}
.esp-fov {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(195, 195, 251, 0.28);
}
.esp-target {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  animation: espFloat 4.2s var(--ease-in-out) infinite;
}
.esp-name, .esp-wpn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-strong);
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.esp-wpn { color: var(--ink-muted); font-size: 10px; }
.esp-box {
  position: relative;
  width: 64px;
  height: 112px;
}
.esp-corners {
  width: 100%;
  height: 100%;
  display: block;
}
.esp-hp {
  position: absolute;
  left: -7px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255,255,255,0.12);
}
.esp-hp span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78%;
  background: var(--ok);
}
.esp-head {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid #e86a6a;
}
.esp-skel {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 2px;
  height: 52px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.45);
}
.esp-loot {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(16, 16, 20, 0.85);
  border: 1px solid rgba(124, 124, 224, 0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
}
.esp-loot-tag { color: var(--accent-bright); }
@keyframes espFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-44%, -53%); }
}

/* 3-column clean grid for "Почему он" (.steps) */
.steps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}
.steps > .step,
.steps > * {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 24px !important;
  border-radius: var(--r-lg) !important;
  background: var(--plane-1) !important;
  border: 1px solid var(--line) !important;
  transition: transform 220ms var(--ease-out), border-color 220ms ease, background-color 220ms ease;
}
.steps > *:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line) !important;
  background: var(--plane-2) !important;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr !important; }
}

/* Compact island when there are no nav-links (e.g. /login, /register) */
.nav:not(:has(.nav-links)) {
  width: fit-content;
  min-width: min(480px, calc(100% - 28px));
}

/* Admin minimalist refresh */
.adm-stat {
  transition: transform 200ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}
.adm-stat:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  background: var(--plane-2);
}
.adm-stat b { color: var(--ink-strong) !important; }
.adm-stat-ico {
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  margin-bottom: 6px;
  display: block;
}

.note:empty { display: none !important; }
.note:not(:empty) {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: noteIn 260ms var(--ease-out);
}
@keyframes noteIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.adm-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 180ms ease, border-color 180ms ease;
}
.adm-tab svg { width: 15px; height: 15px; opacity: 0.8; flex: none; }

.adm-user-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.adm-user-cell svg { width: 14px; height: 14px; color: var(--ink-muted); flex: none; }

.adm-menu { position: relative; display: inline-block; }
.adm-menu summary { list-style: none; cursor: pointer; }
.adm-menu summary::-webkit-details-marker { display: none; }
.adm-menu-btn { display: inline-flex; align-items: center; gap: 6px; }
.adm-menu-btn svg { width: 14px; height: 14px; }
.adm-menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 176px;
  padding: 6px;
  border-radius: var(--r);
  background: rgba(20, 20, 26, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-float);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: menuPop 180ms var(--ease-out);
}
@keyframes menuPop {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.adm-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-sm);
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.adm-menu-item svg { width: 14px; height: 14px; opacity: 0.8; flex: none; }
.adm-menu-item:hover { background: var(--plane-3); color: var(--ink-strong); }
.adm-menu-item.danger { color: var(--bad); }
.adm-menu-item.danger:hover { background: var(--bad-soft); }

/* Account Licenses card redesign */
.card-title-ico {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.card-title-ico svg { width: 18px; height: 18px; color: var(--accent-bright); flex: none; }

.lic-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.lic-item {
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--plane-1);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms var(--ease-out);
}
.lic-item:hover {
  border-color: var(--accent-line);
  background: var(--plane-2);
  transform: translateY(-2px);
}
.lic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lic-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink-strong);
}
.lic-key svg { width: 15px; height: 15px; color: var(--accent-bright); flex: none; }
.lic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.lic-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lic-meta svg { width: 13px; height: 13px; opacity: 0.75; flex: none; }
.lic-meta b { color: var(--ink-strong); font-weight: 500; }

/* Account sidebar layout, avatar, UID, chat */
.acc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.acc-sidebar { padding: 16px; position: sticky; top: 84px; }
.acc-profile-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.acc-ava-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent-bright);
  overflow: hidden;
  cursor: pointer;
  flex: none;
  transition: transform 180ms var(--ease-out);
}
.acc-ava-wrap:hover { transform: scale(1.06); }
.acc-ava-img { width: 100%; height: 100%; object-fit: cover; }
.acc-user-info { display: flex; flex-direction: column; min-width: 0; }
.acc-user-info b { color: var(--ink-strong); font-size: var(--text-base); truncate: ellipsis; overflow: hidden; }
.acc-uid { font-size: 11px; color: var(--accent-bright); }
.acc-nav { display: flex; flex-direction: column; gap: 4px; }
.acc-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.acc-nav-btn svg { width: 15px; height: 15px; flex: none; opacity: 0.8; }
.acc-nav-btn:hover { background: var(--plane-2); color: var(--ink-strong); transform: translateX(2px); }
.acc-nav-btn.on { background: var(--accent-soft); color: var(--accent-bright); }
.acc-panel { display: none; animation: accIn 220ms var(--ease-out); }
.acc-panel.on { display: block; }
@keyframes accIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.acc-chat-box {
  height: 260px;
  overflow-y: auto;
  padding: 12px;
  border-radius: var(--r);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.acc-msg {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--text-sm);
  padding: 6px 10px;
  border-radius: var(--r-xs);
  background: var(--plane-1);
}
.acc-msg-u b { color: var(--accent-bright); }
.acc-msg-u .mono { font-size: 11px; color: var(--ink-faint); }
.acc-msg-t { color: var(--ink); flex: 1; word-break: break-word; }
.acc-msg-ts { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); }
.acc-chat-form { display: flex; gap: 8px; margin-top: 10px; }
.acc-chat-form input { flex: 1; }
@media (max-width: 820px) {
  .acc-layout { grid-template-columns: 1fr; }
  .acc-sidebar { position: static; }
}

/* Banner, Prefixes & Chat v2 */
.acc-banner-card { padding: 0; overflow: hidden; }
.acc-banner {
  height: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transition: height 240ms var(--ease-out);
}
.acc-banner.has-img { height: 110px; border-bottom: 1px solid var(--line); }
.acc-banner-body { padding: 20px; }

.prefix-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prefix-opt {
  padding: 7px 13px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-2);
  background: var(--plane-1);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.prefix-opt:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.prefix-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-bright); }

.acc-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--plane-1);
}
.chat-ava, .chat-ava-ch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--accent-soft);
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.acc-msg-body { flex: 1; min-width: 0; }
.acc-msg-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.chat-name { font-size: var(--text-sm); color: var(--ink-strong); }
.chat-name.adm { color: #ff5c5c; }
.chat-adm-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 92, 92, 0.16);
  color: #ff6b6b;
  border: 1px solid rgba(255, 92, 92, 0.35);
}
.chat-pfx {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--plane-2);
  color: var(--ink);
}

/* Custom sleek scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

/* Unread badge, message animation, prefix gradients & mini-profile modal */
.acc-badge {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.acc-msg-row {
  width: fit-content;
  max-width: 82%;
  background: rgba(255, 255, 255, 0.025) !important;
  padding: 7px 11px !important;
  border-radius: 12px !important;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.acc-msg-row:hover { background: rgba(255, 255, 255, 0.04) !important; }
.acc-msg-row.anim { animation: msgIn 220ms var(--ease-out); }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.prefix-opt[data-prefix*="KING"], .chat-pfx[data-pfx*="KING"] {
  background: linear-gradient(135deg, rgba(255,200,70,0.22), rgba(255,130,50,0.18));
  border-color: rgba(255,200,70,0.4); color: #ffd97d;
}
.prefix-opt[data-prefix*="VIP"], .chat-pfx[data-pfx*="VIP"] {
  background: linear-gradient(135deg, rgba(90,200,255,0.22), rgba(130,110,255,0.22));
  border-color: rgba(120,180,255,0.4); color: #a5d8ff;
}
.prefix-opt[data-prefix*="FLASH"], .chat-pfx[data-pfx*="FLASH"] {
  background: linear-gradient(135deg, rgba(255,230,80,0.2), rgba(255,90,90,0.18));
  border-color: rgba(255,200,80,0.38); color: #ffe066;
}
.prefix-opt[data-prefix*="PEPE"], .chat-pfx[data-pfx*="PEPE"] {
  background: linear-gradient(135deg, rgba(75,196,107,0.22), rgba(40,160,120,0.18));
  border-color: rgba(75,196,107,0.4); color: #7ce897;
}

.mini-prof-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.mini-prof-card {
  width: 300px; border-radius: var(--r-lg);
  background: #16161c; border: 1px solid var(--line-2);
  overflow: hidden; box-shadow: var(--shadow-float);
  animation: menuPop 200ms var(--ease-out);
}
.mini-prof-banner { height: 76px; background: linear-gradient(135deg, rgba(124,124,224,0.25), rgba(20,20,26,0.9)); background-size: cover; background-position: center; }
.mini-prof-body { padding: 0 18px 18px; margin-top: -26px; display: flex; flex-direction: column; gap: 8px; }
.mini-prof-ava {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid #16161c; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--accent-bright); overflow: hidden;
}
.mini-prof-ava img { width: 100%; height: 100%; object-fit: cover; }
.mini-prof-name { font-size: var(--text-lg); font-weight: 600; color: var(--ink-strong); }
.mini-prof-name.adm { color: #ff5c5c; }
.mini-prof-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.acc-banner.anim-bg {
  height: 110px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(124,124,224,0.35), rgba(75,196,107,0.22), rgba(232,106,106,0.24), rgba(124,124,224,0.35));
  background-size: 300% 300%;
  animation: bannerFlow 8s ease infinite;
}
@keyframes bannerFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.mini-prof-bio { font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.4; }

/* Password eye toggle & label icons */
.lbl-ico { display: inline-flex; align-items: center; gap: 6px; }
.lbl-ico svg { width: 13px; height: 13px; color: var(--ink-muted); flex: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 40px; }
.pw-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease;
}
.pw-eye:hover { color: var(--ink-strong); background: var(--plane-2); }
.pw-eye.on { color: var(--accent-bright); }
.pw-eye svg { width: 16px; height: 16px; }

/* Keep footer pinned at bottom & prevent tab-switch height jump */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.acc-main { min-height: 460px; }

@media (max-width: 760px) {
/* ============================================================================
   Nettyx.fun — minimalist polish & micro-animations
   ========================================================================== */

.grad {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  color: var(--accent-bright);
}

.btn {
  transition: transform 140ms var(--ease-out),
              background-color 160ms ease,
              border-color 160ms ease,
              box-shadow 180ms ease;
}
.btn:active {
  transform: scale(0.97);
}

.card, .plan, .stat, .feature-card {
  transition: transform 220ms var(--ease-out),
              border-color 220ms ease,
              background-color 220ms ease;
}
.card:hover, .plan:hover, .feature-card:hover {
  transform: translateY(-3px);
}

/* ESP preview miniature in hero */
.esp-preview {
  background: rgba(16, 16, 20, 0.72);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-float);
  transition: transform 280ms var(--ease-out), border-color 220ms ease;
}
.esp-preview:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
}
.esp-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}
.esp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
.esp-fps { margin-left: auto; color: var(--accent-bright); }
.esp-stage {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(124,124,224,0.08), transparent 65%), #0d0d11;
}
.esp-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}
.esp-fov {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(195, 195, 251, 0.28);
}
.esp-target {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  animation: espFloat 4.2s var(--ease-in-out) infinite;
}
.esp-name, .esp-wpn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-strong);
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.esp-wpn { color: var(--ink-muted); font-size: 10px; }
.esp-box {
  position: relative;
  width: 64px;
  height: 112px;
}
.esp-corners {
  width: 100%;
  height: 100%;
  display: block;
}
.esp-hp {
  position: absolute;
  left: -7px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255,255,255,0.12);
}
.esp-hp span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78%;
  background: var(--ok);
}
.esp-head {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid #e86a6a;
}
.esp-skel {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 2px;
  height: 52px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.45);
}
.esp-loot {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(16, 16, 20, 0.85);
  border: 1px solid rgba(124, 124, 224, 0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
}
.esp-loot-tag { color: var(--accent-bright); }
@keyframes espFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-44%, -53%); }
}

/* 3-column clean grid for "Почему он" (.steps) */
.steps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}
.steps > .step,
.steps > * {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 24px !important;
  border-radius: var(--r-lg) !important;
  background: var(--plane-1) !important;
  border: 1px solid var(--line) !important;
  transition: transform 220ms var(--ease-out), border-color 220ms ease, background-color 220ms ease;
}
.steps > *:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line) !important;
  background: var(--plane-2) !important;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr !important; }
}

/* Compact island when there are no nav-links (e.g. /login, /register) */
.nav:not(:has(.nav-links)) {
  width: fit-content;
  min-width: min(480px, calc(100% - 28px));
}

/* Admin minimalist refresh */
.adm-stat {
  transition: transform 200ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}
.adm-stat:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  background: var(--plane-2);
}
.adm-stat b { color: var(--ink-strong) !important; }
.adm-stat-ico {
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  margin-bottom: 6px;
  display: block;
}

.note:empty { display: none !important; }
.note:not(:empty) {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: noteIn 260ms var(--ease-out);
}
@keyframes noteIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.adm-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 180ms ease, border-color 180ms ease;
}
.adm-tab svg { width: 15px; height: 15px; opacity: 0.8; flex: none; }

.adm-user-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.adm-user-cell svg { width: 14px; height: 14px; color: var(--ink-muted); flex: none; }

.adm-menu { position: relative; display: inline-block; }
.adm-menu summary { list-style: none; cursor: pointer; }
.adm-menu summary::-webkit-details-marker { display: none; }
.adm-menu-btn { display: inline-flex; align-items: center; gap: 6px; }
.adm-menu-btn svg { width: 14px; height: 14px; }
.adm-menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 176px;
  padding: 6px;
  border-radius: var(--r);
  background: rgba(20, 20, 26, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-float);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: menuPop 180ms var(--ease-out);
}
@keyframes menuPop {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.adm-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-sm);
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.adm-menu-item svg { width: 14px; height: 14px; opacity: 0.8; flex: none; }
.adm-menu-item:hover { background: var(--plane-3); color: var(--ink-strong); }
.adm-menu-item.danger { color: var(--bad); }
.adm-menu-item.danger:hover { background: var(--bad-soft); }

/* Account Licenses card redesign */
.card-title-ico {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.card-title-ico svg { width: 18px; height: 18px; color: var(--accent-bright); flex: none; }

.lic-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.lic-item {
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--plane-1);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms var(--ease-out);
}
.lic-item:hover {
  border-color: var(--accent-line);
  background: var(--plane-2);
  transform: translateY(-2px);
}
.lic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lic-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink-strong);
}
.lic-key svg { width: 15px; height: 15px; color: var(--accent-bright); flex: none; }
.lic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.lic-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lic-meta svg { width: 13px; height: 13px; opacity: 0.75; flex: none; }
.lic-meta b { color: var(--ink-strong); font-weight: 500; }

/* Account sidebar layout, avatar, UID, chat */
.acc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.acc-sidebar { padding: 16px; position: sticky; top: 84px; }
.acc-profile-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.acc-ava-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent-bright);
  overflow: hidden;
  cursor: pointer;
  flex: none;
  transition: transform 180ms var(--ease-out);
}
.acc-ava-wrap:hover { transform: scale(1.06); }
.acc-ava-img { width: 100%; height: 100%; object-fit: cover; }
.acc-user-info { display: flex; flex-direction: column; min-width: 0; }
.acc-user-info b { color: var(--ink-strong); font-size: var(--text-base); truncate: ellipsis; overflow: hidden; }
.acc-uid { font-size: 11px; color: var(--accent-bright); }
.acc-nav { display: flex; flex-direction: column; gap: 4px; }
.acc-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.acc-nav-btn svg { width: 15px; height: 15px; flex: none; opacity: 0.8; }
.acc-nav-btn:hover { background: var(--plane-2); color: var(--ink-strong); transform: translateX(2px); }
.acc-nav-btn.on { background: var(--accent-soft); color: var(--accent-bright); }
.acc-panel { display: none; animation: accIn 220ms var(--ease-out); }
.acc-panel.on { display: block; }
@keyframes accIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.acc-chat-box {
  height: 260px;
  overflow-y: auto;
  padding: 12px;
  border-radius: var(--r);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.acc-msg {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--text-sm);
  padding: 6px 10px;
  border-radius: var(--r-xs);
  background: var(--plane-1);
}
.acc-msg-u b { color: var(--accent-bright); }
.acc-msg-u .mono { font-size: 11px; color: var(--ink-faint); }
.acc-msg-t { color: var(--ink); flex: 1; word-break: break-word; }
.acc-msg-ts { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); }
.acc-chat-form { display: flex; gap: 8px; margin-top: 10px; }
.acc-chat-form input { flex: 1; }
@media (max-width: 820px) {
  .acc-layout { grid-template-columns: 1fr; }
  .acc-sidebar { position: static; }
}

/* Banner, Prefixes & Chat v2 */
.acc-banner-card { padding: 0; overflow: hidden; }
.acc-banner {
  height: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transition: height 240ms var(--ease-out);
}
.acc-banner.has-img { height: 110px; border-bottom: 1px solid var(--line); }
.acc-banner-body { padding: 20px; }

.prefix-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prefix-opt {
  padding: 7px 13px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-2);
  background: var(--plane-1);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.prefix-opt:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.prefix-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-bright); }

.acc-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--plane-1);
}
.chat-ava, .chat-ava-ch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--accent-soft);
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.acc-msg-body { flex: 1; min-width: 0; }
.acc-msg-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.chat-name { font-size: var(--text-sm); color: var(--ink-strong); }
.chat-name.adm { color: #ff5c5c; }
.chat-adm-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 92, 92, 0.16);
  color: #ff6b6b;
  border: 1px solid rgba(255, 92, 92, 0.35);
}
.chat-pfx {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--plane-2);
  color: var(--ink);
}

/* Custom sleek scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

/* Unread badge, message animation, prefix gradients & mini-profile modal */
.acc-badge {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.acc-msg-row {
  width: fit-content;
  max-width: 82%;
  background: rgba(255, 255, 255, 0.025) !important;
  padding: 7px 11px !important;
  border-radius: 12px !important;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.acc-msg-row:hover { background: rgba(255, 255, 255, 0.04) !important; }
.acc-msg-row.anim { animation: msgIn 220ms var(--ease-out); }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.prefix-opt[data-prefix*="KING"], .chat-pfx[data-pfx*="KING"] {
  background: linear-gradient(135deg, rgba(255,200,70,0.22), rgba(255,130,50,0.18));
  border-color: rgba(255,200,70,0.4); color: #ffd97d;
}
.prefix-opt[data-prefix*="VIP"], .chat-pfx[data-pfx*="VIP"] {
  background: linear-gradient(135deg, rgba(90,200,255,0.22), rgba(130,110,255,0.22));
  border-color: rgba(120,180,255,0.4); color: #a5d8ff;
}
.prefix-opt[data-prefix*="FLASH"], .chat-pfx[data-pfx*="FLASH"] {
  background: linear-gradient(135deg, rgba(255,230,80,0.2), rgba(255,90,90,0.18));
  border-color: rgba(255,200,80,0.38); color: #ffe066;
}
.prefix-opt[data-prefix*="PEPE"], .chat-pfx[data-pfx*="PEPE"] {
  background: linear-gradient(135deg, rgba(75,196,107,0.22), rgba(40,160,120,0.18));
  border-color: rgba(75,196,107,0.4); color: #7ce897;
}

.mini-prof-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.mini-prof-card {
  width: 300px; border-radius: var(--r-lg);
  background: #16161c; border: 1px solid var(--line-2);
  overflow: hidden; box-shadow: var(--shadow-float);
  animation: menuPop 200ms var(--ease-out);
}
.mini-prof-banner { height: 76px; background: linear-gradient(135deg, rgba(124,124,224,0.25), rgba(20,20,26,0.9)); background-size: cover; background-position: center; }
.mini-prof-body { padding: 0 18px 18px; margin-top: -26px; display: flex; flex-direction: column; gap: 8px; }
.mini-prof-ava {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid #16161c; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--accent-bright); overflow: hidden;
}
.mini-prof-ava img { width: 100%; height: 100%; object-fit: cover; }
.mini-prof-name { font-size: var(--text-lg); font-weight: 600; color: var(--ink-strong); }
.mini-prof-name.adm { color: #ff5c5c; }
.mini-prof-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.acc-banner.anim-bg {
  height: 110px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(124,124,224,0.35), rgba(75,196,107,0.22), rgba(232,106,106,0.24), rgba(124,124,224,0.35));
  background-size: 300% 300%;
  animation: bannerFlow 8s ease infinite;
}
@keyframes bannerFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.mini-prof-bio { font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.4; }

/* Password eye toggle & label icons */
.lbl-ico { display: inline-flex; align-items: center; gap: 6px; }
.lbl-ico svg { width: 13px; height: 13px; color: var(--ink-muted); flex: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 40px; }
.pw-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease;
}
.pw-eye:hover { color: var(--ink-strong); background: var(--plane-2); }
.pw-eye.on { color: var(--accent-bright); }
.pw-eye svg { width: 16px; height: 16px; }

/* Keep footer pinned at bottom & prevent tab-switch height jump */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.acc-main { min-height: 460px; }

@media (max-width: 760px) {
  .nav {
    width: calc(100% - 16px);
    top: 8px;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 22px;
  }
  .nav.scrolled {
    padding: 8px 14px;
  }
}

  .section { padding: 64px 0; }
  .hero { padding: 60px 0 52px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 18px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cta-band { padding: 32px 24px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-actions .btn { height: 46px; font-size: var(--text-sm); }
}

@media (max-width: 560px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .foot .links { margin-left: 0; }
  .wrap { padding: 0 16px; }
  .card { padding: 18px; }
}

/* ------------------------------------------------------------- admin panel --
   The panel is a working tool, so the layout favours density over air: tabs
   instead of one long scroll, a toolbar pinned above each table, and bulk
   actions that only appear once something is selected.
   -------------------------------------------------------------------------- */

.adm-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 0 14px;
}
.adm-head h1 { margin: 0 0 4px; font-size: 1.45rem; letter-spacing: -0.02em; }
.adm-head .sub { margin: 0; color: var(--ink-subtle); font-size: var(--text-sm); }

.adm-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 92px;
  padding: 10px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--plane-2);
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}
.adm-stat:hover { border-color: var(--line-3); background: var(--plane-3); transform: translateY(-1px); }
.adm-stat b { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.02em; color: var(--ink-strong); }
.adm-stat span { font-size: var(--text-xs); color: var(--ink-faint); }
.adm-stat.ok b    { color: var(--ok); }
.adm-stat.warn b  { color: var(--warn); }
.adm-stat.bad b   { color: var(--bad); }

.adm-tabs {
  display: flex;
  gap: 4px;
  margin: 8px 0 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab {
  appearance: none;
  border: 0;
  background: none;
  padding: 10px 14px;
  margin-bottom: -1px;
  color: var(--ink-subtle);
  font: 500 var(--text-sm)/1 var(--font);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 140ms ease, border-color 140ms ease;
}
.adm-tab:hover { color: var(--ink); }
.adm-tab.on { color: var(--accent-bright); border-bottom-color: var(--accent); }

.adm-panel { display: none; }
.adm-panel.on { display: block; }
.adm-panel > .card + .card { margin-top: 18px; }

.adm-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.adm-toolbar h2 { margin: 0; margin-right: auto; font-size: 1.02rem; }

/* The site's form styling gives every input and select `width: 100%`, which is
 * right in a .field and wrong in a toolbar: a full-width select on a wrapping
 * flex line breaks onto its own row and takes the whole card, pushing the
 * counter down with it. These two opt out explicitly. */
.adm-search,
.adm-filter {
  appearance: none;
  width: auto;
  min-height: 0;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--plane-2);
  color: var(--ink);
  font: 400 var(--text-sm)/1.4 var(--font);
}
.adm-search { width: 230px; flex: 0 0 auto; }
.adm-filter { flex: 0 0 auto; }
.adm-search:focus,
.adm-filter:focus {
  outline: none;
  border-color: var(--accent-line);
  background: var(--plane-3);
}
.adm-filter { min-width: 0; }
.adm-count { font-size: var(--text-xs); color: var(--ink-faint); white-space: nowrap; }

.adm-bulkbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-size: var(--text-sm);
}
.adm-bulkbar[hidden] { display: none; }
.adm-bulkbar b { color: var(--accent-bright); }

/* Alignment, stated once for the whole panel.
 *
 * Text columns keep a left edge so the eye can scan down them. The narrow state
 * and action columns are centred, header included: a right-aligned "ДЕЙСТВИЯ"
 * over right-aligned buttons looked detached from the table because the header
 * text and the button block had different widths, and a left-aligned pill in a
 * wide column floated in the middle of nowhere.
 *
 * The rule is: header alignment always equals cell alignment, column by column.
 */
.adm-table td, .adm-table th { vertical-align: middle; }
.adm-table thead th { text-align: left; }
.adm-table tbody tr { transition: background-color 120ms ease; }
.adm-table tbody tr:hover { background: var(--plane-2); }
.adm-table tbody tr[hidden] { display: none; }

/* Narrow columns: centred header and centred content. */
.adm-table th.adm-center,
.adm-table td.adm-center { text-align: center; }

/* Same specificity rule as .adm-actions: the table's left default on headers
   beats a bare class, so the checkbox header came out left of its centred box. */
.adm-table th.adm-check,
.adm-table td.adm-check { width: 34px; text-align: center; }
.adm-check input { cursor: pointer; accent-color: var(--accent); }

/* The pill is inline-flex, so centring needs the cell to be a text-align:center
   box; margin auto would fight the flex parent. */
.adm-table td.adm-center .pill { margin: 0 auto; }

/* Spelled with the full selector: `.adm-table thead th` above is more specific
   than a bare `.adm-actions`, so the header stayed left while its cells were
   centred - the exact mismatch this rule exists to prevent. */
.adm-table th.adm-actions,
.adm-table td.adm-actions { text-align: center; white-space: nowrap; width: 1%; }
/* Four actions per row, kept on one line: wrapping five of them turned every row
   into a tall stack, which is worse than the horizontal scroll it was meant to
   fix. The fifth action (rotate) moved into the key cell, so nowrap is safe
   again. */
.adm-table .adm-actions .inline { justify-content: center; gap: 6px; flex-wrap: nowrap; }
.adm-table .adm-actions .btn { padding: 5px 9px; }

/* The rotate control is a form, but it must sit inline with the key text. */
.adm-rotate { display: inline; margin: 0; }
.adm-table .adm-actions .btn { white-space: nowrap; }

/* Belt and braces: the centring class must beat the table's left default on
   headers too, not only on cells. */
.adm-table thead th.adm-center { text-align: center; }

/* A centred last column needs its own breathing room: the shared "last-child
   gets no right padding" rule would push the buttons against the card edge. */
.adm-table thead th.adm-actions:last-child,
.adm-table tbody td.adm-actions:last-child { padding-right: 14px; }
/* One column absorbs the slack.
 *
 * `table { width: 100% }` spreads the leftover width across every column, so a
 * short-content table ends up with five loosely packed columns and no visual
 * rhythm - the header sits over one part of the column and the value over
 * another. Giving the free-text column `width: 100%` makes the other columns
 * shrink to their content, which is what makes a data table look aligned.
 */
.adm-table .adm-fill { width: 100%; }

.adm-notes {
  max-width: 0;               /* let the table decide, not the text */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-xs);
}

/* An empty cell reads as a broken column; an em dash reads as "nothing here". */
.adm-empty { color: var(--ink-faint); }
.adm-file input[type="file"] {
  font-size: var(--text-xs);
  color: var(--ink-subtle);
  max-width: 100%;
}
.adm-stuck { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-stuck form { margin-left: auto; }

/* ESP preview miniature in hero */
.esp-preview {
  background: rgba(16, 16, 20, 0.72);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-float);
  transition: transform 280ms var(--ease-out), border-color 220ms ease;
}
.esp-preview:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
}
.esp-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}
.esp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
.esp-fps { margin-left: auto; color: var(--accent-bright); }
.esp-stage {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(124,124,224,0.08), transparent 65%), #0d0d11;
}
.esp-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}
.esp-fov {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(195, 195, 251, 0.28);
}
.esp-target {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  animation: espFloat 4.2s var(--ease-in-out) infinite;
}
.esp-name, .esp-wpn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-strong);
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.esp-wpn { color: var(--ink-muted); font-size: 10px; }
.esp-box {
  position: relative;
  width: 64px;
  height: 112px;
}
.esp-corners {
  width: 100%;
  height: 100%;
  display: block;
}
.esp-hp {
  position: absolute;
  left: -7px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255,255,255,0.12);
}
.esp-hp span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78%;
  background: var(--ok);
}
.esp-head {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid #e86a6a;
}
.esp-skel {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 2px;
  height: 52px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.45);
}
.esp-loot {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(16, 16, 20, 0.85);
  border: 1px solid rgba(124, 124, 224, 0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
}
.esp-loot-tag { color: var(--accent-bright); }
@keyframes espFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-44%, -53%); }
}

/* 3-column clean grid for "Почему он" (.steps) */
.steps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}
.steps > .step,
.steps > * {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 24px !important;
  border-radius: var(--r-lg) !important;
  background: var(--plane-1) !important;
  border: 1px solid var(--line) !important;
  transition: transform 220ms var(--ease-out), border-color 220ms ease, background-color 220ms ease;
}
.steps > *:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line) !important;
  background: var(--plane-2) !important;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr !important; }
}

/* Compact island when there are no nav-links (e.g. /login, /register) */
.nav:not(:has(.nav-links)) {
  width: fit-content;
  min-width: min(480px, calc(100% - 28px));
}

/* Admin minimalist refresh */
.adm-stat {
  transition: transform 200ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}
.adm-stat:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  background: var(--plane-2);
}
.adm-stat b { color: var(--ink-strong) !important; }
.adm-stat-ico {
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  margin-bottom: 6px;
  display: block;
}

.note:empty { display: none !important; }
.note:not(:empty) {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: noteIn 260ms var(--ease-out);
}
@keyframes noteIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.adm-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 180ms ease, border-color 180ms ease;
}
.adm-tab svg { width: 15px; height: 15px; opacity: 0.8; flex: none; }

.adm-user-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.adm-user-cell svg { width: 14px; height: 14px; color: var(--ink-muted); flex: none; }

.adm-menu { position: relative; display: inline-block; }
.adm-menu summary { list-style: none; cursor: pointer; }
.adm-menu summary::-webkit-details-marker { display: none; }
.adm-menu-btn { display: inline-flex; align-items: center; gap: 6px; }
.adm-menu-btn svg { width: 14px; height: 14px; }
.adm-menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 176px;
  padding: 6px;
  border-radius: var(--r);
  background: rgba(20, 20, 26, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-float);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: menuPop 180ms var(--ease-out);
}
@keyframes menuPop {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.adm-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-sm);
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.adm-menu-item svg { width: 14px; height: 14px; opacity: 0.8; flex: none; }
.adm-menu-item:hover { background: var(--plane-3); color: var(--ink-strong); }
.adm-menu-item.danger { color: var(--bad); }
.adm-menu-item.danger:hover { background: var(--bad-soft); }

/* Account Licenses card redesign */
.card-title-ico {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.card-title-ico svg { width: 18px; height: 18px; color: var(--accent-bright); flex: none; }

.lic-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.lic-item {
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--plane-1);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms var(--ease-out);
}
.lic-item:hover {
  border-color: var(--accent-line);
  background: var(--plane-2);
  transform: translateY(-2px);
}
.lic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lic-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink-strong);
}
.lic-key svg { width: 15px; height: 15px; color: var(--accent-bright); flex: none; }
.lic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.lic-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lic-meta svg { width: 13px; height: 13px; opacity: 0.75; flex: none; }
.lic-meta b { color: var(--ink-strong); font-weight: 500; }

/* Account sidebar layout, avatar, UID, chat */
.acc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.acc-sidebar { padding: 16px; position: sticky; top: 84px; }
.acc-profile-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.acc-ava-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent-bright);
  overflow: hidden;
  cursor: pointer;
  flex: none;
  transition: transform 180ms var(--ease-out);
}
.acc-ava-wrap:hover { transform: scale(1.06); }
.acc-ava-img { width: 100%; height: 100%; object-fit: cover; }
.acc-user-info { display: flex; flex-direction: column; min-width: 0; }
.acc-user-info b { color: var(--ink-strong); font-size: var(--text-base); truncate: ellipsis; overflow: hidden; }
.acc-uid { font-size: 11px; color: var(--accent-bright); }
.acc-nav { display: flex; flex-direction: column; gap: 4px; }
.acc-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.acc-nav-btn svg { width: 15px; height: 15px; flex: none; opacity: 0.8; }
.acc-nav-btn:hover { background: var(--plane-2); color: var(--ink-strong); transform: translateX(2px); }
.acc-nav-btn.on { background: var(--accent-soft); color: var(--accent-bright); }
.acc-panel { display: none; animation: accIn 220ms var(--ease-out); }
.acc-panel.on { display: block; }
@keyframes accIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.acc-chat-box {
  height: 260px;
  overflow-y: auto;
  padding: 12px;
  border-radius: var(--r);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.acc-msg {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--text-sm);
  padding: 6px 10px;
  border-radius: var(--r-xs);
  background: var(--plane-1);
}
.acc-msg-u b { color: var(--accent-bright); }
.acc-msg-u .mono { font-size: 11px; color: var(--ink-faint); }
.acc-msg-t { color: var(--ink); flex: 1; word-break: break-word; }
.acc-msg-ts { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); }
.acc-chat-form { display: flex; gap: 8px; margin-top: 10px; }
.acc-chat-form input { flex: 1; }
@media (max-width: 820px) {
  .acc-layout { grid-template-columns: 1fr; }
  .acc-sidebar { position: static; }
}

/* Banner, Prefixes & Chat v2 */
.acc-banner-card { padding: 0; overflow: hidden; }
.acc-banner {
  height: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transition: height 240ms var(--ease-out);
}
.acc-banner.has-img { height: 110px; border-bottom: 1px solid var(--line); }
.acc-banner-body { padding: 20px; }

.prefix-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prefix-opt {
  padding: 7px 13px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-2);
  background: var(--plane-1);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.prefix-opt:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.prefix-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-bright); }

.acc-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--plane-1);
}
.chat-ava, .chat-ava-ch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--accent-soft);
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.acc-msg-body { flex: 1; min-width: 0; }
.acc-msg-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.chat-name { font-size: var(--text-sm); color: var(--ink-strong); }
.chat-name.adm { color: #ff5c5c; }
.chat-adm-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 92, 92, 0.16);
  color: #ff6b6b;
  border: 1px solid rgba(255, 92, 92, 0.35);
}
.chat-pfx {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--plane-2);
  color: var(--ink);
}

/* Custom sleek scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

/* Unread badge, message animation, prefix gradients & mini-profile modal */
.acc-badge {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.acc-msg-row {
  width: fit-content;
  max-width: 82%;
  background: rgba(255, 255, 255, 0.025) !important;
  padding: 7px 11px !important;
  border-radius: 12px !important;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.acc-msg-row:hover { background: rgba(255, 255, 255, 0.04) !important; }
.acc-msg-row.anim { animation: msgIn 220ms var(--ease-out); }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.prefix-opt[data-prefix*="KING"], .chat-pfx[data-pfx*="KING"] {
  background: linear-gradient(135deg, rgba(255,200,70,0.22), rgba(255,130,50,0.18));
  border-color: rgba(255,200,70,0.4); color: #ffd97d;
}
.prefix-opt[data-prefix*="VIP"], .chat-pfx[data-pfx*="VIP"] {
  background: linear-gradient(135deg, rgba(90,200,255,0.22), rgba(130,110,255,0.22));
  border-color: rgba(120,180,255,0.4); color: #a5d8ff;
}
.prefix-opt[data-prefix*="FLASH"], .chat-pfx[data-pfx*="FLASH"] {
  background: linear-gradient(135deg, rgba(255,230,80,0.2), rgba(255,90,90,0.18));
  border-color: rgba(255,200,80,0.38); color: #ffe066;
}
.prefix-opt[data-prefix*="PEPE"], .chat-pfx[data-pfx*="PEPE"] {
  background: linear-gradient(135deg, rgba(75,196,107,0.22), rgba(40,160,120,0.18));
  border-color: rgba(75,196,107,0.4); color: #7ce897;
}

.mini-prof-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.mini-prof-card {
  width: 300px; border-radius: var(--r-lg);
  background: #16161c; border: 1px solid var(--line-2);
  overflow: hidden; box-shadow: var(--shadow-float);
  animation: menuPop 200ms var(--ease-out);
}
.mini-prof-banner { height: 76px; background: linear-gradient(135deg, rgba(124,124,224,0.25), rgba(20,20,26,0.9)); background-size: cover; background-position: center; }
.mini-prof-body { padding: 0 18px 18px; margin-top: -26px; display: flex; flex-direction: column; gap: 8px; }
.mini-prof-ava {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid #16161c; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--accent-bright); overflow: hidden;
}
.mini-prof-ava img { width: 100%; height: 100%; object-fit: cover; }
.mini-prof-name { font-size: var(--text-lg); font-weight: 600; color: var(--ink-strong); }
.mini-prof-name.adm { color: #ff5c5c; }
.mini-prof-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.acc-banner.anim-bg {
  height: 110px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(124,124,224,0.35), rgba(75,196,107,0.22), rgba(232,106,106,0.24), rgba(124,124,224,0.35));
  background-size: 300% 300%;
  animation: bannerFlow 8s ease infinite;
}
@keyframes bannerFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.mini-prof-bio { font-size: var(--text-sm); color: var(--ink-muted); line-height: 1.4; }

/* Password eye toggle & label icons */
.lbl-ico { display: inline-flex; align-items: center; gap: 6px; }
.lbl-ico svg { width: 13px; height: 13px; color: var(--ink-muted); flex: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 40px; }
.pw-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease;
}
.pw-eye:hover { color: var(--ink-strong); background: var(--plane-2); }
.pw-eye.on { color: var(--accent-bright); }
.pw-eye svg { width: 16px; height: 16px; }

/* Keep footer pinned at bottom & prevent tab-switch height jump */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.acc-main { min-height: 460px; }

@media (max-width: 760px) {
  .adm-head { flex-direction: column; align-items: stretch; }
  .adm-stats { justify-content: space-between; }
  .adm-stat { flex: 1; min-width: 0; padding: 8px 10px; }
  .adm-stat b { font-size: 1.1rem; }
  .adm-search, .adm-filter { flex: 1 1 auto; width: auto; min-width: 0; }
  .adm-actions .inline { flex-direction: column; align-items: stretch; }
  .adm-notes { max-width: 100px; }
}

/* ------------------------------------------------------- issued keys block --
   Freshly issued keys are the one thing an admin must not lose: the plaintext
   exists only in this response. So they get a dedicated block with a textarea
   for one-shot copying of the whole batch and a per-key button for picking one.
   -------------------------------------------------------------------------- */

.adm-issued {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
}
.adm-issued-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: var(--text-sm);
}
.adm-issued-head b { color: var(--accent-bright); }
.adm-issued-head .muted { color: var(--ink-subtle); font-size: var(--text-xs); }
.adm-issued-head .btn { margin-left: auto; }

.adm-issued-keys {
  width: 100%;
  min-height: 74px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--bg-deep);
  color: var(--ink-strong);
  font: 500 var(--text-sm)/1.7 var(--font-mono);
  letter-spacing: 0.03em;
  resize: vertical;
  word-break: break-all;
}
.adm-issued-keys:focus { outline: none; border-color: var(--accent-line); }

.adm-keylist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.adm-keylist .btn { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* The key cell: full string where the vault has it, with a quiet copy affordance
   that does not compete with the row's real actions. */
.adm-keycell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.adm-keytext { font-family: var(--font-mono); letter-spacing: 0.02em; }
.adm-copy {
  appearance: none;
  flex: none;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-faint);
  font: 500 var(--text-xs)/1.5 var(--font);
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
}
.adm-copy:hover { color: var(--accent-bright); border-color: var(--accent-line); background: var(--accent-soft); }
.adm-copy.done { color: var(--ok); border-color: rgba(75, 196, 107, 0.4); background: var(--ok-soft); }

/* Row-level copy feedback for the per-key buttons in the fresh block. */
.adm-keylist .btn.done { color: var(--ok); border-color: rgba(75, 196, 107, 0.4); }
