/* NYXO PERFORMANCE SKIN
   Shared across every page. Keeps the technical look while removing the expensive
   RGB/blur/animation stack that can cause jank on phones and low-power laptops.
*/

/* Reduce the number of animated paint layers. */
.nx-aura__bloom,
.nx-aura__beam,
.nx-aura__hatch,
.nx-aura__grain,
.nx-spotlight,
.nx-rosette,
.nx-aura__medallion,
.nx-aura__arabesque,
.nx-aura__lattice {
  display: none !important;
}

/* The network canvas stays, but is deliberately quiet and cheap to composite. */
.nx-aura__canvas {
  opacity: .34 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}
.nx-aura__lines {
  opacity: .16 !important;
  animation: none !important;
}
.nx-aura__circuit,
.nx-aura__hatch,
.nx-aura__grain {
  animation: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Static technical edge instead of RGB spectrum cycling. */
.nx-frame,
.nx-rule,
#pb_root .hero_panel::before,
#pb_root .hero_panel::after {
  animation: none !important;
}
.nx-frame {
  background: linear-gradient(90deg, rgba(56,225,246,.35), transparent 34%, transparent 66%, rgba(154,124,255,.25)) !important;
}

/* Preserve one-shot entrance transitions, remove looping decorative motion. */
.nx-topbar__brand img,
.nx-brand img,
.nx-guide-btn,
.nx-guide-btn::after,
#pb_root .btn-main,
#pb_root .primary_btn,
#pb_root .hero_flow_arrow,
#pb_root .status_dot,
#pb_root .live_dot {
  animation: none !important;
  filter: none !important;
}

/* Blur is one of the most expensive effects on mobile GPUs. */
*, *::before, *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
:where(.nx-aura, .nx-guide__dialog, .auth_modal, .modal, .x-top, #pb_topbar, .pub-top) {
  filter: none !important;
}

/* Keep RGB as accents, not a moving full-surface effect. */
:where(.gradient_text, .hero_title, .brand, .x-brand, .nx-logo, .nx-topbar__brand) {
  animation: none !important;
  text-shadow: none !important;
}

/* Do not run reveal/tilt/ripple flourishes on touch devices. */
@media (hover: none), (pointer: coarse) {
  .nyxo-ripple,
  .nyxo-page-curtain,
  .np-project::before,
  .np-project::after {
    display: none !important;
  }
  .np-project {
    transform: none !important;
  }
}

/* User/system reduced-motion remains the hard stop. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Ambient/circuit layers are shared by public, account, projects and admin pages. */
html {
  color-scheme: dark !important;
  min-height: 100% !important;
  background:
    radial-gradient(ellipse 70rem 34rem at 12% -12%, rgba(35, 124, 154, .12), transparent 66%),
    radial-gradient(ellipse 62rem 32rem at 92% 4%, rgba(74, 60, 138, .09), transparent 64%),
    linear-gradient(145deg, #071018 0%, #050a10 72%) !important;
}
body {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  background:
    radial-gradient(ellipse 70rem 34rem at 12% -12%, rgba(35, 124, 154, .12), transparent 66%),
    radial-gradient(ellipse 62rem 32rem at 92% 4%, rgba(74, 60, 138, .09), transparent 64%),
    linear-gradient(145deg, #071018 0%, #050a10 72%) !important;
  background-color: #050a10 !important;
  background-attachment: scroll !important;
}
body::before,
body:has(#pb_root)::before {
  background-image: linear-gradient(90deg, rgba(56,225,246,.035) 1px, transparent 1px), linear-gradient(0deg, rgba(154,124,255,.025) 1px, transparent 1px) !important;
  background-size: 96px 96px !important;
  animation: none !important;
}
body::after {
  animation: none !important;
}
body::before {
  opacity: .045 !important;
  background-image: linear-gradient(90deg, rgba(88,214,232,.035) 1px, transparent 1px), linear-gradient(0deg, rgba(165,243,252,.025) 1px, transparent 1px) !important;
  background-size: 96px 96px !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
body::after {
  box-shadow: none !important;
  opacity: .45 !important;
}
html,
body,
#pb_root,
.app_shell {
  background-color: #071018 !important;
  background-image:
    radial-gradient(ellipse 70rem 34rem at 12% -12%, rgba(35, 124, 154, .12), transparent 66%),
    radial-gradient(ellipse 62rem 32rem at 92% 4%, rgba(74, 60, 138, .09), transparent 64%),
    linear-gradient(145deg, #0a1722 0%, #071018 72%),
    repeating-linear-gradient(90deg, rgba(86, 202, 224, .018) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(86, 202, 224, .014) 0 1px, transparent 1px 84px) !important;
  background-repeat: no-repeat !important;
  background-size: auto, auto, 100% 100% !important;
  background-attachment: scroll !important;
}
.nx-circuit-rgb,
.nx-spectrum,
.nyxo-rgb-border,
.nyxo-glow-layer {
  animation: none !important;
  filter: none !important;
}
:where(.pub-top, #pb_topbar, .x-top, .ws-top, .nyxo-account > main > header, .nyxo-downloads .top, .nyxo-admin .top) {
  box-shadow: 0 8px 22px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.025) !important;
}
:where(.pub-card, .panel, .card-wrap, .hero_panel, .detail, .contact, .identity, .stat, .window, .side, .ws-card, .ws-console) {
  box-shadow: 0 10px 28px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.02) !important;
}
