/* ============================================================================
   NYXO AURA — spectral atmosphere layer
   Loaded after nyxo-workbench.css / nyxo-circuit-rgb.css on every HTML page.
   Adds: layered background patterns, iridescent RGB gradients, expressive but
   smooth motion, colourful panels, the quick guide dialog and the sound panel.
   ========================================================================== */

:root {
  --nx-ink: #04060b;
  --nx-ink-2: #070c14;
  --nx-ink-3: #0a111b;
  --nx-cyan: #38e1f6;
  --nx-ice: #b8f8ff;
  --nx-violet: #9a7cff;
  --nx-magenta: #ff6fd8;
  --nx-gold: #ffcf87;
  --nx-mint: #62f5c9;
  --nx-rose: #ff8fa3;
  --nx-cyan-rgb: 56, 225, 246;
  --nx-violet-rgb: 154, 124, 255;
  --nx-magenta-rgb: 255, 111, 216;
  --nx-gold-rgb: 255, 207, 135;
  --nx-mint-rgb: 98, 245, 201;
  --nx-spectrum: linear-gradient(100deg,
      var(--nx-cyan) 0%, var(--nx-ice) 16%, var(--nx-violet) 42%,
      var(--nx-magenta) 62%, var(--nx-gold) 82%, var(--nx-cyan) 100%);
  --nx-spectrum-soft: linear-gradient(100deg,
      rgba(var(--nx-cyan-rgb), .9) 0%, rgba(var(--nx-violet-rgb), .9) 38%,
      rgba(var(--nx-magenta-rgb), .85) 66%, rgba(var(--nx-gold-rgb), .8) 88%);
  --nx-glass: linear-gradient(155deg, rgba(22, 32, 46, .82), rgba(9, 14, 22, .9));
  --nx-ease-out: cubic-bezier(.16, .84, .28, 1);
  --nx-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --nx-hair: rgba(160, 198, 224, .16);
  --nx-hair-strong: rgba(180, 220, 244, .28);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base -- */
html {
  background-color: var(--nx-ink) !important;
  background-image:
    linear-gradient(rgba(4, 6, 11, .82), rgba(4, 6, 11, .9)),
    url("/static/img/nyxo-pattern-wallpaper.webp"),
    radial-gradient(ellipse 90rem 46rem at 12% -12%, rgba(var(--nx-cyan-rgb), .13), transparent 62%),
    radial-gradient(ellipse 70rem 42rem at 92% 4%, rgba(var(--nx-violet-rgb), .14), transparent 60%),
    radial-gradient(ellipse 60rem 40rem at 50% 108%, rgba(var(--nx-magenta-rgb), .07), transparent 65%),
    linear-gradient(168deg, #070d16 0%, var(--nx-ink) 46%, #05080e 100%) !important;
  background-size: cover, cover, auto, auto, auto, auto !important;
  background-position: center, center, center, center, center, center !important;
  background-attachment: fixed !important;
  scrollbar-color: #3d5a72 #060a10;
}

body {
  /* Kept transparent so the .nx-aura art layers (z-index: -2) stay visible
     above the canvas background that is painted on <html>. */
  background-color: transparent !important;
  background-image: none !important;
}

body::before {
  opacity: .3 !important;
  filter: saturate(1.25);
}

body::after {
  opacity: .5 !important;
  inset: 10px !important;
  border-radius: 24px !important;
  animation: nx-frame-spectrum 22s linear infinite !important;
}

::selection {
  background: rgba(var(--nx-violet-rgb), .42) !important;
  color: #fbfeff;
}

/* ------------------------------------------------------- aura background -- */
.nx-aura {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.nx-aura__layer {
  position: absolute;
  inset: -12%;
  display: block;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Breathing colour blooms — the "RGB" heart of the page. */
.nx-aura__bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(74px);
  mix-blend-mode: screen;
  opacity: .3;
  will-change: transform;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.nx-aura__bloom--a {
  width: 42vw;
  height: 42vw;
  min-width: 22rem;
  min-height: 22rem;
  top: -14%;
  inset-inline-start: -8%;
  background: radial-gradient(circle at 40% 40%, rgba(var(--nx-cyan-rgb), .34), rgba(var(--nx-cyan-rgb), 0) 68%);
  animation: nx-bloom-a 26s infinite alternate ease-in-out;
}

.nx-aura__bloom--b {
  width: 40vw;
  height: 40vw;
  min-width: 20rem;
  min-height: 20rem;
  top: 8%;
  inset-inline-end: -10%;
  background: radial-gradient(circle at 55% 45%, rgba(var(--nx-violet-rgb), .32), rgba(var(--nx-violet-rgb), 0) 66%);
  animation: nx-bloom-b 32s infinite alternate ease-in-out;
}

.nx-aura__bloom--c {
  width: 46vw;
  height: 38vw;
  bottom: -16%;
  inset-inline-start: 26%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--nx-magenta-rgb), .2), rgba(var(--nx-magenta-rgb), 0) 70%);
  animation: nx-bloom-c 38s infinite alternate ease-in-out;
}

.nx-aura__bloom--d {
  width: 26vw;
  height: 26vw;
  min-width: 14rem;
  min-height: 14rem;
  top: 42%;
  inset-inline-start: 44%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--nx-gold-rgb), .12), rgba(var(--nx-gold-rgb), 0) 70%);
  animation: nx-bloom-d 44s infinite alternate ease-in-out;
}

/* Faint hexagonal lattice drifting against the blooms. */
.nx-aura__hex { display: none !important; }

/* Interlaced geometric star — the ornamental signature. */
.nx-aura__arabesque { display: none !important; }

/* Circuit field from the original art direction, now alive. */
.nx-aura__circuit {
  inset: 0;
  opacity: .2;
  background: none;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .7) 52%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .7) 52%, transparent 92%);
  animation: nx-circuit-breathe 18s ease-in-out infinite;
}

/* A light beam sweeps the circuit, like current running through the board. */
.nx-aura__beam {
  inset: 0;
  opacity: .5;
  background: linear-gradient(180deg, transparent 0%, rgba(var(--nx-cyan-rgb), .12) 46%, color-mix(in srgb, var(--nx-ice) 18%, transparent) 50%, rgba(var(--nx-cyan-rgb), .12) 54%, transparent 100%);
  height: 26vh;
  top: -30vh;
  bottom: auto;
  filter: blur(6px);
  mix-blend-mode: screen;
  animation: nx-beam-sweep 14s cubic-bezier(.5, 0, .5, 1) infinite;
}

/* Thin technical lines + diagonal hatch for depth. */
.nx-aura__lines {
  opacity: .75;
  background-image:
    linear-gradient(90deg, rgba(var(--nx-cyan-rgb), .07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(var(--nx-violet-rgb), .055) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent 76%);
  animation: nx-grid-slide 60s linear infinite;
}

.nx-aura__hatch {
  opacity: .34;
  background-image: repeating-linear-gradient(115deg,
      rgba(var(--nx-cyan-rgb), .11) 0 1px,
      transparent 1px 14px);
  mask-image: radial-gradient(ellipse 60% 50% at 84% 76%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 84% 76%, #000, transparent 72%);
}

/* Film grain keeps large gradients from banding. */
.nx-aura__grain {
  inset: 0;
  opacity: .26;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: nx-grain-shift 6s steps(6) infinite;
}

.nx-aura__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .75;
}

.nx-aura__vignette {
  inset: 0;
  background:
    radial-gradient(ellipse 74% 62% at 50% 30%, transparent 34%, rgba(3, 5, 9, .42) 100%),
    linear-gradient(180deg, rgba(4, 6, 11, .22), transparent 20%, transparent 78%, rgba(4, 6, 11, .5));
}

/* Cursor spotlight (fine pointers only). */
.nx-spotlight {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 30rem;
  height: 30rem;
  margin: -15rem 0 0 -15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--nx-cyan-rgb), .1), rgba(var(--nx-violet-rgb), .05) 42%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--nx-mx, 50vw), var(--nx-my, 20vh), 0);
  transition: opacity .5s ease;
  will-change: transform;
}
body.nx-pointer-fine .nx-spotlight { opacity: .85; }

.nx-aura__scrim {
  inset: 0;
  background:
    radial-gradient(ellipse 46% 40% at 50% 18%, rgba(4, 6, 11, .28), transparent 72%),
    linear-gradient(180deg, rgba(4, 6, 11, .34), rgba(4, 6, 11, .16) 32%, rgba(4, 6, 11, .4));
}

/* Ornamental rosettes (generated SVG art in static/custom-assets). */
.nx-aura__medallion { display: none !important; }

.nx-aura__medallion--tr {
  top: -16rem;
  right: -15rem;
}

.nx-aura__medallion--bl {
  bottom: -18rem;
  left: -13rem;
  width: min(38vw, 32rem);
  opacity: .05;
  animation-duration: 320s;
  animation-direction: reverse;
}

.nx-aura__lattice { display: none !important; }

/* Rosette pinned inside the hero panel. */
.nx-rosette {
  position: absolute;
  z-index: 0;
  width: 26rem;
  height: 26rem;
  left: -6rem;
  bottom: -9rem;
  top: auto;
  background: linear-gradient(150deg, rgba(var(--nx-cyan-rgb), .8), rgba(var(--nx-violet-rgb), .6));
  -webkit-mask: url("/static/vendor/svg/icons/bahai.svg") center / contain no-repeat;
  mask: url("/static/vendor/svg/icons/bahai.svg") center / contain no-repeat;
  opacity: .07;
  pointer-events: none;
  animation: nx-rotate 200s linear infinite;
}

