/* Category Tabs */
    .tools-tabs-wrapper {
        margin-bottom: 32px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tools-tabs-wrapper::-webkit-scrollbar { display: none; }
    .tools-tabs {
        display: flex;
        gap: 4px;
        border-bottom: 2px solid var(--border-light);
        padding-bottom: 0;
        min-width: max-content;
    }
    .tools-tab {
        padding: 10px 20px;
        border: none;
        background: none;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-light);
        cursor: pointer;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        transition: all 0.2s ease;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .tools-tab:hover {
        color: var(--text-dark);
    }
    .tools-tab.active {
        color: var(--primary);
        font-weight: 600;
        border-bottom-color: var(--primary);
    }
    .tools-tab i {
        font-size: 13px;
    }

    /* Category Headers */
    .category-header {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 20px;
        padding-top: 8px;
    }
    .category-header:not(:first-of-type) {
        margin-top: 40px;
    }
    .category-header-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex-shrink: 0;
    }
    .category-header-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-dark);
        margin: 0;
        line-height: 1.3;
    }
    .category-header-count {
        font-size: 13px;
        color: var(--text-light);
    }

    /* Tools Grid */
    .tools-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    @media (max-width: 992px) {
        .tools-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    @media (max-width: 480px) {
        .tools-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }
    }

    /* Tool Cards */
    .tool-card {
        display: flex;
        flex-direction: column;
        padding: 24px;
        background: var(--bg-white);
        border: 1px solid var(--border-light);
        border-radius: 12px;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    .tool-card:hover {
        border-color: var(--primary-light);
        box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
        transform: translateY(-2px);
    }
    .tool-card-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        margin-bottom: 16px;
    }
    .tool-icon-link { background: linear-gradient(135deg, #dbeafe, #ede9fe); color: #4f46e5; }
    .tool-icon-json { background: #dbeafe; color: #2563eb; }
    .tool-icon-jwt { background: #fef3c7; color: #d97706; }
    .tool-icon-cron { background: #d1fae5; color: #059669; }
    .tool-icon-base64 { background: #ede9fe; color: #7c3aed; }
    .tool-icon-url { background: #fce7f3; color: #db2777; }
    .tool-icon-hash { background: #ffedd5; color: #ea580c; }
    .tool-icon-uuid { background: #e0e7ff; color: #4338ca; }
    .tool-icon-regex { background: #fce7f3; color: #be185d; }
    .tool-icon-timestamp { background: #ccfbf1; color: #0d9488; }
    .tool-icon-currency { background: #dcfce7; color: #16a34a; }
    .tool-icon-unit { background: #fef9c3; color: #ca8a04; }
    .tool-icon-meta { background: #ccfbf1; color: #0d9488; }
    .tool-icon-utm { background: #ffedd5; color: #ea580c; }
    .tool-icon-social { background: #fce7f3; color: #db2777; }
    .tool-icon-hashtag { background: #ede9fe; color: #7c3aed; }
    .tool-icon-resizer { background: #d1fae5; color: #059669; }
    .tool-icon-charcounter { background: #cffafe; color: #0891b2; }
    .tool-icon-emoji { background: #fef9c3; color: #d97706; }
    .tool-icon-lorem { background: #e0e7ff; color: #4338ca; }
    .tool-icon-color { background: linear-gradient(135deg, #fecdd3, #c4b5fd, #a5f3fc); color: #7c3aed; }
    .tool-icon-numbase { background: #dbeafe; color: #2563eb; }
    .tool-icon-markdown { background: #1e293b; color: #f8fafc; }
    .tool-icon-csvjson { background: #dcfce7; color: #16a34a; }
    .tool-icon-imgbase64 { background: #ede9fe; color: #9333ea; }
    .tool-icon-case { background: #fef3c7; color: #b45309; }
    .tool-icon-timezone { background: #cffafe; color: #0e7490; }
    .tool-card-featured {
        position: relative;
        border: 2px solid transparent;
        background: linear-gradient(var(--bg-white), var(--bg-white)) padding-box,
                    linear-gradient(135deg, #3b82f6, #8b5cf6) border-box;
    }
    .tool-card-featured:hover {
        box-shadow: 0 8px 30px rgba(79, 70, 229, 0.2);
    }
    .tool-card-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        background: linear-gradient(135deg, #3b82f6, #8b5cf6);
        color: white;
        font-size: 10px;
        font-weight: 700;
        padding: 4px 8px;
        border-radius: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    [dir="rtl"] .tool-card-badge {
        right: auto;
        left: 12px;
    }
    .tool-card-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--text-dark);
        margin: 0 0 8px;
    }
    .tool-card-desc {
        font-size: 14px;
        color: var(--text-light);
        margin: 0 0 16px;
        flex-grow: 1;
        line-height: 1.5;
    }
    .tool-card-link {
        font-size: 14px;
        font-weight: 600;
        color: var(--primary);
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .tool-card-link i {
        font-size: 12px;
        transition: transform 0.2s;
    }
    .tool-card:hover .tool-card-link i {
        transform: translateX(4px);
    }
    [dir="rtl"] .tool-card:hover .tool-card-link i {
        transform: translateX(-4px);
    }

    /* Fade animation for filtering */
    .tool-card.fade-out {
        opacity: 0;
        transform: scale(0.95);
        pointer-events: none;
    }
    .tool-card.fade-in {
        opacity: 1;
        transform: scale(1);
    }

    /* Hidden state for filtered cards/headers/grids */
    .category-header.hidden,
    .tools-grid.hidden {
        display: none;
    }

    @media (max-width: 480px) {
        .tool-card {
            padding: 16px;
        }
        .tool-card-icon {
            width: 40px;
            height: 40px;
            font-size: 16px;
            margin-bottom: 12px;
        }
        .tool-card-title {
            font-size: 15px;
        }
        .tool-card-desc {
            font-size: 13px;
            margin-bottom: 12px;
        }
        .tools-tab {
            padding: 8px 14px;
            font-size: 13px;
        }
        .category-header-title {
            font-size: 16px;
        }
    }