    /* Force overflow fix for both html and body */
    html, body {
        overflow-x: hidden !important;
        position: relative;
        width: 100% !important;
    }

    /* Modal Layering Fixes */
    /* Modal Layering Fixes - Moved to bottom for better organization */
    
    .modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.7) !important;
        backdrop-filter: blur(8px) !important;
        z-index: -1 !important; /* Put it behind the modal-content within the high z-index parent */
    }
    
    .qv-card, .modal-content {
        position: relative;
        z-index: 10 !important;
        background: white !important;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    }

                .collections-grid-v2 {
                    display: grid;
                    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                    gap: 1.5rem;
                    margin-top: 1.5rem;
                }
                
                .collection-card-glass {
                    position: relative;
                    background: rgba(255, 255, 255, 0.6);
                    backdrop-filter: blur(12px);
                    -webkit-backdrop-filter: blur(12px);
                    border: 1px solid rgba(255, 255, 255, 0.3);
                    border-radius: 20px;
                    padding: 1.25rem;
                    text-decoration: none;
                    transition: all 0.3s ease;
                    overflow: hidden;
                    display: block;
                    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
                }
                
                .collection-glass-content {
                    display: flex;
                    align-items: center;
                    gap: 1rem;
                    position: relative;
                    z-index: 2;
                }
                
                html.dark .collection-card-glass {
                    background: rgba(30, 41, 59, 0.6);
                    border-color: rgba(255, 255, 255, 0.05);
                }
                
                .collection-card-glass:hover {
                    transform: translateY(-4px);
                    background: rgba(255, 255, 255, 0.8);
                    border-color: rgba(99, 102, 241, 0.3);
                    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.1);
                }
                
                html.dark .collection-card-glass:hover {
                    background: rgba(30, 41, 59, 0.8);
                    border-color: rgba(99, 102, 241, 0.4);
                    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
                }
                
                .collection-icon-wrapper {
                    width: 56px;
                    height: 56px;
                    border-radius: 16px;
                    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 1.75rem;
                }
                
                .collection-info {
                    flex: 1;
                }
                
                .collection-info h3 {
                    font-size: 1.1rem;
                    font-weight: 700;
                    margin: 0 0 0.25rem;
                    color: var(--text-primary);
                }
                
                .collection-count {
                    font-size: 0.85rem;
                    color: var(--text-secondary);
                    margin: 0;
                    font-weight: 500;
                }
                
                .collection-arrow {
                    width: 32px;
                    height: 32px;
                    border-radius: 50%;
                    background: rgba(0, 0, 0, 0.05);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    color: var(--text-secondary);
                    transition: all 0.3s ease;
                }
                
                html.dark .collection-arrow {
                    background: rgba(255, 255, 255, 0.05);
                }
                
                .collection-card-glass:hover .collection-arrow {
                    background: var(--color-primary);
                    color: white;
                    transform: translateX(4px);
                }
                
                .collection-glass-shine {
                    position: absolute;
                    top: 0;
                    left: -100%;
                    width: 50%;
                    height: 100%;
                    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
                    transform: skewX(-20deg);
                    transition: left 0.5s;
                }
                
                .collection-card-glass:hover .collection-glass-shine {
                    left: 200%;
                    transition: left 0.6s ease-in-out;
                }

            .quick-access-grid {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 1.5rem;
                margin-bottom: 2.5rem;
            }
            @media (max-width: 768px) {
                .quick-access-grid { grid-template-columns: 1fr; }
            }
            .access-card {
                position: relative;
                height: 140px;
                border-radius: 20px;
                padding: 1.5rem;
                display: flex;
                align-items: center;
                justify-content: space-between;
                text-decoration: none;
                overflow: hidden;
                transition: transform 0.3s ease;
                border: 1px solid rgba(255,255,255,0.1);
            }
            .access-card:hover { transform: translateY(-4px); }
            
            /* Card Variants */
            .card-youtube { background: linear-gradient(135deg, #1f2937 0%, #000000 100%); }
            .card-youtube .access-icon { color: #FF0000; }
            .card-youtube .access-tag { background: rgba(255,0,0,0.2); color: #ff9999; }
            
            .card-designer { background: linear-gradient(135deg, #4c1d95 0%, #2e1065 100%); }
            .card-designer .access-icon { color: #a78bfa; }
            .card-designer .access-tag { background: rgba(167, 139, 250, 0.2); color: #d8b4fe; }
            
            .card-free { background: linear-gradient(135deg, #064e3b 0%, #022c22 100%); }
            .card-free .access-icon { color: #34d399; }
            .card-free .access-tag { background: rgba(52, 211, 153, 0.2); color: #6ee7b7; }
            
            .access-content { position: relative; z-index: 2; }
            .access-content h3 { color: white; margin: 0.5rem 0 0.25rem; font-size: 1.25rem; font-weight: 700; }
            .access-content p { color: rgba(255,255,255,0.7); margin: 0; font-size: 0.9rem; }
            
            .access-tag {
                padding: 4px 10px;
                border-radius: 20px;
                font-size: 0.7rem;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }
            
            .access-icon {
                font-size: 3.5rem;
                opacity: 0.2;
                position: absolute;
                right: -10px;
                bottom: -10px;
                z-index: 1;
                transition: all 0.3s ease;
            }
            .access-card:hover .access-icon { opacity: 0.4; transform: scale(1.1) rotate(-10deg); }

    /* ========== NEW HERO SECTION ========== */
    .hero-section-new {
        position: relative;
        background: linear-gradient(135deg, #1a365d 0%, #2563eb 30%, #0891b2 60%, #22d3d1 100%);
        margin-top: 1rem; /* Gap between header and hero box */
        padding: 5rem 1.5rem 3rem;
        overflow: hidden;
        min-height: 420px;
        border-radius: 24px; /* Rounded all corners like a card */
    }

    /* ========== LAYOUT FIXES ========== */
    .main-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        max-width: 1400px !important;
        margin: 0 auto !important;
        padding: 2rem 1rem !important;
        gap: 2rem !important;
        grid-template-columns: none !important; /* Override any grid */
    }

    .content-area {
        flex: 1 !important;
        width: 0 !important; /* Force flex shrinking/growth */
        min-width: 0 !important;
    }

    .right-sidebar {
        width: 320px !important;
        flex-shrink: 0 !important;
        display: block !important;
    }
    
    /* MOBILE RESPONSIVE LAYOUT FIX */
    @media (max-width: 992px) {
        .main-container {
            flex-direction: column !important;
            padding: 1.5rem 1rem !important;
            gap: 1.5rem !important;
        }
        
        .content-area {
            width: 100% !important;
            flex: none !important;
        }
        
        .right-sidebar {
            width: 100% !important;
            margin-top: 1rem !important;
        }
    }
    
    /* Hide left sidebar if it still exists in CSS */
    .sidebar:not(.right-sidebar) {
        display: none !important;
    }

    /* UNIFIED TOOLS GRID - Force 4 columns */
    .tools-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem;
        width: 100%;
    }
    
    /* Responsive Grid Breakpoints */
    @media (max-width: 1400px) {
        .tools-grid {
            grid-template-columns: repeat(3, 1fr) !important;
        }
    }
    
    @media (max-width: 992px) {
        .tools-grid {
            grid-template-columns: repeat(2, 1fr) !important;
        }
    }
    
    @media (max-width: 640px) {
        .tools-grid {
            grid-template-columns: 1fr !important;
        }
    }

    /* ========== SECTION HEADER STYLES ========== */
    .section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .section-header-left {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: #1f2937;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    html.dark .section-title {
        color: #f1f5f9;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }
    
    .view-all-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.9rem;
        font-weight: 600;
        color: #4f46e5;
        text-decoration: none;
        transition: all 0.2s;
    }
    
    .view-all-btn:hover {
        gap: 0.75rem;
        color: #4338ca;
    }
    
    html.dark .view-all-btn {
        color: #818cf8;
    }
    
    html.dark .view-all-btn:hover {
        color: #a5b4fc;
    }
    
    /* ========== SNOWFALL EFFECT ========== */
    .snowflakes {
        position: absolute;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
        z-index: 1;
    }
    /* Optimized Snowflakes */
    .desktop-only {
        display: block;
    }
    @media (max-width: 992px) {
        .desktop-only { display: none !important; }
    }

    .snowflake {
        position: absolute;
        top: -10%;
        color: rgba(255, 255, 255, 0.4);
        font-size: 1rem;
        pointer-events: none;
        animation: snowfall linear infinite;
    }
    .snowflake:nth-child(1) { left: 10%; animation-duration: 8s; }
    .snowflake:nth-child(2) { left: 30%; animation-duration: 12s; animation-delay: 2s; }
    .snowflake:nth-child(3) { left: 50%; animation-duration: 10s; animation-delay: 4s; }
    .snowflake:nth-child(4) { left: 70%; animation-duration: 14s; animation-delay: 1s; }
    .snowflake:nth-child(5) { left: 90%; animation-duration: 9s; animation-delay: 3s; }
    
    @keyframes snowfall {
        0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
        10% { opacity: 0.8; }
        90% { opacity: 0.8; }
        100% { transform: translateY(400px) rotate(360deg); opacity: 0; }
    }
    
    /* Disable snowflakes on mobile for performance */
    @media (max-width: 768px) {
        .snowflakes { display: none !important; }
    }
    
    /* Respect reduced motion preference */
    @media (prefers-reduced-motion: reduce) {
        .snowflakes { display: none !important; }
    }
    
    .hero-container {
        max-width: 900px;
        margin: 0 auto;
        text-align: center;
        position: relative;
        z-index: 2;
    }
    
    .hero-title {
        font-size: 52px;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 1rem;
        letter-spacing: -0.02em;
        font-style: normal;
    }
    .hero-title .highlight {
        color: #f5a623;
        font-style: normal;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        color: #a0aec0;
        margin-bottom: 0.5rem;
    }
    .stat-highlight {
        color: #f5a623;
        font-weight: 600;
    }
    
    .hero-spotlight {
        font-size: 0.9rem;
        color: #718096;
        margin-bottom: 2rem;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(245, 166, 35, 0.08);
        padding: 6px 16px;
        border-radius: 999px;
        border: 1px solid rgba(245, 166, 35, 0.2);
    }
    .spotlight-dot {
        width: 8px;
        height: 8px;
        background: #22c55e;
        border-radius: 50%;
        display: inline-block;
        animation: spotlight-pulse 2s ease-in-out infinite;
    }
    @keyframes spotlight-pulse {
        0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
        50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    }
    .spotlight-link {
        color: #f5a623;
        text-decoration: underline;
        font-weight: 600;
    }
    .spotlight-link:hover {
        color: #ffc107;
    }
    
    /* Hero Search */
    .hero-search-wrapper {
        position: relative;
        max-width: 700px;
        margin: 0 auto 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    .hero-search {
        flex: 1;
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(16px);
        border-radius: 50px;
        padding: 0.85rem 1.25rem;
        gap: 0.75rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    .hero-search input {
        flex: 1;
        border: none;
        background: transparent;
        color: #ffffff;
        font-size: 0.95rem;
        outline: none;
    }
    .hero-search input::placeholder {
        color: #718096;
    }
    .search-shortcut {
        background: rgba(255, 255, 255, 0.1);
        color: #a0aec0;
        padding: 0.3rem 0.7rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 500;
    }
    .search-btn {
        background: linear-gradient(135deg, #f5a623, #ff8c00);
        color: white;
        border: none;
        padding: 0.75rem 1.75rem;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        white-space: nowrap;
    }
    .search-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(245, 166, 35, 0.4);
    }
    
    /* Hero Search Trigger */
    .hero-search-trigger {
        cursor: pointer;
        user-select: none;
    }
    
    .hero-search-trigger:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.25);
    }
    
    .hero-search-placeholder {
        flex: 1;
        color: #718096;
        font-size: 0.95rem;
    }
    
    /* Category Chips */
    .category-chips {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.6rem;
        margin-bottom: 2rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    .category-chips::-webkit-scrollbar {
        display: none;
    }
    .category-chips .chip {
        background: rgba(39, 217, 164, 0.25);
        border: 1px solid rgba(39, 217, 164, 0.4);
        color: #ffffff;
        padding: 0.5rem 1.1rem;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 500;
        transition: all 0.2s;
        text-decoration: none;
    }
    .category-chips .chip:hover {
        background: rgba(39, 217, 164, 0.45);
        border-color: rgba(39, 217, 164, 0.6);
        color: #ffffff;
    }
    .chip-view-all {
        background: #22c55e !important;
        border-color: #22c55e !important;
        color: #ffffff !important;
    }
    .chip-view-all:hover {
        background: #16a34a !important;
        border-color: #16a34a !important;
    }
    
    /* As Seen On */
    .seen-on-section {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
    }
    .seen-on-label {
        color: #94a3b8;
        font-size: 0.95rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .seen-on-logos {
        display: flex;
        align-items: center;
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo-item {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        color: #e2e8f0;
        font-size: 1rem;
        font-weight: 600;
        opacity: 0.95;
        transition: all 0.3s ease;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
    }
    .logo-item:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }
    .logo-item i {
        font-size: 1.4rem;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    }
    
    /* CTA Button */
    .cta-featured {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: linear-gradient(135deg, #22c55e, #16a34a);
        color: white;
        padding: 0.75rem 1.75rem;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        transition: transform 0.2s, box-shadow 0.2s;
        border: 2px solid transparent;
    }
    .cta-featured:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    }
    
    /* ========== DARK MODE OVERRIDES FOR HOME PAGE ========== */
    html.dark .main-content {
        background: var(--bg-primary);
    }
    
    /* Sidebar Container - Dark Mode */
    html.dark .sidebar,
    html.dark .sidebar.sticky-sidebar,
    html.dark #sidebarFilters {
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
    }
    
    html.dark .sidebar-header-mobile {
        background: var(--bg-tertiary);
        border-bottom: 1px solid var(--border-color);
        color: var(--text-primary);
    }
    
    html.dark .close-filters-btn {
        color: var(--text-primary);
    }
    
    html.dark .filters-sidebar {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }
    
    html.dark .sidebar-title {
        color: var(--text-primary);
    }
    
    html.dark .category-card {
        background: var(--bg-tertiary);
        border-color: var(--border-color);
    }
    
    html.dark .category-header {
        color: var(--text-primary);
    }
    
    html.dark .category-header:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    html.dark .subcategory-bar {
        background: var(--bg-secondary);
        color: var(--text-secondary);
        border-color: var(--border-color);
    }
    
    html.dark .subcategory-bar:hover {
        background: var(--bg-tertiary);
        color: var(--text-primary);
    }
    
    html.dark .tool-card {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }
    
    html.dark .tool-card:hover {
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    }
    
    html.dark .tool-name {
        color: var(--text-primary);
    }
    
    html.dark .tool-description {
        color: var(--text-secondary);
    }
    
    html.dark .tool-meta {
        border-top-color: var(--border-color);
        color: var(--text-muted);
    }
    
    html.dark .sort-dropdown,
    html.dark .filter-dropdown {
        background: var(--bg-secondary);
        border-color: var(--border-color);
        color: var(--text-primary);
    }
    
    html.dark .sort-option:hover {
        background: var(--bg-tertiary);
    }
    
    html.dark .results-info {
        color: var(--text-secondary);
    }
    
    html.dark .pagination-btn {
        background: var(--bg-secondary);
        border-color: var(--border-color);
        color: var(--text-secondary);
    }
    
    html.dark .pagination-btn:hover,
    html.dark .pagination-btn.active {
        background: var(--accent-primary);
        border-color: var(--accent-primary);
        color: #ffffff;
    }
    
    /* Filter Section & Chips - Complete Dark Mode */
    html.dark .filter-section {
        background: var(--bg-secondary) !important;
        border-color: var(--border-color) !important;
    }
    
    html.dark .filter-title,
    html.dark .filter-label,
    html.dark .filter-title-gradient {
        color: var(--text-primary) !important;
    }
    
    html.dark .filter-group {
        background: transparent;
    }
    
    html.dark .chips-container {
        background: transparent;
    }
    
    /* All filter chips in dark mode */
    html.dark .filter-chip,
    html.dark .chip-pricing,
    html.dark .chip-feature,
    html.dark .chip-platform {
        background: var(--bg-tertiary) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-secondary) !important;
    }
    
    html.dark .filter-chip:hover,
    html.dark .chip-pricing:hover,
    html.dark .chip-feature:hover,
    html.dark .chip-platform:hover {
        background: rgba(59, 130, 246, 0.2) !important;
        border-color: var(--accent-primary) !important;
        color: var(--text-primary) !important;
    }
    
    html.dark .filter-chip.active,
    html.dark .chip-pricing.active,
    html.dark .chip-feature.active,
    html.dark .chip-platform.active {
        background: var(--accent-primary) !important;
        border-color: var(--accent-primary) !important;
        color: #ffffff !important;
    }
    
    html.dark .feature-chip {
        background: var(--bg-tertiary);
        border-color: var(--border-color);
        color: var(--text-secondary);
    }
    
    html.dark .filter-chip:hover,
    html.dark .feature-chip:hover {
        background: var(--accent-primary);
        border-color: var(--accent-primary);
        color: #ffffff;
    }
    
    html.dark .filter-chip.active,
    html.dark .feature-chip.active {
        background: var(--accent-primary);
        border-color: var(--accent-primary);
        color: #ffffff;
    }
    
    /* Subcategory bars - stronger override */
    html.dark .subcategory-bar {
        background: var(--bg-tertiary) !important;
        color: var(--text-secondary);
    }
    
    html.dark .subcategory-bar:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-primary);
    }
    
    html.dark .sub-name {
        color: var(--text-secondary);
    }
    
    html.dark .sub-count {
        background: var(--bg-secondary);
        color: var(--text-muted);
    }
    
    /* Tool Cards - stronger override */
    html.dark .tool-card {
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
    }
    
    html.dark .tool-body {
        background: var(--bg-secondary);
    }
    
    html.dark .tool-category-tag {
        background: var(--bg-tertiary);
        color: var(--text-secondary);
        border-color: var(--border-color);
    }
    
    html.dark .tool-visit-btn {
        background: var(--bg-tertiary);
        color: var(--text-secondary);
        border-color: var(--border-color);
    }
    
    html.dark .tool-visit-btn:hover {
        background: var(--accent-primary);
        color: #ffffff;
        border-color: var(--accent-primary);
    }
    
    /* Tool Image Background - Dark Mode */
    html.dark .tool-image-wrapper {
        background: linear-gradient(135deg, #2d3a4d 0%, #1E293B 100%) !important;
    }
    
    html.dark .tool-image {
        filter: brightness(0.95);
    }
    
    html.dark .tool-image-placeholder i {
        color: rgba(207, 208, 216, 0.4);
    }
    
    /* NEW Badge - Dark Mode */
    html.dark .new-badge {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        color: #000000;
        box-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
    }
    
    /* Right Sidebar - Tool of Day & Trending */
    html.dark .sidebar-card,
    html.dark .tool-of-day,
    html.dark .trending-section {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }
    
    html.dark .tod-title,
    html.dark .trending-title {
        color: var(--text-primary);
    }
    
    html.dark .tod-name {
        color: var(--text-primary);
    }
    
    html.dark .tod-description {
        color: var(--text-secondary);
    }
    
    html.dark .trending-item {
        border-color: var(--border-color);
    }
    
    html.dark .trending-name {
        color: var(--text-primary);
    }
    
    html.dark .trending-views {
        color: var(--text-muted);
    }
    
    /* Buttons and Links */
    html.dark .view-all-btn {
        background: var(--bg-tertiary);
        color: var(--text-secondary);
        border-color: var(--border-color);
    }
    
    html.dark .view-all-btn:hover {
        background: var(--accent-primary);
        color: #ffffff;
    }
    
    /* Hero Section Chips - Dark Mode */
    html.dark .category-chips .chip {
        background: var(--bg-tertiary);
        border-color: var(--border-color);
        color: var(--text-secondary);
    }
    
    html.dark .category-chips .chip:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        color: var(--text-primary);
    }
    
    /* Collections / Curated Lists - Enhanced Dark Mode */
    html.dark .curated-section {
        background: linear-gradient(135deg, #1a2332 0%, #1E293B 100%);
        border-color: var(--border-color);
    }
    
    html.dark .collection-card,
    html.dark .curated-card {
        background: var(--bg-secondary) !important;
        border: 2px solid var(--border-color) !important;
    }
    
    html.dark .collection-card:hover {
        border-color: var(--accent-primary) !important;
        background: linear-gradient(135deg, #1E293B 0%, #2d3a4d 100%) !important;
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
    }
    
    html.dark .collection-title,
    html.dark .curated-title {
        color: #CFD0D8 !important;
    }
    
    html.dark .collection-info h4 {
        color: #CFD0D8 !important;
    }
    
    html.dark .collection-info span,
    html.dark .collection-count {
        color: #CFD0D8 !important;
        opacity: 0.8;
    }
    
    /* Trending Section - White text */
    html.dark .trending-section {
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
    }
    
    html.dark .trending-section .trending-title {
        color: var(--text-primary) !important;
    }
    
    html.dark .trending-item {
        background: transparent;
        border-bottom: 1px solid var(--border-color);
    }
    
    html.dark .trending-item .trending-name,
    html.dark .trending-name {
        color: var(--text-primary) !important;
    }
    
    html.dark .trending-item .trending-views,
    html.dark .trending-views {
        color: var(--accent-success) !important;
    }
    
    html.dark .trending-rank {
        background: var(--bg-tertiary);
        color: var(--text-secondary);
    }

    /* ------------------------------ */
    /*   DARK MODE: Buttons & Cards   */
    /* ------------------------------ */
    
    /* Tags in Dark Mode */
    html.dark .tag {
        background: rgba(30, 41, 59, 0.6);
        border-color: rgba(71, 85, 105, 0.5);
        color: #94a3b8;
    }
    html.dark .tag:hover {
        background: rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.3);
        color: #60a5fa;
    }
    
    /* Details Button in Dark Mode */
    html.dark .details-btn {
        background: transparent;
        border-color: #3b82f6;
        color: #60a5fa;
    }
    html.dark .details-btn:hover {
        background: rgba(59, 130, 246, 0.15);
        color: #ffffff;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    }
    
    /* Try Now Button in Dark Mode */
    html.dark .visit-btn-styled {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(71, 85, 105, 0.6);
        color: #e2e8f0;
    }
    html.dark .visit-btn-styled::before {
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    }
    html.dark .visit-btn-styled:hover {
        background: linear-gradient(135deg, #f5a623 0%, #f7b731 100%);
        color: #ffffff;
        border-color: #f5a623;
        box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
    }
    
    /* Widget & Cards in Dark Mode */
    html.dark .widget {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        box-shadow: none;
    }
    html.dark .widget-title {
        color: var(--text-primary);
        border-bottom-color: var(--border-color);
    }
    html.dark .trending-item {
        border-bottom-color: var(--border-color);
    }
    html.dark .trending-item:hover {
        background: var(--bg-tertiary);
    }
    html.dark .rank {
        background: var(--bg-tertiary);
        color: var(--text-secondary);
        border: 1px solid var(--border-color);
    }
    html.dark .trending-info h5 {
        color: var(--text-primary);
    }
    html.dark .trend-stat {
        color: var(--text-muted);
    }
    html.dark .trending-info a {
        text-decoration: none;
    }
    
    /* Results Info */
    html.dark .results-count,
    html.dark .tools-found {
        color: var(--text-secondary);
    }
    
    html.dark .results-count strong {
        color: var(--accent-primary);
    }
    
    /* Professional Results Counter - Dark Mode */
    html.dark .results-info-professional {
        background: linear-gradient(135deg, #1a2332 0%, #1E293B 100%);
        border-color: var(--border-color);
    }
    
    html.dark .results-count-number {
        color: #60a5fa;
        text-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
    }
    
    html.dark .results-count-text {
        color: #CFD0D8;
    }
    
    /* Mobile Responsive for Hero */
    @media (max-width: 768px) {
        .hero-section-new {
            padding: 2.5rem 1rem 2rem;
            min-height: auto;
        }
        .hero-title {
            font-size: 1.75rem;
        }
        .hero-subtitle {
            font-size: 0.9rem;
        }
        .hero-search {
            flex-direction: column;
            border-radius: 16px;
            padding: 1rem;
            gap: 0.75rem;
        }
        .hero-search input {
            width: 100%;
            text-align: center;
        }
        .search-shortcut {
            display: none;
        }
        .search-btn {
            width: 100%;
        }
        .category-chips .chip {
            font-size: 0.7rem;
            padding: 0.3rem 0.75rem;
        }
        .seen-on-logos {
            gap: 0.75rem;
        }
        .logo-item {
            font-size: 0.7rem;
        }
        .cta-featured {
            font-size: 0.8rem;
            padding: 0.6rem 1.25rem;
        }
    }
    
    /* ========== SIDEBAR WIDTH FIX ========== */
    .sidebar.sticky-sidebar {
        min-width: 280px;
        max-width: 300px;
    }
    .filter-section {
        width: 100%;
    }
    
    /* Mobile Filter Button */
    .mobile-filter-btn {
        display: none;
        width: 100%;
        padding: 1rem;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        color: #1f2937;
        font-weight: 600;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    .mobile-filter-btn i { color: #2563eb; }
    
    .sidebar-header-mobile {
        display: none;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }
    .close-filters-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #6b7280;
    }
    
    /* ========== DARK MODE FOR MOBILE FILTER BUTTON & SIDEBAR ========== */
    html.dark .mobile-filter-btn {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    html.dark .mobile-filter-btn i {
        color: #60a5fa;
    }
    
    html.dark .sidebar-header-mobile {
        border-bottom-color: #334155;
    }
    html.dark .sidebar-header-mobile h3 {
        color: #f1f5f9;
    }
    html.dark .close-filters-btn {
        color: #94a3b8;
    }
    html.dark .close-filters-btn:hover {
        color: #f1f5f9;
    }

    @media (max-width: 1024px) {
        .mobile-filter-btn {
            display: flex;
        }
        
        .sidebar.sticky-sidebar {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            bottom: 0 !important;
            height: 100vh !important;
            width: 300px !important;
            background: #ffffff !important;
            z-index: 9999 !important;
            padding: 1.5rem;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            box-shadow: 4px 0 15px rgba(0,0,0,0.1);
            overflow-y: auto;
            max-width: none !important;
            display: block !important;
        }
        
        .sidebar.sticky-sidebar.active {
            transform: translateX(0);
        }
        
        .sidebar-header-mobile {
            display: flex;
        }
        
        /* Overlay for mobile filters */
        .filter-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 999;
            backdrop-filter: blur(2px);
        }
        .filter-overlay.active {
            display: block;
        }
        
        /* Dark mode for mobile sidebar */
        html.dark .sidebar.sticky-sidebar {
            background: #0f172a !important;
            border-color: #334155;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
        }
    }
    
    /* ========== AJAX FILTER SYSTEM STYLES ========== */
    
    /* Loading Overlay for Sidebar */
    .filter-loading {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.9);
        z-index: 100;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    .filter-loading.active { display: flex; }
    .filter-loading .spinner {
        width: 24px;
        height: 24px;
        border: 3px solid #e5e7eb;
        border-top-color: #2563eb;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }
    
    /* Tools Loading Overlay */
    .tools-container { position: relative; min-height: 400px; }
    .tools-loading-overlay {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.95);
        z-index: 50;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }
    .tools-loading-overlay.active { display: flex; }

    .loading-spinner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        color: #6b7280;
    }
    .spinner-ring {
        width: 48px;
        height: 48px;
        border: 4px solid #e5e7eb;
        border-top-color: #2563eb;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }
    .loading-spinner span {
        color: #6b7280;
        font-size: 0.9rem;
    }
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    /* Results Header */
    .results-header {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 1.5rem;
    }
    
    /* Professional Results Counter - Centered & Balanced */
    .results-info-professional {
        display: inline-flex;
        align-items: baseline;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
        border-radius: 8px;
        border: 1px solid #d1d9f0;
    }
    
    .results-count-number {
        font-size: 1.25rem;
        font-weight: 700;
        color: #3b82f6;
        line-height: 1;
    }
    
    .results-count-text {
        font-size: 0.875rem;
        font-weight: 600;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    /* COMPACT SIDEBAR STYLES */
    .featured-tool-card {
        padding: 0.75rem !important;
    }
    .featured-image {
        height: 100px !important;
        margin-bottom: 0.5rem !important;
    }
    .featured-info h3 {
        font-size: 1rem !important;
        margin-bottom: 0.15rem !important;
    }
    .featured-info p {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
        -webkit-line-clamp: 2 !important;
    }
    .check-btn {
        padding: 0.4rem 1rem !important;
        font-size: 0.85rem !important;
        margin-top: 0.25rem !important;
    }
    .sidebar-card {
        padding: 1rem !important;
    }
    .trending-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    .trending-item {
        padding: 0.6rem 0 !important;
    }
    .trending-rank {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.75rem !important;
    }

    /* PROFESIONAL TRENDING WIDGET */
    .trending-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .trending-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem !important;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid #f1f5f9;
        transition: all 0.2s ease;
    }
    
    html.dark .trending-item {
        background: #1e293b;
        border-color: #334155;
    }

    .trending-item:hover {
        transform: translateX(4px);
        background: #f8fafc;
        border-color: #e2e8f0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    
    html.dark .trending-item:hover {
        background: #334155;
        border-color: #475569;
    }

    .trending-rank {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
        font-weight: 700;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        flex-shrink: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    /* Gold */
    .trending-item:nth-child(1) .trending-rank {
        background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
        box-shadow: 0 2px 8px rgba(253, 185, 49, 0.4);
    }
    
    /* Silver */
    .trending-item:nth-child(2) .trending-rank {
        background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%);
        box-shadow: 0 2px 8px rgba(189, 189, 189, 0.4);
        color: #424242;
    }
    
    /* Bronze */
    .trending-item:nth-child(3) .trending-rank {
        background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
        box-shadow: 0 2px 8px rgba(160, 82, 45, 0.4);
    }

    .trending-info h5 {
        font-size: 0.95rem;
        font-weight: 700;
        margin: 0 0 0.15rem 0;
        color: #1e293b;
        line-height: 1.3;
    }
    
    html.dark .trending-info h5 {
        color: #f1f5f9;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    
    .trending-info a {
        text-decoration: none;
    }

    .trend-stat {
        font-size: 0.75rem;
        color: #64748b;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        font-weight: 500;
    }
    
    html.dark .trend-stat {
        color: #94a3b8;
    }

    /* Rank 1 Highlight */
    .trending-item:nth-child(1) {
        border-color: #fcd34d;
        background: linear-gradient(to right, #fffbeb, #ffffff);
    }
    
    html.dark .trending-item:nth-child(1) {
        border-color: rgba(251, 191, 36, 0.3);
        background: linear-gradient(to right, rgba(251, 191, 36, 0.05), rgba(30, 41, 59, 0.5));
    }
    
    /* Widget header fix */
    .trending-widget .widget-title {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        border-bottom: 2px solid #f1f5f9;
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }
    
    html.dark .trending-widget .widget-title {
        border-color: #334155;
    }
    
    /* Old styles for backwards compatibility */
    .results-info {
        font-size: 0.9rem;
        color: #6b7280;
    }
    .results-count {
        font-weight: 700;
        color: #2563eb;
        font-size: 1.1rem;
    }
    
    /* ========== NEW GRADIENT FILTER DESIGN ========== */
    
    /* Filter Title - Gradient */
    .filter-title-gradient {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 1.2rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }
    
    /* ========== GLOBAL BUTTON STYLES ========== */
    button, .btn, input[type="submit"] {
        font-family: Arial, Helvetica, sans-serif;
    }
    
    /* Primary Button - Teal Gradient */
    .btn-gradient-primary {
        padding: 0.6rem 1.2rem;
        background: linear-gradient(135deg, #14B8A6, #0D9488);
        color: white;
        border: none;
        border-radius: 25px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 4px 15px rgba(13, 148, 136, 0.35);
        transition: all 0.25s ease;
    }
    .btn-gradient-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
    }
    
    /* Secondary Button - Purple Gradient */
    .btn-gradient-secondary {
        padding: 0.6rem 1.2rem;
        background: linear-gradient(135deg, #A855F7, #9333EA);
        color: white;
        border: none;
        border-radius: 25px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 4px 15px rgba(147, 51, 234, 0.35);
        transition: all 0.25s ease;
    }
    .btn-gradient-secondary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(147, 51, 234, 0.45);
    }
    
    /* Warning Button - Orange Gradient */
    .btn-gradient-warning {
        padding: 0.6rem 1.2rem;
        background: linear-gradient(135deg, #fb923c, #ea580c);
        color: white;
        border: none;
        border-radius: 25px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
        transition: all 0.25s ease;
    }
    .btn-gradient-warning:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
    }
    
    /* Outline Button */
    .btn-outline {
        padding: 0.6rem 1.2rem;
        background: white;
        color: #374151;
        border: 2px solid #e5e7eb;
        border-radius: 25px;
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.25s ease;
    }
    .btn-outline:hover {
        border-color: #d1d5db;
        background: #f9fafb;
        transform: translateY(-1px);
    }
    
    /* ========== SCROLL TO TOP BUTTON ========== */
    .scroll-top-btn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        color: white;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 990;
    }
    .scroll-top-btn.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .scroll-top-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    }
    
    /* ========== NO RESULTS CONTAINER ========== */
    .no-results-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 4rem 2rem;
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
        border-radius: 24px;
        border: 2px dashed #e5e7eb;
        margin: 2rem 0;
        min-height: 400px;
    }
    .no-results-illustration {
        margin-bottom: 1.5rem;
        animation: float 3s ease-in-out infinite;
    }
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }
    .no-results-title {
        font-size: 1.75rem;
        font-weight: 700;
        background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin: 0 0 0.5rem;
    }
    .no-results-subtitle {
        font-size: 1rem;
        color: #6b7280;
        margin: 0 0 1.5rem;
    }
    .no-results-suggestions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    .no-results-suggestions span {
        padding: 0.5rem 1rem;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 25px;
        font-size: 0.85rem;
        color: #4b5563;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.2s;
    }
    .no-results-suggestions span:hover {
        background: #f9fafb;
        border-color: #8b5cf6;
        color: #8b5cf6;
    }
    .no-results-suggestions span i {
        color: #8b5cf6;
    }
    
    .filter-title-gradient i {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    /* Filter Group Labels */
    .filter-group {
        margin-bottom: 1.5rem;
    }
    .filter-label {
        font-size: 0.75rem;
        font-weight: 700;
        color: #374151;
        letter-spacing: 0.5px;
        margin-bottom: 0.8rem;
        text-transform: uppercase;
    }
    
    /* ========== CATEGORY CARD DESIGN ========== */
    .category-card {
        margin-bottom: 1rem;
        border-radius: 50px;
        overflow: hidden;
        border: none;
        background: linear-gradient(135deg, #4ECCA3 0%, #45B7AA 50%, #38A89D 100%);
        box-shadow: 0 4px 15px rgba(78, 204, 163, 0.3);
        transition: all 0.3s ease;
    }
    .category-card:nth-child(2) {
        background: linear-gradient(135deg, #5DD5B8 0%, #4ECCA3 50%, #45B7AA 100%);
        box-shadow: 0 4px 15px rgba(93, 213, 184, 0.3);
    }
    .category-card:nth-child(3) {
        background: linear-gradient(135deg, #38A89D 0%, #4ECCA3 40%, #5DD5B8 100%);
        box-shadow: 0 4px 15px rgba(56, 168, 157, 0.3);
    }
    .category-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }
    
    /* Category Header */
    .category-header {
        width: 100%;
        display: flex;
        align-items: center;
        padding: 1rem 1.2rem;
        background: transparent;
        border: none;
        cursor: pointer;
        color: white;
        gap: 0.8rem;
        transition: all 0.3s ease;
    }
    .category-header:hover {
        background: rgba(255,255,255,0.1);
    }
    
    /* Category Icon Box - Square with rounded corners */
    .category-icon-box {
        width: 48px;
        height: 48px;
        min-width: 48px;
        background: rgba(255,255,255,0.3);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        backdrop-filter: blur(4px);
        transition: all 0.3s ease;
    }
    
    /* Highlight when active */
    .category-card.has-active .category-icon-box {
        background: rgba(255,255,255,0.5);
        box-shadow: 0 0 15px rgba(255,255,255,0.4);
    }
    
    /* Category Name */
    .category-name {
        flex: 1;
        font-size: 1rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-align: left;
    }
    
    .category-card .active-dot {
        width: 8px;
        height: 8px;
        background: white;
        border-radius: 50%;
        box-shadow: 0 0 8px rgba(255,255,255,0.8);
    }
    
    /* Category Arrow - Dropdown indicator - Green Gradient like Submit Tool */
    .category-arrow {
        position: relative;
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        color: #ffffff;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 10px rgba(17, 153, 142, 0.4);
        overflow: hidden;
    }
    .category-arrow::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.5s ease;
    }
    .category-header:hover .category-arrow {
        transform: scale(1.1);
        box-shadow: 0 6px 15px rgba(17, 153, 142, 0.5);
    }
    .category-header:hover .category-arrow::before {
        left: 100%;
    }
    .category-header[aria-expanded="true"] .category-arrow {
        transform: rotate(180deg);
    }
    .category-header[aria-expanded="true"]:hover .category-arrow {
        transform: rotate(180deg) scale(1.1);
    }
    
    /* Subcategory List Container */
    .subcategory-list {
        max-height: 0;
        overflow: hidden;
        background: transparent;
        padding: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease;
        opacity: 0;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }
    .subcategory-list.open {
        max-height: 400px;
        padding: 0.6rem 0.5rem;
        opacity: 1;
    }
    
    /* Subcategory Bar - Clean Design */
    .subcategory-bar {
        width: 100%;
        display: flex;
        align-items: center;
        padding: 0.65rem 0.9rem;
        background: rgba(255,255,255,0.95);
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        gap: 0.6rem;
        box-shadow: none;
    }
    .subcategory-bar:hover {
        background: white;
        transform: translateX(2px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .subcategory-bar.active {
        background: linear-gradient(135deg, #14B8A6, #0D9488);
        color: white;
        box-shadow: 0 3px 10px rgba(13, 148, 136, 0.35);
    }
    .category-card:nth-child(2) .subcategory-bar.active {
        background: linear-gradient(135deg, #22D3EE, #0891B2);
        box-shadow: 0 3px 10px rgba(8, 145, 178, 0.35);
    }
    .category-card:nth-child(3) .subcategory-bar.active {
        background: linear-gradient(135deg, #A855F7, #9333EA);
        box-shadow: 0 3px 10px rgba(147, 51, 234, 0.35);
    }
    
    /* Sub Icon */
    .sub-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6b7280;
        font-size: 0.85rem;
        border-radius: 8px;
        transition: all 0.25s ease;
    }
    .subcategory-bar:hover .sub-icon {
        color: #374151;
    }
    .subcategory-bar.active .sub-icon {
        color: white;
    }
    
    /* Sub Name - White when active */
    .subcategory-bar.active .sub-name {
        color: white;
    }
    
    /* Sub Name */
    .sub-name {
        flex: 1;
        font-size: 0.9rem;
        font-weight: 500;
        color: #374151;
        text-align: left;
    }
    
    /* Sub Count Badge */
    .sub-count {
        background: linear-gradient(135deg, #a78bfa, #8b5cf6);
        color: white;
        padding: 0.3rem 0.7rem;
        border-radius: 15px;
        font-size: 0.75rem;
        font-weight: 600;
        min-width: 28px;
        text-align: center;
    }
    .category-card:nth-child(1) .sub-count {
        background: linear-gradient(135deg, #14B8A6, #0D9488);
    }
    .category-card:nth-child(2) .sub-count {
        background: linear-gradient(135deg, #22D3EE, #0891B2);
    }
    .category-card:nth-child(3) .sub-count {
        background: linear-gradient(135deg, #A855F7, #9333EA);
    }
    
    /* ========== PRICING CHIPS - Orange Gradient ========== */
    .chips-container {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .chip-pricing {
        flex: 1 1 calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
        background: white;
        border: 2px solid #fed7aa;
        color: #ea580c;
        padding: 0.5rem 0.8rem;
        border-radius: 22px;
        font-size: 0.78rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.25s ease;
        min-height: 36px;
        text-align: center;
        justify-content: center;
    }
    .chip-pricing:hover {
        background: linear-gradient(135deg, #fb923c, #f97316);
        border-color: transparent;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
    }
    .chip-pricing.active {
        background: linear-gradient(135deg, #fb923c, #ea580c);
        border-color: transparent;
        color: white;
        box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    }
    
    /* ========== FEATURE CHIPS - Purple/Lavender ========== */
    .chip-feature {
        flex: 1 1 calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
        background: #f3e8ff;
        border: 2px solid #e9d5ff;
        color: #7c3aed;
        padding: 0.5rem 0.8rem;
        border-radius: 22px;
        font-size: 0.78rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.25s ease;
        min-height: 36px;
        text-align: center;
        justify-content: center;
    }
    .chip-feature:hover {
        background: #ede9fe;
        border-color: #c4b5fd;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
    }
    .chip-feature.active {
        background: linear-gradient(135deg, #a78bfa, #7c3aed);
        border-color: transparent;
        color: white;
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
    }
    
    /* ========== PLATFORM CHIPS - Gray/Dark ========== */
    .chip-platform {
        flex: 1 1 auto;
        background: #f3f4f6;
        border: 2px solid #e5e7eb;
        color: #4b5563;
        padding: 0.5rem 0.8rem;
        border-radius: 22px;
        font-size: 0.78rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.25s ease;
        min-height: 36px;
        text-align: center;
        justify-content: center;
    }
    .chip-platform:hover {
        background: #e5e7eb;
        border-color: #d1d5db;
        transform: translateY(-1px);
    }
    .chip-platform.active {
        background: linear-gradient(135deg, #6b7280, #374151);
        border-color: transparent;
        color: white;
        box-shadow: 0 4px 12px rgba(55, 65, 81, 0.35);
    }
    
    /* ========== RESET BUTTON - Orange Gradient ========== */
    .reset-filters-gradient {
        width: 100%;
        padding: 0.9rem 1.5rem;
        margin-top: 1.5rem;
        background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #dc2626 100%);
        color: white;
        border: none;
        border-radius: 25px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    }
    .reset-filters-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    }
    .reset-filters-gradient i {
        font-size: 0.85rem;
    }
    
    /* Active Filters Display */
    .active-filters {
        margin-top: 1rem;
        padding: 0.75rem;
        background: linear-gradient(135deg, #ecfdf5, #d1fae5);
        border-radius: 12px;
        border: 1px solid #a7f3d0;
    }
    .active-filters h4 {
        font-size: 0.75rem;
        color: #047857;
        margin-bottom: 0.5rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .active-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .active-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.3rem 0.7rem;
        background: white;
        color: #047857;
        border-radius: 15px;
        font-size: 0.75rem;
        font-weight: 500;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    .active-tag .remove-tag {
        cursor: pointer;
        margin-left: 0.2rem;
        opacity: 0.7;
        font-weight: bold;
    }
    .active-tag .remove-tag:hover {
        opacity: 1;
    }

    /* Hero Slider */
    .hero-slider {
        position: relative;
        height: 320px;
        background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
        margin-bottom: 0;
        overflow: hidden;
    }
    
    .hero-slide {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    
    .hero-slide.active { opacity: 1; }
    
    .hero-content { max-width: 700px; padding: 2rem; }
    
    .hero-badge {
        display: inline-block;
        background: #f97316;
        color: white;
        padding: 0.4rem 1rem;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
        font-weight: 800;
        color: #111827;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        color: #4b5563;
        margin-bottom: 1.5rem;
    }
    
    .cta-primary {
        display: inline-block;
        padding: 0.9rem 2rem;
        background: linear-gradient(135deg, #0d9488, #14b8a6);
        color: white;
        border-radius: 999px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
        transition: all 0.2s;
    }
    
    .cta-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4); }
    
    .slider-controls {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1.5rem;
        pointer-events: none;
    }
    
    .slider-btn {
        pointer-events: auto;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #d1d5db;
        background: white;
        color: #374151;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .slider-btn:hover { border-color: #0d9488; color: #0d9488; }
    
    .slider-dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 0.5rem;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #d1d5db;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .slider-dot.active { background: #0d9488; width: 24px; border-radius: 5px; }
    
    /* Main Container */
    .main-container {
        display: grid;
        grid-template-columns: 220px 1fr 260px;
        gap: 1.5rem;
        max-width: 1400px;
        margin: 0 auto;
        padding: 1.5rem 1rem;
    }
    
    /* Sidebar Filters */
    .sticky-sidebar { position: sticky; top: 80px; height: fit-content; }
    .filter-section { background: #fff; border-radius: 12px; padding: 1rem; border: 1px solid #e5e7eb; }
    .filter-title { font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; color: #1f2937; }
    .filter-group { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #f3f4f6; }
    .filter-group:last-of-type { border-bottom: none; }
    .filter-label { font-size: 0.65rem; font-weight: 700; color: #4b5563; letter-spacing: 0.5px; margin-bottom: 0.6rem; }
    
    .category-pills { display: flex; flex-direction: column; gap: 0.3rem; }
    .pill { display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.6rem; border-radius: 6px; font-size: 0.8rem; color: #4b5563; text-decoration: none; transition: all 0.2s; border: 1px solid transparent; }
    .pill:hover { background: #f3f4f6; }
    .pill.active { background: #eff6ff; color: #2563eb; font-weight: 500; border-color: #bfdbfe; }
    .pill i { font-size: 0.75rem; opacity: 0.7; }
    
    .checkbox-list { display: flex; flex-direction: column; gap: 0.25rem; }
    .filter-checkbox { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: #4b5563; cursor: pointer; padding: 0.2rem 0; }
    .filter-checkbox input { width: 14px; height: 14px; accent-color: #2563eb; }
    
    .reset-filters { display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.5rem; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 0.8rem; color: #4b5563; text-decoration: none; margin-top: 0.75rem; }
    .reset-filters:hover { background: #f9fafb; }
    
    /* Curated Collections - Enhanced Design */
    .curated-section { 
        margin-bottom: 2rem; 
        padding: 1.5rem;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        border-radius: 16px;
        border: 1px solid #e5e7eb;
    }
    
    .curated-title { 
        font-size: 1.35rem; 
        font-weight: 700; 
        color: #1f2937; 
        margin-bottom: 1.25rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .collections-grid { 
        display: grid; 
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
        gap: 1rem; 
    }
    
    .collection-card { 
        display: flex; 
        align-items: center; 
        gap: 0.85rem; 
        padding: 1rem 1.25rem; 
        background: #ffffff; 
        border: 2px solid #e5e7eb; 
        border-radius: 12px; 
        text-decoration: none; 
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    }
    
    .collection-card:hover { 
        border-color: #3b82f6; 
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
        background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    }
    
    .collection-icon { 
        font-size: 1.75rem; 
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .collection-icon-img {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        object-fit: contain;
    }
    
    .collection-info h4 { 
        font-size: 0.95rem; 
        font-weight: 600; 
        color: #1f2937; 
        margin: 0 0 0.25rem;
        line-height: 1.3;
    }
    
    .collection-info span { 
        font-size: 0.8rem; 
        color: #6b7280;
        font-weight: 500;
    }
    
    /* Tools Grid - 3 columns */

    
    /* ========== NEW HORIZONTAL TOOL CARDS ========== */
    .tool-card-new {
        background: #fff;
        border-radius: 16px;
        padding: 1.25rem;
        border: 1px solid #e5e7eb;
        display: flex;
        gap: 1rem;
        transition: all 0.25s ease;
        position: relative;
    }
    .tool-card-new:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(0,0,0,0.1);
        border-color: #cbd5e1;
    }
    
    .tool-card-left {
        flex-shrink: 0;
    }
    
    .tool-logo {
        width: 60px;
        height: 60px;
        border-radius: 14px;
        overflow: hidden;
        background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .tool-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .logo-placeholder-new {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6366f1;
        font-size: 1.5rem;
    }
    
    .tool-card-center {
        flex: 1;
        min-width: 0;
    }
    
    .tool-name-row {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        margin-bottom: 0.35rem;
    }
    .tool-name-new {
        font-size: 1rem;
        font-weight: 700;
        color: #1f2937;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .verified-badge-new {
        color: #FD9236;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    .tool-rating-row {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        margin-bottom: 0.4rem;
    }
    .stars-new {
        display: flex;
        gap: 0.1rem;
        color: #fbbf24;
        font-size: 0.75rem;
    }
    .stars-new .far { color: #d1d5db; }
    .reviews-count {
        color: #6b7280;
        font-size: 0.8rem;
    }
    .reviews-count a {
        color: #3b82f6;
        text-decoration: underline;
    }
    
    .pricing-bookmark-row {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 0.6rem;
    }
    .pricing-label {
        font-size: 0.8rem;
        font-weight: 600;
        color: #374151;
    }
    .pricing-label.free { color: #059669; }
    .pricing-label.freemium { color: #7c3aed; }
    
    .bookmark-count {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        color: #6b7280;
        font-size: 0.8rem;
    }
    .bookmark-count i { font-size: 0.75rem; }
    
    .tool-desc-new {
        font-size: 0.85rem;
        color: #4b5563;
        line-height: 1.5;
        margin: 0 0 0.6rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .tool-hashtags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .hashtag {
        color: #3b82f6;
        font-size: 0.78rem;
        font-weight: 500;
    }
    
    .tool-card-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: space-between;
        flex-shrink: 0;
        min-width: 90px;
    }
    
    .editors-pick {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        color: #6b7280;
        font-size: 0.78rem;
        font-weight: 500;
        padding: 0.3rem 0;
    }
    .editors-pick i { font-size: 0.7rem; }
    
    .visit-btn-new {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.55rem 1.1rem;
        background: #fff;
        color: #3b82f6;
        border: 2px solid #3b82f6;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s;
    }
    .visit-btn-new:hover {
        background: #3b82f6;
        color: #fff;
    }
    .visit-btn-new i { font-size: 0.7rem; }
    
    /* ========== SUBMIT TOOL CTA SECTION ========== */
    .submit-tool-cta {
        margin: 3rem auto;
        max-width: 1400px;
        padding: 0 1.5rem;
    }
    
    .submit-tool-cta .cta-content {
        display: flex;
        align-items: center;
        gap: 2rem;
        padding: 2.5rem 3rem;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
    }
    
    .submit-tool-cta .cta-icon {
        width: 70px;
        height: 70px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .submit-tool-cta .cta-icon i {
        font-size: 2rem;
        color: white;
    }
    
    .submit-tool-cta .cta-text {
        flex: 1;
    }
    
    .submit-tool-cta .cta-text h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: white;
        margin: 0 0 0.5rem;
    }
    
    .submit-tool-cta .cta-text p {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.85);
        margin: 0;
        line-height: 1.5;
    }
    
    .submit-tool-cta .cta-button {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem 2rem;
        background: white;
        color: #6366f1;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.3s ease;
        white-space: nowrap;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .submit-tool-cta .cta-button:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    @media (max-width: 768px) {
        .submit-tool-cta .cta-content {
            flex-direction: column;
            text-align: center;
            padding: 2rem 1.5rem;
            gap: 1.5rem;
        }
        
        .submit-tool-cta .cta-icon {
            width: 60px;
            height: 60px;
        }
        
        .submit-tool-cta .cta-icon i {
            font-size: 1.5rem;
        }
        
        .submit-tool-cta .cta-text h2 {
            font-size: 1.25rem;
        }
        
        .submit-tool-cta .cta-text p {
            font-size: 0.9rem;
        }
        
        .submit-tool-cta .cta-button {
            width: 100%;
            justify-content: center;
            padding: 0.875rem 1.5rem;
        }
    }
    
    /* Responsive adjustments for new cards */
    @media (max-width: 500px) {
        .tool-card-new {
            flex-direction: column;
            padding: 1rem;
        }
        .tool-card-left {
            display: flex;
            gap: 0.75rem;
        }
        .tool-card-right {
            flex-direction: row;
            justify-content: space-between;
            width: 100%;
            margin-top: 0.75rem;
            padding-top: 0.75rem;
            border-top: 1px solid #f3f4f6;
        }
    }
    
    /* ========== VIEW ALL BUTTON STYLES ========== */
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .section-header-left {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .view-all-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: var(--bg-tertiary, #f3f4f6);
        border: 1px solid var(--border-color, #e5e7eb);
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--color-primary, #6366f1);
        text-decoration: none;
        transition: all 0.2s ease;
        white-space: nowrap;
    }
    
    .view-all-btn:hover {
        background: var(--color-primary, #6366f1);
        border-color: var(--color-primary, #6366f1);
        color: white;
        transform: translateX(4px);
    }
    
    .view-all-btn i {
        font-size: 0.7rem;
        transition: transform 0.2s ease;
    }
    
    .view-all-btn:hover i {
        transform: translateX(3px);
    }
    
    html.dark .view-all-btn {
        background: var(--bg-secondary, #1f2937);
        border-color: var(--border-color, #374151);
    }
    
    html.dark .view-all-btn:hover {
        background: var(--color-primary, #6366f1);
        border-color: var(--color-primary, #6366f1);
        color: white;
    }
    
    @media (max-width: 576px) {
        .section-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.75rem;
        }
        
        .view-all-btn {
            width: 100%;
            justify-content: center;
            padding: 0.75rem 1rem;
        }
    }
    
    /* ========== OLD TOOL CARDS (keeping for compatibility) ========== */
    .tool-card { 
        background: #fff; 
        border-radius: 16px; 
        overflow: hidden; 
        border: 2px solid transparent; 
        outline: none !important;
        transition: all 0.3s ease; 
        position: relative;
        /* Fixed dimensions for consistent card sizes */
        display: flex;
        flex-direction: column;
        min-height: 380px;
        height: 380px;
    }
    .tool-card *,
    .tool-card:focus,
    .tool-card:focus-visible,
    .tool-card:focus-within {
        outline: none !important;
    }
    .tool-card:hover { 
        transform: translateY(-4px); 
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }
    
    .tool-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 5px; z-index: 2; }
    .badge { padding: 4px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; }
    .badge.verified { 
        background: linear-gradient(135deg, #059669, #10b981); 
        color: white; 
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .badge.verified i {
        font-size: 0.65rem;
        background: white;
        color: #10b981;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .badge.featured { background: rgba(251,146,60,0.95); color: white; }
    
    .bookmark-btn { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; background: rgba(255,255,255,0.95); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #4b5563; text-decoration: none; z-index: 25; font-size: 0.9rem; box-shadow: 0 2px 6px rgba(0,0,0,0.1); border: none; cursor: pointer; transition: all 0.2s ease; }
    .bookmark-btn * { pointer-events: none; }
    .bookmark-btn:hover { background: #fff; color: #ef4444; transform: scale(1.1); }
    .bookmark-btn.active { color: #ef4444; background: #fff; }
    .bookmark-btn.animating { animation: heartPop 0.6s ease; }
    @keyframes heartPop { 0% { transform: scale(1); } 25% { transform: scale(1.3); } 50% { transform: scale(0.9); } 100% { transform: scale(1); } }
    
    /* Tool Image Wrapper - FIXED HEIGHT for consistent cards */
    .tool-image-wrapper { 
        height: 180px;
        min-height: 180px;
        max-height: 180px;
        background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%); 
        overflow: hidden;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    /* Tool Image - fills container with cover */
    .tool-image { 
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
        transition: transform 0.3s;
    }
    .tool-card:hover .tool-image { transform: scale(1.05); }
    .tool-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

    .tool-image-placeholder i { font-size: 2.5rem; color: rgba(255,255,255,0.6); }
    
    /* Hover Overlay */
    .tool-hover-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s;
    }
    .tool-card:hover .tool-hover-overlay { opacity: 1; }
    
    .quick-view-btn {
        padding: 0.6rem 1.2rem;
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        color: white;
        border: none;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        box-shadow: 0 4px 15px rgba(37,99,235,0.4);
        transition: all 0.2s;
    }
    .quick-view-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(37,99,235,0.5); }
    
    .badge.free { background: rgba(34,197,94,0.9); color: white; }
    
    .tool-content { 
        padding: 1rem; 
        flex: 1; 
        display: flex; 
        flex-direction: column;
    }
    .tool-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
    .tool-name { font-size: 1rem; font-weight: 700; color: #1f2937; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
    .tool-rating { display: flex; align-items: center; gap: 0.25rem; font-size: 0.85rem; color: #f59e0b; font-weight: 500; flex-shrink: 0; }
    .tool-rating i { font-size: 0.8rem; }
    
    .tool-description { 
        font-size: 0.85rem; 
        color: #4b5563; 
        line-height: 1.5; 
        margin: 0 0 0.75rem; 
        min-height: 2.5em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .tool-footer { display: flex; flex-direction: column; gap: 0.8rem; margin-top: auto; }
    .tool-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
    .tag { padding: 3px 8px; background: #f3f4f6; border-radius: 6px; font-size: 0.7rem; color: #4b5563; border: 1px solid #e5e7eb; }
    
    /* ========== NEW STYLED ELEMENTS ========== */
    /* Fire Badge - Top Right Corner */
    .fire-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        font-size: 1.3rem;
        z-index: 3;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
        animation: fireGlow 1.5s ease-in-out infinite alternate;
    }
    @keyframes fireGlow {
        from { transform: scale(1); }
        to { transform: scale(1.1); }
    }
    
    /* Golden Verified Check - Next to Name */
    .verified-check {
        display: inline-flex;
        align-items: center;
        margin-left: 6px;
        vertical-align: middle;
    }
    .verified-check svg {
        filter: drop-shadow(0 1px 3px rgba(253, 147, 84, 0.5));
    }
    .verified-check svg path:first-child {
        fill: #FD9236 !important;
    }
    
    /* Featured Crown Badge - Top Right Corner */
    .featured-crown-badge {
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 3;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
        animation: crownGlow 1.5s ease-in-out infinite alternate;
    }
    .featured-crown-badge img {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }
    @keyframes crownGlow {
        from { transform: scale(1); }
        to { transform: scale(1.1); }
    }
    
    /* NEW Badge - Top Left Corner */
    .new-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 3;
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        color: #000000;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 0.35rem 0.65rem;
        border-radius: 6px;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
        animation: newBadgePulse 2s ease-in-out infinite;
    }
    
    @keyframes newBadgePulse {
        0%, 100% { 
            transform: scale(1);
            box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
        }
        50% { 
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(251, 191, 36, 0.6);
        }
    }
    
    /* New Visit Button Styled - Try Now Style */
    .tool-actions {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .details-btn {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.4rem 0.9rem;
        background: #ffffff;
        color: #3b82f6;
        border: 1px solid #3b82f6;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
        transition: all 0.3s ease;
        flex: 1;
    }
    
    .details-btn:hover {
        background: #3b82f6;
        color: #ffffff;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        transform: translateY(-1px);
    }
    
    .details-btn i {
        font-size: 0.75rem;
    }
    
    .visit-btn-styled {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.4rem 1rem;
        background: #f5f5f5;
        color: #616161;
        border: 1px solid #e0e0e0;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
        overflow: hidden;
        transition: all 0.3s ease;
        flex: 1;
    }
    .visit-btn-styled::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
        transition: left 0.5s ease;
    }
    .visit-btn-styled:hover {
        background: linear-gradient(135deg, #f5a623 0%, #f7b731 100%);
        color: #ffffff;
        border-color: #f5a623;
        box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
        transform: translateY(-1px);
    }
    .visit-btn-styled:hover::before {
        left: 100%;
    }
    .visit-btn-styled i {
        font-size: 0.7rem;
        transition: transform 0.2s ease;
    }
    .visit-btn-styled:hover i {
        transform: translateX(2px);
    }
    
    /* Old visit-btn kept for compatibility */
    .visit-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.4rem 0.75rem;
        background: linear-gradient(135deg, #2563eb, #3b82f6);
        color: white;
        border-radius: 6px;
        font-size: 0.8rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s;
    }
    .visit-btn:hover { transform: translateX(3px); }
    .visit-btn i { font-size: 0.7rem; transition: transform 0.2s; }
    .visit-btn:hover i { transform: translateX(3px); }
    
    /* Gradient Top Bar */
    .modal-gradient-bar {
        height: 6px;
        background: linear-gradient(90deg, #7c3aed 0%, #ec4899 50%, #f97316 100%);
        border-radius: 20px 20px 0 0;
    }
    
    /* Close X Button */
    .modal-close-x {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 32px;
        height: 32px;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        font-size: 1.3rem;
        color: #6b7280;
        cursor: pointer;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }
    .modal-close-x:hover { 
        background: #e5e7eb; 
        color: #1f2937; 
    }
    
    /* Action Buttons (Heart & Share) */
    .modal-actions {
        position: absolute;
        top: 20px;
        right: 60px;
        display: flex;
        gap: 0.5rem;
    }
    .action-btn {
        width: 36px;
        height: 36px;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        color: #6b7280;
        font-size: 0.9rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }
    .action-btn:hover {
        background: #f3f4f6;
        color: #1f2937;
        border-color: #d1d5db;
    }
    
    /* Tool Header */
    .tool-detail-header {
        display: flex;
        gap: 1rem;
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .tool-detail-logo {
        width: 70px;
        height: 70px;
        min-width: 70px;
        border-radius: 14px;
        overflow: hidden;
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
    }
    .tool-detail-logo img { 
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
    }
    .logo-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.8rem;
    }
    
    .tool-detail-title h2 { 
        font-size: 1.4rem; 
        font-weight: 700; 
        color: #1f2937; 
        margin: 0 0 0.5rem; 
    }
    
    /* Badges */
    .tool-detail-badges {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .detail-badge {
        padding: 0.3rem 0.7rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }
    .detail-badge.pricing {
        background: #dcfce7;
        color: #16a34a;
    }
    .detail-badge.verified {
        background: #dbeafe;
        color: #2563eb;
    }
    
    /* Rating */
    .tool-detail-rating {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .rating-stars {
        display: flex;
        gap: 0.15rem;
        color: #fbbf24;
        font-size: 0.9rem;
    }
    .rating-stars .far { color: #d1d5db; }
    .rating-number {
        font-size: 0.95rem;
        font-weight: 700;
        color: #1f2937;
    }
    .rating-reviews {
        font-size: 0.85rem;
        color: #9ca3af;
    }
    
    /* About Section */
    .tool-detail-about {
        padding: 0 1.5rem 1rem;
        border-bottom: 1px solid #f3f4f6;
    }
    .tool-detail-about h4 {
        font-size: 0.75rem;
        font-weight: 600;
        color: #6366f1;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0 0 0.75rem;
    }
    .tool-detail-about p {
        font-size: 0.9rem;
        color: #4b5563;
        line-height: 1.7;
        margin: 0;
    }
    
    /* Tags */
    .tool-detail-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem 1.5rem;
    }
    .detail-tag {
        padding: 0.45rem 0.9rem;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
        color: #374151;
        transition: all 0.2s;
    }
    .detail-tag:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }
    
    /* Footer */
    .tool-detail-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem 1.25rem;
        border-top: 1px solid #f3f4f6;
    }
    .views-count {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        color: #9ca3af;
        font-size: 0.85rem;
    }
    .views-count i { font-size: 0.9rem; }
    
    .visit-website-btn {
        padding: 0.75rem 1.5rem;
        background: #1f2937;
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.2s;
    }
    .visit-website-btn:hover { 
        background: #111827;
        transform: translateY(-2px); 
        box-shadow: 0 6px 20px rgba(0,0,0,0.2); 
    }
    .visit-website-btn i { font-size: 0.75rem; }
    
    /* Right Sidebar */
    .widget { background: #fff; border-radius: 10px; padding: 1rem; border: 1px solid #e5e7eb; margin-bottom: 0.75rem; }
    .widget-title { font-size: 0.9rem; font-weight: 600; color: #1f2937; margin-bottom: 0.75rem; }
    
    .featured-tool-card { text-align: center; }
    .featured-image { width: 100%; height: 90px; border-radius: 8px; overflow: hidden; margin-bottom: 0.6rem; }
    .featured-image img { width: 100%; height: 100%; object-fit: cover; }
    .featured-tool-card h4 { font-size: 0.9rem; font-weight: 600; color: #1f2937; margin: 0 0 0.2rem; }
    .featured-tool-card p { font-size: 0.75rem; color: #4b5563; margin: 0 0 0.6rem; }
    .check-btn { display: inline-block; padding: 0.4rem 0.8rem; background: #22c55e; color: white; border-radius: 6px; font-size: 0.8rem; font-weight: 500; text-decoration: none; }
    
    .trending-list { display: flex; flex-direction: column; gap: 0.5rem; }
    .trending-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem; border-radius: 6px; text-decoration: none; transition: background 0.2s; }
    .trending-item:hover { background: #f9fafb; }
    .rank { width: 20px; height: 20px; background: #f3f4f6; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #4b5563; }
    .trending-info h5 { font-size: 0.85rem; font-weight: 600; color: #1f2937; margin: 0; }
    .trend-stat { font-size: 0.7rem; color: #22c55e; font-weight: 500; }
    
    .empty-state { grid-column: 1 / -1; text-align: center; padding: 2rem; background: #f9fafb; border-radius: 12px; }
    .empty-state i { font-size: 2rem; color: #d1d5db; margin-bottom: 0.75rem; }
    .btn-reset { display: inline-block; padding: 0.5rem 1rem; background: #2563eb; color: white; border-radius: 6px; text-decoration: none; font-size: 0.85rem; }
    
    .pagination-wrapper { margin-top: 1.5rem; }
    
    @media (max-width: 1200px) {
        .main-container { grid-template-columns: 200px 1fr; }
        .right-sidebar { display: none; }
        .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
        .collections-grid { grid-template-columns: repeat(2, 1fr); }
    }
    
    @media (max-width: 992px) {
        .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    }
    
    @media (max-width: 768px) {
        .main-container { 
            grid-template-columns: 1fr; 
            padding: 1rem;
        }
        .sidebar { display: none; }
        .collections-grid { grid-template-columns: 1fr; gap: 1rem; }
        .tools-grid { 
            grid-template-columns: 1fr !important; 
            gap: 1.25rem !important;
            padding: 0 0.5rem;
        }
        .hero-content h1 { font-size: 1.75rem; }
        
        /* Mobile tool cards - use auto height */
        .tool-card-v2 {
            height: auto !important;
            min-height: auto !important;
            max-height: none !important;
            border-radius: 12px;
        }
        
        .tool-card-v2 .card-image {
            height: 160px;
        }
        
        .tool-card-v2 .card-content {
            padding: 12px;
        }
        
        .tool-card-v2 .card-title {
            font-size: 0.95rem;
        }
        
        .tool-card-v2 .card-description {
            font-size: 0.8rem;
            -webkit-line-clamp: 2;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .tool-card-v2 .card-footer {
            padding: 10px 12px;
        }
        
        .tool-card-v2 .btn-details,
        .tool-card-v2 .btn-try {
            padding: 6px 10px;
            font-size: 0.7rem;
        }
    }
    
    @media (max-width: 500px) {
        .main-container {
            padding: 0.75rem;
        }
        .tools-grid { 
            grid-template-columns: 1fr !important; 
            gap: 1rem !important;
            padding: 0 0.25rem;
        }
        .collections-grid { grid-template-columns: 1fr; }
        
        /* Smaller devices - compact cards */
        .tool-card-v2 {
            height: auto !important;
            min-height: auto !important;
        }
        
        .tool-card-v2 .card-image {
            height: 150px;
        }
        
        .tool-card-v2 .card-content {
            padding: 10px;
        }
        
        .tool-card-v2 .card-title {
            font-size: 0.9rem;
        }
        
        .tool-card-v2 .card-description {
            font-size: 0.75rem;
        }
        
        .tool-card-v2 .btn-details,
        .tool-card-v2 .btn-try {
            padding: 5px 8px;
            font-size: 0.65rem;
        }
    }
    
    /* ============== TOOLS LOADING OVERLAY ============== */
    .tools-container {
        position: relative;
    }
    .tools-loading-overlay {
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.9);
        z-index: 100;
        display: none;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }
    .tools-loading-overlay.active {
        display: flex;
    }
    html.dark .tools-loading-overlay {
        background: rgba(15, 23, 42, 0.9);
    }
    .loading-spinner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .spinner-ring {
        width: 40px;
        height: 40px;
        border: 3px solid rgba(99, 102, 241, 0.2);
        border-top-color: #6366f1;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    .loading-spinner span {
        color: #6b7280;
        font-size: 0.9rem;
        font-weight: 500;
    }
    html.dark .loading-spinner span {
        color: #94a3b8;
    }
    

/* ============== CUSTOM SCROLLBAR FOR FILTERS ============== */
.filter-section {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
}

/* Webkit Browsers (Chrome, Safari, Edge) */
.filter-section::-webkit-scrollbar {
    width: 6px;
}

.filter-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.filter-section::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6, #6366f1);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.filter-section::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c3aed, #4f46e5);
}

/* Dark Mode Scrollbar */
html.dark .filter-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

html.dark .filter-section::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a78bfa, #818cf8);
}

html.dark .filter-section::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b5cf6, #6366f1);
}

/* ============== ACCORDION STYLES ============== */
.accordion-content,
.subcategory-list {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 !important;
    display: block !important;
}

.accordion-content.open,
.subcategory-list.open {
    max-height: 500px !important;
    padding: 0.75rem 0 !important;
}

/* Arrow rotation on open */
.accordion-header[aria-expanded="true"] .category-arrow i,
.category-header[aria-expanded="true"] .category-arrow i {
    transform: rotate(180deg);
}

.category-arrow i {
    transition: transform 0.3s ease;
}

/* ============== FILTER CHIP ACTIVE STATES (LIGHT MODE) ============== */
.filter-chip.active,
.chip-pricing.active,
.chip-feature.active,
.chip-platform.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.subcategory-bar.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #ffffff !important;
}

.subcategory-bar.active .sub-name,
.subcategory-bar.active .sub-count {
    color: #ffffff !important;
}

/* ============== SECTION BLOCKS ============== */
.section-block {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--card-bg, #ffffff);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

html.dark .section-block {
    background: #1e293b;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

html.dark .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.section-header .section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

html.dark .section-header .section-title {
    color: #f1f5f9;
}

.section-header .section-title i {
    color: #3b82f6;
}

.featured-section .section-title i { color: #f59e0b; }
.new-section .section-title i { color: #10b981; }
.trending-section .section-title i { color: #ef4444; }
.toprated-section .section-title i { color: #8b5cf6; }

.section-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-badge-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.trending-badge-tag {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Section Tools Grid */
.section-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .section-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .section-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .section-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* ============== MINI TOOL CARD ============== */
.tool-card-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

html.dark .tool-card-mini {
    background: #0f172a;
}

.tool-card-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.tool-card-mini-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tool-card-mini-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.tool-card-mini-logo .logo-placeholder {
    font-size: 1.2rem;
    color: #94a3b8;
}

.tool-card-mini-info {
    flex: 1;
    min-width: 0;
}

.tool-card-mini-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.dark .tool-card-mini-title {
    color: #f1f5f9;
}

.tool-card-mini-tagline {
    font-size: 0.8rem;
    color: var(--text-secondary, #64748b);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card-mini-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-card-mini-meta .pricing-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

.tool-card-mini-meta .pricing-badge.free {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.tool-card-mini-meta .pricing-badge.freemium {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.tool-card-mini-meta .pricing-badge.paid {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.tool-card-mini-meta .rating {
    font-size: 0.75rem;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ============== SUB-CATEGORY BARS IMPROVED ============== */
.accordion-content button,
.subcategory-list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
}

.accordion-content button:hover,
.subcategory-list button:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #93c5fd;
    transform: translateX(4px);
}

html.dark .accordion-content button,
html.dark .subcategory-list button {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: #475569;
}

html.dark .accordion-content button:hover,
html.dark .subcategory-list button:hover {
    background: linear-gradient(135deg, #334155, #475569);
    border-color: #64748b;
}

/* ============== HERO DARK MODE STYLING ============== */
html.dark .hero-section-new {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
}

html.dark .hero-title {
    color: #cbd5e1 !important;
}

html.dark .hero-title .highlight {
    color: #f59e0b !important;
}

html.dark .hero-subtitle {
    color: #94a3b8 !important;
}

/* ============== SEARCH BAR IMPROVED ============== */
.hero-search {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-search:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.3);
}

.hero-search input {
    color: #1e293b !important;
}

.hero-search input::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

html.dark .hero-search {
    background: rgba(30, 41, 59, 0.95) !important;
    border: 2px solid rgba(139, 92, 246, 0.5) !important;
}

html.dark .hero-search:focus-within {
    border-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2) !important;
    outline: none !important;
}

html.dark .hero-search input {
    color: #f1f5f9 !important;
}

html.dark .hero-search input::placeholder {
    color: #94a3b8 !important;
}

/* ============== SEARCH DROPDOWN RESULTS ============== */
.hero-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(100% - 100px); /* Match search input width, excluding button */
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #7c3aed;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 0.5rem;
}

.hero-search-results.active {
    display: block;
}

html.dark .hero-search-results {
    background: #1e293b;
    border-color: #334155;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: #1e293b;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8fafc;
}

html.dark .search-result-item {
    color: #f1f5f9;
    border-bottom-color: #334155;
}

html.dark .search-result-item:hover {
    background: #334155;
}

.search-result-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.125rem;
}

.search-result-name .highlight {
    color: #6366f1;
    font-weight: 700;
}

.search-result-category {
    font-size: 0.8rem;
    color: #64748b;
}

html.dark .search-result-category {
    color: #94a3b8;
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

html.dark .search-no-results {
    color: #94a3b8;
}

.hero-search-wrapper {
    position: relative;
}

/* ============== CATEGORY CHIPS - SINGLE ROW LAYOUT ============== */
.category-chips {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.category-chips::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.category-chips .chip {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ============== FULL RESPONSIVE STYLES ============== */
@media (max-width: 1200px) {
    .hero-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero-search-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .hero-section-new {
        padding: 3rem 1rem 2rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-search-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-search {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .hero-search-results {
        width: 100% !important;
        left: 0;
        right: 0;
    }
    
    .seen-on-logos {
        gap: 1rem;
    }
    
    .logo-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section-new {
        padding: 2.5rem 1rem 2rem;
        border-radius: 0 0 16px 16px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-spotlight {
        font-size: 0.85rem;
    }
    
    .category-chips {
        justify-content: flex-start;
        padding: 0.5rem 1rem;
        margin: 0 -1rem 1.5rem;
        width: calc(100% + 2rem);
    }
    
    .category-chips .chip {
        padding: 0.45rem 0.9rem;
        font-size: 0.75rem;
    }
    
    .seen-on-section {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .seen-on-logos {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .logo-item {
        font-size: 0.8rem;
    }
    
    .logo-item i {
        font-size: 1.1rem;
    }
    
    .cta-featured {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .hero-search {
        padding: 0.75rem 1rem;
    }
    
    .hero-search input {
        font-size: 0.9rem;
    }
    
    .search-shortcut {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section-new {
        padding: 2rem 0.75rem 1.5rem;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .category-chips {
        gap: 0.4rem;
    }
    
    .category-chips .chip {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .logo-item {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .cta-featured {
        width: 100%;
        justify-content: center;
    }
}

/* Force Verified Icon Size on Mobile */
@media (max-width: 768px) {
    .verified-check svg {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px;
        min-height: 20px;
    }
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75) !important; /* Richer dark */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quick-view-modal.active .modal-backdrop {
    opacity: 1;
}

.modal-content.tool-detail-card {
    position: relative;
    width: 100%;
    max-width: 700px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    /* Smooth Spring Pop Animation */
    transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.4s ease;
    overflow: hidden;
    z-index: 10;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

html.dark .modal-content.tool-detail-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

.quick-view-modal.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Modal Gradient Bar */
.modal-gradient-bar {
    height: 6px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    width: 100%;
}

/* Close Button */
.modal-close-x {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 20;
}

.modal-close-x:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

html.dark .modal-close-x {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

html.dark .modal-close-x:hover {
    background: #ef4444;
    color: white;
}

/* Modal Content Layout */
.tool-detail-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.tool-detail-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

html.dark .tool-detail-logo {
    background: #0f172a;
    border-color: #334155;
}

.tool-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-detail-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
}

html.dark .tool-detail-title h2 {
    color: #f1f5f9;
}

.tool-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.detail-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.detail-badge.pricing {
    background: #eff6ff;
    color: #3b82f6;
}

.detail-badge.verified {
    background: #ecfdf5;
    color: #10b981;
}

html.dark .detail-badge.pricing { background: rgba(59, 130, 246, 0.15); }
html.dark .detail-badge.verified { background: rgba(16, 185, 129, 0.15); }

.tool-detail-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f59e0b;
    font-size: 0.9rem;
}

.rating-stars { display: flex; gap: 0.1rem; }
.rating-number { font-weight: 700; color: #1e293b; }
.rating-reviews { color: #64748b; font-size: 0.8rem; }
html.dark .rating-number { color: #f1f5f9; }
html.dark .rating-reviews { color: #94a3b8; }

.tool-detail-about {
    padding: 0 2rem;
    margin-bottom: 1.5rem;
}

.tool-detail-about h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.tool-detail-about p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
}

html.dark .tool-detail-about h4 { color: #94a3b8; }
html.dark .tool-detail-about p { color: #cbd5e1; }

.tool-detail-tags {
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.detail-tag {
    font-size: 0.8rem;
    color: #3b82f6;
    background: #f0f9ff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

html.dark .detail-tag {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.tool-detail-footer {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

html.dark .tool-detail-footer {
    background: #0f172a;
    border-color: #334155;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.visit-website-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.visit-website-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* Modal Actions (Top Right) */
.modal-actions {
    position: absolute;
    top: 60px;
    right: 20px;
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #e2e8f0;
    color: #ef4444;
}

html.dark .action-btn {
    background: #334155;
    color: #94a3b8;
}

html.dark .action-btn:hover {
    background: #475569;
    color: #ef4444;
}

@media (max-width: 600px) {
    .tool-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .tool-detail-footer {
        flex-direction: column;
        gap: 1rem;
    }
    .modal-actions {
        top: 20px;
        right: 60px;
    }
}

