.nav { position: sticky; top: 0; z-index: 200; background: transparent; backdrop-filter: none; padding: 12px 24px; transition: padding .3s ease; }
.nav::before { content: ''; position: absolute; inset: 0; bottom: -40px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: linear-gradient(to bottom, rgba(17,17,17,0.85) 0%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%); mask-image: linear-gradient(to bottom, black 60%, transparent 100%); z-index: -1; pointer-events: none; }
.nav-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.nav.scrolled .nav-pill,
.nav.scrolled .nav-r { background: rgba(12,12,22,.95); border-color: rgba(255,255,255,.12); backdrop-filter: blur(28px) saturate(200%); box-shadow: 0 4px 24px rgba(0,0,0,.3); }
.nav-logo img { height: 32px; width: auto; flex-shrink: 0; }
.nav-pill { display: flex; align-items: center; gap: 1px; background: rgba(18,18,30,.9); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 4px 5px; backdrop-filter: blur(20px) saturate(180%); position: absolute; left: 50%; transform: translateX(-50%); }
.nav-pill a { padding: 0 14px; height: 32px; display: flex; align-items: center; border-radius: 999px; font-size: .85rem; font-weight: 500; color: rgba(200,190,230,.5); transition: background .2s, color .2s; white-space: nowrap; text-decoration: none; }
.nav-pill a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-pill a.active { color: #fff; background: rgba(135,106,255,.2); font-weight: 600; }
.nav-r { display: flex; align-items: center; gap: 1px; background: rgba(18,18,30,.9); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 4px 5px; backdrop-filter: blur(20px) saturate(180%); }
.nav-icon-btn { width: 32px; height: 32px; border-radius: 999px; background: transparent; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s; color: rgba(200,190,230,.5); flex-shrink: 0; }
.nav-icon-btn:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav-divider { width: 1px; height: 18px; background: rgba(255,255,255,.09); margin: 0 3px; flex-shrink: 0; }
.nav-dropdown { background: rgba(12,12,22,.97); border: 1px solid rgba(255,255,255,.11); border-radius: 14px; backdrop-filter: blur(24px) saturate(180%); z-index: 300; overflow: hidden; box-shadow: 0 12px 48px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04); animation: nav-dd-fade .15s ease; }
@keyframes nav-dd-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.nav-dropdown-items { padding: 6px; }
.nav-dd-item { display: block; padding: 9px 12px; border-radius: 8px; font-size: .85rem; color: rgba(200,190,230,.7); transition: background .2s, color .2s; text-decoration: none; cursor: pointer; }
.nav-dd-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.ham { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: rgba(200,190,230,.6); }
a:focus-visible, button:focus-visible { outline: 2px solid rgba(135,106,255,.5); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 860px) { .nav-pill { display: none; } .ham { display: flex; } }

.nav-r { position: relative; }

.nav-dropdown { display: none; position: absolute; top: calc(100% + 10px); right: 0; }
.nav-dropdown:not([hidden]) { display: block; }

.nav-currency-menu-inner { padding: 4px; }

.nav-pfp-menu { right: 4px; min-width: 220px; top: calc(100% + 14px); }