.nx-rosette--soft {
  left: auto;
  right: 16%;
  top: -9rem;
  bottom: auto;
  width: 22rem;
  height: 22rem;
  opacity: .05;
  animation-direction: reverse;
  animation-duration: 260s;
}

/* ------------------------------------------------------------- top bar -- */
#pb_topbar,
.nyxo-account > main > header,
.nyxo-downloads .top,
.nyxo-admin .top,
.pub-top,
.x-top,
.ws-top {
  position: relative;
  border-bottom-color: rgba(var(--nx-cyan-rgb), .22) !important;
  background:
    linear-gradient(180deg, rgba(8, 14, 22, .88), rgba(6, 10, 16, .82)) padding-box !important;
  backdrop-filter: blur(22px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(150%) !important;
  box-shadow: 0 1px 0 rgba(var(--nx-cyan-rgb), .18), 0 18px 44px rgba(0, 0, 0, .38) !important;
}

#pb_topbar::after,
.pub-top::after,
.x-top::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  background: var(--nx-spectrum);
  background-size: 240% 100%;
  opacity: .75;
  animation: nx-spectrum-pan 9s linear infinite;
  pointer-events: none;
}

.brand_lockup {
  gap: .7rem;
  align-items: center;
}

.brand_logo {
  filter: drop-shadow(0 0 10px rgba(var(--nx-cyan-rgb), .45)) drop-shadow(0 0 24px rgba(var(--nx-violet-rgb), .3)) !important;
  animation: nx-logo-breathe 7s ease-in-out infinite;
}

.brand_title_row h1 {
  background: linear-gradient(96deg, #ffffff 4%, var(--nx-ice) 34%, var(--nx-cyan) 58%, var(--nx-violet) 88%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  animation: nx-text-spectrum 12s ease-in-out infinite;
}

.brand_eyebrow {
  color: rgba(var(--nx-cyan-rgb), .82) !important;
  letter-spacing: .06em;
  text-transform: none;
}

/* --------------------------------------------------- quick guide button -- */
.nx-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 2.6rem;
  margin-inline-start: .35rem;
  padding: 0 .8rem 0 .72rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(var(--nx-gold-rgb), .2), rgba(var(--nx-cyan-rgb), .12) 46%, rgba(var(--nx-violet-rgb), .16)) padding-box,
    linear-gradient(150deg, #1a2432, #0d141d) padding-box,
    linear-gradient(140deg, rgba(var(--nx-gold-rgb), .85), rgba(var(--nx-cyan-rgb), .45) 46%, rgba(var(--nx-violet-rgb), .7)) border-box;
  color: #fff4e2;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: transform .28s var(--nx-ease-spring), box-shadow .3s ease, border-color .3s ease, color .3s ease;
}

.nx-guide-btn::before {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: nx-guide-sheen 7s ease-in-out infinite;
  pointer-events: none;
}

.nx-guide-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(var(--nx-gold-rgb), .18);
  pointer-events: none;
}

.nx-guide-btn:hover,
.nx-guide-btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(var(--nx-gold-rgb), .72);
  color: #fffdf7;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(var(--nx-gold-rgb), .28),
    0 0 26px rgba(var(--nx-gold-rgb), .22);
}

.nx-guide-btn:active { transform: translateY(0) scale(.985); }

.nx-guide-btn__icon {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  border-radius: .5rem;
  background: linear-gradient(140deg, rgba(var(--nx-gold-rgb), .3), rgba(var(--nx-cyan-rgb), .22));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.nx-guide-btn__icon svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4));
}

.nx-guide-btn__dot {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--nx-gold);
  box-shadow: 0 0 0 0 rgba(var(--nx-gold-rgb), .7);
  animation: nx-dot-ping 2.6s ease-out infinite;
}

.nx-guide-btn.is-seen .nx-guide-btn__dot { display: none; }

/* --------------------------------------------------------- sound panel -- */
.nx-sound-btn {
  position: relative;
}

#nx-sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid rgba(var(--nx-cyan-rgb), .2);
  border-radius: 11px;
  background: linear-gradient(160deg, rgba(22, 33, 47, .85), rgba(10, 16, 24, .9));
  color: #d3ebf6;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}

#nx-sound-toggle .svg_icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

#nx-sound-toggle:hover {
  border-color: rgba(var(--nx-cyan-rgb), .6);
  color: var(--nx-ice);
  box-shadow: 0 0 20px rgba(var(--nx-cyan-rgb), .18);
  transform: translateY(-1px);
}

.nx-sound-btn.is-muted { color: #8d9cad !important; }

.nx-sound-btn.is-muted::after {
  content: "";
  position: absolute;
  inset-inline: .55rem;
  top: 50%;
  height: 1.6px;
  border-radius: 2px;
  background: var(--nx-rose);
  transform: rotate(-38deg);
  box-shadow: 0 0 6px rgba(255, 143, 163, .6);
  pointer-events: none;
}

.nx-sound-btn.is-speaking {
  animation: nx-sound-pop .5s var(--nx-ease-spring);
}

.nx-sound-panel {
  position: absolute;
  z-index: 9000;
  top: calc(100% + .7rem);
  inset-inline-end: 0;
  width: min(20rem, calc(100vw - 2rem));
  padding: .95rem;
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .03), transparent 60%) padding-box,
    linear-gradient(150deg, #111a26, #070b12) padding-box,
    var(--nx-spectrum-soft) border-box;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .58), 0 0 0 1px rgba(255, 255, 255, .04), inset 0 1px 0 rgba(255, 255, 255, .07);
  color: var(--nyxo-text, #f4f7fb);
  font-size: .82rem;
  animation: nx-pop-in .34s var(--nx-ease-spring) both;
}

.nx-sound-panel[hidden] { display: none !important; }

.nx-sound-panel h3 {
  margin: 0 0 .15rem;
  font-size: .92rem;
  letter-spacing: -.01em;
}

.nx-sound-panel p {
  margin: 0 0 .8rem;
  color: #a8b7c8;
  font-size: .72rem;
  line-height: 1.6;
}

.nx-sound-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .5rem 0;
  border-top: 1px solid rgba(157, 181, 204, .13);
}

.nx-sound-row:first-of-type { border-top: 0; }

.nx-sound-row label,
.nx-sound-row span.nx-sound-label {
  display: grid;
  gap: .1rem;
  font-weight: 700;
  font-size: .78rem;
}

.nx-sound-row small {
  color: #93a4b6;
  font-size: .67rem;
  font-weight: 500;
  line-height: 1.5;
}

.nx-sound-panel input[type="range"] {
  width: 100%;
  accent-color: var(--nx-cyan);
  height: 1.5rem;
}

.nx-switch {
  position: relative;
  flex: 0 0 auto;
  width: 2.7rem;
  height: 1.5rem;
  padding: 0;
  border: 1px solid rgba(157, 181, 204, .32);
  border-radius: 999px;
  background: rgba(8, 13, 20, .9);
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.nx-switch i {
  position: absolute;
  top: 50%;
  inset-inline-start: .18rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: linear-gradient(160deg, #dbe7f2, #7f93a8);
  transform: translateY(-50%);
  transition: inset-inline-start .28s var(--nx-ease-spring), background .25s ease, box-shadow .25s ease;
}

.nx-switch[aria-checked="true"] {
  border-color: rgba(var(--nx-cyan-rgb), .6);
  background: linear-gradient(100deg, rgba(var(--nx-cyan-rgb), .85), rgba(var(--nx-violet-rgb), .85));
  box-shadow: 0 0 18px rgba(var(--nx-cyan-rgb), .3);
}

.nx-switch[aria-checked="true"] i {
  inset-inline-start: calc(100% - 1.23rem);
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, .6);
}

.nx-sound-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .35rem;
}

.nx-sound-chip {
  padding: .3rem .55rem;
  border: 1px solid rgba(var(--nx-cyan-rgb), .28);
  border-radius: 999px;
  background: rgba(var(--nx-cyan-rgb), .08);
  color: #d8f6ff;
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.nx-sound-chip:hover {
  background: rgba(var(--nx-cyan-rgb), .2);
  border-color: rgba(var(--nx-cyan-rgb), .55);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------- panels -- */
#pb_root .hero_panel,
#pb_root .card-wrap,
#pb_root #project_section,
#pb_root #journey_section,
#pb_root #analysis_section,
#pb_root .console_card,
#pb_root .status_dashboard,
#pb_root .analysis_panel,
.nyxo-account .panel,
.nyxo-account .identity,
.nyxo-downloads .panel,
.nyxo-downloads .project,
.nyxo-workspace .panel,
.nyxo-workspace .card,
.nyxo-admin .panel,
.nyxo-admin .side,
.nyxo-admin .stat,
.nyxo-admin .window,
.nyxo-projects .np-hero,
.nyxo-projects .np-card,
.pub-card,
.x-prose,
.x-cta,
.ws-card,
.nxo-card {
  position: relative;
  border: 1px solid transparent !important;
  background:
    linear-gradient(150deg, rgba(var(--nx-cyan-rgb), .055), rgba(var(--nx-violet-rgb), .035) 45%, rgba(var(--nx-magenta-rgb), .045)) padding-box,
    linear-gradient(155deg, rgba(13, 20, 31, .972), rgba(7, 11, 18, .985)) padding-box,
    linear-gradient(150deg, rgba(var(--nx-cyan-rgb), .5), rgba(var(--nx-violet-rgb), .22) 38%, rgba(255, 255, 255, .07) 62%, rgba(var(--nx-magenta-rgb), .34)) border-box !important;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, .42),
    0 0 0 1px rgba(255, 255, 255, .02),
    inset 0 1px 0 rgba(255, 255, 255, .07) !important;
  backdrop-filter: blur(10px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(108%) !important;
  transition: border-color .4s ease, box-shadow .45s ease, transform .45s var(--nx-ease-out) !important;
}

/* Faint inner circuit texture so panels are not flat colour blocks. */
#pb_root .hero_panel::after,
#pb_root .card-wrap::after,
.nyxo-account .panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    radial-gradient(circle at 14% 12%, rgba(var(--nx-cyan-rgb), .09), transparent 34%),
    radial-gradient(circle at 88% 92%, rgba(var(--nx-violet-rgb), .08), transparent 32%),
    url("/static/vendor/svg/patterns/circuit-board.svg"),
    url("/static/vendor/svg/patterns/graph-paper.svg");
  background-size: auto, auto, 168px 185px, 34px 34px;
  background-position: center, center, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  mask-image: linear-gradient(115deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .4) 46%, rgba(0, 0, 0, .06) 78%);
  -webkit-mask-image: linear-gradient(115deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .4) 46%, rgba(0, 0, 0, .06) 78%);
  opacity: .06;
  pointer-events: none;
  z-index: 0;
}

