/* ============================================
   MENU LATERAL - ZELO
   CORRIGIDO: Abre completamente sem cortar
   ============================================ */
/* BOTÃO DO MENU - FIXO */
.st-menu-btn {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top, 16px));
    left: 16px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.st-menu-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}
.st-menu-btn:active {
    transform: scale(0.92);
}
/* BOTÃO DESAPARECE QUANDO MENU ABERTO */
.st-menu-btn.active {
    display: none !important;
}
.st-menu-btn svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.st-menu-btn.active svg {
    transform: rotate(90deg);
}
/* OVERLAY */
.st-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.st-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
/* SIDEBAR - CORRIGIDO: Sempre abre da esquerda */
.st-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
    padding: 24px 20px;
    padding-top: calc(24px + env(safe-area-inset-top, 24px));
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 24px));
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    box-shadow: 8px 0 60px rgba(0, 0, 0, 0.8);
}
.st-sidebar::-webkit-scrollbar {
    width: 3px;
}
.st-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.st-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.st-sidebar.open {
    left: 0 !important;
}
/* HEADER DO SIDEBAR */
.st-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}
.st-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.st-sidebar-brand .st-icon {
    color: #ffffff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
}
.st-sidebar-brand span {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.st-sidebar-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}
.st-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}
/* PERFIL */
.st-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.st-sidebar-profile:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}
.st-sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}
.st-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.st-sidebar-user {
    flex: 1;
    min-width: 0;
}
.st-sidebar-user-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.st-sidebar-user-email {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.st-sidebar-user-level {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #C9A961;
    margin-top: 2px;
    letter-spacing: 0.05em;
}
/* ITENS DO MENU */
.st-sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}
.st-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.04);
}
.st-sidebar-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.02);
}
.st-sidebar-item .st-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.3);
}
.st-sidebar-item.active .st-icon {
    color: #ffffff;
}
.st-sidebar-item span {
    flex: 1;
}
/* BADGE */
.st-sidebar-badge {
    padding: 2px 10px;
    background: #C9A961;
    color: #000000;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    border-radius: 10px;
    letter-spacing: 0.05em;
}
/* DIVIDER */
.st-sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
    margin: 8px 0;
}
/* FOOTER */
.st-sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.st-sidebar-footer .st-sidebar-item {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
}
.st-sidebar-footer .st-sidebar-item:hover {
    color: rgba(255, 255, 255, 0.5);
}
.st-sidebar-footer .st-sidebar-item.danger {
    color: rgba(239, 68, 68, 0.4);
}
.st-sidebar-footer .st-sidebar-item.danger:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.15);
    background: rgba(239, 68, 68, 0.05);
}
/* RESPONSIVO - CORRIGIDO */
@media (max-width: 380px) {
    .st-sidebar {
        width: 280px;
        padding: 20px 16px;
        left: -280px;
    }
    .st-sidebar.open {
        left: 0 !important;
    }
    .st-menu-btn {
        width: 42px;
        height: 42px;
        top: calc(12px + env(safe-area-inset-top, 12px));
        left: 12px;
    }
    .st-menu-btn svg {
        width: 20px;
        height: 20px;
    }
    .st-sidebar-user-name {
        font-size: 0.85rem;
    }
    .st-sidebar-item {
        font-size: 0.75rem;
        padding: 10px 14px;
    }
    .st-sidebar-brand span {
        font-size: 1.1rem;
    }
}
@media (min-width: 600px) {
    .st-sidebar {
        width: 360px;
        left: -360px;
    }
    .st-sidebar.open {
        left: 0 !important;
    }
    .st-menu-btn {
        left: 16px;
    }
}
@media (min-height: 800px) {
    .st-sidebar-item {
        padding: 14px 18px;
        font-size: 0.9rem;
    }
    .st-sidebar {
        padding: 28px 24px;
    }
}