.nav{
  position:sticky;
  top:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:16px 20px;
  margin-bottom:18px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(6,10,24,.75);
  backdrop-filter:blur(18px);
  box-shadow:0 12px 34px rgba(0,0,0,.24);
  overflow:hidden;
}

/* BRAND */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  cursor:pointer;
  flex-shrink:0;
}

.brand-mark{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--grad);
  color:#07101e;
  font-weight:800;
  box-shadow:0 10px 24px rgba(79,163,255,.22);
}

.brand-name{
  font-family:Poppins,sans-serif;
  font-size:22px;
  font-weight:800;
  white-space:nowrap;
}

.brand-name span{
  background:var(--grad);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* LINKS WRAPPER */
.nav-links{
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
  min-width:0;
  align-items:flex-end;
}

/* ROWS */
.nav-row{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  width:100%;
  flex-wrap:nowrap;
  overflow-x:auto;
  scrollbar-width:none;
  min-width:0;
}

.nav-row::-webkit-scrollbar{
  display:none;
}

.nav-row.sub{
  justify-content:flex-end;
  flex-wrap:wrap;
  overflow:visible;
}

/* LINK STYLE */
.nav-row a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border-radius:12px;
  color:var(--muted);
  font-weight:700;
  text-decoration:none;
  border:1px solid transparent;
  white-space:nowrap;
  transition:.2s ease;
  flex:0 0 auto;
}

.nav-row a:hover{
  color:#fff;
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.06);
}

.nav-row a.active{
  background:var(--grad);
  color:#071120;
}

/* MOBILE */
.mobile-toggle{
  display:none;
  width:44px;
  height:44px;
  border:none;
  border-radius:12px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:22px;
  cursor:pointer;
  flex-shrink:0;
}

.mobile-drawer{
  display:none;
  width:100%;
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#0a1428;
  padding:12px;
}

.mobile-drawer.open{
  display:block;
}

.mobile-drawer a{
  display:block;
  padding:12px;
  border-radius:10px;
  text-decoration:none;
  color:#d9e4ff;
  font-weight:600;
  transition:.2s ease;
}

.mobile-drawer a:hover{
  background:rgba(255,255,255,.05);
}

.mobile-drawer a.active{
  background:var(--grad);
  color:#071120;
}

@media(max-width:1100px){
  .nav{
    gap:14px;
    padding:14px 16px;
  }

  .nav-row a{
    padding:10px 14px;
  }
}

@media(max-width:900px){
  .nav{
    flex-wrap:wrap;
    align-items:center;
  }

  .nav-links{
    display:none;
  }

  .mobile-toggle{
    display:block;
    margin-left:auto;
  }

  .mobile-drawer{
    order:3;
  }
}