#pb_root .hero_panel > *,
#pb_root .card-wrap > *,
.nyxo-account .panel > * { position: relative; z-index: 1; }

#pb_root .hero_panel > .nx-rosette,
#pb_root .card-wrap > .nx-rosette {
  position: absolute !important;
  z-index: 0 !important;
}

@media (hover: hover) and (pointer: fine) {
  #pb_root .card-wrap:hover,
  .nyxo-account .identity:hover,
  .nyxo-projects .np-card:hover,
  .pub-card:hover {
    box-shadow:
      0 26px 70px rgba(0, 0, 0, .48),
      0 0 34px rgba(var(--nx-cyan-rgb), .12),
      inset 0 1px 0 rgba(255, 255, 255, .09) !important;
  }
}

/* Fine technical grid inside large panels: intentional, never a stray trace. */
#pb_root .hero_panel::before,
#pb_root .card-wrap::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-image:
    url("/static/vendor/svg/patterns/graph-paper.svg"),
    linear-gradient(rgba(148, 183, 204, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 183, 204, .055) 1px, transparent 1px) !important;
  background-size: 64px 64px, 36px 36px, 36px 36px !important;
  background-position: 0 0, 0 0, 0 0 !important;
  background-repeat: repeat, repeat, repeat !important;
  mask-image: radial-gradient(ellipse 78% 70% at 26% 18%, #000 6%, rgba(0, 0, 0, .35) 52%, transparent 84%) !important;
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 26% 18%, #000 6%, rgba(0, 0, 0, .35) 52%, transparent 84%) !important;
  opacity: .11 !important;
  animation: none !important;
}

/* The shipped hero decor layers, re-tuned for the new art direction. */
#pb_root .hero_decor_layer--circuit {
  opacity: .055 !important;
  background-size: min(140%, 980px) auto !important;
  background-position: center 18% !important;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 82%);
}

#pb_root .hero_decor_layer--hex {
  /* The Moroccan and star fields already carry this texture. */
  display: none !important;
}

#pb_root .hero_decor_layer--grid {
  opacity: .06 !important;
}

/* Auth dialog: same material language as the panels. */
.nyxo_auth_modal {
  background: rgba(4, 7, 12, .74) !important;
  backdrop-filter: blur(16px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(115%) !important;
}

.nyxo_auth_card {
  border: 1px solid transparent !important;
  border-radius: 22px !important;
  background:
    linear-gradient(160deg, rgba(var(--nx-cyan-rgb), .07), rgba(var(--nx-violet-rgb), .05) 55%, rgba(var(--nx-magenta-rgb), .05)) padding-box,
    linear-gradient(165deg, rgba(16, 24, 36, .985), rgba(7, 11, 18, .995)) padding-box,
    linear-gradient(150deg, rgba(var(--nx-cyan-rgb), .75), rgba(var(--nx-violet-rgb), .4) 48%, rgba(var(--nx-gold-rgb), .5)) border-box !important;
  box-shadow:
    0 44px 110px rgba(0, 0, 0, .6),
    0 0 70px rgba(var(--nx-cyan-rgb), .1),
    inset 0 1px 0 rgba(255, 255, 255, .07) !important;
  color: #e9f4fc !important;
  animation: nx-modal-in .45s var(--nx-ease-out) both;
}

.nyxo_auth_head h2 {
  background: linear-gradient(100deg, #eafbff, var(--nx-ice) 40%, var(--nx-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-size: 1.32rem !important;
}

.nyxo_auth_head p {
  color: #8fa3b6 !important;
  font-size: .74rem !important;
  line-height: 1.6 !important;
}

.nyxo_auth_form label {
  color: #a7bacb !important;
  font-size: .7rem !important;
  letter-spacing: .01em;
}

.nyxo_auth_form input {
  background: rgba(7, 12, 19, .92) !important;
  border: 1px solid rgba(160, 198, 224, .16) !important;
  border-radius: 12px !important;
  color: #eaf7ff !important;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease !important;
}

.nyxo_auth_form input:focus {
  border-color: rgba(var(--nx-cyan-rgb), .62) !important;
  box-shadow: 0 0 0 3px rgba(var(--nx-cyan-rgb), .12) !important;
  background: rgba(10, 17, 26, .96) !important;
  outline: none !important;
}

.nyxo_auth_actions .btn-main {
  background: linear-gradient(110deg, var(--nx-cyan), #9deef8 52%, #c3f8ff) !important;
  border: 0 !important;
  border-radius: 13px !important;
  color: #04121a !important;
  font-weight: 800 !important;
  box-shadow: 0 14px 34px rgba(var(--nx-cyan-rgb), .22), inset 0 1px 0 rgba(255, 255, 255, .55) !important;
}

.nyxo_auth_actions .btn-main:hover {
  box-shadow: 0 18px 42px rgba(var(--nx-cyan-rgb), .3), inset 0 1px 0 rgba(255, 255, 255, .6) !important;
  transform: translateY(-1px);
}

.nyxo_social .secondary_btn {
  background: linear-gradient(160deg, rgba(24, 35, 49, .86), rgba(10, 16, 24, .9)) !important;
  border: 1px solid rgba(160, 198, 224, .18) !important;
  border-radius: 12px !important;
  color: #d6e7f2 !important;
  transition: border-color .25s ease, color .25s ease, transform .25s var(--nx-ease-out) !important;
}

.nyxo_social .secondary_btn:hover {
  border-color: rgba(var(--nx-cyan-rgb), .5) !important;
  color: #eafcff !important;
  transform: translateY(-1px);
}

.nyxo_auth_link {
  color: #8fc9dc !important;
}

@keyframes nx-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Corner frame injected by JS, so it never fights a page pseudo-element. */
.nx-frame {
  position: absolute;
  inset: 9px;
  z-index: 3;
  border-radius: 14px;
  pointer-events: none;
  --nx-frame-ink: rgba(var(--nx-cyan-rgb), .58);
  background:
    linear-gradient(var(--nx-frame-ink), var(--nx-frame-ink)) 0 0 / 20px 1.5px no-repeat,
    linear-gradient(var(--nx-frame-ink), var(--nx-frame-ink)) 0 0 / 1.5px 20px no-repeat,
    linear-gradient(var(--nx-frame-ink), var(--nx-frame-ink)) 100% 0 / 20px 1.5px no-repeat,
    linear-gradient(var(--nx-frame-ink), var(--nx-frame-ink)) 100% 0 / 1.5px 20px no-repeat,
    linear-gradient(var(--nx-frame-ink), var(--nx-frame-ink)) 0 100% / 20px 1.5px no-repeat,
    linear-gradient(var(--nx-frame-ink), var(--nx-frame-ink)) 0 100% / 1.5px 20px no-repeat,
    linear-gradient(var(--nx-frame-ink), var(--nx-frame-ink)) 100% 100% / 20px 1.5px no-repeat,
    linear-gradient(var(--nx-frame-ink), var(--nx-frame-ink)) 100% 100% / 1.5px 20px no-repeat;
  opacity: .6;
  animation: nx-frame-breathe 9s ease-in-out infinite;
}

.nx-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(var(--nx-cyan-rgb), .45), rgba(0, 0, 0, 0) 16%) 0 0 / 100% 1px no-repeat,
    linear-gradient(270deg, rgba(var(--nx-magenta-rgb), .34), rgba(0, 0, 0, 0) 20%) 0 100% / 100% 1px no-repeat;
  opacity: .75;
}

/* Ornamental divider between major sections. */
.nx-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: clamp(.9rem, 1.8vw, 1.5rem) 0;
  height: 2.4rem;
  pointer-events: none;
}

.nx-rule::before,
.nx-rule::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
}

.nx-rule::before {
  background: linear-gradient(90deg, transparent, rgba(var(--nx-cyan-rgb), .55), rgba(var(--nx-violet-rgb), .35));
}

.nx-rule::after {
  background: linear-gradient(270deg, transparent, rgba(var(--nx-cyan-rgb), .55), rgba(var(--nx-violet-rgb), .35));
}

.nx-rule__seal {
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  background: linear-gradient(90deg, transparent, rgba(var(--nx-cyan-rgb), .7), rgba(var(--nx-violet-rgb), .55), transparent);
  opacity: .65;
}

@keyframes nx-frame-breathe {
  0%, 100% { opacity: .42; }
  50%      { opacity: .78; }
}

