.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  opacity: 0;
  pointer-events: none;
  transition: background 240ms ease, opacity 240ms ease;
  z-index: 999;
}

.drawer-overlay.visible {
  background: rgba(0,0,0,0.5);
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 86vw);
  background: var(--surface);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 280ms var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 32px rgba(0,0,0,0.22);
  overflow-y: auto;
}

.drawer-panel.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: flex-end;
  padding: 16px 16px 0;
  flex-shrink: 0;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
}

.drawer-close-btn svg {
  width: 18px;
  height: 18px;
}

.drawer-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 6px 24px 26px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-profile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.1px;
}

.drawer-menu {
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius-md);
  text-align: left;
  outline: none;
  -webkit-appearance: none;
  transition: background 150ms ease;
}

.drawer-item:active {
  background: var(--surface-2);
}

.drawer-item-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.drawer-item-icon svg {
  width: 16px;
  height: 16px;
}

.drawer-item-label {
  flex: 1;
}

.drawer-item > svg:last-child {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.drawer-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px;
  margin-top: auto;
  padding: 13px;
  background: var(--red-light);
  color: var(--red);
  border: none;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  flex-shrink: 0;
}

.drawer-logout-btn svg {
  width: 17px;
  height: 17px;
}
