/* --- Slide-Out Drawer Portal structure --- */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-backdrop-open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-container {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 480px;
    max-width: 90vw;
    background: #FFFFFF;
    z-index: 2001;
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.08);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: #FFFFFF;
}

.drawer-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drawer-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.drawer-title-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.drawer-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}

.drawer-count-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--text-sub);
    margin: 0;
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #94A3B8;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close-btn:hover {
    color: #0F172A;
}

.drawer-body {
    flex-grow: 1;
    padding: 1.75rem;
    overflow-y: auto;
    background: #F8FAFC;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