/* --------------------------------------------------------------- topbar -- */
#pb_topbar .header_icon_btn {
  border-color: rgba(var(--nx-cyan-rgb), .18) !important;
  background: linear-gradient(160deg, rgba(22, 33, 47, .85), rgba(10, 16, 24, .9)) !important;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s var(--nx-ease-out), color .25s ease !important;
}

#pb_topbar .header_icon_btn:hover,
#pb_topbar .header_icon_btn[aria-expanded="true"] {
  border-color: rgba(var(--nx-cyan-rgb), .55) !important;
  box-shadow: 0 0 0 1px rgba(var(--nx-cyan-rgb), .18), 0 8px 22px rgba(0, 0, 0, .4) !important;
  color: var(--nx-ice) !important;
  transform: translateY(-1px) !important;
}

#pb_topbar .desktop_search {
  border-color: rgba(var(--nx-cyan-rgb), .2) !important;
  background: linear-gradient(160deg, rgba(16, 25, 37, .92), rgba(8, 12, 19, .95)) !important;
  transition: border-color .3s ease, box-shadow .3s ease !important;
}

#pb_topbar .desktop_search:focus-within {
  border-color: rgba(var(--nx-cyan-rgb), .62) !important;
  box-shadow: 0 0 0 3px rgba(var(--nx-cyan-rgb), .13), 0 0 28px rgba(var(--nx-cyan-rgb), .16) !important;
}

.engine_pill {
  border-color: rgba(var(--nx-mint-rgb), .34) !important;
  background: linear-gradient(100deg, rgba(var(--nx-mint-rgb), .14), rgba(var(--nx-cyan-rgb), .07)) !important;
  box-shadow: inset 0 0 14px rgba(var(--nx-mint-rgb), .08);
}

.live_dot {
  background: var(--nx-mint) !important;
  box-shadow: 0 0 0 0 rgba(var(--nx-mint-rgb), .8) !important;
  animation: nx-live 2.2s ease-out infinite !important;
}

/* ----------------------------------------------------------------- hero -- */
#pb_root .hero_panel {
  min-height: clamp(21rem, 38vw, 27rem);
  padding: clamp(1.5rem, 3vw, 2.8rem) !important;
  border-radius: 22px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) !important;
  align-items: center !important;
  gap: clamp(1.2rem, 3vw, 2.6rem) !important;
  overflow: hidden !important;
  background:
    radial-gradient(ellipse 40rem 26rem at 82% 12%, rgba(var(--nx-violet-rgb), .22), transparent 66%),
    radial-gradient(ellipse 34rem 24rem at 6% 96%, rgba(var(--nx-cyan-rgb), .17), transparent 68%),
    radial-gradient(ellipse 30rem 20rem at 40% 50%, rgba(var(--nx-magenta-rgb), .06), transparent 70%),
    linear-gradient(150deg, rgba(19, 29, 43, .96), rgba(7, 11, 18, .98)) padding-box,
    linear-gradient(140deg, rgba(var(--nx-cyan-rgb), .6), rgba(var(--nx-violet-rgb), .3) 40%, rgba(var(--nx-magenta-rgb), .35) 72%, rgba(var(--nx-gold-rgb), .4)) border-box !important;
  box-shadow:
    0 40px 110px rgba(0, 0, 0, .55),
    0 0 60px rgba(var(--nx-cyan-rgb), .07),
    inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

#pb_root .hero_panel::after {
  opacity: .62;
  background-image:
    radial-gradient(ellipse 30rem 20rem at 78% 30%, rgba(var(--nx-cyan-rgb), .14), transparent 60%),
    radial-gradient(ellipse 26rem 18rem at 12% 88%, rgba(var(--nx-magenta-rgb), .1), transparent 62%);
  background-size: auto, auto;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

#pb_root .hero_copy { position: relative; z-index: 2; }

#pb_root .hero_panel h2 {
  background: linear-gradient(104deg, #ffffff 0%, #e9fbff 26%, var(--nx-ice) 46%, #cbb8ff 66%, #ffb7ef 84%, var(--nx-gold) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  animation: nx-text-spectrum 16s ease-in-out infinite;
  filter: drop-shadow(0 6px 26px rgba(var(--nx-cyan-rgb), .18));
}

#pb_root .hero_panel p {
  color: #c3d1e0 !important;
  text-wrap: pretty;
}

.dashboard_kicker {
  border: 1px solid rgba(var(--nx-cyan-rgb), .26);
  border-radius: 999px;
  padding: .32rem .7rem;
  background: linear-gradient(100deg, rgba(var(--nx-cyan-rgb), .12), rgba(var(--nx-violet-rgb), .1));
  align-self: flex-start;
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  width: fit-content;
  font-size: .7rem !important;
  letter-spacing: .04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.dashboard_kicker bdi {
  color: color-mix(in srgb, var(--nx-ice) 90%, transparent);
  opacity: .72;
}

.dashboard_kicker_live {
  background: var(--nx-mint) !important;
  box-shadow: 0 0 10px rgba(var(--nx-mint-rgb), .8);
  animation: nx-live 2.4s ease-out infinite;
}

.dashboard_hero_primary {
  position: relative;
  border-radius: 12px !important;
  background: var(--nx-spectrum) !important;
  background-size: 220% 100% !important;
  color: #041016 !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 34px rgba(var(--nx-cyan-rgb), .28), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
  animation: nx-spectrum-pan 8s linear infinite, nx-cta-float 6s ease-in-out infinite;
  overflow: hidden;
  isolation: isolate;
}

.dashboard_hero_primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .65) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: nx-sheen 4.6s ease-in-out infinite;
  pointer-events: none;
}

.dashboard_hero_secondary {
  border-color: rgba(var(--nx-cyan-rgb), .34) !important;
  background: linear-gradient(140deg, rgba(20, 31, 45, .9), rgba(9, 14, 22, .92)) !important;
  transition: border-color .3s ease, transform .3s var(--nx-ease-out), box-shadow .3s ease !important;
}

.dashboard_hero_secondary:hover {
  border-color: rgba(var(--nx-cyan-rgb), .7) !important;
  box-shadow: 0 0 24px rgba(var(--nx-cyan-rgb), .16);
  transform: translateY(-2px);
}

/* --------------------------------------------------------- hero visual -- */
#pb_root .hero_panel .hero_visual {
  display: flex !important;
  position: relative;
  z-index: 2;
  min-height: 0 !important;
  padding: 0 !important;
  flex-direction: column;
  justify-content: center;
  gap: .6rem;
  overflow: visible !important;
}

#pb_root .hero_visual::before {
  content: "";
  position: absolute;
  inset: -22% -12%;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      rgba(var(--nx-cyan-rgb), 0) 0deg,
      rgba(var(--nx-cyan-rgb), .26) 60deg,
      rgba(var(--nx-violet-rgb), .2) 140deg,
      rgba(var(--nx-magenta-rgb), 0) 210deg,
      rgba(var(--nx-gold-rgb), .16) 300deg,
      rgba(var(--nx-cyan-rgb), 0) 360deg);
  filter: blur(38px);
  opacity: .55;
  animation: nx-rotate 26s linear infinite;
  pointer-events: none;
  z-index: -1;
}

#pb_root .hero_visual::after {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 24px;
  border: 1px dashed rgba(var(--nx-cyan-rgb), .18);
  pointer-events: none;
  animation: nx-dash-rotate 60s linear infinite;
}

#pb_root .hero_flow {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: .5rem !important;
  width: 100%;
  max-width: 25rem;
  margin-inline: auto;
  direction: rtl;
}

#pb_root .hero_flow_step {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: .12rem;
  min-height: 0 !important;
  padding: .72rem 1rem .72rem 1.1rem !important;
  border: 1px solid rgba(var(--nx-cyan-rgb), .2) !important;
  border-radius: 13px !important;
  background: linear-gradient(150deg, rgba(22, 34, 49, .93), rgba(8, 13, 20, .95)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 26px rgba(0, 0, 0, .3) !important;
  text-align: start !important;
  opacity: 1 !important;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--nx-ease-out), border-color .4s ease, box-shadow .4s ease;
  animation: nx-flow-in .7s var(--nx-ease-out) both;
}

#pb_root .hero_flow_step:nth-child(1) { animation-delay: .12s; }
#pb_root .hero_flow_step:nth-child(3) { animation-delay: .26s; }
#pb_root .hero_flow_step:nth-child(5) { animation-delay: .4s; }

#pb_root .hero_flow_step::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--nx-cyan), var(--nx-violet), var(--nx-magenta));
  opacity: .9;
  box-shadow: 0 0 14px rgba(var(--nx-cyan-rgb), .6);
}

#pb_root .hero_flow_step > span {
  order: 0;
  color: var(--nx-ice) !important;
  font-size: .55rem !important;
  letter-spacing: .16em !important;
  opacity: .78;
}

#pb_root .hero_flow_step strong {
  order: 1;
  color: #f2f8ff !important;
  font-size: .88rem !important;
  letter-spacing: .015em;
}

#pb_root .hero_flow_step small {
  order: 2;
  color: #9fb0c3 !important;
  font-size: .68rem !important;
  line-height: 1.5 !important;
}

#pb_root .hero_flow_arrow {
  display: none !important;
}

/* The legacy deluxe shimmer parks inside the card and covers the step label. */
#pb_root .hero_flow_step::after {
  display: none !important;
}

#pb_root .hero_flow_step:nth-of-type(2)::after,
#pb_root .hero_flow_step:nth-of-type(4)::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  bottom: -1px;
  width: 1px;
  height: .5rem;
  background: linear-gradient(180deg, rgba(var(--nx-cyan-rgb), .7), transparent);
}

