.market-layout {
    display: flex;
    gap: 2rem;
    padding: 100px 0 60px;
    position: relative;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius);
}

.sidebar h3 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.filter-option {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.2s;
}

.filter-option.active {
    color: var(--primary);
    font-weight: 600;
}

.listing-content {
    flex: 1;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.account-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.account-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.account-card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-tiktok { background: #000; color: #fff; }
.badge-instagram { background: #e1306c; color: #fff; }
.badge-youtube { background: #ff0000; color: #fff; }
.badge-facebook { background: #1877f2; color: #fff; }
.badge-twitter { background: #0f1419; color: #fff; }

.search-bar {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    outline: none;
    font-family: inherit;
}

/* Mobile Filter Toggle */
.mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: white;
    border-radius: 99px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
    z-index: 1001;
    border: none;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .market-layout {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        z-index: 2000;
        transition: left 0.3s ease;
        border-radius: 0;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .mobile-filter-btn {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1999;
    }

    .sidebar-overlay.active {
        display: block;
    }
}
