/* ===== Drawer Menu — refined, soft & user-friendly ===== */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 14, 24, 0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; left: 0;
  width: min(300px, 82vw);
  height: 100vh; height: 100dvh;
  background: #0E1014;
  color: #fff;
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  box-shadow: 0 0 60px rgba(0,0,0,0.4);
  overflow: hidden;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; gap: 12px;
  background: var(--accent);
  padding: 14px 16px;
  flex-shrink: 0;
}
.drawer-close {
  background: rgba(255,255,255,0.10);
  border: 0;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.drawer-close:hover { background: rgba(255,255,255,0.18); }
.drawer-logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
  flex-shrink: 0;
}
.drawer-logo-img {
  height: 100%;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.drawer-nav::-webkit-scrollbar { width: 4px; }
.drawer-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.drawer-item {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 10px;
  padding: 11px 18px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.92);
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background .15s, color .15s, padding-left .15s;
  cursor: pointer;
  position: relative;
}
.drawer-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transition: height .18s ease;
}
.drawer-item:hover {
  background: rgba(255,255,255,0.04);
  color: #fff;
  padding-left: 26px;
}
.drawer-item:hover::before { height: 22px; }
.drawer-item:active { background: rgba(255,255,255,0.07); }
.drawer-item svg {
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  margin-left: auto;
  transition: color .15s, transform .15s;
}
.drawer-item:hover svg { color: rgba(255,255,255,0.7); transform: translateX(2px); }
.drawer-chevron-open { transform: rotate(90deg); }

.drawer-group.open > .drawer-item-parent svg { color: rgba(255,255,255,0.7); transform: rotate(90deg); }

.drawer-sub-panel {
  background: rgba(0,0,0,0.22);
  border-left: 2px solid rgba(255,255,255,0.08);
  margin: 0 0 4px 18px;
}
.drawer-sub-item {
  display: block;
  padding: 9px 16px 9px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  transition: background .15s, color .15s, padding-left .15s;
}
.drawer-sub-item:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  padding-left: 18px;
}
.drawer-sub-item-all {
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.drawer-item-util {
  font-size: 13px;
  padding: 9px 18px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
}
.drawer-item-util:hover { color: rgba(255,255,255,0.95); }
.drawer-sep {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.10) 18%,
    rgba(255,255,255,0.10) 82%,
    transparent 100%);
  margin: 8px 18px;
}
.drawer-foot {
  padding: 14px 18px 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 10px;
}
.drawer-social {
  display: flex; gap: 10px;
  margin-bottom: 12px;
}
.drawer-social a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.drawer-social a:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}
.drawer-copy {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255,255,255,0.40);
  letter-spacing: 0.04em;
}