/* Runner-dot that travels down the pipeline. */
#pb_root .hero_visual .hero_flow::after {
  content: "";
  position: absolute;
  inset-inline-end: 1.4rem;
  top: 4%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nx-ice);
  box-shadow: 0 0 12px 2px rgba(var(--nx-cyan-rgb), .8);
  animation: nx-runner 5.5s cubic-bezier(.6, 0, .4, 1) infinite;
  pointer-events: none;
}

#pb_root .hero_assurance {
  justify-content: center;
  margin-top: .2rem !important;
  padding: .45rem .8rem;
  border: 1px solid rgba(var(--nx-mint-rgb), .24);
  border-radius: 999px;
  background: rgba(var(--nx-mint-rgb), .07);
  color: #b6f7e0 !important;
  font-size: .72rem !important;
  width: fit-content;
  align-self: center;
}

/* ----------------------------------------------------------- drop zone -- */
#pb_root #drop_zone {
  position: relative;
  border: 1px dashed rgba(var(--nx-cyan-rgb), .45) !important;
  border-radius: 16px !important;
  background:
    radial-gradient(ellipse 24rem 12rem at 50% 0%, rgba(var(--nx-cyan-rgb), .13), transparent 70%),
    linear-gradient(165deg, rgba(18, 28, 40, .95), rgba(8, 12, 19, .97)) !important;
  overflow: hidden;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s var(--nx-ease-out), background .35s ease !important;
  animation: nx-drop-breathe 7s ease-in-out infinite;
}

#pb_root #drop_zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--nx-cyan-rgb), .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--nx-cyan-rgb), .06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 78%);
  pointer-events: none;
}

#pb_root #drop_zone::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 34%;
  top: -36%;
  background: linear-gradient(180deg, transparent, rgba(var(--nx-cyan-rgb), .08) 55%, rgba(var(--nx-cyan-rgb), .12) 78%, transparent);
  filter: blur(10px);
  opacity: .8;
  animation: nx-scan 6.4s ease-in-out infinite;
  pointer-events: none;
}

#pb_root #drop_zone:hover,
#pb_root #drop_zone.dragover,
#pb_root #drop_zone:focus-within {
  border-color: color-mix(in srgb, var(--nx-ice) 85%, transparent) !important;
  box-shadow: 0 0 0 3px rgba(var(--nx-cyan-rgb), .12), 0 0 42px rgba(var(--nx-cyan-rgb), .2), inset 0 0 40px rgba(var(--nx-cyan-rgb), .07) !important;
  transform: translateY(-2px);
}

#pb_root .drop_visual {
  position: relative;
  background: transparent !important;
  animation: nx-float 6s ease-in-out infinite !important;
}

#pb_root .drop_visual::before {
  content: "";
  position: absolute;
  inset: -32%;
  border-radius: 50%;
  border: 1px dashed rgba(var(--nx-cyan-rgb), .3);
  animation: nx-dash-rotate 24s linear infinite;
}

#pb_root .drop_visual::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--nx-cyan-rgb), .22), transparent 68%);
  filter: blur(13px);
  z-index: -1;
  animation: nx-pulse-soft 4.4s ease-in-out infinite;
}

#pb_root .drop_visual .svg_icon {
  color: var(--nx-ice) !important;
  filter: drop-shadow(0 0 12px rgba(var(--nx-cyan-rgb), .55));
}

#pb_root .drop_file_layer {
  border-color: rgba(var(--nx-violet-rgb), .5) !important;
  background: linear-gradient(150deg, rgba(var(--nx-violet-rgb), .22), rgba(var(--nx-cyan-rgb), .1)) !important;
}

#pb_root .browse_chip {
  border-color: rgba(var(--nx-cyan-rgb), .4) !important;
  background: linear-gradient(120deg, rgba(var(--nx-cyan-rgb), .18), rgba(var(--nx-violet-rgb), .14)) !important;
  transition: transform .3s var(--nx-ease-spring), box-shadow .3s ease, border-color .3s ease;
}

#pb_root .browse_chip:hover {
  border-color: color-mix(in srgb, var(--nx-ice) 80%, transparent) !important;
  box-shadow: 0 0 20px rgba(var(--nx-cyan-rgb), .25);
}

/* ----------------------------------------------------------- controls -- */
#pb_root .mode_button {
  position: relative;
  overflow: hidden;
  border-radius: 14px !important;
  border-color: rgba(160, 198, 224, .18) !important;
  background: linear-gradient(155deg, rgba(22, 33, 47, .93), rgba(9, 13, 20, .95)) !important;
  transition: border-color .35s ease, transform .35s var(--nx-ease-out), box-shadow .35s ease, background .35s ease !important;
}

#pb_root .mode_button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 42%, rgba(255, 255, 255, .09) 50%, transparent 58%);
  transform: translateX(-130%);
  transition: transform .7s var(--nx-ease-out);
  pointer-events: none;
}

#pb_root .mode_button:hover::before { transform: translateX(130%); }

#pb_root .mode_button:hover {
  border-color: rgba(var(--nx-cyan-rgb), .5) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .38), 0 0 22px rgba(var(--nx-cyan-rgb), .1) !important;
}

#pb_root .mode_button.active {
  border-color: transparent !important;
  background:
    linear-gradient(120deg, rgba(var(--nx-cyan-rgb), .17), rgba(var(--nx-violet-rgb), .12) 55%, rgba(var(--nx-magenta-rgb), .08)) padding-box,
    linear-gradient(155deg, #16212e, #0b121b) padding-box,
    linear-gradient(120deg, var(--nx-cyan), var(--nx-violet) 60%, var(--nx-magenta)) border-box !important;
  box-shadow: 0 0 0 1px rgba(var(--nx-cyan-rgb), .22), 0 14px 34px rgba(0, 0, 0, .4), inset 0 0 28px rgba(var(--nx-cyan-rgb), .09) !important;
}

#pb_root .mode_button.active .mode_icon {
  filter: drop-shadow(0 0 12px rgba(var(--nx-cyan-rgb), .5)) !important;
}

#pb_root .mode_indicator {
  background: var(--nx-cyan) !important;
  box-shadow: 0 0 12px rgba(var(--nx-cyan-rgb), .7) !important;
}

#pb_root .platform_card {
  border-radius: 12px !important;
  border-color: rgba(160, 198, 224, .16) !important;
  background: linear-gradient(150deg, rgba(21, 31, 44, .78), rgba(8, 12, 18, .86)) !important;
  transition: border-color .3s ease, transform .3s var(--nx-ease-out), box-shadow .3s ease, background .3s ease !important;
}

#pb_root .platform_card:hover {
  border-color: rgba(var(--nx-cyan-rgb), .5) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .34);
}

#pb_root .platform_card[aria-pressed="true"] {
  border-color: transparent !important;
  background:
    linear-gradient(140deg, rgba(var(--nx-cyan-rgb), .18), rgba(var(--nx-violet-rgb), .12)) padding-box,
    linear-gradient(150deg, #16212e, #0b121b) padding-box,
    linear-gradient(120deg, var(--nx-cyan), var(--nx-violet)) border-box !important;
  box-shadow: 0 0 0 1px rgba(var(--nx-cyan-rgb), .2), 0 10px 28px rgba(0, 0, 0, .36), inset 0 0 24px rgba(var(--nx-cyan-rgb), .08) !important;
}

#pb_root .guard_item {
  border-radius: 12px !important;
  border-color: rgba(160, 198, 224, .14) !important;
  background: linear-gradient(155deg, rgba(22, 33, 47, .6), rgba(9, 13, 19, .7)) !important;
  transition: border-color .3s ease, transform .3s var(--nx-ease-out) !important;
}

#pb_root .guard_item:hover {
  border-color: rgba(var(--nx-mint-rgb), .4) !important;
  transform: translateY(-2px);
}

#pb_root .guard_item .svg_icon { color: var(--nx-mint) !important; }

#pb_root .heading_icon {
  border-color: rgba(var(--nx-cyan-rgb), .3) !important;
  background: linear-gradient(150deg, rgba(var(--nx-cyan-rgb), .2), rgba(var(--nx-violet-rgb), .15)) !important;
  box-shadow: inset 0 0 14px rgba(var(--nx-cyan-rgb), .1), 0 0 18px rgba(var(--nx-cyan-rgb), .08);
}

#pb_root .heading_icon .svg_icon { color: var(--nx-ice) !important; }

#pb_root .section_tag,
#pb_root .platform_family_badge {
  border-color: rgba(var(--nx-cyan-rgb), .34) !important;
  background: linear-gradient(100deg, rgba(var(--nx-cyan-rgb), .14), rgba(var(--nx-violet-rgb), .12)) !important;
  color: var(--nx-ice) !important;
  letter-spacing: .04em;
}

#pb_root .build_options {
  border-color: rgba(160, 198, 224, .16) !important;
  border-radius: 14px !important;
  background: linear-gradient(160deg, rgba(18, 27, 38, .7), rgba(8, 12, 19, .8)) !important;
}

#pb_root .advanced_opts > summary {
  color: #cfdcea;
  transition: color .25s ease;
}

#pb_root .advanced_opts > summary:hover { color: var(--nx-ice); }

