.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

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

.filter-drawer {
    position: fixed;
    top: 0;
    right: -430px;
    width: 430px;
    max-width: 94vw;
    height: 100vh;
    background: radial-gradient(circle at top right, rgba(22,163,74,0.12), transparent 32%), #ffffff;
    box-shadow: -18px 0 50px rgba(15, 23, 42, 0.22);
    z-index: 1000;
    transition: right 0.35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    border-radius: 24px 0 0 24px;
    overflow: hidden;
}

.filter-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 22px;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
}

.drawer-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.drawer-header h3 {
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.2;
}

.drawer-header p {
    margin-top: 6px;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
}

.drawer-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 12px;
    font-size: 1.3rem;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px 22px;
}

.drawer-section {
    background: rgba(248,250,252,0.9);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 14px;
}

.drawer-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.drawer-section-title i {
    color: #16a34a;
}

.quick-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-filter {
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.quick-filter.active {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.filter-group {
    margin-bottom: 14px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 0.86rem;
    font-weight: 700;
    background: #fff;
    outline: none;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.switch-list {
    display: grid;
    gap: 10px;
}

.pretty-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
}

.pretty-switch span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pretty-switch strong {
    font-size: 0.84rem;
    color: #111827;
}

.pretty-switch small {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 700;
}

.pretty-switch input {
    display: none;
}

.switch-ui {
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 999px;
    position: relative;
    flex: 0 0 auto;
}

.switch-ui::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 3px;
    left: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.pretty-switch input:checked + .switch-ui {
    background: #16a34a;
}

.pretty-switch input:checked + .switch-ui::after {
    transform: translateX(20px);
}

.drawer-footer {
    padding: 14px 20px 18px;
    border-top: 1px solid #e5e7eb;
    background: rgba(255,255,255,0.94);
}

.drawer-footer-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 10px;
}

.reset-btn,
.apply-btn {
    height: 48px;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
}

.reset-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
}

.apply-btn {
    border: none;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
}
