/* PiXELBURGH Network Theme M1 -- scoped front-end design layer.
   Does not style admin, standalone PROXY SiTES, or Cyberwave's own pages. */
body.pb-network-theme:not(.pbco-page):not(.pb-crossings-site):not(.pb-showcase-page){
  --pbntm-accent:#75deed;
  --pbntm-panel-opacity:.46;
  --pbntm-blur:22px;
  --pbntm-overlay:.52;
  --pbntm-vignette:.42;
  --pbntm-radius:18px;
  color:#e7f3ff;
  background:#050815!important;
  overflow-x:clip;
}
/* Fixed scenic layer is behind the site but not behind the root canvas.
   The gradient offers readable contrast even when images fail to load. */
body.pb-network-theme:not(.pbco-page):not(.pb-crossings-site):not(.pb-showcase-page)::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:1;
  background-color:#080c19;
  background-image:
    radial-gradient(ellipse at 50% 68%, transparent 18%, rgba(2,3,12,var(--pbntm-vignette)) 100%),
    linear-gradient(180deg,rgba(4,7,18,var(--pbntm-overlay)),rgba(4,7,18,var(--pbntm-overlay)) 74%,#050915 100%),
    var(--pbntm-image);
  background-repeat:no-repeat,no-repeat,var(--pbntm-repeat);
  background-size:cover,cover,var(--pbntm-image-size);
  background-position:center,center,var(--pbntm-position);
}
/* Wrapper transparency is carefully scoped; no positioning changes to the header. */
body.pb-network-theme:not(.pbco-page):not(.pb-crossings-site):not(.pb-showcase-page) :is(#page,.site,.site-content,.content-area,.site-main,.entry,.entry-content,.ast-plain-container,.ast-page-builder-template,.ast-separate-container,.ast-separate-container .ast-article-single){
  background-color:transparent!important;
}
body.pb-network-theme:not(.pbco-page):not(.pb-crossings-site):not(.pb-showcase-page) :is(#page,.site){position:relative;z-index:1;}
/* Keep native wordpress content and footer above the background without affecting fixed HUD. */
body.pb-network-theme .pb-global-footer{position:relative;z-index:2;}
/* Glass panels: preserve each plugin's internal layout, spacing, inputs, & ownership. */
body.pb-network-theme:not(.pbco-page) :is(.pb-panel,.pb-support){
  color:#eaf4ff;
  border-radius:var(--pbntm-radius);
  border:1px solid color-mix(in srgb,var(--pbntm-accent) 37%,transparent);
  background:linear-gradient(138deg,
    rgba(35,31,66,var(--pbntm-panel-opacity)),
    rgba(6,15,38,var(--pbntm-panel-opacity)) 57%,
    rgba(26,20,52,var(--pbntm-panel-opacity)))!important;
  -webkit-backdrop-filter:blur(var(--pbntm-blur)) saturate(160%);
  backdrop-filter:blur(var(--pbntm-blur)) saturate(160%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 18px 66px rgba(0,0,0,.36);
}
/* Legacy styling compatibility only where Core deliberately uses the token. */
body.pb-network-theme .pb-h{color:var(--pbntm-accent);}
body.pb-network-theme .pb-tag{color:var(--pbntm-accent);border-color:color-mix(in srgb,var(--pbntm-accent) 50%,transparent);}
body.pb-network-theme .pb-btn{border-color:color-mix(in srgb,var(--pbntm-accent) 45%,transparent);}
body.pb-network-theme .pb-support__eyebrow,
body.pb-network-theme .pb-global-footer__brand span{color:var(--pbntm-accent);}
body.pb-network-theme .pb-support{max-width:min(940px,calc(100% - 28px));}
body.pb-network-theme .pb-global-footer--network{
  background:linear-gradient(125deg,rgba(9,18,36,.83),rgba(8,12,26,.91));
  -webkit-backdrop-filter:blur(min(var(--pbntm-blur),20px));
  backdrop-filter:blur(min(var(--pbntm-blur),20px));
}
body.pb-network-theme :is(.pb-btn,.pb-support__submit):focus-visible{outline:2px solid var(--pbntm-accent);outline-offset:3px;}
@media(max-width:767px){
  body.pb-network-theme:not(.pbco-page):not(.pb-crossings-site):not(.pb-showcase-page)::before{
    background-image:
      radial-gradient(ellipse at 50% 65%,transparent 8%,rgba(2,3,12,var(--pbntm-vignette)) 100%),
      linear-gradient(180deg,rgba(4,7,18,var(--pbntm-overlay)),rgba(4,7,18,.84) 95%),
      var(--pbntm-image-mobile);
    background-position:center,center,var(--pbntm-position-mobile);
    background-attachment:scroll;
  }
  body.pb-network-theme:not(.pbco-page) :is(.pb-panel,.pb-support){
    -webkit-backdrop-filter:blur(min(var(--pbntm-blur),12px));
    backdrop-filter:blur(min(var(--pbntm-blur),12px));
  }
}
@media(prefers-reduced-transparency:reduce){
  body.pb-network-theme:not(.pbco-page) :is(.pb-panel,.pb-support){background:#0b1528!important;backdrop-filter:none;-webkit-backdrop-filter:none;}
}
@media(prefers-reduced-motion:reduce){
  body.pb-network-theme :is(.pb-panel,.pb-support){transition:none!important;}
}
@supports not (backdrop-filter:blur(1px)){
  body.pb-network-theme:not(.pbco-page) :is(.pb-panel,.pb-support){background:rgba(10,19,39,.92)!important;}
}

/* M1.1: SOURCE-ACCURATE CROSSiNGS / Zero Point Drift atmosphere.
   The screenshot's almost-black starfield comes from a subdued album image
   plus a separate star/noise veil, not from the bright Cyberwave M1 room. */
body.pb-network-theme.pb-network-theme--crossings:not(.pbco-page):not(.pb-crossings-site):not(.pb-showcase-page){
  background:#020812!important;
  color:#eaf1fa;
}
body.pb-network-theme.pb-network-theme--crossings:not(.pbco-page):not(.pb-crossings-site):not(.pb-showcase-page)::before{
  background-color:transparent;
  background-image:
    radial-gradient(ellipse at 50% 58%,transparent 12%,rgba(2,3,12,var(--pbntm-vignette)) 100%),
    linear-gradient(180deg,rgba(3,8,24,.78),rgba(5,12,31,.88) 56%,rgba(2,7,18,.96)),
    var(--pbntm-image);
  background-repeat:no-repeat,no-repeat,var(--pbntm-repeat);
  background-size:cover,cover,var(--pbntm-image-size);
  background-position:center,center,var(--pbntm-position);
  opacity:clamp(.18,calc(1 - var(--pbntm-overlay) * 1.1),.82);
  filter:saturate(.82) brightness(.68);
}
body.pb-network-theme.pb-network-theme--crossings:not(.pbco-page):not(.pb-crossings-site):not(.pb-showcase-page)::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background-image:
    radial-gradient(circle at 50% 18%,rgba(125,145,255,.14),transparent 30%),
    radial-gradient(circle at 78% 64%,rgba(192,102,255,.08),transparent 23%),
    var(--pbntm-noise);
  background-size:cover,cover,520px 520px;
  background-repeat:no-repeat,no-repeat,repeat;
  opacity:.26;
  mix-blend-mode:screen;
}
body.pb-network-theme.pb-network-theme--crossings:not(.pbco-page) :is(.pb-panel,.pb-support){
  color:#eaf1fa;
  border:1px solid color-mix(in srgb,var(--pbntm-accent) 17%,transparent);
  background:linear-gradient(145deg,
    rgba(151,165,255,calc(var(--pbntm-panel-opacity) * .16)),
    rgba(6,13,31,var(--pbntm-panel-opacity)) 60%,
    rgba(4,10,25,var(--pbntm-panel-opacity)))!important;
  -webkit-backdrop-filter:blur(var(--pbntm-blur)) saturate(110%);
  backdrop-filter:blur(var(--pbntm-blur)) saturate(110%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 16px 44px rgba(0,0,0,.14);
}
body.pb-network-theme.pb-network-theme--crossings:not(.pbco-page) :is(.pb-panel,.pb-support):hover{
  border-color:color-mix(in srgb,var(--pbntm-accent) 34%,transparent);
}
body.pb-network-theme.pb-network-theme--crossings .pb-global-footer--network{
  background:linear-gradient(130deg,rgba(5,13,30,.82),rgba(4,9,22,.89));
}
@media(max-width:767px){
  body.pb-network-theme.pb-network-theme--crossings:not(.pbco-page):not(.pb-crossings-site):not(.pb-showcase-page)::before{
    background-image:radial-gradient(ellipse at 50% 58%,transparent 12%,rgba(2,3,12,var(--pbntm-vignette)) 100%),linear-gradient(180deg,rgba(3,8,24,.78),rgba(5,12,31,.88) 56%,rgba(2,7,18,.96)),var(--pbntm-image-mobile);
    background-size:cover,cover,var(--pbntm-image-size);
    background-position:center,center,var(--pbntm-position-mobile);
  }
}
@media(prefers-reduced-transparency:reduce){
 body.pb-network-theme.pb-network-theme--crossings:not(.pbco-page) :is(.pb-panel,.pb-support){
   background:rgba(5,13,29,.96)!important;
   backdrop-filter:none;-webkit-backdrop-filter:none;
 }
}
@supports not (backdrop-filter:blur(1px)){
 body.pb-network-theme.pb-network-theme--crossings:not(.pbco-page) :is(.pb-panel,.pb-support){
   background:rgba(5,13,29,.93)!important;
 }
}
