/* ===== HEADER ===== */

.header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(11,7,22,.86);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}

.header-inner{
  position:relative;
  display:grid;
  grid-template-columns:44px 1fr 1fr 44px;
  align-items:center;
  gap:16px;
  padding:14px 20px;
  max-width:1280px;
  margin:auto;
  min-height:88px;
}

.hamburger{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid var(--border);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  background:rgba(255,255,255,.03);
}

.hamburger span{
  width:18px;
  height:2px;
  background:#fff;
  border-radius:2px;
}

.logo{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
}

.logo--image img{
  height:105px;
  width:auto;
  display:block;
}

.nav{
  display:flex;
  justify-content:flex-end;
  gap:22px;
  grid-column:3;
}

.nav a{
  font-weight:700;
  color:var(--muted);
}

.nav a:hover{
  color:#fff;
}

.user-btn{
  padding:8px 14px;
  border-radius:10px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--border);
  justify-self:end;
}

/* ===== DRAWER ===== */

.drawer{
  position:fixed;
  inset:0;
  z-index:300;
  display:none;
}

.drawer.active{
  display:block;
}

.drawer-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}

.drawer-panel{
  position:absolute;
  top:0;
  left:0;
  width:min(88vw,360px);
  height:100%;
  background:rgba(16,10,30,.98);
  border-right:1px solid var(--border);
  box-shadow:var(--shadow);
  padding:18px;
  overflow:auto;
}

.drawer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}

.drawer-title{
  font-size:22px;
  font-weight:900;
}

.drawer-close{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
}

.drawer-section{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  font-weight:800;
  margin-bottom:12px;
}

.drawer-cats{
  display:none;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:14px;
}

.drawer-cats.active{
  display:flex;
}

.drawer-pill{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  font-weight:700;
}

.drawer-link{
  display:block;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);
  margin-bottom:10px;
  font-weight:800;
}

.drawer-sep{
  height:1px;
  background:var(--border);
  margin:14px 0;
}

.drawer-search{
  display:flex;
  gap:10px;
  align-items:center;
}

.drawer-search-input{
  flex:1;
  height:42px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
  color:var(--text);
  outline:none;
  font-weight:700;
}

/* ===== PAGE / FOOTER ===== */

.page-shell{
  min-height:calc(100vh - 160px);
}

.footer{
  margin-top:60px;
  border-top:1px solid var(--border);
  padding:20px;
  text-align:center;
  color:var(--muted);
}

/* ===== GLOBAL GRID ===== */

.grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:16px;
}

@media(max-width:1100px){
  .grid{
    grid-template-columns:repeat(4,1fr);
  }
}

@media(max-width:900px){
  .header-inner{
    grid-template-columns:44px 1fr 44px;
    min-height:82px;
  }

  .nav{
    display:none;
  }

  .user-btn{
    padding:8px 10px;
    font-size:14px;
  }

  .logo--image img{
    height:94px;
  }

  .grid{
    grid-template-columns:repeat(2,1fr);
  }
}