/* NEOBLOX Frontend Header/User Menu Fix */
.neo-public-header{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(226,232,240,.75);
}

.neo-header-inner{
  height:84px;
  display:grid;
  grid-template-columns:auto minmax(260px,560px) auto;
  align-items:center;
  gap:22px;
  position:relative;
}

.neo-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:900;
  color:var(--primary,#18b8e8);
  letter-spacing:-.04em;
}

.neo-brand img{
  height:34px;
  width:auto;
  display:block;
  object-fit:contain;
}

.neo-header-search{
  height:54px;
  border-radius:999px;
  background:#f7f8fc;
  box-shadow:inset 0 0 0 1px rgba(226,232,240,.95);
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 20px;
}

.neo-header-search i,
.neo-mobile-search i{
  color:#98a2b3;
}

.neo-header-search input,
.neo-mobile-search input{
  border:0;
  outline:0;
  background:transparent;
  width:100%;
  font-weight:800;
  color:#344054;
  font-size:14.5px;
}

.neo-header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.neo-icon-btn,
.neo-login-btn,
.neo-user-pill{
  height:46px;
  border:0;
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.07), inset 0 0 0 1px rgba(226,232,240,.9);
  color:#0f172a;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:900;
}

.neo-icon-btn{
  width:46px;
}

.neo-login-btn{
  gap:8px;
  padding:0 16px;
}

.neo-user-pill{
  gap:8px;
  padding:0 12px 0 8px;
  max-width:180px;
}

.neo-user-pill img{
  width:32px;
  height:32px;
  border-radius:50%;
  object-fit:cover;
}

.neo-user-pill span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:110px;
}

.neo-dropdown{
  position:absolute;
  top:72px;
  right:0;
  min-width:230px;
  background:#fff;
  border-radius:22px;
  padding:12px;
  box-shadow:0 24px 70px rgba(15,23,42,.16);
  border:1px solid rgba(226,232,240,.85);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px) scale(.98);
  transition:.18s ease;
  z-index:1200;
}

.neo-dropdown.show{
  opacity:1;
  visibility:visible;
  transform:none;
}

.theme-dropdown{
  right:122px;
  min-width:180px;
}

.notif-dropdown{
  right:62px;
  width:320px;
}

.neo-dropdown a,
.neo-dropdown button{
  width:100%;
  min-height:42px;
  display:flex;
  align-items:center;
  gap:12px;
  border:0;
  background:transparent;
  color:#344054;
  text-decoration:none;
  font-weight:850;
  border-radius:14px;
  padding:10px 12px;
  text-align:left;
}

.neo-dropdown a:hover,
.neo-dropdown button:hover{
  background:#f7f9fc;
  color:#0f172a;
}

.neo-dropdown-title{
  font-weight:900;
  padding:10px 12px;
  color:#0f172a;
}

.neo-dropdown-empty{
  padding:28px 12px;
  text-align:center;
  color:#98a2b3;
  font-weight:800;
}

.neo-dropdown-footer{
  border-top:1px solid #eef2f7;
  margin-top:8px;
}

.neo-menu-separator{
  height:1px;
  background:#eef2f7;
  margin:8px 0;
}

.neo-mobile-search-wrap{
  display:none;
  padding-bottom:16px;
}

.neo-mobile-search{
  height:54px;
  border-radius:999px;
  background:#f7f8fc;
  box-shadow:inset 0 0 0 1px rgba(226,232,240,.95);
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 18px;
}

.neo-bs5-modal{
  border:0;
  border-radius:24px;
  box-shadow:0 30px 80px rgba(15,23,42,.24);
}

.neo-bs5-modal .modal-header,
.neo-bs5-modal .modal-footer{
  border-color:#edf2f7;
}

.neo-bs5-modal .modal-title{
  font-weight:900;
  letter-spacing:-.03em;
}

@media(max-width:900px){
  .neo-header-inner{
    grid-template-columns:auto auto;
    height:76px;
  }

  .neo-header-search{
    display:none;
  }

  .neo-mobile-search-wrap{
    display:block;
  }

  .neo-brand span{
    font-size:18px;
  }

  .neo-user-pill span{
    display:none;
  }

  .neo-user-pill{
    width:46px;
    padding:0;
  }

  .neo-dropdown{
    top:66px;
    right:12px;
  }

  .theme-dropdown{
    right:122px;
  }

  .notif-dropdown{
    right:62px;
    width:min(320px, calc(100vw - 32px));
  }
}

@media(max-width:520px){
  .neo-header-inner{
    gap:12px;
  }

  .neo-header-actions{
    gap:8px;
  }

  .neo-icon-btn,
  .neo-login-btn,
  .neo-user-pill{
    width:44px;
    height:44px;
    border-radius:15px;
  }

  .neo-login-btn span{
    display:none;
  }

  .neo-login-btn{
    padding:0;
  }

  .theme-dropdown{
    right:112px;
  }

  .notif-dropdown{
    right:56px;
  }

  .menu-dropdown{
    right:12px;
  }
}

html[data-theme="dark"] .neo-public-header{
  background:rgba(9,14,24,.86);
  border-color:rgba(51,65,85,.75);
}

html[data-theme="dark"] .neo-icon-btn,
html[data-theme="dark"] .neo-login-btn,
html[data-theme="dark"] .neo-user-pill,
html[data-theme="dark"] .neo-dropdown{
  background:#111827;
  color:#f8fafc;
  border-color:#263244;
}

html[data-theme="dark"] .neo-header-search,
html[data-theme="dark"] .neo-mobile-search{
  background:#0f172a;
  box-shadow:inset 0 0 0 1px rgba(51,65,85,.9);
}

html[data-theme="dark"] .neo-dropdown a,
html[data-theme="dark"] .neo-dropdown button{
  color:#cbd5e1;
}

html[data-theme="dark"] .neo-dropdown a:hover,
html[data-theme="dark"] .neo-dropdown button:hover{
  background:#1e293b;
  color:#fff;
}
