/* static/header.css Clean (no duplicates) - Sticky premium header - Desktop search expands LEFT inside same slot (single icon) - Search dropdown below, never overlaps input - Auth: muted button + modern user icon - Mobile: desktop search/auth hidden, mobile search inside burger menu (.m-search) */ /* ========================= Header shell ========================= */ .site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(7, 11, 19, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  position: relative;
}
/* CTA should always be clickable above expanding search */ .nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  position: relative;
  z-index: 6;
}
/* ========================= Links ========================= */ .nav-links {
  display: flex;
  gap: 18px;
  min-width: 0;
}
.nav-link {
  font-size: 14px;
  color: #c9c3b8;
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 999px;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
  text-decoration: none;
  border: 1px solid transparent;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
  text-decoration: none;
}
.nav-link.is-active {
  color: #fff;
  background: rgba(243,201,119,.10);
  border-color: rgba(243,201,119,.18);
}



@media (max-width: 1100px){.nav-links {
  gap: 16px;
}
.nav-link {
  font-size: 13px;
}


}/* ========================= CTA "Open bot" ========================= */ .nav-cta-btn--bot {
  border-color: rgba(243,201,119,.35);
  background: rgba(243,201,119,.08);
  color: #f4f1ea;
}
.nav-cta-btn--bot:hover {
  background: rgba(243,201,119,.14);
}
/* ========================= Desktop Search (expand LEFT, same slot) Markup: .search#siteSearch .search-inline#searchInline svg.search-ico input.search-input button.search-clear .search-dd ========================= */ .search {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  z-index: 5;
}
/* when open: container grows (to provide room for dropdown width) */ .search.is-open {
  width: clamp(260px, 34vw, 520px);
}
/* actual pill */ .search-inline {
  position: absolute;
  right: 0;
  top: 0;
  height: 40px;
  width: 40px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 44px rgba(0,0,0,.28);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 12px;
  cursor: text;
  will-change: width, transform;
  transition: width .18s ease, background .12s ease, border-color .12s ease, transform .12s ease;
}
.search.is-open .search-inline {
  width: clamp(260px, 34vw, 520px);
}
.search-inline:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(243,201,119,.18);
}
.search-ico {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,.55);
  flex: 0 0 auto;
}
.search-input {
  flex: 1 1 auto;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f4f1ea;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}