/* ------------------------------------------------------------- buttons -- */
#pb_root #run_btn,
#pb_root .build_action_btn,
.primary,
.download,
.button.primary,
.ws-btn.primary,
.np-btn.primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 13px !important;
  background: var(--nx-spectrum) !important;
  background-size: 220% 100% !important;
  color: #041016 !important;
  font-weight: 900 !important;
  letter-spacing: .01em;
  box-shadow:
    0 16px 40px rgba(var(--nx-cyan-rgb), .22),
    0 0 0 1px rgba(255, 255, 255, .16) inset,
    0 1px 0 rgba(255, 255, 255, .5) inset !important;
  animation: nx-spectrum-pan 9s linear infinite;
  transition: transform .3s var(--nx-ease-spring), box-shadow .3s ease, filter .3s ease !important;
}

#pb_root #run_btn::after,
#pb_root .build_action_btn::after,
.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%);
  transform: translateX(-130%);
  animation: nx-sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

#pb_root #run_btn:not(:disabled):hover,
#pb_root .build_action_btn:not(:disabled):hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 22px 52px rgba(var(--nx-cyan-rgb), .3), 0 0 26px rgba(var(--nx-violet-rgb), .22) !important;
  filter: saturate(1.1);
}

#pb_root #run_btn:not(:disabled) {
  animation: nx-spectrum-pan 9s linear infinite, nx-ready-glow 3.6s ease-in-out infinite;
}

#pb_root #run_btn:disabled {
  background: linear-gradient(120deg, #24313f, #1a2430) !important;
  color: #8fa0b4 !important;
  box-shadow: inset 0 0 0 1px rgba(160, 198, 224, .14) !important;
  animation: none;
}

#pb_root #run_btn:disabled::after { display: none; }

#pb_root .secondary_btn {
  border-color: rgba(var(--nx-cyan-rgb), .28) !important;
  background: linear-gradient(150deg, rgba(20, 30, 43, .9), rgba(9, 13, 20, .92)) !important;
  transition: border-color .3s ease, transform .3s var(--nx-ease-out), box-shadow .3s ease !important;
}

#pb_root .secondary_btn:hover {
  border-color: rgba(var(--nx-cyan-rgb), .6) !important;
  box-shadow: 0 0 22px rgba(var(--nx-cyan-rgb), .12);
  transform: translateY(-1px);
}

/* ------------------------------------------------------------- progress -- */
#pb_root .progress_orbit {
  background:
    conic-gradient(from 0deg,
      rgba(var(--nx-cyan-rgb), .95),
      rgba(var(--nx-violet-rgb), .9) 38%,
      rgba(var(--nx-magenta-rgb), .85) 62%,
      rgba(var(--nx-gold-rgb), .9) 82%,
      rgba(var(--nx-cyan-rgb), .95)) !important;
  filter: drop-shadow(0 0 18px rgba(var(--nx-cyan-rgb), .35));
  animation: nx-rotate 8s linear infinite;
}

#pb_root .progress_orbit::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1px dashed rgba(var(--nx-cyan-rgb), .3);
  animation: nx-dash-rotate 22s linear infinite reverse;
}

#pb_root .status_dashboard {
  background:
    radial-gradient(ellipse 20rem 12rem at 12% 10%, rgba(var(--nx-violet-rgb), .14), transparent 68%),
    linear-gradient(155deg, rgba(20, 30, 43, .9), rgba(8, 12, 18, .94)) !important;
}

#pb_root .pb_track {
  background: rgba(255, 255, 255, .06) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5);
}

#pb_root .pb_bar {
  background: var(--nx-spectrum) !important;
  background-size: 220% 100% !important;
  box-shadow: 0 0 18px rgba(var(--nx-cyan-rgb), .55), 0 0 34px rgba(var(--nx-violet-rgb), .3) !important;
  animation: nx-spectrum-pan 4s linear infinite;
  transition: width .6s var(--nx-ease-out);
}

#pb_root .step {
  border-radius: 12px !important;
  border-color: rgba(160, 198, 224, .14) !important;
  background: linear-gradient(155deg, rgba(20, 30, 43, .7), rgba(8, 12, 18, .8)) !important;
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}

#pb_root .step.is_active,
#pb_root .step.active {
  border-color: rgba(var(--nx-cyan-rgb), .6) !important;
  background: linear-gradient(120deg, rgba(var(--nx-cyan-rgb), .14), rgba(var(--nx-violet-rgb), .08)) !important;
  box-shadow: inset 2px 0 0 var(--nx-cyan), 0 0 20px rgba(var(--nx-cyan-rgb), .1);
  animation: nx-step-pulse 2.4s ease-in-out infinite;
}

#pb_root .step.is_done .step_icon,
#pb_root .step.done .step_icon {
  color: var(--nx-mint) !important;
  filter: drop-shadow(0 0 8px rgba(var(--nx-mint-rgb), .5));
}

/* ---------------------------------------------------------------- footer -- */
#pb_root #pb_footer {
  border-top: 1px solid rgba(var(--nx-cyan-rgb), .14) !important;
  background: linear-gradient(180deg, transparent, rgba(var(--nx-cyan-rgb), .04)) !important;
  color: #a9b8c9 !important;
}

#pb_root #pb_footer a {
  position: relative;
  color: #b9dbe8 !important;
  transition: color .25s ease;
}

#pb_root #pb_footer a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -.15em;
  height: 1px;
  background: var(--nx-spectrum);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform .3s var(--nx-ease-out);
}

#pb_root #pb_footer a:hover { color: #fff !important; }
#pb_root #pb_footer a:hover::after { transform: scaleX(1); }

/* ----------------------------------------------------------------- toasts -- */
#toast_host .toast,
.nx-toast {
  border: 1px solid rgba(var(--nx-cyan-rgb), .35) !important;
  border-radius: 13px !important;
  background: linear-gradient(145deg, rgba(20, 31, 45, .97), rgba(8, 13, 20, .98)) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .55), 0 0 30px rgba(var(--nx-cyan-rgb), .12) !important;
  animation: nx-toast-in .45s var(--nx-ease-spring) both;
}

#toast_host .toast.error,
.nx-toast.is-error { border-color: rgba(255, 143, 163, .5) !important; }
#toast_host .toast.success,
.nx-toast.is-success { border-color: rgba(var(--nx-mint-rgb), .5) !important; }

/* ------------------------------------------------------- guide dialog -- */
.nx-guide {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 3vw, 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nx-guide[hidden] { display: none !important; }

.nx-guide__backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(var(--nx-violet-rgb), .16), transparent 70%),
    rgba(3, 5, 9, .78);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  cursor: pointer;
  animation: nx-fade-in .3s ease both;
}

.nx-guide__dialog {
  position: relative;
  width: min(48rem, 100%);
  margin: auto;
  border-radius: 24px;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(20, 30, 43, .98), rgba(7, 11, 18, .99)) padding-box,
    linear-gradient(135deg, var(--nx-cyan), var(--nx-violet) 42%, var(--nx-magenta) 72%, var(--nx-gold)) border-box;
  box-shadow:
    0 44px 120px rgba(0, 0, 0, .72),
    0 0 90px rgba(var(--nx-cyan-rgb), .12),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #edf4fb;
  overflow: hidden;
  animation: nx-dialog-in .5s var(--nx-ease-spring) both;
}

.nx-guide__dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 26rem 14rem at 88% -10%, rgba(var(--nx-cyan-rgb), .2), transparent 70%),
    radial-gradient(ellipse 22rem 12rem at 4% 108%, rgba(var(--nx-magenta-rgb), .14), transparent 72%),
    url("/static/vendor/svg/patterns/circuit-board.svg");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 128px 141px;
  opacity: .55;
  pointer-events: none;
}

.nx-guide__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.15rem 1.3rem 1rem;
  border-bottom: 1px solid rgba(160, 198, 224, .14);
}

.nx-guide__mark {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(var(--nx-gold-rgb), .26), rgba(var(--nx-cyan-rgb), .18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 26px rgba(var(--nx-gold-rgb), .16);
  color: #fff0d6;
}

.nx-guide__mark svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; }

.nx-guide__titles { flex: 1 1 auto; min-width: 0; }

.nx-guide__titles h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  letter-spacing: -.015em;
  color: #fff;
}

.nx-guide__titles p {
  margin: .18rem 0 0;
  color: #9fb1c4;
  font-size: .78rem;
  line-height: 1.6;
}

.nx-guide__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(160, 198, 224, .22);
  border-radius: 11px;
  background: rgba(12, 18, 27, .8);
  color: #c8d6e4;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, transform .25s ease, background .25s ease;
}

.nx-guide__close:hover {
  border-color: rgba(255, 143, 163, .55);
  color: #ffd9e0;
  background: rgba(255, 143, 163, .1);
  transform: rotate(90deg);
}

.nx-guide__body {
  position: relative;
  display: grid;
  gap: .6rem;
  padding: 1rem 1.3rem 1.1rem;
}

.nx-guide__step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  padding: .85rem .95rem;
  border: 1px solid rgba(160, 198, 224, .16);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(23, 34, 48, .75), rgba(8, 12, 19, .82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .3s ease, transform .3s var(--nx-ease-out), box-shadow .3s ease;
  animation: nx-step-in .55s var(--nx-ease-out) both;
}

.nx-guide__step:nth-child(1) { animation-delay: .08s; }
.nx-guide__step:nth-child(2) { animation-delay: .18s; }
.nx-guide__step:nth-child(3) { animation-delay: .28s; }

.nx-guide__step:hover {
  border-color: rgba(var(--nx-cyan-rgb), .45);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38), 0 0 24px rgba(var(--nx-cyan-rgb), .08);
}

