/* =========================================================
   NightPN approved public header — matched to homepage
========================================================= */
.public-header-shell{
  position:relative;
  height:108px;
  z-index:80;
}
.mobile-live-header{
  display:flex !important;
  position:absolute !important;
  z-index:20 !important;
  top:16px !important;
  left:5.2% !important;
  right:5.2% !important;
  height:76px !important;
  padding:0 20px !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:22px !important;
  border:1px solid rgba(122,190,243,.15) !important;
  border-radius:24px !important;
  background:linear-gradient(180deg,rgba(4,13,22,.985),rgba(2,8,14,.97)) !important;
  box-shadow:0 18px 60px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.018) !important;
  direction:rtl !important;
  line-height:normal !important;
}
.mobile-brand{
  order:1;
  flex:0 0 auto;
  display:inline-flex !important;
  align-items:center !important;
  gap:10px !important;
  color:#f6f9fc !important;
  text-decoration:none !important;
  font-family:Inter,"Segoe UI",Arial,sans-serif !important;
  font-size:20px !important;
  font-weight:800 !important;
  letter-spacing:.08em !important;
}
.mobile-brand img{
  width:43px !important;
  height:43px !important;
  object-fit:cover !important;
  border-radius:50% !important;
  box-shadow:0 0 18px rgba(111,195,255,.20) !important;
}
.desktop-live-nav{
  order:2;
  display:flex;
  flex:1 1 auto;
  align-items:center;
  justify-content:center;
  gap:clamp(17px,2.1vw,34px);
  min-width:0;
  direction:rtl;
}
.desktop-live-nav a,
.mobile-login,
.mobile-signup{
  box-sizing:border-box !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:40px !important;
  border:1px solid transparent !important;
  border-radius:10px !important;
  padding:0 12px !important;
  background:transparent !important;
  color:#dce7f0 !important;
  text-decoration:none !important;
  font-family:var(--font-fa)!important;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  box-shadow:none !important;
  transition:background .18s ease,border-color .18s ease,color .18s ease !important;
}
.desktop-live-nav a:hover,
.mobile-login:hover,
.mobile-signup:hover{
  color:#84ceff !important;
  background:rgba(111,195,255,.055) !important;
  border-color:rgba(111,195,255,.12) !important;
}
.desktop-live-nav a.active{
  position:relative;
  color:#7dcaff !important;
  background:transparent !important;
  border-color:transparent !important;
}
.desktop-live-nav a.active::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-24px;
  width:54px;
  height:2px;
  transform:translateX(-50%);
  background:linear-gradient(90deg,transparent,#67c4ff,transparent);
  box-shadow:0 0 12px rgba(103,196,255,.55);
}
.mobile-header-actions{
  order:3;
  flex:0 0 auto;
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
}
.mobile-login,.mobile-signup{
  width:74px !important;
  min-width:74px !important;
  max-width:74px !important;
}
.mobile-menu-toggle{
  display:none !important;
  width:40px;
  height:40px;
  border:1px solid rgba(124,190,244,.22);
  border-radius:12px;
  background:rgba(3,11,19,.35);
  color:#eaf5ff;
  font-size:20px;
  cursor:pointer;
}
.mobile-dropdown{
  display:none !important;
  position:absolute;
  top:64px;
  left:0;
  right:0;
  z-index:21;
  padding:10px;
  border:1px solid rgba(122,190,243,.14);
  border-radius:16px;
  background:rgba(3,11,19,.97);
  box-shadow:0 18px 46px rgba(0,0,0,.35);
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  direction:rtl;
}
.mobile-dropdown a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:11px 12px;
  border-radius:10px;
  background:rgba(255,255,255,.025);
  color:#d7e5f1;
  text-decoration:none;
  font-family:var(--font-fa)!important;
  font-size:12px;
  font-weight:700;
  text-align:center;
}
.mobile-dropdown .dropdown-auth{
  border:1px solid rgba(111,195,255,.12) !important;
  background:rgba(111,195,255,.04) !important;
}
.mobile-dropdown .dropdown-auth.signup{
  color:#07131b !important;
  background:linear-gradient(135deg,#73c5fb,#a9e0ff) !important;
  border:0 !important;
}
.mobile-dropdown .dropdown-auth.login{
  color:#eaf5ff !important;
  border:1px solid rgba(124,190,244,.22) !important;
  background:rgba(255,255,255,.035) !important;
}

@media (max-width:1280px){
  .mobile-live-header{
    left:3.4% !important;
    right:3.4% !important;
    height:70px !important;
    padding:0 16px !important;
    gap:14px !important;
  }
  .mobile-brand{font-size:17px !important}
  .mobile-brand img{width:38px !important;height:38px !important}
  .desktop-live-nav{gap:8px !important}
  .desktop-live-nav a{
    height:38px !important;
    padding-inline:9px !important;
    font-size:11px !important;
  }
  .mobile-login,.mobile-signup{
    width:64px !important;
    min-width:64px !important;
    max-width:64px !important;
    height:38px !important;
    font-size:11px !important;
    padding:0 8px !important;
  }
}
@media (max-width:1080px){
  .desktop-live-nav{display:none !important}
  .mobile-login,.mobile-signup{display:none !important}
  .mobile-menu-toggle{
    display:inline-grid !important;
    place-items:center !important;
  }
  .mobile-dropdown.open{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width:980px){
  .public-header-shell{height:88px}
  .mobile-live-header{
    top:10px !important;
    left:12px !important;
    right:12px !important;
    height:64px !important;
    border-radius:18px !important;
    padding:0 13px !important;
  }
  .mobile-dropdown.open{
    top:58px !important;
    left:0 !important;
    right:0 !important;
  }
}
@media (max-width:640px){
  .public-header-shell{height:76px}
  .mobile-live-header{
    left:8px !important;
    right:8px !important;
    top:8px !important;
    height:58px !important;
    padding:0 10px !important;
    border-radius:16px !important;
  }
  .mobile-brand{font-size:14px !important;gap:6px !important}
  .mobile-brand img{width:32px !important;height:32px !important}
  .mobile-menu-toggle{
    width:34px !important;
    height:34px !important;
    font-size:17px !important;
  }
  .mobile-dropdown.open{
    top:52px !important;
    grid-template-columns:1fr !important;
  }
}
@media (max-width:390px){
  .mobile-brand span{display:none}




}

/* NIGHTPN_SMART_USER_HEADER */

.mobile-live-header{
  overflow:visible !important;
}

/* Nothing auth-related is shown before session state is known. */
body:not(.nightpn-auth-ready)
.mobile-header-actions > .mobile-login,
body:not(.nightpn-auth-ready)
.mobile-header-actions > .mobile-signup{
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.nightpn-user-menu-wrap[hidden],
.nightpn-profile-menu[hidden]{
  display:none !important;
}

.nightpn-user-menu-wrap{
  display:none;
  position:relative;
  flex:0 0 auto;
}

/* Guest */
body.nightpn-auth-ready.nightpn-auth-guest
.mobile-header-actions > .mobile-login,
body.nightpn-auth-ready.nightpn-auth-guest
.mobile-header-actions > .mobile-signup{
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}

/* Authenticated */
body.nightpn-authenticated
.mobile-header-actions > .mobile-login,
body.nightpn-authenticated
.mobile-header-actions > .mobile-signup{
  display:none !important;
}

body.nightpn-authenticated
.nightpn-user-menu-wrap{
  display:block !important;
}

/* Avatar button */
.nightpn-profile-trigger{
  width:42px;
  height:42px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid rgba(126,195,247,.22);
  border-radius:50%;
  background:
    linear-gradient(145deg,#0c2233,#06111a);
  color:#dff3ff;
  cursor:pointer;
  box-shadow:
    inset 0 1px rgba(255,255,255,.035),
    0 0 18px rgba(73,166,228,.09);
  transition:
    border-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

.nightpn-profile-trigger:hover,
.nightpn-profile-trigger[aria-expanded="true"]{
  border-color:rgba(105,190,247,.48);
  box-shadow:
    inset 0 1px rgba(255,255,255,.04),
    0 0 22px rgba(82,181,244,.17);
  transform:translateY(-1px);
}

.nightpn-profile-avatar,
.nightpn-profile-menu-avatar{
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:
    linear-gradient(145deg,#12334b,#071823);
  color:#a8e1ff;
  font-family:var(--font-fa);
  font-weight:900;
  line-height:1;
}

.nightpn-profile-avatar{
  width:32px;
  height:32px;
  font-size:11px;
}

.nightpn-profile-menu-avatar{
  width:42px;
  height:42px;
  flex:0 0 42px;
  font-size:13px;
  border:1px solid rgba(124,201,250,.17);
}

.nightpn-profile-avatar img,
.nightpn-profile-menu-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}

/* Account popup */
.nightpn-profile-menu{
  position:absolute;
  z-index:120;
  top:calc(100% + 12px);
  inset-inline-end:0;
  width:286px;
  max-width:calc(100vw - 24px);
  padding:10px;
  border:1px solid rgba(126,194,250,.15);
  border-radius:18px;
  background:
    linear-gradient(
      180deg,
      rgba(6,18,29,.99),
      rgba(2,9,15,.99)
    );
  box-shadow:
    0 24px 70px rgba(0,0,0,.52),
    inset 0 1px rgba(255,255,255,.025);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  direction:rtl;
}

.nightpn-profile-menu.open{
  display:block !important;
}

.nightpn-profile-menu-head{
  display:flex;
  align-items:center;
  gap:11px;
  padding:9px 8px 11px;
}

.nightpn-profile-menu-user{
  min-width:0;
  display:grid;
  gap:4px;
  text-align:right;
}

.nightpn-profile-menu-user strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#f1f8fd;
  font-family:var(--font-fa);
  font-size:12px;
  font-weight:900;
}

.nightpn-profile-menu-user span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#718ba0;
  font-family:var(--font-fa);
  font-size:9px;
  direction:ltr;
  text-align:right;
}

.nightpn-profile-menu-sep{
  height:1px;
  margin:4px 5px;
  background:rgba(124,190,241,.09);
}

.nightpn-profile-menu-item{
  width:100%;
  min-height:42px;
  padding:0 10px;
  display:flex;
  align-items:center;
  gap:10px;
  border:0;
  border-radius:11px;
  background:transparent;
  color:#aabfce;
  text-decoration:none;
  font-family:var(--font-fa);
  font-size:10.5px;
  font-weight:750;
  text-align:right;
  cursor:pointer;
  transition:
    background .16s ease,
    color .16s ease;
}

.nightpn-profile-menu-item:hover{
  background:rgba(102,188,247,.065);
  color:#edf8ff;
}

.nightpn-profile-menu-item svg{
  width:17px;
  height:17px;
  flex:0 0 17px;
  fill:none;
  stroke:#79bce7;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.nightpn-profile-logout{
  color:#ba9299;
}

.nightpn-profile-logout svg{
  stroke:#b98a93;
}

.nightpn-profile-logout:hover{
  color:#f0b5bf;
  background:rgba(223,104,124,.055);
}

/* Logged-in user should not see auth links in hamburger menu. */
body.nightpn-authenticated
.mobile-dropdown
.dropdown-auth.login,
body.nightpn-authenticated
.mobile-dropdown
.dropdown-auth.signup{
  display:none !important;
}

@media(max-width:640px){
  .nightpn-profile-trigger{
    width:36px;
    height:36px;
  }

  .nightpn-profile-avatar{
    width:28px;
    height:28px;
    font-size:10px;
  }

  .nightpn-profile-menu{
    top:calc(100% + 10px);
    width:min(280px,calc(100vw - 20px));
  }
}


/* NIGHTPN_BRIGHT_FALLBACK_AVATAR */

/*
 * If a valid-session cookie is already present,
 * show the avatar shell immediately while Core verifies it.
 */
body.nightpn-session-hint:not(.nightpn-auth-ready)
.nightpn-user-menu-wrap,
body.nightpn-session-hint:not(.nightpn-auth-ready)
.nightpn-user-menu-wrap[hidden]{
  display:block !important;
}

/* Bright fallback when there is no uploaded profile photo. */
.nightpn-profile-avatar,
.nightpn-profile-menu-avatar{
  border-color:rgba(195,238,255,.72) !important;
  background:
    linear-gradient(
      145deg,
      #dff7ff 0%,
      #9fe4ff 48%,
      #69bdff 100%
    ) !important;
  color:#03111b !important;

  box-shadow:
    inset 0 1px rgba(255,255,255,.75),
    0 0 18px rgba(105,189,255,.28) !important;
}

.nightpn-profile-avatar-fallback,
.nightpn-profile-menu-avatar-fallback{
  color:#03111b !important;
  text-shadow:none !important;
  font-weight:950 !important;
}

/* Real user photo remains untouched. */
.nightpn-profile-avatar img:not([hidden]),
.nightpn-profile-menu-avatar img:not([hidden]){
  position:relative;
  z-index:2;
}


/* NIGHTPN_INSTANT_PUBLIC_IDENTITY */

html.nightpn-has-avatar
.nightpn-profile-avatar,
html.nightpn-has-avatar
.nightpn-profile-menu-avatar{
  background-image:
    var(--nightpn-avatar-image) !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
}

html.nightpn-has-avatar
.nightpn-profile-avatar-fallback,
html.nightpn-has-avatar
.nightpn-profile-menu-avatar-fallback{
  visibility:hidden !important;
}

html.nightpn-has-cached-identity:not(.nightpn-has-avatar)
.nightpn-profile-avatar-fallback,
html.nightpn-has-cached-identity:not(.nightpn-has-avatar)
.nightpn-profile-menu-avatar-fallback{
  font-size:0 !important;
}

html.nightpn-has-cached-identity:not(.nightpn-has-avatar)
.nightpn-profile-avatar-fallback::after,
html.nightpn-has-cached-identity:not(.nightpn-has-avatar)
.nightpn-profile-menu-avatar-fallback::after{
  content:
    var(--nightpn-avatar-initials,"");
  font-size:11px;
  font-weight:950;
  color:#03111b;
}

.nightpn-profile-trigger{
  -webkit-appearance:none !important;
  appearance:none !important;
  background:
    linear-gradient(
      145deg,
      #0c2233,
      #06111a
    ) !important;
  border:
    1px solid rgba(126,195,247,.22) !important;
  color:#dff3ff !important;
}



/* NIGHTPN_PUBLIC_BRAND_IDENTITY_V1
   Refined NightPN public-header identity.
   Header geometry / nav / auth controls untouched.
*/


/* ---------------------------------------------------------
   BRAND CONTAINER
--------------------------------------------------------- */

.mobile-live-header .mobile-brand{
  direction:rtl !important;

  display:inline-flex !important;
  align-items:center !important;

  gap:10px !important;

  padding:3px 4px !important;

  color:#f3f8fc !important;
  text-decoration:none !important;

  border-radius:14px !important;

  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif !important;

  transition:
    background .22s ease,
    transform .22s ease !important;
}


.mobile-live-header .mobile-brand:hover{
  background:
    rgba(108,194,255,.035) !important;

  transform:
    translateY(-1px) !important;
}


/* ---------------------------------------------------------
   LOGO FRAME
--------------------------------------------------------- */

.mobile-live-header .mobile-brand-mark{
  position:relative !important;

  display:grid !important;
  place-items:center !important;

  width:44px !important;
  height:44px !important;

  flex:0 0 44px !important;

  overflow:hidden !important;

  border:
    1px solid rgba(126,199,255,.18) !important;

  border-radius:
    12px !important;

  background:
    radial-gradient(
      circle at 45% 22%,
      rgba(102,196,255,.11),
      transparent 58%
    ),
    linear-gradient(
      145deg,
      rgba(11,28,43,.96),
      rgba(3,11,18,.98)
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 6px 18px rgba(0,0,0,.18),
    0 0 18px rgba(88,182,246,.07) !important;

  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease !important;
}


.mobile-live-header .mobile-brand:hover
.mobile-brand-mark{
  border-color:
    rgba(126,207,255,.36) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 8px 22px rgba(0,0,0,.20),
    0 0 22px rgba(88,190,255,.12) !important;
}


/* override old circular avatar-like treatment */

.mobile-live-header
.mobile-brand-mark img{
  display:block !important;

  width:34px !important;
  height:34px !important;

  max-width:none !important;

  object-fit:contain !important;

  border-radius:0 !important;

  box-shadow:none !important;

  filter:
    drop-shadow(
      0 0 5px rgba(132,210,255,.22)
    ) !important;

  transform:none !important;

  mix-blend-mode:normal !important;
}


/* old direct-image rules no longer control the new logo */

.mobile-live-header
.mobile-brand > img{
  border-radius:0 !important;
  box-shadow:none !important;
}


/* ---------------------------------------------------------
   WORDMARK
--------------------------------------------------------- */

.mobile-live-header
.mobile-brand-wordmark{
  direction:ltr !important;

  display:inline-flex !important;
  align-items:baseline !important;

  gap:1px !important;

  white-space:nowrap !important;

  line-height:1 !important;

  font-size:19px !important;
  font-weight:900 !important;

  letter-spacing:.045em !important;

  text-shadow:
    0 1px 10px rgba(0,0,0,.26) !important;
}


.mobile-live-header
.mobile-brand-wordmark b{
  margin:0 !important;
  padding:0 !important;

  font:inherit !important;

  letter-spacing:inherit !important;
}


.mobile-live-header
.mobile-brand-night{
  color:#f2f7fb !important;
}


.mobile-live-header
.mobile-brand-pn{
  color:#78caff !important;

  text-shadow:
    0 0 13px rgba(91,190,255,.18) !important;

  transition:
    color .22s ease,
    text-shadow .22s ease !important;
}


.mobile-live-header
.mobile-brand:hover
.mobile-brand-pn{
  color:#9bdcff !important;

  text-shadow:
    0 0 16px rgba(104,201,255,.30) !important;
}


/* ---------------------------------------------------------
   TABLET / NARROW DESKTOP
--------------------------------------------------------- */

@media (max-width:1180px){

  .mobile-live-header .mobile-brand{
    gap:8px !important;
  }

  .mobile-live-header .mobile-brand-mark{
    width:39px !important;
    height:39px !important;

    flex-basis:39px !important;

    border-radius:11px !important;
  }

  .mobile-live-header
  .mobile-brand-mark img{
    width:30px !important;
    height:30px !important;
  }

  .mobile-live-header
  .mobile-brand-wordmark{
    font-size:16px !important;
  }

}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width:640px){

  .mobile-live-header .mobile-brand{
    gap:7px !important;
    padding:2px 3px !important;
  }

  .mobile-live-header .mobile-brand-mark{
    width:34px !important;
    height:34px !important;

    flex-basis:34px !important;

    border-radius:10px !important;
  }

  .mobile-live-header
  .mobile-brand-mark img{
    width:27px !important;
    height:27px !important;
  }

  .mobile-live-header
  .mobile-brand-wordmark{
    font-size:14px !important;
    letter-spacing:.035em !important;
  }

}


/* ---------------------------------------------------------
   VERY SMALL MOBILE
   Existing CSS hides .mobile-brand span globally.
   Keep the logo frame visible and hide only the wordmark.
--------------------------------------------------------- */

@media (max-width:390px){

  .mobile-live-header
  .mobile-brand > .mobile-brand-mark{
    display:grid !important;
  }

  .mobile-live-header
  .mobile-brand > .mobile-brand-wordmark{
    display:none !important;
  }

  .mobile-live-header .mobile-brand{
    gap:0 !important;
  }

}



/* NIGHTPN_PUBLIC_HEADER_MATCH_HOME_V2
   Public pages now follow the approved homepage header identity.
   Homepage CSS is NOT modified.
*/


/* =========================================================
   HEADER SURFACE
========================================================= */

.mobile-live-header{
  overflow:visible !important;

  backdrop-filter:
    blur(8px) saturate(108%) !important;

  -webkit-backdrop-filter:
    blur(8px) saturate(108%) !important;
}


/* =========================================================
   BRAND — SAME VISUAL IDENTITY AS HOME
========================================================= */

.mobile-live-header
.mobile-brand{
  gap:9px !important;

  padding:2px 3px !important;

  background:
    transparent !important;
}


.mobile-live-header
.mobile-brand:hover{
  background:
    transparent !important;
}


/* circular mark */

.mobile-live-header
.mobile-brand-mark{
  position:relative !important;

  display:grid !important;
  place-items:center !important;

  width:46px !important;
  height:46px !important;

  min-width:46px !important;
  flex:0 0 46px !important;

  margin:0 !important;
  padding:0 !important;

  overflow:hidden !important;

  border:
    1px solid rgba(120,199,255,.22) !important;

  border-radius:
    50% !important;

  background:
    radial-gradient(
      circle at 45% 32%,
      rgba(84,181,246,.10),
      rgba(4,13,21,.96) 66%
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 0 0 3px rgba(74,166,231,.025),
    0 0 18px rgba(79,177,242,.10),
    0 6px 16px rgba(0,0,0,.20)
    !important;

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease !important;
}


/* actual logo */

.mobile-live-header
.mobile-brand
.mobile-brand-mark img{
  display:block !important;

  width:39px !important;
  height:39px !important;

  max-width:none !important;

  object-fit:contain !important;

  margin:0 !important;
  padding:0 !important;

  border:0 !important;
  border-radius:50% !important;

  background:transparent !important;

  box-shadow:none !important;

  mix-blend-mode:normal !important;

  transform:none !important;

  filter:
    drop-shadow(
      0 0 6px rgba(116,203,255,.18)
    ) !important;
}


/* restrained hover */

.mobile-live-header
.mobile-brand:hover
.mobile-brand-mark{
  transform:
    translateY(-1px) !important;

  border-color:
    rgba(124,208,255,.38) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 0 0 3px rgba(77,177,244,.035),
    0 0 23px rgba(84,186,250,.16),
    0 7px 18px rgba(0,0,0,.22)
    !important;
}


/* approved NIGHT / PN wordmark */

.mobile-live-header
.mobile-brand-wordmark{
  direction:ltr !important;

  display:inline-flex !important;
  align-items:baseline !important;

  gap:1px !important;

  margin:0 !important;
  padding:0 !important;

  white-space:nowrap !important;

  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif !important;

  font-size:20px !important;
  font-weight:900 !important;
  line-height:1 !important;

  letter-spacing:.05em !important;

  text-shadow:
    0 1px 10px rgba(0,0,0,.28) !important;
}


.mobile-live-header
.mobile-brand-wordmark b{
  margin:0 !important;
  padding:0 !important;

  font:inherit !important;
  letter-spacing:inherit !important;
}


.mobile-live-header
.mobile-brand-night{
  color:#f3f7fb !important;
}


.mobile-live-header
.mobile-brand-pn{
  color:#72c8ff !important;

  text-shadow:
    0 0 14px rgba(90,188,255,.22) !important;
}


.mobile-live-header
.mobile-brand:hover
.mobile-brand-pn{
  color:#9addff !important;

  text-shadow:
    0 0 17px rgba(102,199,255,.32) !important;
}


/* =========================================================
   HOME-LIKE DESKTOP SPACING
========================================================= */

@media (max-width:1280px){

  .desktop-live-nav{
    gap:
      clamp(12px,1.4vw,22px) !important;
  }

  .mobile-live-header
  .mobile-brand{
    gap:7px !important;
  }

  .mobile-live-header
  .mobile-brand-mark{
    width:40px !important;
    height:40px !important;

    min-width:40px !important;
    flex-basis:40px !important;
  }

  .mobile-live-header
  .mobile-brand
  .mobile-brand-mark img{
    width:34px !important;
    height:34px !important;
  }

  .mobile-live-header
  .mobile-brand-wordmark{
    font-size:17px !important;
  }

}


/* =========================================================
   HOME BREAKPOINT:
   Keep desktop navigation through 981px.
   Old public header collapsed at 1080px.
========================================================= */

@media (min-width:981px) and (max-width:1080px){

  .desktop-live-nav{
    display:flex !important;
  }

  .mobile-menu-toggle{
    display:none !important;
  }

  .mobile-dropdown,
  .mobile-dropdown.open{
    display:none !important;
  }

  body.nightpn-auth-ready.nightpn-auth-guest
  .mobile-header-actions > .mobile-login,

  body.nightpn-auth-ready.nightpn-auth-guest
  .mobile-header-actions > .mobile-signup{
    display:inline-flex !important;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width:640px){

  .mobile-live-header
  .mobile-brand{
    gap:6px !important;
  }

  .mobile-live-header
  .mobile-brand-mark{
    width:34px !important;
    height:34px !important;

    min-width:34px !important;
    flex-basis:34px !important;
  }

  .mobile-live-header
  .mobile-brand
  .mobile-brand-mark img{
    width:29px !important;
    height:29px !important;
  }

  .mobile-live-header
  .mobile-brand-wordmark{
    font-size:14px !important;

    letter-spacing:
      .035em !important;
  }

}


/* =========================================================
   VERY SMALL MOBILE
   Old public rule hides every brand span.
========================================================= */

@media (max-width:390px){

  .mobile-live-header
  .mobile-brand
  > .mobile-brand-mark{
    display:grid !important;
  }

  .mobile-live-header
  .mobile-brand
  > .mobile-brand-wordmark{
    display:none !important;
  }

  .mobile-live-header
  .mobile-brand{
    gap:0 !important;
  }

}



/* NIGHTPN_PUBLIC_HEADER_GLASS_MATCH_HOME_V3
   Match the FINAL homepage desktop header surface.
   Brand/nav/auth/avatar logic remain untouched.
*/


/* =========================================================
   DESKTOP — EXACT HOME HEADER SURFACE
========================================================= */

@media (min-width:981px){

  .public-header-shell{
    position:relative !important;

    height:92px !important;

    z-index:80 !important;

    background:transparent !important;
  }


  .public-header-shell
  .mobile-live-header{
    position:absolute !important;

    top:0 !important;
    left:0 !important;
    right:0 !important;

    width:auto !important;

    height:92px !important;

    padding-left:
      clamp(48px,5.2vw,100px) !important;

    padding-right:
      clamp(48px,5.2vw,100px) !important;


    /* remove old floating capsule */
    border:0 !important;

    border-bottom:
      1px solid rgba(126,195,247,.075) !important;

    border-radius:
      0 !important;


    /* same glass surface as Home */
    background:
      linear-gradient(
        180deg,
        rgba(2,7,12,.69) 0%,
        rgba(2,7,12,.40) 62%,
        rgba(2,7,12,.12) 100%
      ) !important;


    box-shadow:
      none !important;


    -webkit-backdrop-filter:
      blur(8px) saturate(108%) !important;

    backdrop-filter:
      blur(8px) saturate(108%) !important;


    z-index:
      20 !important;
  }


  /* same quieter navigation treatment as Home */

  .public-header-shell
  .desktop-live-nav a{
    color:
      rgba(220,231,240,.90) !important;
  }

}


/* =========================================================
   KEEP TABLET / MOBILE EXISTING RESPONSIVE SYSTEM
========================================================= */

@media (max-width:980px){

  .public-header-shell{
    background:transparent !important;
  }

}


/* NIGHTPN_ORION_HEADER_FINAL_V1
   Approved Orion Nebula header.
   Final core polish integrated.
   Production-safe: does NOT clip account/mobile dropdowns.
*/

.mobile-live-header{
  position:relative !important;
  isolation:isolate !important;

  background:
    linear-gradient(
      180deg,
      rgba(2,7,12,.74) 0%,
      rgba(2,8,14,.56) 58%,
      rgba(2,8,14,.28) 100%
    ) !important;

  -webkit-backdrop-filter:
    blur(15px) saturate(120%) !important;

  backdrop-filter:
    blur(15px) saturate(120%) !important;

  border-bottom:
    1px solid rgba(118,188,245,.12) !important;

  box-shadow:
    0 12px 34px rgba(0,0,0,.18) !important;
}


/*
 * Keep real header controls above the nebula without
 * changing their existing positioning behaviour.
 */
.mobile-live-header > .mobile-brand,
.mobile-live-header > .desktop-live-nav,
.mobile-live-header > .mobile-header-actions,
.mobile-live-header > .mobile-dropdown{
  z-index:3 !important;
}


.nightpn-orion-layer{
  position:absolute !important;
  inset:0 !important;

  overflow:hidden !important;
  pointer-events:none !important;

  border-radius:inherit !important;

  z-index:1 !important;
}


.nightpn-orion-layer::before{
  content:"" !important;

  position:absolute !important;

  width:122% !important;
  height:175% !important;

  left:-10% !important;
  top:-52% !important;

  transform:
    rotate(-7deg) !important;

  background:

    /* main Orion band */
    linear-gradient(
      97deg,
      transparent 0%,
      transparent 13%,

      rgba(48,104,191,.05) 17%,
      rgba(70,160,228,.10) 22%,
      rgba(135,216,246,.17) 27%,

      rgba(205,237,255,.20) 32%,

      rgba(171,135,235,.15) 36%,
      rgba(192,111,217,.14) 40%,

      rgba(231,112,174,.13) 44%,
      rgba(242,133,159,.11) 48%,

      rgba(122,162,230,.10) 54%,
      rgba(73,148,213,.07) 61%,

      transparent 72%
    ),

    /* cyan wing */
    radial-gradient(
      ellipse at 23% 48%,
      rgba(157,226,255,.14) 0%,
      rgba(83,171,224,.085) 16%,
      transparent 36%
    ),

    /* pale luminous core */
    radial-gradient(
      ellipse at 38% 43%,
      rgba(221,241,255,.16) 0%,
      rgba(137,193,236,.09) 16%,
      transparent 34%
    ),

    /* violet heart */
    radial-gradient(
      ellipse at 51% 52%,
      rgba(189,143,239,.14) 0%,
      rgba(143,91,201,.085) 18%,
      transparent 35%
    ),

    /* magenta emission */
    radial-gradient(
      ellipse at 64% 46%,
      rgba(233,126,188,.12) 0%,
      rgba(186,85,160,.07) 16%,
      transparent 34%
    ),

    /* blue outer return */
    radial-gradient(
      ellipse at 77% 55%,
      rgba(151,211,248,.11) 0%,
      rgba(76,144,207,.06) 18%,
      transparent 36%
    ),

    /* fine Orion emission streaks */
    linear-gradient(
      100deg,

      transparent 0%,
      transparent 18%,

      rgba(181,231,255,.035) 21%,
      rgba(205,241,255,.075) 22%,
      transparent 24%,

      rgba(177,157,241,.035) 29%,
      rgba(199,164,244,.070) 30.1%,
      transparent 32%,

      rgba(239,139,192,.035) 38%,
      rgba(247,152,190,.070) 39.1%,
      transparent 41%,

      rgba(196,130,225,.030) 47%,
      rgba(215,151,234,.065) 48.1%,
      transparent 50%,

      rgba(131,195,241,.030) 55%,
      rgba(161,219,255,.060) 56.1%,
      transparent 58%,

      rgba(105,176,230,.025) 64%,
      rgba(146,211,249,.050) 65%,
      transparent 68%
    );

  /*
   * Final approved polish:
   * ~12% quieter core, same shape/colors.
   */
  filter:
    blur(9px)
    saturate(118%)
    brightness(.88)
    !important;

  opacity:.86 !important;
}


.nightpn-orion-layer::after{
  content:"" !important;

  position:absolute !important;
  inset:0 !important;

  background-image:

    radial-gradient(
      circle,
      rgba(255,255,255,.88) 0 1px,
      transparent 1.45px
    ),

    radial-gradient(
      circle,
      rgba(169,224,255,.72) 0 .85px,
      transparent 1.2px
    ),

    radial-gradient(
      circle,
      rgba(222,176,255,.48) 0 .7px,
      transparent 1.05px
    );

  background-size:
    93px 60px,
    137px 88px,
    176px 116px;

  background-position:
    14px 10px,
    46px 29px,
    78px 7px;

  opacity:.28 !important;

  -webkit-mask-image:
    linear-gradient(
      100deg,
      transparent 4%,
      black 22%,
      black 80%,
      transparent 96%
    );

  mask-image:
    linear-gradient(
      100deg,
      transparent 4%,
      black 22%,
      black 80%,
      transparent 96%
    );
}


/* =========================================================
   NIGHTPN_EXACT_ADMIN_ORION_SYNC_V1
   Exact visual recipe copied from current Super Admin V3.
   COLOR/EFFECT ONLY.
========================================================= */

.nightpn-orion-layer::before{

  background:

    linear-gradient(
      97deg,
      transparent 0%,
      transparent 13%,
      rgba(48,104,191,.05) 17%,
      rgba(70,160,228,.10) 22%,
      rgba(135,216,246,.17) 27%,
      rgba(205,237,255,.20) 32%,
      rgba(171,135,235,.15) 36%,
      rgba(192,111,217,.14) 40%,
      rgba(231,112,174,.13) 44%,
      rgba(242,133,159,.11) 48%,
      rgba(122,162,230,.10) 54%,
      rgba(73,148,213,.07) 61%,
      transparent 72%
    ),

    radial-gradient(
      ellipse at 24% 48%,
      rgba(157,226,255,.14),
      transparent 36%
    ),

    radial-gradient(
      ellipse at 52% 52%,
      rgba(189,143,239,.14),
      transparent 35%
    ),

    radial-gradient(
      ellipse at 66% 46%,
      rgba(233,126,188,.12),
      transparent 34%
    )

    !important;

  filter:
    blur(9px)
    saturate(118%)
    brightness(.88)
    !important;

  opacity:.86 !important;
}


.nightpn-orion-layer::after{

  background-image:

    radial-gradient(
      circle,
      rgba(255,255,255,.86) 0 1px,
      transparent 1.45px
    ),

    radial-gradient(
      circle,
      rgba(169,224,255,.68) 0 .8px,
      transparent 1.2px
    )

    !important;

  background-size:
    93px 60px,
    137px 88px
    !important;

  background-position:
    14px 10px,
    46px 29px
    !important;

  opacity:.27 !important;
}



/* =========================================================
   NIGHTPN_PUBLIC_HEADER_STICKY_GLOBAL_V2

   Shared NightPN public header:
   Buy / Guides / FAQ / Blog / Posts / other public pages.

   Child header geometry remains untouched.
========================================================= */

.public-header-shell{

  position:
    sticky !important;

  top:
    0 !important;

  z-index:
    1000 !important;

  overflow:
    visible !important;
}


/*
 * Preserve overlay menus above page content.
 */

.public-header-shell
.mobile-dropdown,

.public-header-shell
.nightpn-profile-menu{

  z-index:
    1100 !important;
}



/* =========================================================
   NIGHTPN_MOBILE_HEADER_FLAT_WIDE_V1
   Mobile header follows desktop-style horizontal geometry.
========================================================= */

@media (max-width:980px){

  .public-header-shell{
    height:64px !important;
  }

  .mobile-live-header{
    top:0 !important;
    left:0 !important;
    right:0 !important;

    width:100% !important;
    max-width:none !important;

    height:64px !important;

    margin:0 !important;
    padding:0 16px !important;

    border-radius:0 !important;

    border-top:0 !important;
    border-left:0 !important;
    border-right:0 !important;

    border-bottom:
      1px solid rgba(122,190,243,.13) !important;

    background:
      linear-gradient(
        180deg,
        rgba(4,13,22,.99),
        rgba(2,8,14,.985)
      ) !important;

    box-shadow:
      0 12px 34px rgba(0,0,0,.22) !important;
  }

  .mobile-dropdown.open{
    top:64px !important;
  }

}


@media (max-width:640px){

  .public-header-shell{
    height:58px !important;
  }

  .mobile-live-header{
    top:0 !important;
    left:0 !important;
    right:0 !important;

    height:58px !important;

    padding:
      0 12px !important;

    border-radius:0 !important;
  }

  .mobile-dropdown.open{
    top:58px !important;
  }

}



/* =========================================================
   NIGHTPN_MOBILE_HEADER_FLAT_WIDE_V2
========================================================= */

@media (max-width:980px){

  body .public-header-shell > .mobile-live-header{
    top:0 !important;
    left:0 !important;
    right:0 !important;

    width:100% !important;
    max-width:none !important;

    height:64px !important;

    margin:0 !important;
    padding:0 16px !important;

    border-radius:0 !important;

    border-top:0 !important;
    border-left:0 !important;
    border-right:0 !important;

    border-bottom:
      1px solid rgba(122,190,243,.13) !important;

    box-shadow:
      0 12px 34px rgba(0,0,0,.20) !important;
  }

  .public-header-shell{
    height:64px !important;
  }

}


@media (max-width:640px){

  body .public-header-shell > .mobile-live-header{
    top:0 !important;
    left:0 !important;
    right:0 !important;

    width:100% !important;

    height:58px !important;

    padding:0 12px !important;

    border-radius:0 !important;
  }

  .public-header-shell{
    height:58px !important;
  }

}

