/* NEXICWEB visual-only add-on. Existing Dynamic Island structure, compact/expanded
   classes, breakpoints, sticky position and scroll behaviour remain owned by index.html. */
#siteHeader.dynamic-island {
  background: rgba(5, 15, 27, .17) !important;
  border: 1px solid rgba(221, 244, 255, .23) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .12), inset 0 1px rgba(255, 255, 255, .18) !important;
  -webkit-backdrop-filter: blur(18px) saturate(155%) !important;
  backdrop-filter: blur(18px) saturate(155%) !important;
}
#siteHeader.dynamic-island.island-compact:not(.island-expanded) {
  background: rgba(7, 17, 31, .22) !important;
  border-color: rgba(220, 241, 255, .20) !important;
}
#siteHeader.dynamic-island .navbar {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Premium account button */
#siteHeader #nxAuthNav,
#siteHeader .nx-account-nav {
  min-height: 41px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(245, 252, 255, .82) !important;
  border-radius: 999px !important;
  color: #102131 !important;
  background: linear-gradient(112deg, #ffffff 0%, #e4f5fb 48%, #d9e6ff 100%) !important;
  box-shadow: 0 8px 23px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .98) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .035em !important;
  transition: box-shadow .2s ease, filter .2s ease, border-color .2s ease !important;
}
#siteHeader #nxAuthNav:hover,
#siteHeader .nx-account-nav:hover {
  transform: none !important;
  filter: brightness(1.04) !important;
  border-color: #fff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22), 0 0 0 3px rgba(210, 239, 255, .12), inset 0 1px #fff !important;
}

/* Premium sign-in / create-account controls */
#routePage .nx-auth-card .nx-auth-switch {
  padding: 5px !important;
  border: 1px solid rgba(153, 204, 234, .20) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .055) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.055) !important;
}
#routePage .nx-auth-card .nx-auth-switch button {
  min-height: 42px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  color: rgba(228, 241, 251, .76) !important;
  background: transparent !important;
  font-weight: 850 !important;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease !important;
}
#routePage .nx-auth-card .nx-auth-switch button.active {
  color: #102231 !important;
  border-color: rgba(255,255,255,.92) !important;
  background: linear-gradient(112deg, #fff 0%, #e5f5fb 52%, #dce7ff 100%) !important;
  box-shadow: 0 7px 20px rgba(0,0,0,.17), inset 0 1px #fff !important;
}
#routePage #nxAuthSubmit {
  min-height: 48px !important;
  border: 1px solid rgba(255,255,255,.92) !important;
  border-radius: 14px !important;
  color: #102231 !important;
  background: linear-gradient(112deg, #fff 0%, #e5f5fb 52%, #dce7ff 100%) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.20), inset 0 1px #fff !important;
  font-weight: 900 !important;
  letter-spacing: .025em !important;
  transition: filter .18s ease, box-shadow .18s ease !important;
}
#routePage #nxAuthSubmit:hover {
  filter: brightness(1.04) !important;
  box-shadow: 0 13px 30px rgba(0,0,0,.25), inset 0 1px #fff !important;
}
#routePage #nxGoogleSignIn {
  min-height: 46px !important;
  border: 1px solid rgba(191, 220, 239, .23) !important;
  border-radius: 14px !important;
  color: #eef7ff !important;
  background: linear-gradient(130deg, rgba(255,255,255,.10), rgba(255,255,255,.035)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.08) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
#routePage #nxForgotPassword {
  color: #9bdef7 !important;
}
#routePage .nx-auth-card button:focus-visible,
#siteHeader #nxAuthNav:focus-visible {
  outline: 3px solid rgba(125, 218, 255, .72) !important;
  outline-offset: 3px !important;
}