.search.is-open .search-input {
  opacity: 1;
  pointer-events: auto;
}
.search-input::placeholder {
  color: rgba(255,255,255,.45);
}
.search-clear {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.70);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, color .12s ease, background .12s ease;
  flex: 0 0 auto;
}
.search.has-text .search-clear {
  opacity: 1;
  pointer-events: auto;
}
.search-clear:hover {
  color: #f3c977;
  background: rgba(243,201,119,.10);
}
.search-x {
  width: 16px;
  height: 16px;
}
/* dropdown: below pill, same width, NEVER overlaps input */ .search-dd {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: clamp(260px, 34vw, 520px);
  border-radius: 16px;
  background: rgba(10,14,22,.98);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
  backdrop-filter: blur(14px);
  display: none;
  max-height: min(420px, 60vh);
  overflow: auto;
  z-index: 7;
}
.search.show-dd .search-dd {
  display: block;
}
.search-dd a {
  display: block;
  padding: 10px 12px;
  color: #f4f1ea;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
}
.search-dd a:hover {
  background: rgba(243,201,119,.08);
}
.search-dd .mut {
  color: #b9b4aa;
  font-size: 12px;
  margin-top: 2px;
}
.search-dd .empty {
  padding: 12px;
  color: #b9b4aa;
  font-size: 13px;
}
/* Make sure expanding search doesn't block CTA clicks: it can slide "under" CTA visually */ .search.is-open {
  z-index: 4;
}
.search.is-open .search-inline {
  z-index: 4;
}
/* ========================= Auth (muted button + popover) ========================= */ .nav-auth {
  position: relative;
  display: flex;
  align-items: center;
}
/* THIS is the header login button (should be muted, not yellow) */ .nav-auth-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.82);
  font-weight: 750;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .12s ease, border-color .12s ease, transform .12s ease, color .12s ease;
}
.nav-auth-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: rgba(243,201,119,.20);
  color: #fff;
}
/* modern icon (user) */ .nav-auth-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: currentColor;
  opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0-4-4a4 4 0 0 0 4 4Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0-4-4a4 4 0 0 0 4 4Zm0 2c-4.42 0-8 2.24-8 5v1h16v-1c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.auth-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 320px;
  max-width: calc(100vw - 24px);
  background: rgba(10,14,22,.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  padding: 12px;
  display: none;
  z-index: 3000;
}
#navAuth.is-open .auth-pop {
  display: block;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.auth-tab {
  flex: 1;
  height: 34px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #cfc8bd;
  font-weight: 750;
  cursor: pointer;
}
.auth-tab.is-active {
  background: rgba(243,201,119,.12);
  border-color: rgba(243,201,119,.18);
  color: #fff;
}
.auth-pane {
  display: none;
  padding: 12px 2px 2px;
}
.auth-pane.is-active {
  display: block;
}
.auth-title {
  font-weight: 850;
  margin-bottom: 10px;
  color: #fff;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-form input {
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: #f4f1ea;
  padding: 0 12px;
  outline: none;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 6px;
}
.auth-hint {
  font-size: 12px;
  margin-top: 8px;
}
/* ========================= User dropdown (logged in) ========================= */ .nav-user {
  position: relative;
}
.nav-user-btn {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.90);
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.nav-user-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(243,201,119,.25);
  background: rgba(255,255,255,.07);
}
.nav-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f3c977;
  box-shadow: 0 0 0 4px rgba(243,201,119,.12);
}
.nav-user-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 13px;
}
.nav-user-caret {
  opacity: .7;
}
.nav-user-dd {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;
  border-radius: 16px;
  background: rgba(10,14,22,.98);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
  backdrop-filter: blur(14px);
  overflow: hidden;
  display: none;
  z-index: 3000;
}
.nav-user.is-open .nav-user-dd {
  display: block;
}
.nav-user-item {
  display: block;
  padding: 10px 12px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-user-item:hover {
  background: rgba(243,201,119,.08);
}
.nav-user-item--danger {
  color: rgba(255,120,120,.95);
}
.nav-user-item--danger:hover {
  background: rgba(255,80,80,.10);
}
.nav-user-sep {
  height: 1px;
  background: rgba(255,255,255,.08);
}
.nav-user-group {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.02);
}
/* ========================= Mobile search inside burger menu ========================= */ .m-search {
  padding: 10px 12px;
}
.m-search-input {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: #f4f1ea;
  padding: 0 12px;
  outline: none;
}
.m-search-dd {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,14,22,.98);
  display: none;
  max-height: 50vh;
  overflow: auto;
}
.m-search-dd.show {
  display: block;
}
.m-search-dd a {
  display: block;
  padding: 10px 12px;
  color: #f4f1ea;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
}



/* =========================
   Responsive behavior
========================= */
@media (max-width: 980px){.nav-links {
  display: none;
}
.search {
  display: none;
}
/* desktop search hidden */ .nav-auth {
  display: none;
}

  /* desktop auth hidden */
}



/* ===== FIX: mobile drawer overlay (wins over app.css/market.css) ===== */

@media (max-width: 980px){

  /* overlay */
  .nav-drawer{
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;

    opacity: 0;
    pointer-events: none;

    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
  }

  .nav-drawer.open{
    opacity: 1;
    pointer-events: auto;
  }

  /* sliding panel */
  .nav-drawer-inner{
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;

    height: 100vh !important;
    width: min(420px, 92vw) !important;

    transform: translateX(110%);
    transition: transform .18s ease;

    border-radius: 18px 0 0 18px;
    background: rgba(14,16,20,.92);
    border-left: 1px solid rgba(255,255,255,.10);
    box-shadow: -20px 0 70px rgba(0,0,0,.65);

    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .nav-drawer.open .nav-drawer-inner{
    transform: translateX(0) !important;
  }

  /* header stays below drawer */
  .site-header{
    z-index: 2000;
  }

  /* just in case burger was under something */
  .nav-burger{
    position: relative;
    z-index: 2001;
  }

  body.no-scroll{
    overflow: hidden !important;
    height: 100%;
    touch-action: none;
  }
}
