/* ===== SHARED NAV — single source of truth for all pages ===== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,0.82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 0.5px solid rgba(255,255,255,0.04); transition: background 0.3s ease, box-shadow 0.3s ease; }
.nav.scrolled { background: rgba(0,0,0,0.95); box-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.nav-inner { max-width: none; margin: 0; padding: 8px 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 64px; }
.nav-left { display: flex; align-items: center; gap: 8px; justify-self: start; }
.logo { display: flex; align-items: center; padding: 0 8px; }
.logo img { height: 32px; width: auto; }
.nav-center { display: flex; align-items: center; gap: 8px; justify-self: start; width: clamp(320px, 42vw, 520px); margin-left: clamp(8px, 2vw, 32px); }
.nav-home { width: 48px; height: 48px; border-radius: 50%; background: #1f1f1f; display: grid; place-items: center; color: #fff; flex-shrink: 0; transition: background 0.15s var(--ease), transform 0.15s var(--ease); }
.nav-home:hover { background: #2a2a2a; transform: scale(1.04); }
.nav-home svg { width: 24px; height: 24px; }
.nav-search { display: flex; align-items: center; gap: 8px; flex: 1; height: 48px; padding: 6px 6px 6px 14px; background: #1f1f1f; border-radius: 9999px; border: 1px solid transparent; transition: background 0.15s var(--ease), border-color 0.15s var(--ease); }
.nav-search:hover { background: #2a2a2a; }
.nav-search:focus-within { background: #2a2a2a; border-color: rgba(255,255,255,0.6); }
.nav-search .search-ico { width: 24px; height: 24px; display: grid; place-items: center; color: #b3b3b3; flex-shrink: 0; }
.nav-search .search-ico svg { width: 18px; height: 18px; }
.nav-search input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: #fff; font-family: inherit; font-size: 14px; -webkit-appearance: none; appearance: none; }
.nav-search input::placeholder { color: #b3b3b3; }
.nav-search input:-webkit-autofill,
.nav-search input:-webkit-autofill:hover,
.nav-search input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #1f1f1f inset !important; -webkit-text-fill-color: #fff !important; caret-color: #fff; transition: background-color 5000s ease-in-out 0s; }
.nav-search .browse-divider { width: 1px; height: 26px; background: rgba(255,255,255,0.18); flex-shrink: 0; }
.nav-search .browse-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #b3b3b3; flex-shrink: 0; cursor: pointer; transition: color 0.15s var(--ease); }
.nav-search .browse-ico:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 14px; justify-self: end; position: relative; }
.nav-icon-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 9999px; color: #b3b3b3; font-size: 13px; font-weight: 600; background: transparent; border: 0; white-space: nowrap; transition: color 0.15s var(--ease), background 0.15s var(--ease); }
.nav-icon-btn svg { width: 18px; height: 18px; }
.nav-icon-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-divider { width: 1px; height: 22px; background: rgba(255,255,255,0.18); flex-shrink: 0; }
.nav-link { font-size: 14px; font-weight: 700; color: #b3b3b3; transition: color 0.15s var(--ease); white-space: nowrap; }
.nav-link:hover { color: #fff; }
.nav-cta { display: inline-flex; align-items: center; padding: 12px 32px; border-radius: 9999px; background: #fff; color: #000; font-size: 14px; font-weight: 700; transition: transform 0.15s var(--ease), background 0.15s var(--ease); white-space: nowrap; }
.nav-cta:hover { transform: scale(1.04); background: #f0f0f0; }
.nav-burger, .nav-search-btn { display: none; width: 44px; height: 44px; border-radius: 50%; background: #1f1f1f; border: 0; color: #fff; cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-burger svg, .nav-search-btn svg { width: 22px; height: 22px; }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform 0.15s var(--ease); flex-shrink: 0; overflow: hidden; }
.nav-avatar:hover { transform: scale(1.08); }
.nav-user-menu { position: absolute; top: calc(100% + 6px); right: 0; background: rgba(26,27,37,0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 0.5px solid rgba(255,255,255,0.12); border-radius: 12px; min-width: 180px; padding: 8px; z-index: 999; opacity: 0; transform: translateY(-6px) scale(0.96); pointer-events: none; transition: opacity 0.18s cubic-bezier(0.16,1,0.3,1), transform 0.18s cubic-bezier(0.16,1,0.3,1); }
.nav-user-menu.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.nav-user-menu a { display: block; padding: 10px 14px; font-size: 13px; border-radius: 6px; color: #a8a9bd; }
.nav-user-menu a:hover { background: rgba(255,255,255,0.06); color: #f5f5fa; }
.nav-user-menu button { width: 100%; text-align: left; padding: 10px 14px; font-size: 13px; border-radius: 6px; color: #a8a9bd; }
.nav-user-menu button:hover { background: rgba(255,255,255,0.06); color: #f5f5fa; }

/* Mobile drawer */
.nav-drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; visibility: hidden; }
.nav-drawer.is-open { pointer-events: auto; visibility: visible; }
.nav-drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); opacity: 0; transition: opacity 280ms var(--ease); }
.nav-drawer.is-open .nav-drawer-backdrop { opacity: 1; }
.nav-drawer-panel { position: absolute; top: 0; left: 0; height: 100%; width: min(86vw, 340px); background: #0e0f15; border-right: 0.5px solid rgba(255,255,255,0.08); transform: translateX(-100%); transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1); display: flex; flex-direction: column; padding: 18px 20px 24px; overflow-y: auto; gap: 6px; }
.nav-drawer.is-open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 16px; border-bottom: 0.5px solid rgba(255,255,255,0.08); margin-bottom: 16px; }
.nav-drawer-close { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; }
.nav-drawer-close svg { width: 18px; height: 18px; }
.nav-drawer-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 6px 14px; background: #1f1f1f; border-radius: 9999px; margin-bottom: 18px; }
.nav-drawer-search svg { width: 20px; height: 20px; color: #b3b3b3; flex-shrink: 0; }
.nav-drawer-search input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: #fff; font-size: 14px; font-family: inherit; }
.nav-drawer-search input::placeholder { color: #b3b3b3; }
.nav-drawer-link { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 12px; color: #fff; font-size: 16px; font-weight: 500; }
.nav-drawer-link svg { width: 22px; height: 22px; color: #b3b3b3; flex-shrink: 0; }
.nav-drawer-link:hover { background: rgba(255,255,255,0.05); }
.nav-drawer-section { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: #6a6b80; font-weight: 600; padding: 18px 12px 6px; }
.nav-drawer-cta { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; }
.nav-drawer-cta .btn { width: 100%; justify-content: center; padding: 14px 18px; font-size: 14px; }

/* Nav responsive */
@media (max-width: 980px) {
  .nav-burger, .nav-search-btn { display: inline-flex; }
  .nav-inner { grid-template-columns: auto 1fr auto; gap: 10px; padding: 8px 14px; height: 60px; }
  .nav-center { display: none; }
  .nav-right .nav-link, .nav-right .nav-cta, .nav-right .nav-icon-btn, .nav-right .nav-divider { display: none; }
  .logo img { height: 26px; }
}
