.category-page {
    padding: 30px 0;
}

.cat-header {
    text-align: center;
    margin-bottom: 26px;
}

.cat-icon i {
    font-size: 42px;
    color: #93c5fd;
}

.cat-title {
    font-size: 32px;
    margin: 10px 0 4px;
}

.cat-sub {
    color: #94a3b8;
}

/* FILTERS BAR */
.cat-filters {
    display: flex;
    gap: 10px;
    padding: 18px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
}

.cat-filters input,
.cat-filters select {
    background: #0f172a;
    border: 1px solid #1e293b;
    padding: 10px;
    border-radius: 10px;
    color: #e2e8f0;
}

.chk {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* GRID */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 18px;
}

.tool-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-logo img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
}

.tool-name {
    font-size: 18px;
    margin: 0;
}

.tool-desc {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

.tool-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid #1e293b;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

.badge.verified { color: #22c55e; }
.badge.vip { background: gold; color: #000; }

/* MOBILE */
@media (max-width: 640px) {
    .cat-filters { flex-wrap: wrap; }
}


/* ----- FILTER BAR ----- */
.cat-filter-bar {
    margin-top: 20px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
}

/* ---- Search input ---- */
.cat-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.cat-search i {
    color: #60a5fa;
    font-size: 16px;
}

.cat-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    outline: none;
}

/* ---- Right filters ---- */
.cat-filters-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* selects */
.filter-select {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    color: #e2e8f0;
    cursor: pointer;
}

.filter-select option {
    background: #0f172a;
}

/* checkboxes */
.chk {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e5e7eb;
    font-size: 14px;
}

.chk input {
    width: 16px;
    height: 16px;
}

/* MOBILE */
@media (max-width: 780px) {

    .cat-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .cat-filters-right {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

}

.cat-search input {
    font-size: 17px;
    padding: 6px 0;
}

.cat-search {
    height: 54px;
}

.cat-filter-bar {
    margin-top: 10px;
    padding: 14px 18px;
}

.cat-filters-right {
    display: flex;
    align-items: center;
    gap: 18px; /* un peu plus de respirations */
}

.filter-select:hover,
.chk:hover {
    filter: brightness(1.15);
}


.cat-filter-bar {
    margin: 10px auto 20px auto;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 18px;
}
.cat-search {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    padding: 0 18px;
    height: 54px;
}

.cat-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 17px;
    outline: none;
}
.filter-select {
    height: 54px;
    padding: 0 16px;
    font-size: 15px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    color: #e2e8f0;
    cursor: pointer;
}

.filter-select:hover {
    background: rgba(255,255,255,0.10);
}
.chk {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 15px;
}

.chk input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
@media(max-width: 860px) {
    .cat-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select,
    .chk {
        width: 100%;
    }
}

.boost-badge {
    background: #ffd500;
    color: #000;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 0 18px rgba(255, 200, 0, 0.4);
}

/* ===== BOOSTED CARD ===== */
.card.boosted {
    border: 1px solid rgba(250, 204, 21, .5);
    box-shadow: 0 0 22px rgba(250, 204, 21, .45);
    position: relative;
}

/* BADGE */
.boost-badge {
    background: #facc15;
    color: #111;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    display: inline-block;
}

.card.boosted {
    border: 1px solid rgba(250, 204, 21, 0.45);
    box-shadow: 0 0 22px rgba(250, 204, 21, 0.45);
}

.boost-badge {
    background: #facc15;
    color: #111;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
    display: inline-block;
}
