:root {
  color-scheme: dark;
  --bg: #0b0614;
  --panel: #1a1028;
  --card: #231536;
  --line: rgba(196, 120, 255, .32);
  --text: #f4ecff;
  --muted: #b7a4d4;
  --accent: #d946ef;
  --accent-ink: #1a0624;
  --gold: #f0abfc;
  --danger: #fb7185;
  --neon: #c084fc;
  --cyan: #22d3ee;
  --btn: 48px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%; color: var(--text); color-scheme: dark;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(124, 58, 237, .38), transparent 52%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(217, 70, 239, .16), transparent 50%),
    radial-gradient(ellipse 45% 35% at 100% 70%, rgba(34, 211, 238, .12), transparent 48%),
    var(--bg);
}
::selection { background: rgba(217, 70, 239, .45); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b0614; }
::-webkit-scrollbar-thumb {
  background: #6b21a8; border-radius: 999px; border: 2px solid #0b0614;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
input, textarea, select, button { color-scheme: dark; font: inherit; }
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px; margin-right: 2px; cursor: pointer;
  background:
    linear-gradient(45deg, transparent 42%, var(--gold) 42%, var(--gold) 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, var(--gold) 42%, var(--gold) 58%, transparent 58%);
  filter: drop-shadow(0 0 6px rgba(240, 171, 252, .6));
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 9999s ease-out;
  box-shadow: 0 0 0 1000px #140a22 inset;
}
body { font-family: Manrope, Segoe UI, system-ui, sans-serif; overflow-x: hidden; }
a { color: #e9d5ff; text-decoration: none; }
img { max-width: 100%; display: block; }
.fx { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora {
  position: absolute; inset: -18%;
  background:
    radial-gradient(ellipse 42% 36% at 12% 18%, rgba(217,70,239,.32), transparent 62%),
    radial-gradient(ellipse 38% 32% at 88% 12%, rgba(34,211,238,.2), transparent 60%),
    radial-gradient(ellipse 48% 40% at 72% 78%, rgba(168,85,247,.26), transparent 62%),
    radial-gradient(ellipse 40% 34% at 22% 82%, rgba(244,114,182,.18), transparent 58%);
  animation: auroraShift 24s ease-in-out infinite;
}
.noise {
  position: absolute; inset: 0; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.stars, .stars2 {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
}
.stars {
  background-image:
    radial-gradient(1px 1px at 8% 12%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 18% 28%, rgba(240,171,252,.8), transparent),
    radial-gradient(1px 1px at 27% 8%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 36% 42%, rgba(34,211,238,.7), transparent),
    radial-gradient(1px 1px at 48% 16%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.5px 1.5px at 61% 33%, rgba(240,171,252,.75), transparent),
    radial-gradient(1px 1px at 73% 11%, rgba(255,255,255,.65), transparent),
    radial-gradient(2px 2px at 84% 24%, rgba(217,70,239,.7), transparent),
    radial-gradient(1px 1px at 92% 38%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 6% 58%, rgba(240,171,252,.7), transparent),
    radial-gradient(1.5px 1.5px at 22% 72%, rgba(255,255,255,.75), transparent),
    radial-gradient(1px 1px at 39% 64%, rgba(34,211,238,.65), transparent),
    radial-gradient(2px 2px at 55% 81%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 68% 58%, rgba(240,171,252,.7), transparent),
    radial-gradient(1.5px 1.5px at 81% 76%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 94% 62%, rgba(168,85,247,.8), transparent),
    radial-gradient(1px 1px at 14% 90%, rgba(255,255,255,.6), transparent),
    radial-gradient(2px 2px at 44% 94%, rgba(34,211,238,.55), transparent),
    radial-gradient(1px 1px at 77% 92%, rgba(240,171,252,.65), transparent);
  animation: twinkle 5.5s ease-in-out infinite;
}
.stars2 {
  background-image:
    radial-gradient(1px 1px at 11% 44%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 31% 19%, rgba(240,171,252,.5), transparent),
    radial-gradient(1.5px 1.5px at 52% 47%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 66% 8%, rgba(34,211,238,.5), transparent),
    radial-gradient(1px 1px at 88% 51%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 4% 34%, rgba(217,70,239,.45), transparent),
    radial-gradient(1px 1px at 42% 6%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 59% 91%, rgba(240,171,252,.5), transparent),
    radial-gradient(1.5px 1.5px at 96% 86%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 25% 51%, rgba(34,211,238,.45), transparent);
  animation: twinkle 7.5s ease-in-out infinite reverse;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(8px);
  animation: drift 18s ease-in-out infinite;
}
.o1 { width: 420px; height: 420px; left: -110px; top: 4%; background: radial-gradient(circle, rgba(217,70,239,.5), transparent 70%); }
.o2 { width: 340px; height: 340px; right: -90px; top: 36%; background: radial-gradient(circle, rgba(34,211,238,.32), transparent 70%); animation-duration: 22s; animation-direction: reverse; }
.o3 { width: 280px; height: 280px; left: 36%; bottom: -70px; background: radial-gradient(circle, rgba(168,85,247,.42), transparent 70%); animation-duration: 16s; }
.o4 { width: 190px; height: 190px; right: 16%; top: 6%; background: radial-gradient(circle, rgba(244,114,182,.32), transparent 70%); animation-duration: 14s; }
.o5 { width: 260px; height: 260px; left: 8%; top: 58%; background: radial-gradient(circle, rgba(99,102,241,.28), transparent 70%); animation-duration: 20s; animation-delay: -6s; }
.o6 { width: 180px; height: 180px; right: 28%; bottom: 12%; background: radial-gradient(circle, rgba(34,211,238,.22), transparent 70%); animation-duration: 17s; animation-direction: reverse; }
.pillar {
  position: absolute; width: 180px; height: 140%; top: -20%;
  background: linear-gradient(180deg, transparent, rgba(217,70,239,.12), rgba(34,211,238,.08), transparent);
  filter: blur(18px); opacity: .7;
  animation: pillarSway 16s ease-in-out infinite;
}
.pl1 { left: 6%; }
.pl2 { right: 8%; animation-direction: reverse; animation-duration: 21s; }
.halo {
  position: absolute; border-radius: 50%; border: 1px solid rgba(240,171,252,.2);
  box-shadow: 0 0 28px rgba(217,70,239,.12), inset 0 0 24px rgba(34,211,238,.08);
  animation: haloPulse 12s ease-in-out infinite;
}
.h1 { width: 280px; height: 280px; left: -60px; bottom: 8%; }
.h2 { width: 200px; height: 200px; right: 4%; top: 18%; animation-duration: 15s; animation-delay: -4s; }
.beam {
  position: absolute; height: 2px; width: 50%; opacity: .4;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--accent), transparent);
  animation: sweep 9s linear infinite;
}
.b1 { top: 18%; left: -20%; }
.b2 { top: 62%; left: -20%; animation-duration: 13s; animation-delay: -4s; }
.b3 { top: 40%; left: -30%; width: 60%; opacity: .22; animation-duration: 18s; animation-delay: -8s; }
.comet {
  position: absolute; left: 0; top: 0; width: 320px; height: 36px;
  opacity: 0; will-change: transform;
  mix-blend-mode: screen; z-index: 2;
}
.comet-head {
  position: absolute; right: 0; top: 50%; width: 18px; height: 18px;
  margin: -9px 0 0; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 28%, #f0abfc 48%, #22d3ee 68%, transparent 78%);
  box-shadow:
    0 0 8px 3px #fff,
    0 0 22px 8px rgba(240,171,252,.95),
    0 0 40px 14px rgba(217,70,239,.7),
    0 0 70px 22px rgba(34,211,238,.35);
}
.comet-head b {
  position: absolute; inset: 4px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 4px #fff;
}
.comet-tail {
  position: absolute; right: 10px; top: 50%; width: 300px; height: 10px;
  margin-top: -5px;
  background: linear-gradient(90deg,
    rgba(124,58,237,0) 0%,
    rgba(217,70,239,.15) 18%,
    rgba(217,70,239,.55) 48%,
    rgba(34,211,238,.9) 82%,
    #fff 100%);
  clip-path: polygon(0 48%, 72% 22%, 100% 0, 100% 100%, 72% 78%, 0 52%);
  filter: drop-shadow(0 0 6px rgba(240,171,252,.8));
}
.comet-tail.soft {
  height: 22px; margin-top: -11px; opacity: .55; filter: blur(7px);
  clip-path: none; border-radius: 40px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(217,70,239,.25) 30%,
    rgba(34,211,238,.55) 70%,
    rgba(255,255,255,.4) 100%);
}
.comet-wake {
  position: absolute; right: 16px; top: 50%; width: 340px; height: 28px;
  margin-top: -14px; opacity: .35; filter: blur(10px);
  background: linear-gradient(90deg, transparent, rgba(217,70,239,.45), rgba(34,211,238,.5), transparent);
}
.c1 { animation: cometA 12s linear infinite; }
.c2 { animation: cometB 16s linear infinite; animation-delay: 4.5s; }
.c2 .comet-head {
  background: radial-gradient(circle, #fff 0 28%, #a5f3fc 48%, #22d3ee 68%, transparent 78%);
  box-shadow:
    0 0 8px 3px #fff,
    0 0 22px 8px rgba(34,211,238,.95),
    0 0 40px 14px rgba(56,189,248,.65),
    0 0 70px 22px rgba(217,70,239,.28);
}
.c3 { animation: cometC 10s linear infinite; animation-delay: 8s; width: 240px; }
.c3 .comet-tail, .c3 .comet-wake { width: 220px; }
.comet-tracers { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.tracer-dot, .tracer-streak {
  position: absolute; pointer-events: none; mix-blend-mode: screen;
}
.tracer-dot {
  width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #f0abfc, 0 0 16px #22d3ee, 0 0 24px rgba(217,70,239,.8);
  animation: tracerDotFade .7s ease-out forwards;
}
.tracer-streak {
  height: 4px; width: 54px; margin: -2px 0 0 -54px; border-radius: 99px;
  transform-origin: 100% 50%;
  background: linear-gradient(90deg, transparent, rgba(217,70,239,.45), #f0abfc 70%, #fff);
  box-shadow: 0 0 12px rgba(34,211,238,.8), 0 0 18px rgba(217,70,239,.45);
  animation: tracerFade .95s ease-out forwards;
}
.tracer-streak.cyan {
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.5), #67e8f9, #fff);
}
@keyframes tracerDotFade {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(.12); }
}
@keyframes tracerFade {
  0% { opacity: .95; transform: rotate(var(--rot, -24deg)) scaleX(1); }
  100% { opacity: 0; transform: rotate(var(--rot, -24deg)) scaleX(.2); }
}
@keyframes cometA {
  0% { transform: translate3d(-22vw, 4vh, 0) rotate(-24deg); opacity: 0; }
  4% { opacity: 1; }
  46% { transform: translate3d(108vw, 58vh, 0) rotate(-24deg); opacity: 1; }
  52% { transform: translate3d(114vw, 64vh, 0) rotate(-24deg); opacity: 0; }
  100% { transform: translate3d(114vw, 64vh, 0) rotate(-24deg); opacity: 0; }
}
@keyframes cometB {
  0%, 8% { transform: translate3d(112vw, 10vh, 0) rotate(158deg); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translate3d(-24vw, 68vh, 0) rotate(158deg); opacity: 1; }
  56%, 100% { transform: translate3d(-28vw, 74vh, 0) rotate(158deg); opacity: 0; }
}
@keyframes cometC {
  0%, 18% { transform: translate3d(-20vw, 38vh, 0) rotate(-18deg); opacity: 0; }
  22% { opacity: 1; }
  48% { transform: translate3d(110vw, 18vh, 0) rotate(-18deg); opacity: 1; }
  54%, 100% { transform: translate3d(116vw, 14vh, 0) rotate(-18deg); opacity: 0; }
}
.spark {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px #f0abfc, 0 0 22px var(--accent);
  animation: spark 7s linear infinite;
}
.sp1 { left: 12%; top: 18%; animation-delay: -1s; }
.sp2 { left: 72%; top: 28%; animation-delay: -3s; }
.sp3 { left: 28%; top: 72%; animation-delay: -5s; }
.sp4 { left: 88%; top: 62%; animation-delay: -2s; }
.sp5 { left: 48%; top: 12%; animation-delay: -4.5s; }
.sp6 { left: 8%; top: 44%; width: 4px; height: 4px; animation-delay: -2.8s; animation-duration: 9s; }
.sp7 { left: 63%; top: 78%; animation-delay: -6s; animation-duration: 8s; }
.sp8 { left: 91%; top: 14%; width: 4px; height: 4px; animation-delay: -.8s; }
.sp9 { left: 41%; top: 52%; animation-delay: -3.4s; animation-duration: 10s; }
.sp10 { left: 16%; top: 84%; width: 5px; height: 5px; animation-delay: -7s; }
.grid-fx {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(rgba(168,85,247,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.13) 1px, transparent 1px);
  background-size: 52px 52px;
  animation: gridMove 28s linear infinite;
  mask-image: radial-gradient(circle at 50% 40%, #000 22%, transparent 88%);
}
.grid-fx-fine {
  background-size: 18px 18px;
  background-image:
    linear-gradient(rgba(34,211,238,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.06) 1px, transparent 1px);
  animation-duration: 42s; animation-direction: reverse;
  opacity: .7;
}
.haze {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(88, 28, 135, .22) 55%, rgba(11, 6, 20, .55));
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
}
@keyframes sweep {
  from { transform: translateX(0); }
  to { transform: translateX(80vw); }
}
@keyframes spark {
  0%, 100% { transform: translate(0, 0) scale(.7); opacity: .25; }
  50% { transform: translate(18px, -28px) scale(1.35); opacity: 1; }
}
@keyframes gridMove {
  from { transform: translateY(0); }
  to { transform: translateY(52px); }
}
@keyframes auroraShift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, 4%) scale(1.08); }
}
@keyframes twinkle {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
@keyframes pillarSway {
  0%, 100% { transform: translateX(0) rotate(8deg); }
  50% { transform: translateX(28px) rotate(-6deg); }
}
@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: .35; }
  50% { transform: scale(1.18); opacity: .7; }
}
.shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 32px; }
body.gated { overflow: hidden; }
body.gated .shell { opacity: 0; pointer-events: none; }
body.entered .shell { opacity: 1; pointer-events: auto; }
html.skip-gate .gate,
html.login-page .gate { display: none !important; }
html.skip-gate body,
html.login-page body { overflow: auto; }
html.skip-gate .shell,
html.login-page .shell,
body.entered .shell { opacity: 1; pointer-events: auto; transform: none; }
.gate {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #2a1048, #07040e 62%);
}
.gate-brand {
  position: absolute; top: 7vh; left: 0; right: 0;
  justify-content: center; font-size: clamp(26px, 5vw, 44px);
}
.gate-brand span { height: 34px; font-size: 16px; padding: 0 12px; }
.gate-hint {
  position: absolute; bottom: 10vh; left: 0; right: 0; text-align: center;
  color: #f5e8ff; font-weight: 800; font-size: 16px; letter-spacing: .04em;
  text-shadow: 0 0 18px rgba(217,70,239,.8);
  animation: hintPulse 1.6s ease-in-out infinite;
}
.flag {
  width: min(460px, 86vw); height: min(276px, 36vh); padding: 0; border: 0;
  display: grid; grid-template-rows: 1fr 1fr 1fr; border-radius: 22px; overflow: hidden;
  cursor: pointer; background: transparent;
  box-shadow: 0 0 0 3px rgba(240,171,252,.35), 0 0 80px rgba(217,70,239,.45);
  animation: flagIn .7s ease both;
}
.flag:hover { transform: scale(1.03); box-shadow: 0 0 0 3px #f0abfc, 0 0 110px rgba(217,70,239,.7); }
.flag span { display: block; width: 100%; height: 100%; transition: transform 1.05s cubic-bezier(.15,.8,.2,1); }
.s-red { background: #AE1C28; }
.s-white { background: #fff; }
.s-blue { background: #21468B; }
.gate.parting { background: transparent; transition: background .7s ease; }
.gate.parting .flag { overflow: visible; box-shadow: none; transform: none; pointer-events: none; }
.gate.parting .gate-hint, .gate.parting .gate-brand { opacity: 0; transition: opacity .25s ease; }
.gate.parting .s-red { transform: translate3d(-42vw, -78vh, 0) rotate(-18deg); }
.gate.parting .s-white { transform: translate3d(92vw, 8vh, 0) rotate(8deg); }
.gate.parting .s-blue { transform: translate3d(-18vw, 82vh, 0) rotate(14deg); }
.gate.out { opacity: 0; pointer-events: none; transition: opacity .55s ease .1s; }
@keyframes flagIn {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: none; }
}
@keyframes hintPulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
html.login-page .top { background: transparent; backdrop-filter: none; }
html.login-page .nav { display: none; }
.brand { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); }
.neon-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 800; letter-spacing: .04em; line-height: 1;
  white-space: nowrap; color: #ffe6ff;
  text-shadow: 0 0 6px #f0abfc, 0 0 18px #d946ef, 0 0 32px rgba(124,58,237,.9);
}
.neon-name span {
  display: inline-flex; align-items: center; height: 26px; padding: 0 8px;
  border-radius: 8px; font-size: 13px; letter-spacing: .14em;
  color: #ecfeff; background: rgba(34,211,238,.14);
  border: 1px solid rgba(34,211,238,.5);
  box-shadow: 0 0 14px rgba(34,211,238,.28);
  text-shadow: 0 0 8px #22d3ee;
}
.mark {
  width: 42px; height: 42px; border-radius: 12px; overflow: hidden;
  display: grid; grid-template-rows: 1fr 1fr 1fr; flex-shrink: 0;
  box-shadow: 0 0 16px rgba(217,70,239,.5);
}
.mark i { display: block; font-style: normal; }
.mark i:nth-child(1) { background: #AE1C28; }
.mark i:nth-child(2) { background: #fff; }
.mark i:nth-child(3) { background: #21468B; }
.nav { display: flex; gap: 8px; }
.nav a {
  min-height: var(--btn); display: inline-flex; align-items: center;
  padding: 0 16px; border-radius: 12px; color: var(--muted); font-weight: 700;
  background: var(--panel); border: 1px solid var(--line);
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.nav a.on, .nav a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 0 22px rgba(217,70,239,.45); }
.scan-ind {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  margin: 12px 0; padding: 0 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.scan-ind .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.scan-ind.run { color: var(--cyan); border-color: rgba(34,211,238,.5); box-shadow: 0 0 18px rgba(34,211,238,.2); }
.scan-ind.run .dot { background: var(--cyan); animation: pulse 1.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,.5); }
  100% { box-shadow: 0 0 0 10px rgba(34,211,238,0); }
}
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; display: grid; gap: 14px;
  box-shadow: 0 0 28px rgba(124, 58, 237, .12);
}
.panel-row { display: grid; gap: 8px; }
.field-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg a, .tabs a, .presets a, .pager a, .pager span {
  min-height: var(--btn); display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-weight: 700; font-size: 14px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.seg a.on, .tabs a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 0 20px rgba(217,70,239,.4); }
.seg a:hover, .tabs a:hover, .presets a:hover, .pager a:hover { border-color: var(--accent); }
.bar { display: grid; grid-template-columns: 140px 140px 1fr auto; gap: 10px; align-items: end; }
.bar label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.bar label.grow { min-width: 0; }
.bar input {
  width: 100%; min-height: var(--btn); border-radius: 12px; border: 1px solid var(--line);
  background: #140a22; color: var(--text); padding: 0 12px; font: inherit;
}
.bar input:focus, .auth-form input:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,70,239,.22), 0 0 18px rgba(34,211,238,.18);
}
.numbox {
  display: grid; grid-template-columns: 1fr 30px; align-items: stretch;
  min-height: var(--btn); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #140a22;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.numbox:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,70,239,.22), 0 0 18px rgba(34,211,238,.18);
}
.bar .numbox input, .numbox input {
  min-height: 46px; border: 0; background: transparent; box-shadow: none;
  padding-right: 8px; outline: none;
}
.bar .numbox input:focus, .numbox input:focus { border: 0; box-shadow: none; }
.numbox-steps {
  display: grid; grid-template-rows: 1fr 1fr; border-left: 1px solid var(--line);
}
.bar .numbox button, .numbox button {
  min-height: 0; height: auto; padding: 0; border: 0; border-radius: 0;
  background: rgba(217,70,239,.12); color: var(--gold); box-shadow: none;
  cursor: pointer; position: relative; display: grid; place-items: center;
  transition: background .15s ease;
}
.bar .numbox button:hover, .numbox button:hover {
  background: var(--accent); filter: none; transform: none;
  box-shadow: 0 0 12px rgba(217,70,239,.45);
}
.bar .numbox button:active, .numbox button:active { transform: none; background: #e879f9; }
.numbox-up { border-bottom: 1px solid var(--line); }
.numbox-up::before, .numbox-down::before {
  content: ""; width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
}
.numbox-up::before { border-bottom: 6px solid var(--gold); }
.numbox-down::before { border-top: 6px solid var(--gold); }
.numbox button:hover::before { border-bottom-color: var(--accent-ink); border-top-color: var(--accent-ink); }
.bar button, .cat-actions button, .btn, .btns a, .btns button, .auth-form button {
  min-height: var(--btn); padding: 0 18px; border-radius: 12px; border: 0;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 800;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(217,70,239,.35);
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.bar button:hover, .cat-actions button:hover, .btn:hover, .auth-form button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.bar button:active, .cat-actions button:active, .btn:active, .auth-form button:active { transform: translateY(0); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cats { margin-top: 12px; }
.cats-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cat-toggle {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 12px 16px; background: var(--card);
}
.cat-toggle::-webkit-details-marker, .cat-toggle::marker { display: none; content: none; }
.cat-toggle:hover { background: #2b1844; }
.cat-toggle-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.cat-toggle-text b { font-size: 16px; }
.cat-toggle-text small { color: var(--muted); font-size: 13px; }
.cat-count {
  min-height: 36px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center;
  background: rgba(217,70,239,.16); color: var(--accent); font-weight: 800; white-space: nowrap;
}
.chev {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: #140a22; color: var(--gold); flex-shrink: 0;
  display: grid; place-items: center;
  box-shadow: 0 0 12px rgba(217,70,239,.16);
  transition: transform .22s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.chev svg { width: 18px; height: 18px; display: block; }
.cat-toggle:hover .chev {
  border-color: var(--accent); box-shadow: 0 0 16px rgba(217,70,239,.35);
}
details[open] .chev {
  transform: rotate(180deg);
  background: rgba(217,70,239,.16); border-color: var(--accent); color: #fff;
}
.cat-body { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 12px 0; }
.cat-grid label {
  min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer;
}
.cat-grid label:hover { border-color: var(--accent); }
.cat-grid input { width: 18px; height: 18px; accent-color: var(--accent); }
.cat-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-actions .ghost, .btn.ghost, .btns a:not(.primary) {
  background: transparent; color: var(--text); border: 1px solid var(--line);
  box-shadow: none;
}
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0 8px; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 0 20px rgba(124, 58, 237, .1); animation: rise .45s ease both; }
.metric .k { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric .v { font-size: 26px; font-weight: 800; margin-top: 6px; color: var(--text); }
.wrap { padding: 8px 0 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.product {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  animation: rise .45s ease both;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.product:hover { border-color: var(--accent); box-shadow: 0 0 28px rgba(217,70,239,.22); transform: translateY(-3px); }
.thumb { height: 210px; background: #140a22; position: relative; color: inherit; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .empty { height: 100%; display: grid; place-items: center; color: var(--muted); }
.badge {
  position: absolute; left: 10px; top: 10px; background: var(--accent); color: var(--accent-ink);
  padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
}
.badge.best { background: var(--gold); color: #2a210f; }
.badge.gone { background: var(--danger); color: #fff; }
.body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.title { color: var(--text); font-weight: 800; line-height: 1.35; min-height: 2.6em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.chip.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.stats, .posted, .hint, .muted { color: var(--muted); font-size: 13px; }
.why { color: var(--accent); font-size: 13px; }
.price { font-size: 24px; font-weight: 800; margin-top: auto; }
.card-btns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px;
  align-items: stretch;
}
.card-btns .btn {
  width: 100%; height: 44px; min-height: 44px; max-height: 44px;
  padding: 0 8px; border-radius: 12px; font-size: 12px; font-weight: 800;
  line-height: 1; white-space: nowrap; gap: 6px;
  border: 1px solid var(--accent);
  box-sizing: border-box;
}
.card-btns .btn .ico { width: 15px; height: 15px; flex-shrink: 0; display: block; }
.card-btns .btn .ico path { fill: currentColor; }
.card-btns .ghost .ico path { fill: none; }
.card-btns .btn.ghost {
  background: rgba(217,70,239,.1); color: var(--text); border-color: var(--line);
  box-shadow: 0 0 12px rgba(124, 58, 237, .12);
}
.card-btns .btn.on { background: var(--gold); color: #2a210f; border-color: var(--gold); box-shadow: 0 0 16px rgba(240,171,252,.35); }
.card-btns .btn:hover { transform: none; filter: brightness(1.08); }
.btn.on { background: var(--gold); color: #2a210f; }
.pager { display: flex; gap: 8px; margin-top: 18px; }
.empty-box { padding: 48px 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }
.item { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.gallery { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.gallery .main { width: 100%; height: 460px; object-fit: contain; background: #140a22; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.thumbs img.on { border-color: var(--accent); }
.info { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.info h1 { margin: 0 0 8px; font-size: 26px; }
.h3-row { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; }
.h3-row h3, h2 { margin: 0; }
h2 { margin: 28px 0 10px; font-size: 22px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px; margin: 16px 0; color: var(--muted); }
.kv b { color: var(--text); }
.desc { white-space: pre-wrap; line-height: 1.55; }
.chart { width: 100%; height: 180px; margin-top: 12px; background: #140a22; border-radius: 12px; }
.chart.watch-chart { height: 240px; }
.watch {
  margin-top: 22px; padding: 18px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 0 28px rgba(124, 58, 237, .12);
}
.watch h2, .watch h3 { margin: 0; }
.watch h3 { margin: 20px 0 10px; }
.legend { display: flex; gap: 14px; margin: 8px 0 4px; font-weight: 700; font-size: 13px; }
.leg.views { color: var(--cyan); }
.leg.favs { color: var(--gold); }
.period-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.period-grid .metric .v { font-size: 22px; }
.watch-table { margin-top: 8px; }
.watch-table td:nth-child(3), .watch-table td:nth-child(5) { color: var(--cyan); font-weight: 700; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btns a.primary { background: var(--accent); color: var(--accent-ink); border: 0; }
.back { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-weight: 700; }
.back:hover { color: var(--accent); }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
th { color: var(--muted); font-size: 12px; }
.mini { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.rank { color: var(--accent); font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth {
  max-width: 460px; margin: 48px auto; padding: 28px 24px 24px;
  background: linear-gradient(180deg, rgba(42,16,72,.92), var(--panel));
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(240,171,252,.12), 0 0 48px rgba(124, 58, 237, .28);
  animation: rise .5s ease both;
  position: relative; overflow: hidden;
}
.auth-flag {
  display: grid; grid-template-columns: 1fr 1fr 1fr; height: 6px;
  border-radius: 999px; overflow: hidden; margin-bottom: 18px;
  box-shadow: 0 0 16px rgba(217,70,239,.4);
}
.auth-flag i { display: block; }
.auth-flag i:nth-child(1) { background: #AE1C28; }
.auth-flag i:nth-child(2) { background: #fff; }
.auth-flag i:nth-child(3) { background: #21468B; }
.auth-logo { justify-content: center; margin: 0 auto 14px; font-size: 22px; }
.auth h1 { margin: 0 0 10px; font-size: 26px; text-align: center; }
.auth .hint { text-align: center; }
.auth-bot { width: 100%; }
.plan-list { display: grid; gap: 8px; margin: 16px 0 4px; }
.plan-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.plan-card:hover { border-color: var(--accent); box-shadow: 0 0 16px rgba(217,70,239,.18); }
.plan-card span { color: var(--cyan); font-weight: 800; }
.auth-form { display: grid; gap: 12px; margin-top: 16px; }
.auth-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.auth-form input {
  width: 100%; min-height: var(--btn); border-radius: 12px; border: 1px solid var(--line);
  background: #140a22; color: var(--text); padding: 0 12px; font: inherit; letter-spacing: .02em;
}
.auth-form button { width: 100%; }
.auth-err { color: var(--danger); font-weight: 700; margin: 0; text-align: center; }
.profile { max-width: 720px; margin: 18px auto 0; }
.profile h1 { margin: 0 0 16px; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.profile-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  box-shadow: 0 0 20px rgba(124, 58, 237, .12);
  animation: rise .45s ease both;
}
.profile-card .k { color: var(--muted); font-size: 13px; font-weight: 700; }
.profile-card .v { font-size: 22px; font-weight: 800; margin-top: 6px; word-break: break-all; }
.profile-card .hint { color: var(--muted); margin-top: 6px; font-size: 13px; }
.foot { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; padding-top: 8px; }
.foot a { color: var(--muted); }
@media (max-width: 800px) {
  .shell { width: calc(100% - 20px); }
  .brand, .item, .split, .bar { grid-template-columns: 1fr; display: grid; }
  .brand { gap: 10px; }
  .nav { width: 100%; }
  .nav a { flex: 1; justify-content: center; }
  .gallery .main { height: 260px; }
  .logo .neon-name { font-size: 16px; gap: 6px; }
  .logo .neon-name span { height: 22px; font-size: 11px; padding: 0 6px; }
}
html.neon-cursor, html.neon-cursor * { cursor: none !important; }
html.neon-cursor.cursor-text, html.neon-cursor.cursor-text * { cursor: text !important; }
.cursor {
  position: fixed; inset: 0; z-index: 140; pointer-events: none;
  opacity: 0; transition: opacity .18s ease;
}
.cursor.on { opacity: 1; }
.cursor.is-text { opacity: 0; }
.cursor-core {
  position: absolute; left: 0; top: 0; width: 14px; height: 18px;
  will-change: transform;
}
.cursor-core i {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(165deg, #fff 0%, #f0abfc 42%, #d946ef 100%);
  clip-path: polygon(0 0, 0 100%, 34% 72%, 62% 100%, 76% 92%, 50% 62%, 100% 58%);
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #f0abfc) drop-shadow(0 0 18px #d946ef);
  transform-origin: 2px 2px;
  transition: transform .12s ease, filter .18s ease;
}
.cursor-aura {
  position: absolute; left: -18px; top: -18px; width: 36px; height: 36px;
  will-change: transform;
}
.cursor-aura i {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  border: 1.5px solid rgba(240, 171, 252, .75);
  box-shadow: 0 0 16px rgba(217, 70, 239, .45), inset 0 0 10px rgba(34, 211, 238, .18);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cursor.is-hover .cursor-aura i {
  transform: scale(1.55);
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(34, 211, 238, .55), inset 0 0 12px rgba(217, 70, 239, .25);
}
.cursor.is-hover .cursor-core i {
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 14px #22d3ee) drop-shadow(0 0 22px #d946ef);
}
.cursor.is-down .cursor-core i { transform: scale(.72); }
.cursor.is-down .cursor-aura i {
  transform: scale(1.2);
  border-color: #fff;
  box-shadow: 0 0 28px rgba(240, 171, 252, .8), 0 0 40px rgba(34, 211, 238, .4);
}
.cursor-spark {
  position: fixed; z-index: 139; width: 5px; height: 5px; margin: -2px 0 0 -2px;
  border-radius: 50%; pointer-events: none;
  background: #f0abfc;
  box-shadow: 0 0 8px #f0abfc, 0 0 14px #d946ef;
  animation: cursorSpark .55s ease-out forwards;
}
@keyframes cursorSpark {
  0% { opacity: .95; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); }
}
@media (prefers-reduced-motion: reduce) {
  .orb, .beam, .spark, .grid-fx, .flag, .gate-hint, .product, .metric, .auth, .profile-card, .cursor-spark,
  .aurora, .stars, .stars2, .pillar, .halo, .comet, .tracer-dot, .tracer-streak { animation: none !important; }
  .product:hover, .btn:hover, .bar button:hover { transform: none; }
  .cursor-aura i { transition: none; }
}
