/* NYXO ambient shell — shared page background inspired by the supplied dark circuit reference. */
:root {
  --nx-ambient-bg: #071018;
  --nx-ambient-bg-deep: #050a10;
  --nx-ambient-cyan: #58d6e8;
  --nx-ambient-cyan-soft: #a5f3fc;
  --nx-ambient-line: rgba(157, 225, 244, .14);
}

html {
  min-height: 100%;
  background: var(--nx-ambient-bg-deep) !important;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 12% -12%, rgba(88, 214, 232, .13), transparent 33rem),
    radial-gradient(ellipse at 94% 18%, rgba(165, 243, 252, .065), transparent 28rem),
    radial-gradient(ellipse at 50% 120%, rgba(20, 85, 106, .16), transparent 38rem),
    linear-gradient(145deg, var(--nx-ambient-bg), var(--nx-ambient-bg-deep) 72%) !important;
}

/* Quiet circuit-board texture: visible enough to give depth, never loud enough to compete with content. */
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(88, 214, 232, .11) 18.1% 18.2%, transparent 18.3% 100%),
    linear-gradient(0deg, transparent 0 42%, rgba(165, 243, 252, .08) 42.1% 42.2%, transparent 42.3% 100%),
    url('/static/vendor/hero/circuit-board.svg') center / 304px 304px repeat;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.78) 48%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.78) 48%, transparent 100%);
}

/* Soft edge glows echo the illuminated frame in the reference image. */
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 14px;
  pointer-events: none;
  border: 1px solid rgba(157, 225, 244, .07);
  border-radius: 28px;
  box-shadow: inset 0 0 70px rgba(88, 214, 232, .035), 0 0 80px rgba(88, 214, 232, .025);
}

:where(.pub-top, #pb_topbar, .x-top, .ws-top, .nyxo-account > main > header, .nyxo-downloads .top, .nyxo-admin .top) {
  border-color: var(--nx-ambient-line) !important;
  box-shadow: 0 16px 44px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.035) !important;
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

:where(.pub-card, .panel, .card-wrap, .hero_panel, .detail, .contact, .identity, .stat, .window, .side, .ws-card, .ws-console) {
  border-color: var(--nx-ambient-line) !important;
  box-shadow: 0 20px 54px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.025) !important;
}

:where(a, button, .button, .pub-btn, .np-btn, .ws-btn, input, select, textarea):focus-visible {
  outline-color: var(--nx-ambient-cyan-soft) !important;
}

@media (max-width: 640px) {
  body::after { inset: 8px; border-radius: 20px; }
  body::before { opacity: .11; background-size: 230px 230px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none !important; }
}
