/* Rocket Wiki — user drawer */
.user-sidebar {
    position: fixed;
    top: 0;
    right: -390px;
    left: auto;
    z-index: 14000;
    width: min(390px, 92vw);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid rgba(255,255,255,.1);
    background: #121318;
    box-shadow: -28px 0 70px rgba(0,0,0,.45);
    transition: right 220ms cubic-bezier(.2,.8,.2,1);
}
.user-sidebar.open { right: 0; left: auto; }
.sidebar-overlay { position: fixed; inset: 0; z-index: 13900; opacity: 0; visibility: hidden; pointer-events: none; background: rgba(3,3,5,.72); backdrop-filter: blur(8px); transition: opacity 180ms ease, visibility 180ms ease; }
.sidebar-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
.sidebar-header { min-height: 76px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-header h3 { margin: 0; color: #fff; font-family: inherit; font-size: 1.15rem; font-weight: 900; }
.sidebar-close-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(255,255,255,.035); color: #fff; font-size: 1.45rem; cursor: pointer; }
.sidebar-close-btn:hover { background: var(--rocket-red); border-color: var(--rocket-red); }
.sidebar-content { flex: 1; min-height: 0; padding: 20px; overflow-y: auto; }
.sidebar-nav { display: grid; gap: 8px; }
.sidebar-item { width: 100%; min-height: 54px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: #c4c4cb; font: inherit; font-size: .9rem; font-weight: 800; text-align: left; text-decoration: none; cursor: pointer; transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.sidebar-item:hover { color: #fff; background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.08); transform: translateX(-2px); }
.sidebar-item.is-active, .sidebar-item[aria-current="page"] { color: #fff; background: rgba(229,28,47,.12); border-color: rgba(229,28,47,.28); }
.sidebar-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.045); font-size: 1rem; }
.sidebar-footer { padding: 17px 20px; border-top: 1px solid rgba(255,255,255,.08); background: #0f1014; }
.sidebar-logout-btn { justify-content: center; color: #fff; background: rgba(229,28,47,.12); border-color: rgba(229,28,47,.25); }
.sidebar-logout-btn:hover { background: var(--rocket-red); border-color: var(--rocket-red); transform: none; }
@media (max-width: 600px) { .user-sidebar { width: 100%; right: -100%; } }
