.mobile-filter-btn {
    display: none;

    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;

    padding: 14px 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #6b46c1 100%);
    color: white;
    border: none;
    border-radius: 50px;

    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;

    box-shadow:
        0 4px 16px rgba(107, 70, 193, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3);

    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 10px;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-filter-btn i {
    font-size: 1.1rem;
}

.mobile-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(107, 70, 193, 0.5),
        0 3px 10px rgba(0, 0, 0, 0.35);
}

.mobile-filter-btn:active {
    transform: translateY(0);
}


@media (max-width: 768px) {
    .mobile-filter-btn {
        display: flex;
    }
}



.mobile-filter-panel {
    display: none;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.mobile-filter-panel.active {
    display: block;
    pointer-events: all;
}


.mobile-filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.mobile-filter-panel.active .mobile-filter-overlay {
    opacity: 1;
}


.mobile-filter-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80vh;

    background: var(--bg-card);
    border-radius: 24px 24px 0 0;

    display: flex;
    flex-direction: column;

    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    box-shadow:
        0 -4px 24px rgba(0, 0, 0, 0.15),
        0 -2px 12px rgba(0, 0, 0, 0.1);
}

.mobile-filter-panel.active .mobile-filter-content {
    transform: translateY(0);
}



.mobile-filter-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);

    display: flex;
    justify-content: space-between;
    align-items: center;

    flex-shrink: 0;
}

.mobile-filter-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    margin: 0;
}

.mobile-filter-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;

    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;

    transition: all 0.2s ease;
}

.mobile-filter-close:hover {
    background: var(--bg-body);
    color: var(--text-main);
}



.mobile-filter-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;


    -webkit-overflow-scrolling: touch;
}



.mobile-filter-step {
    margin-bottom: 24px;
}

.mobile-filter-step.hidden {
    display: none;
}

.mobile-filter-step label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.mobile-filter-step select {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;

    background: var(--bg-body);
    color: var(--text-main);

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    font-family: var(--font-body);
    font-size: 1rem;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;

    transition: all 0.2s ease;
}

.mobile-filter-step select:focus {
    outline: none;
    border-color: #6b46c1;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}



.mobile-filter-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);

    display: flex;
    gap: 12px;

    flex-shrink: 0;
}

.mobile-filter-footer button {
    flex: 1;
    min-height: 52px;
    padding: 14px 20px;

    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;

    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;

    transition: all 0.2s ease;
}


.mobile-filter-footer .btn-secondary {
    background: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.mobile-filter-footer .btn-secondary:hover {
    background: var(--border);
}

.mobile-filter-footer .btn-secondary:active {
    transform: scale(0.98);
}


.mobile-filter-footer .btn-primary {
    background: linear-gradient(135deg, #1a1a2e 0%, #6b46c1 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 70, 193, 0.3);
}

.mobile-filter-footer .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.4);
    transform: translateY(-1px);
}

.mobile-filter-footer .btn-primary:active {
    transform: translateY(0);
}



@media (min-width: 769px) {

    .mobile-filter-btn,
    .mobile-filter-panel {
        display: none !important;
    }
}



@keyframes slideUpIn {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.mobile-filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.mobile-filter-checkbox {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px;
    cursor: pointer;
    padding: 14px 16px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    min-height: 52px;
}

.mobile-filter-checkbox:hover,
.mobile-filter-checkbox:active {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.05);
}

.mobile-filter-checkbox input[type="checkbox"] {
    display: none;
}

.mobile-filter-checkbox .checkbox-custom {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    border: 2px solid var(--border) !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0 !important;
    background: var(--bg-card) !important;
}

.mobile-filter-checkbox .checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0) rotate(-10deg);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-filter-checkbox input[type="checkbox"]:checked+.checkbox-custom {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.mobile-filter-checkbox input[type="checkbox"]:checked+.checkbox-custom::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.mobile-filter-checkbox:has(input[type="checkbox"]:checked) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

.mobile-filter-checkbox:has(input[type="checkbox"]:checked) .checkbox-label {
    color: #a855f7;
    font-weight: 600;
}

.mobile-filter-checkbox .checkbox-label {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.25s ease;
}


[data-theme="light"] .mobile-filter-checkbox {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-filter-checkbox .checkbox-custom {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .mobile-filter-checkbox .checkbox-label {
    color: #334155;
}

[data-theme="light"] .mobile-filter-checkbox:has(input[type="checkbox"]:checked) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.12) 100%);
    border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .mobile-filter-checkbox:has(input[type="checkbox"]:checked) .checkbox-label {
    color: #6366f1;
}