/* Nujiz 3D: readable dark header */
body .site-header,
body .site-header .header-inner {
  background: #0b142b !important;
  color: #f4f6ff !important;
}

body .site-header a,
body .site-header nav a,
body .site-header .header-inner a,
body .site-header .header-actions a,
body .site-header .header-inner span,
body .site-header .header-inner strong {
  color: #f4f6ff !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: none !important;
}

body .site-header a:hover,
body .site-header a:focus-visible {
  color: #c4b5fd !important;
}

body .site-header button {
  color: #f4f6ff !important;
}

body .site-header {
  border-bottom: 1px solid #303c61 !important;
}

/* 3D tool account button */
body .site-header #nujizAccountButton {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #7251f5 !important;
  color: #ffffff !important;
  border: 1px solid #947cff !important;
  border-radius: 10px;
  padding: 9px 15px;
  opacity: 1 !important;
  visibility: visible !important;
  cursor: pointer;
}

body .site-header #nujizAccountButton b,
body .site-header #nujizAccountButton span {
  color: #ffffff !important;
  opacity: 1 !important;
}

body .site-header .main-nav a {
  color: #f1f4ff !important;
  opacity: 1 !important;
}

body .site-header .main-nav a:hover {
  color: #c4b5fd !important;
}

/* NUJIZ 3D HEADER FINAL VISIBILITY FIX */

/* Strong contrast for navigation */
html body .site-header .main-nav,
html body .site-header .main-nav a,
html body .site-header .main-nav .nujiz-guide-nav,
html body .site-header .main-nav .nujiz-reviews-nav {
    color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}

html body .site-header .main-nav a:hover,
html body .site-header .main-nav a:focus-visible {
    color: #c4b5fd !important;
    -webkit-text-fill-color: #c4b5fd !important;
}

/* Keep only the main account button visible */
html body .site-header .main-nav #nujizAccountButton,
html body .site-header .main-nav .nujiz-account-button {
    display: none !important;
}

html body .site-header .header-actions #nujizAccountButton {
    display: inline-flex !important;
    background: #7251f5 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

/* Language switch */
html body .site-header .lang-link {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}


/* NUJIZ 3D HEADER — ACCOUNT AND NAV FIX */

/* Desktop: hide the mobile-only login */
@media (min-width: 761px) {
  html body .site-header .main-nav #nujizMobileLogin,
  html body .site-header .main-nav .nujiz-mobile-login {
    display: none !important;
  }
}

/* Navigation text visibility */
html body .site-header .main-nav > a {
  color: #f8faff !important;
  -webkit-text-fill-color: #f8faff !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  text-shadow: none !important;
}

/* Navigation hover */
html body .site-header .main-nav > a:hover {
  color: #c4b5fd !important;
  -webkit-text-fill-color: #c4b5fd !important;
}

/* Main login button */
html body .site-header .header-actions #nujizAccountButton {
  display: inline-flex !important;
  background: #7251f5 !important;
  color: white !important;
  -webkit-text-fill-color: white !important;
}

/* Language link */
html body .site-header .header-actions .lang-link {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}


/* NUJIZ 3D — LOGIN MODAL DARK THEME */

html body #nujizLoginModal .nujiz-login-box {
  background: #111b35 !important;
  background-image: none !important;
  color: #f5f7ff !important;
  border: 1px solid #405078 !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.55) !important;
}

html body #nujizLoginModal .nujiz-login-brand,
html body #nujizLoginModal #nujizLoginTitle {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

html body #nujizLoginModal .nujiz-login-box > p,
html body #nujizLoginModal .nujiz-login-privacy {
  color: #cbd5f5 !important;
  -webkit-text-fill-color: #cbd5f5 !important;
  opacity: 1 !important;
}

html body #nujizLoginModal .nujiz-login-close {
  background: #303c60 !important;
  color: #ffffff !important;
  border: 1px solid #65749c !important;
  opacity: 1 !important;
  cursor: pointer;
}

html body #nujizLoginModal .nujiz-login-close:hover {
  background: #7251f5 !important;
}

html body #nujizLoginModal .nujiz-login-backdrop {
  background: rgba(3,8,22,.78) !important;
}

/* Preserve Google's own button appearance */
html body #nujizLoginModal iframe {
  color-scheme: light;
}


/* NUJIZ 3D — COMPACT LOGGED-IN ACCOUNT */

html body .site-header .header-inner {
  min-height: 68px !important;
  align-items: center !important;
}

html body .site-header .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

html body .site-header #nujizAccountButton {
  width: auto !important;
  min-width: 0 !important;
  max-width: 180px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 6px 12px !important;
  border-radius: 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  box-sizing: border-box !important;
}

html body .site-header #nujizAccountButton img,
html body .site-header #nujizAccountButton .nujiz-account-icon {
  width: 25px !important;
  height: 25px !important;
  max-width: 25px !important;
  max-height: 25px !important;
  flex-shrink: 0 !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

html body .site-header #nujizAccountButton b,
html body .site-header #nujizAccountButton span {
  font-size: 13px !important;
  line-height: 1.3 !important;
}

html body .site-header #nujizAccountButton b {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  html body .site-header #nujizAccountButton {
    max-width: 135px !important;
    height: 38px !important;
    min-height: 38px !important;
  }
}

/* NUJIZ 3D — ACCOUNT DROPDOWN FIX */

html body .site-header .header-actions {
  position: relative !important;
}

html body .site-header #nujizUserMenu.nujiz-user-menu {
  position: absolute !important;
  top: calc(100% + 12px) !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;

  width: 280px !important;
  max-width: calc(100vw - 24px) !important;
  box-sizing: border-box !important;
  padding: 18px !important;

  background: #151f3b !important;
  color: #f5f7ff !important;
  border: 1px solid #46557e !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 45px rgba(0,0,0,.45) !important;

  z-index: 99999 !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

html body .site-header #nujizUserMenu .nujiz-user-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  min-width: 0 !important;
  text-align: start !important;
}

html body .site-header #nujizUserMenu .nujiz-user-info strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere !important;
}

html body .site-header #nujizUserMenu .nujiz-user-info small {
  color: #c7d3f4 !important;
  -webkit-text-fill-color: #c7d3f4 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere !important;
}

html body .site-header #nujizUserMenu #nujizLogoutButton {
  display: block !important;
  width: 100% !important;
  padding: 11px 14px !important;
  background: #303b61 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid #6475a2 !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  cursor: pointer !important;
}

html body .site-header #nujizUserMenu #nujizLogoutButton:hover {
  background: #7251f5 !important;
}

@media (max-width: 760px) {
  html body .site-header #nujizUserMenu.nujiz-user-menu {
    left: 0 !important;
    right: auto !important;
    width: min(280px, calc(100vw - 24px)) !important;
  }
}