.nx-guide__num {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 11px;
  background: linear-gradient(150deg, rgba(var(--nx-cyan-rgb), .22), rgba(var(--nx-violet-rgb), .2));
  border: 1px solid rgba(var(--nx-cyan-rgb), .34);
  color: var(--nx-ice);
  font: 800 .82rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

.nx-guide__step:nth-child(2) .nx-guide__num {
  background: linear-gradient(150deg, rgba(var(--nx-violet-rgb), .26), rgba(var(--nx-magenta-rgb), .16));
  border-color: rgba(var(--nx-violet-rgb), .42);
  color: #e6dcff;
}

.nx-guide__step:nth-child(3) .nx-guide__num {
  background: linear-gradient(150deg, rgba(var(--nx-gold-rgb), .24), rgba(var(--nx-mint-rgb), .14));
  border-color: rgba(var(--nx-gold-rgb), .4);
  color: #ffeccd;
}

.nx-guide__copy { min-width: 0; }

.nx-guide__copy strong {
  display: block;
  font-size: .92rem;
  color: #f6fbff;
  letter-spacing: -.01em;
}

.nx-guide__copy > p {
  margin: .22rem 0 0;
  color: #a6b7c9;
  font-size: .78rem;
  line-height: 1.65;
}

.nx-guide__flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .55rem;
}

.nx-guide__box {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .28rem .5rem;
  border: 1px solid rgba(var(--nx-cyan-rgb), .24);
  border-radius: 8px;
  background: rgba(var(--nx-cyan-rgb), .07);
  color: #dcf4fd;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.nx-guide__box b {
  color: var(--nx-cyan);
  font: 800 .6rem/1 ui-monospace, monospace;
  opacity: .9;
}

.nx-guide__box--end {
  border-color: rgba(var(--nx-mint-rgb), .34);
  background: rgba(var(--nx-mint-rgb), .09);
  color: #c6fbea;
}

.nx-guide__box--end b { color: var(--nx-mint); }

.nx-guide__arrow {
  display: grid;
  place-items: center;
  width: 1rem;
  color: rgba(var(--nx-cyan-rgb), .75);
  flex: 0 0 auto;
}

.nx-guide__arrow svg {
  width: .8rem;
  height: .8rem;
  transform: scaleX(-1);
  animation: nx-arrow-nudge 2.2s ease-in-out infinite;
}

html[dir="ltr"] .nx-guide__arrow svg { transform: none; }

.nx-guide__foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.3rem 1.1rem;
  border-top: 1px solid rgba(160, 198, 224, .14);
  background: linear-gradient(180deg, transparent, rgba(var(--nx-cyan-rgb), .035));
}

.nx-guide__note {
  flex: 1 1 12rem;
  color: #8fa1b3;
  font-size: .69rem;
  line-height: 1.6;
}

.nx-guide__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.6rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--nx-spectrum);
  background-size: 220% 100%;
  color: #04121a;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(var(--nx-cyan-rgb), .22), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .28s var(--nx-ease-spring), box-shadow .28s ease;
  animation: nx-spectrum-pan 9s linear infinite;
}

.nx-guide__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(var(--nx-cyan-rgb), .32);
}

.nx-guide__ghost {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.6rem;
  padding: 0 .9rem;
  border: 1px solid rgba(160, 198, 224, .26);
  border-radius: 11px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(145deg, #26384b, #172536) !important;
  color: #f4f9ff !important;
  border-color: rgba(184, 248, 255, .42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 5px 16px rgba(0,0,0,.24);
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .25s ease, transform .25s ease, color .25s ease;
}

.nx-guide__ghost:hover {
  border-color: rgba(var(--nx-gold-rgb), .55);
  color: #ffeccd;
  transform: translateY(-1px);
}

body.nx-modal-open { overflow: hidden; }

/* -------------------------------------------------------- micro motions -- */
.nx-reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(.99);
  transition: opacity .7s var(--nx-ease-out), transform .8s var(--nx-ease-out);
  transition-delay: var(--nx-delay, 0ms);
  will-change: opacity, transform;
}

.nx-reveal.is-in {
  opacity: 1;
  transform: none;
}

.nx-tilt {
  transform: perspective(900px) rotateX(var(--nx-rx, 0deg)) rotateY(var(--nx-ry, 0deg)) translateZ(0);
  transition: transform .35s var(--nx-ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nx-tilt-on:hover { --nx-ry: 0deg; }
}

/* ------------------------------------------------------------ keyframes -- */
@keyframes nx-bloom-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: .5; }
  50%  { transform: translate3d(4vw, 3vh, 0) scale(1.12); opacity: .66; }
  100% { transform: translate3d(-2vw, 5vh, 0) scale(1.04); opacity: .46; }
}
@keyframes nx-bloom-b {
  0%   { transform: translate3d(0, 0, 0) scale(1.04); opacity: .46; }
  50%  { transform: translate3d(-5vw, 4vh, 0) scale(1.16); opacity: .62; }
  100% { transform: translate3d(2vw, -3vh, 0) scale(1); opacity: .5; }
}
@keyframes nx-bloom-c {
  0%   { transform: translate3d(-3vw, 2vh, 0) scale(.96); opacity: .38; }
  50%  { transform: translate3d(3vw, -2vh, 0) scale(1.1); opacity: .54; }
  100% { transform: translate3d(-1vw, -4vh, 0) scale(1); opacity: .34; }
}
@keyframes nx-bloom-d {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: .3; }
  100% { transform: translate3d(-4vw, -3vh, 0) scale(1.18); opacity: .5; }
}
@keyframes nx-hex-drift {
  from { background-position: 0 0; }
  to   { background-position: 333px 288px; }
}
@keyframes nx-lattice-drift {
  from { background-position: 0 0; }
  to   { background-position: 320px 320px; }
}
@keyframes nx-arabesque-drift {
  from { background-position: 0 0; }
  to   { background-position: -240px 480px; }
}
@keyframes nx-circuit-breathe {
  0%, 100% { opacity: .18; transform: scale(1); }
  50%      { opacity: .3; transform: scale(1.02); }
}
@keyframes nx-beam-sweep {
  0%   { transform: translateY(0); opacity: 0; }
  8%   { opacity: .8; }
  55%  { opacity: .55; }
  100% { transform: translateY(150vh); opacity: 0; }
}
@keyframes nx-grid-slide {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 72px, 72px 0; }
}
@keyframes nx-grain-shift {
  0%   { transform: translate3d(0, 0, 0); }
  25%  { transform: translate3d(-2%, 1%, 0); }
  50%  { transform: translate3d(1%, -2%, 0); }
  75%  { transform: translate3d(-1%, 2%, 0); }
  100% { transform: translate3d(2%, -1%, 0); }
}
@keyframes nx-frame-spectrum {
  0%   { filter: hue-rotate(0deg); }
  50%  { filter: hue-rotate(24deg); }
  100% { filter: hue-rotate(0deg); }
}
@keyframes nx-spectrum-pan {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes nx-text-spectrum {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes nx-logo-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-1px) scale(1.04); }
}
@keyframes nx-rotate { to { transform: rotate(360deg); } }
@keyframes nx-dash-rotate { to { transform: rotate(-360deg); } }
@keyframes nx-pulse-soft {
  0%, 100% { opacity: .35; transform: scale(.94); }
  50%      { opacity: .7; transform: scale(1.06); }
}
@keyframes nx-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes nx-live {
  0%   { box-shadow: 0 0 0 0 rgba(var(--nx-mint-rgb), .8); }
  70%  { box-shadow: 0 0 0 7px rgba(var(--nx-mint-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--nx-mint-rgb), 0); }
}
@keyframes nx-dot-ping {
  0%   { box-shadow: 0 0 0 0 rgba(var(--nx-gold-rgb), .7); }
  70%  { box-shadow: 0 0 0 6px rgba(var(--nx-gold-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--nx-gold-rgb), 0); }
}
@keyframes nx-sheen {
  0%, 55%   { transform: translateX(-130%); opacity: 0; }
  62%       { opacity: 1; }
  100%      { transform: translateX(130%); opacity: 0; }
}
@keyframes nx-guide-sheen {
  0%, 72%  { transform: translateX(-120%); }
  86%      { transform: translateX(120%); }
  100%     { transform: translateX(120%); }
}
@keyframes nx-scan {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: 1; }
  72%  { opacity: .6; }
  100% { transform: translateY(340%); opacity: 0; }
}
@keyframes nx-runner {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(15rem); opacity: 0; }
}
@keyframes nx-flow-in {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes nx-pop-in {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes nx-dialog-in {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes nx-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nx-step-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes nx-toast-in {
  from { opacity: 0; transform: translate(-50%, 14px) scale(.96); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes nx-arrow-nudge {
  0%, 100% { transform: scaleX(-1) translateX(0); opacity: .6; }
  50%      { transform: scaleX(-1) translateX(-3px); opacity: 1; }
}
@keyframes nx-bracket-glow {
  0%, 100% { opacity: .55; }
  50%      { opacity: .92; }
}
@keyframes nx-cta-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -2px; }
}
@keyframes nx-ready-glow {
  0%, 100% { box-shadow: 0 16px 40px rgba(var(--nx-cyan-rgb), .2), 0 0 0 1px rgba(255, 255, 255, .16) inset; }
  50%      { box-shadow: 0 20px 52px rgba(var(--nx-cyan-rgb), .34), 0 0 34px rgba(var(--nx-violet-rgb), .18), 0 0 0 1px rgba(255, 255, 255, .2) inset; }
}
@keyframes nx-step-pulse {
  0%, 100% { box-shadow: inset 2px 0 0 var(--nx-cyan), 0 0 16px rgba(var(--nx-cyan-rgb), .08); }
  50%      { box-shadow: inset 2px 0 0 var(--nx-cyan), 0 0 26px rgba(var(--nx-cyan-rgb), .18); }
}
@keyframes nx-drop-breathe {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(var(--nx-cyan-rgb), .05), 0 0 0 rgba(var(--nx-cyan-rgb), 0); }
  50%      { box-shadow: inset 0 0 30px rgba(var(--nx-cyan-rgb), .07), 0 0 34px rgba(var(--nx-cyan-rgb), .06); }
}
@keyframes nx-sound-pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.16); }
  100% { transform: scale(1); }
}