.nav-pfp-header { padding: 14px 16px 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.nav-pfp-label  { font-size: .7rem; color: rgba(200,190,230,.4); margin-bottom: 2px; }
.nav-pfp-email  { font-size: .85rem; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-dd-sep    { height: 1px; background: rgba(255,255,255,.07); margin: 4px 0; }
.nav-dd-danger { color: #f87171; }
.nav-dd-danger:hover { background: rgba(248,113,113,.06); color: #f87171; }

.nav-currency-btn { display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 999px; background: transparent; border: none; cursor: pointer; font-family: inherit; font-size: .8rem; font-weight: 600; color: rgba(200,190,230,.55); transition: background .2s, color .2s; white-space: nowrap; letter-spacing: .01em; }
.nav-currency-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-currency-btn.open  { background: rgba(135,106,255,.12); color: #fff; }
.nav-currency-btn:focus-visible { outline: 2px solid rgba(135,106,255,.5); outline-offset: 2px; }

.nav-currency-chevron { opacity: .45; transition: transform .2s, opacity .2s; flex-shrink: 0; }
.nav-currency-btn.open .nav-currency-chevron { transform: rotate(180deg); opacity: .8; }

.nav-currency-menu { width: 260px; max-height: 400px; overflow-y: auto; }
.nav-currency-menu::-webkit-scrollbar       { width: 3px; }
.nav-currency-menu::-webkit-scrollbar-track { background: transparent; }
.nav-currency-menu::-webkit-scrollbar-thumb { background: rgba(135,106,255,.3); border-radius: 99px; }

.nav-currency-section-label { font-size: .58rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: rgba(200,190,230,.22); padding: 5px 10px 3px; pointer-events: none; user-select: none; }

.nav-currency-item { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 7px 10px; border-radius: 8px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: .82rem; font-weight: 700; color: rgba(200,190,230,.65); transition: background .15s, color .15s; text-align: left; letter-spacing: .015em; white-space: nowrap; }
.nav-currency-item span        { font-size: .7rem; font-weight: 400; color: rgba(200,190,230,.28); padding-left: 12px; white-space: nowrap; flex-shrink: 0; }
.nav-currency-item:hover       { background: rgba(255,255,255,.07); color: #fff; }
.nav-currency-item:hover span  { color: rgba(200,190,230,.5); }
.nav-currency-item.active      { background: rgba(135,106,255,.13); color: var(--p2, #a78bff); }
.nav-currency-item.active span { color: rgba(167,139,255,.4); }
.nav-currency-item:focus-visible { outline: 2px solid rgba(135,106,255,.5); outline-offset: -2px; }

.nav-cart-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; color: rgba(200,190,230,.5); transition: background .2s, color .2s; flex-shrink: 0; }
.nav-cart-btn:hover { background: rgba(255,255,255,.09); color: #fff; }

.nav-signin-btn { display: flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; font-size: .85rem; font-weight: 500; color: rgba(200,190,230,.5); white-space: nowrap; transition: background .2s, color .2s; text-decoration: none; flex-shrink: 0; }
.nav-signin-btn:hover { background: rgba(255,255,255,.08); color: #fff; }

.nav-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(135,106,255,.35); background: rgba(135,106,255,.1); cursor: pointer; flex-shrink: 0; padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; align-self: center; }
.nav-pfp-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

.mob-menu { display: none; flex-direction: column; gap: 2px; padding: 10px 16px 16px; border-top: 1px solid rgba(255,255,255,.06); background: rgba(6,6,15,.98); backdrop-filter: blur(24px) saturate(180%); }
.mob-menu.open { display: flex; }

.mob-link { padding: 10px 12px; border-radius: 10px; font-size: .9rem; font-weight: 500; color: rgba(200,190,230,.6); text-decoration: none; transition: background .2s, color .2s; }
.mob-link:hover, .mob-link.active { color: #fff; background: rgba(135,106,255,.1); }
.mob-link-danger       { color: #f87171; }
.mob-link-danger:hover { background: rgba(248,113,113,.08); color: #f87171; }

.mob-divider { height: 1px; background: rgba(255,255,255,.07); margin: 6px 0; }

.mob-currency-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.mob-currency-label { font-size: .8rem; font-weight: 600; color: rgba(200,190,230,.5); }
.mob-currency-select { background: rgba(135,106,255,.1); border: 1px solid rgba(135,106,255,.25); border-radius: 8px; color: var(--p2, #a78bff); font-size: .8rem; font-weight: 600; font-family: inherit; padding: 4px 8px; cursor: pointer; outline: none; max-width: 180px; }
.mob-currency-select:focus-visible { outline: 2px solid rgba(135,106,255,.5); }
.mob-currency-select option,
.mob-currency-select optgroup { background: #0c0c1a; color: #fff; }

.mob-signin { display: block; margin-top: 6px; padding: 11px 12px; border-radius: 10px; font-size: .9rem; font-weight: 700; color: #fff; text-align: center; text-decoration: none; background: linear-gradient(135deg, #9b7dff 0%, #7c5cfc 100%); box-shadow: 0 2px 12px rgba(135,106,255,.3); transition: box-shadow .2s, transform .15s; }
.mob-signin:hover { box-shadow: 0 4px 20px rgba(135,106,255,.45); transform: translateY(-1px); }

@media (max-width: 860px) {
  .nav-currency-code-text { display: none; }
  .nav-currency-btn { padding: 0 8px; gap: 3px; }
}
@media (max-width: 480px) {
  .nav { padding: 10px 16px; }
  .nav-r { gap: 0; }
  .nav-divider { margin: 0 2px; }
}