/* Premium About and Privacy Policy pages */
#routePage.legal-route {
  min-height: 100vh !important;
  color: #f3f8ff !important;
  background: #050b16 !important;
}
#routePage.legal-route .legal-page {
  --legal-ink: #f1f7ff;
  --legal-muted: rgba(219, 234, 247, .72);
  --legal-line: rgba(139, 202, 239, .17);
  min-height: 100vh;
  color: var(--legal-ink) !important;
  background:
    radial-gradient(ellipse at 82% 4%, rgba(38, 152, 221, .15), transparent 34%),
    radial-gradient(ellipse at 8% 42%, rgba(56, 112, 190, .10), transparent 36%),
    linear-gradient(180deg, #071526 0%, #050b16 58%, #071321 100%) !important;
}
#routePage.legal-route .legal-page h1,
#routePage.legal-route .legal-page h2,
#routePage.legal-route .legal-page h3 {
  color: #f3f8ff !important;
}
#routePage.legal-route .legal-page p {
  color: var(--legal-muted) !important;
}
#routePage.legal-route .legal-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(88px, 11vw, 142px) !important;
  padding-bottom: clamp(54px, 7vw, 84px) !important;
  border-bottom: 1px solid rgba(147, 211, 247, .16) !important;
  background:
    radial-gradient(ellipse at 78% 0%, rgba(41, 183, 235, .17), transparent 38%),
    radial-gradient(ellipse at 10% 100%, rgba(72, 118, 235, .12), transparent 40%),
    linear-gradient(135deg, rgba(12, 35, 57, .96), rgba(5, 13, 25, .94)) !important;
}
#routePage.legal-route .legal-hero::after {
  content: "";
  position: absolute;
  right: max(24px, calc((100vw - 1100px) / 2));
  bottom: 25px;
  width: clamp(90px, 17vw, 210px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 221, 255, .72));
  pointer-events: none;
}
#routePage.legal-route .legal-eyebrow {
  color: #87dfff !important;
}
#routePage.legal-route .legal-hero h1 {
  max-width: 980px;
  text-shadow: 0 10px 48px rgba(38, 172, 233, .13);
}
#routePage.legal-route .legal-hero .legal-updated {
  color: rgba(196, 221, 239, .58) !important;
}
#routePage.legal-route .legal-content {
  padding-top: clamp(52px, 7vw, 90px) !important;
}
#routePage.legal-route .legal-card-grid article {
  border: 1px solid rgba(143, 204, 240, .17) !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025)) !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.075) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
#routePage.legal-route .legal-card-grid article > span {
  color: #8edfff !important;
}
#routePage.legal-route .legal-note {
  border: 1px solid rgba(131, 205, 242, .18) !important;
  background: linear-gradient(125deg, rgba(26, 100, 145, .24), rgba(255,255,255,.035)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.06) !important;
}
#routePage.legal-route .legal-cta {
  border-color: rgba(139, 202, 239, .18) !important;
}
#routePage.legal-route .legal-button {
  border: 1px solid rgba(206, 235, 251, .24) !important;
  color: #edf8ff !important;
  background: rgba(255,255,255,.065) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
#routePage.legal-route .legal-button.dark {
  color: #102231 !important;
  border-color: rgba(255,255,255,.88) !important;
  background: linear-gradient(110deg, #fff, #dceef7 55%, #d9e4ff) !important;
  box-shadow: 0 10px 27px rgba(0,0,0,.2), inset 0 1px #fff !important;
}
#routePage.legal-route .policy-block {
  border-color: rgba(139, 202, 239, .17) !important;
}
#routePage.legal-route .policy-block > span {
  color: #92e0ff !important;
  border-color: rgba(139, 213, 248, .24) !important;
  background: rgba(83, 173, 220, .08) !important;
}
#routePage.legal-route .policy-block a {
  color: #93ddff !important;
}
#routePage.legal-route .policy-footer-note {
  color: rgba(215, 232, 245, .74) !important;
  border: 1px solid rgba(139, 202, 239, .17) !important;
  background: rgba(255,255,255,.045) !important;
}

@media (max-width: 600px) {
  #routePage.legal-route .legal-hero {
    padding: 76px 22px 48px !important;
  }
  #routePage.legal-route .legal-content {
    width: calc(100% - 36px) !important;
  }
  #siteHeader .nav-right .nx-account-nav {
    display: inline-flex !important;
    min-height: 36px !important;
    padding-inline: 12px !important;
    font-size: 9px !important;
  }
  #siteHeader .nav-right {
    gap: 6px !important;
  }
}