/* ------------------------------------------------------------- responsive -- */
/* ---------------------------------------------------------------------------
   Layer reclaim
   The workbench reset hides body backgrounds and every decorative pseudo
   element; these declarations restore them with matching strength so the art
   layers, corner brackets and inner textures are actually painted.
   ------------------------------------------------------------------------- */
body,
body:has(#pb_root),
body:not(:has(#pb_root)) {
  background-color: transparent !important;
  background-image: none !important;
}

#pb_root .hero_panel::after,
#pb_root .card-wrap::after,
.nyxo-account .panel::after,
.nyxo-account .identity::after {
  content: "" !important;
  display: block !important;
  pointer-events: none !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
}

@media (max-width: 1180px) {
  .nx-guide-btn__text { display: none; }
  .nx-guide-btn { padding-inline: .55rem; }
}

@media (max-width: 900px) {
  #pb_root .hero_panel {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
  }
  #pb_root .hero_visual { margin-top: .4rem; }
  #pb_root .hero_visual::after { display: none; }
}

@media (max-width: 680px) {
  .nx-aura__bloom { filter: blur(54px); opacity: .45; }
  .nx-aura__arabesque { opacity: .3; }
  .nx-aura__hex { opacity: .34; }
  .nx-aura__hatch { opacity: .16; }
  #pb_topbar::after { opacity: .6; }
  .nx-guide__dialog { border-radius: 20px; }
  .nx-guide__head { padding: .85rem .9rem .8rem; gap: .65rem; }
  .nx-guide__mark { width: 2.35rem; height: 2.35rem; border-radius: 11px; }
  .nx-guide__mark svg { width: 1.2rem; height: 1.2rem; }
  .nx-guide__titles p { font-size: .72rem; }
  .nx-guide__body { padding: .8rem .9rem .9rem; gap: .5rem; }
  .nx-guide__step { padding: .7rem .75rem; gap: .65rem; border-radius: 14px; }
  .nx-guide__num { width: 2rem; height: 2rem; border-radius: 9px; font-size: .74rem; }
  .nx-guide__copy strong { font-size: .86rem; }
  .nx-guide__copy > p { font-size: .74rem; }
  .nx-guide__box { font-size: .63rem; padding: .24rem .42rem; }
  .nx-guide__foot { padding: .8rem .9rem .95rem; gap: .45rem; }
  .nx-guide__cta, .nx-guide__ghost { flex: 1 1 auto; justify-content: center; min-height: 2.7rem; }
  .nx-guide__note { flex-basis: 100%; order: 3; text-align: center; }
  .nx-sound-panel { position: fixed; inset-inline: .75rem; top: auto; bottom: calc(5.6rem + env(safe-area-inset-bottom)); width: auto; }
  #pb_root .hero_panel { border-radius: 18px !important; padding: 1.1rem !important; }
  #pb_root .hero_flow_step { padding: .6rem .7rem !important; }
  #pb_root .hero_flow_step strong { font-size: .78rem !important; }
  #pb_root .hero_flow_step small { font-size: .66rem !important; }
}

@media (max-width: 420px) {
  .nx-guide-btn { height: 2.4rem; margin-inline-start: .15rem; }
  .nx-guide-btn__icon { width: 1.4rem; height: 1.4rem; }
  #pb_root .hero_panel h2 { font-size: clamp(1.5rem, 7.4vw, 2rem) !important; }
  #pb_root .hero_flow_step > span { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nx-aura { display: none; }
  #pb_topbar, .pub-top, .x-top { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #070c14 !important; }
  #pb_root .hero_panel, #pb_root .card-wrap { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-aura__bloom,
  .nx-aura__hex,
  .nx-aura__arabesque,
  .nx-aura__circuit,
  .nx-aura__beam,
  .nx-aura__lines,
  .nx-aura__grain,
  #pb_topbar::after,
  .brand_logo,
  .brand_title_row h1,
  #pb_root .hero_panel h2,
  #pb_root .hero_visual::before,
  #pb_root .hero_visual::after,
  #pb_root .hero_flow_step,
  #pb_root .hero_visual .hero_flow::after,
  #pb_root #drop_zone,
  #pb_root #drop_zone::after,
  #pb_root .drop_visual,
  #pb_root .drop_visual::before,
  #pb_root .drop_visual::after,
  #pb_root .progress_orbit,
  #pb_root .progress_orbit::before,
  #pb_root .pb_bar,
  #pb_root #run_btn,
  #pb_root #run_btn::after,
  .dashboard_hero_primary,
  .dashboard_hero_primary::after,
  .nx-guide-btn::before,
  .nx-guide__arrow svg,
  #pb_root .hero_panel::before,
  #pb_root .card-wrap::before,
  body::after {
    animation: none !important;
  }
  .nx-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .nx-spotlight { display: none !important; }
  .nx-aura__canvas { display: none !important; }
}

@media print {
  .nx-aura, .nx-spotlight, .nx-guide, .nx-sound-panel { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
}

/* Programming-only atmosphere: the canvas draws the network; no textile ornaments. */
.nx-aura__circuit { background: none !important; opacity: 0 !important; }
.nx-aura__lines {
  opacity: .28 !important;
  background-image:
    linear-gradient(90deg, rgba(var(--nx-cyan-rgb), .06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(var(--nx-violet-rgb), .045) 1px, transparent 1px) !important;
  background-size: 88px 88px, 88px 88px !important;
}
.nx-rule__seal { display: none !important; }
.nx-rule { opacity: .65; }

/* Canvas network: readable technical traces behind the panels. */
.nx-aura__canvas {
  z-index: 0 !important;
  opacity: .92 !important;
  mix-blend-mode: screen;
}
.nx-aura__scrim { z-index: 1 !important; opacity: .22 !important; }
.nx-aura__vignette { z-index: 2 !important; }

/* Compact app header: brand stays as one lockup, four touch targets stay together. */
#pb_topbar .brand_lockup {
  width: auto !important;
  justify-content: flex-start !important;
  gap: .55rem !important;
  flex: 0 0 auto;
}
#pb_topbar .brand_logo { margin-inline-end: 0 !important; }
#pb_topbar .brand_copy { flex: 0 0 auto; }
#pb_topbar .brand_title_row h1 { max-width: none; }
#pb_topbar .top-bar-items {
  flex: 0 0 auto;
  width: max-content;
  justify-content: flex-end !important;
  gap: .55rem !important;
  justify-self: end;
}
#pb_topbar .top_projects_link { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: auto; min-width: 2.6rem; max-width: 7rem; padding-inline: .68rem; color: var(--nx-ice); }
#pb_topbar .top_projects_link span { display: inline; font-size: .72rem; font-weight: 800; }
.nx-guide-btn { flex: 0 0 auto; }
.mobile_bottom_nav { padding-inline-start: .45rem !important; }
body.scroll_top_on .mobile_bottom_nav { padding-inline-start: 3.5rem !important; }
@media (max-width: 680px) {
  #pb_topbar { gap: .35rem; padding-inline: .62rem; }
  #pb_topbar .brand_lockup { width: 100% !important; justify-content: flex-start !important; gap: .42rem !important; }
  #pb_topbar .brand_logo { width: 1.95rem; }
  #pb_topbar .brand_title_row h1 { font-size: .88rem; }
  #pb_topbar .nx-guide-btn {
    width: auto !important;
    min-width: 0;
    height: 2.45rem;
    margin-inline-start: .2rem;
    padding-inline: .6rem !important;
    justify-content: center;
  }
  #pb_topbar .nx-guide-btn__text { display: inline !important; font-size: .68rem; }
  #pb_topbar .nx-guide-btn__dot { display: none; }
  #pb_topbar .top-bar-items { width: max-content; justify-self: end; justify-content: flex-end !important; gap: .45rem !important; }
  #pb_topbar .mobile_search_btn, #pb_topbar .notification_btn, #pb_topbar .header_icon_btn#auth_open_btn, #pb_topbar .nx-sound-btn {
    width: 2.55rem; min-width: 2.55rem; max-width: 2.55rem; height: 2.55rem; min-height: 2.55rem; padding: 0; border-radius: .82rem;
  }
  .mobile_bottom_nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; padding: .38rem !important; }
  .mobile_nav_item { min-width: 0; min-height: 3.2rem; font-size: .55rem; }
}
@media (max-width: 360px) {
  #pb_topbar { padding-inline: .48rem; }
  #pb_topbar .brand_logo { width: 1.72rem; }
  #pb_topbar .brand_title_row h1 { font-size: .76rem; }
  #pb_topbar .nx-guide-btn { padding-inline: .42rem !important; }
  #pb_topbar .nx-guide-btn__text { font-size: .62rem; }
  #pb_topbar .top-bar-items { gap: .3rem !important; }
  #pb_topbar .mobile_search_btn, #pb_topbar .notification_btn, #pb_topbar .header_icon_btn#auth_open_btn, #pb_topbar .nx-sound-btn { width: 2.25rem; min-width: 2.25rem; max-width: 2.25rem; }
}
