@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('layout.css');

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}
.ai {
    color: #0030FF;
}
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", sans-serif;
    color: #ffffff;
}

main {
    width: 100%;
    flex: 1 0 auto;
}

body.page-ai-tools main {
    padding-top: 72px;
}

.breadcrumbs-section {
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    padding: 3rem var(--page-gutter) 0.75rem;
}

.breadcrumbs-wrap {
    margin: 0 auto;
}

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.25;
    color: #000000;
    font-weight: 500;
    white-space: nowrap;
    max-width: 100%;
}

.breadcrumbs [hidden] {
    display: none !important;
}

.breadcrumbs a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #0030FF;
}

.breadcrumbs .separator {
    color: #000000;
    flex-shrink: 0;
}

.breadcrumbs .current-page {
    color: #0030FF;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.ai-tools-hero {
    width: 100%;
    padding: 4.25rem var(--page-gutter) 2.75rem;
}

.ai-tools-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
}

.ai-tools-hero-copy {
    max-width: 1060px;
    width: 100%;
    text-align: center;
    padding-left: 18px;
}

.ai-tools-hero h1 {
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 2.8rem);
    line-height: 1.3;
    color: #000000;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.ai-tools-hero h1 span,
.ai-tools-category-hero h1 span,
.ai-tools-search-hero h1 span {
    color: #0030FF;
}

.ai-tools-hero p {
    margin: 15px 0 0;
    color: rgb(0, 0, 0);
    font-size: clamp(0.92rem, 1.3vw, 1.1rem);
    line-height: 1.5;
    font-weight: 500;
    padding-bottom: 10px;
}

.ai-tools-search {
    width: min(100%, 660px);
    height: 52px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-radius: 999px;
    background: #F5F5F5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-tools-search .fa-magnifying-glass {
    font-size: 0.95rem;
    color: #000000;
    flex-shrink: 0;
}

.ai-tools-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #000000;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
}

.ai-tools-search input::placeholder {
    color: #353535;
    font-weight: 500;
    font-size: 1rem;
}

.ai-tools-search button {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0030FF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ai-tools-search button:hover,
.ai-tools-search button:focus-visible {
    color: #2cc00f;
}

.ai-tools-search:focus-within {
    border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 900px) {
    .breadcrumbs-section {
        padding: 1.5rem var(--page-gutter) 0.65rem;
    }

    .ai-tools-hero {
        padding: 2.5rem var(--page-gutter) 2.25rem;
    }

    .ai-tools-featured {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .ai-tools-categories {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .ai-tools-category-page,
    .ai-tools-search-page {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .ai-tools-hero-inner {
        gap: 22px;
    }

    .ai-tools-search {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .breadcrumbs-section,
    .ai-tools-hero,
    .ai-tools-featured,
    .ai-tools-categories,
    .ai-tools-category-page,
    .ai-tools-search-page,
    .ai-tools-seo,
    .ai-tools-faq {
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
    }

    .breadcrumbs {
        font-size: 0.875rem;
    }

    .ai-tools-hero {
        padding-top: 2rem;
        padding-bottom: 1.75rem;
    }

    .ai-tools-hero h1 {
        font-size: 1.2rem;
    }

    .ai-tools-hero p {
        font-size: 0.92rem;
    }

    .ai-tools-search {
        height: 48px;
        padding: 0 14px;
    }
}

.ai-tools-featured {
    width: 100%;
    padding: 40px var(--page-gutter) 2.75rem;
}

.ai-tools-featured[hidden] {
    display: none !important;
}

.ai-tools-featured-inner {
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
    padding: 52px 28px 28px;
    border-radius: 30px;
}

.ai-tools-featured h2 {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    margin: 0;
    transform: translate(-50%, -50%);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.ai-tools-featured-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    color: #000000;
    font-size: 2rem;
}

.ai-tools-featured-pill i {
    font-size: 0.78rem;
}

.ai-tools-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.ai-tools-category-group .ai-tools-featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-tools-featured-grid .ai-tool-card,
.ai-tools-grid .ai-tool-card--featured,
.ai-tool-related-grid .ai-tool-card--featured {
    position: relative;
    padding: 16px;
    background-color: #f0f0f0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.103);
}

.ai-tool-card--featured .ai-tool-card__top {
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 0;
}

.ai-tool-card--featured .ai-tool-card__logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
}

.ai-tool-card--featured h3 {
    margin: 0;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.05rem;
    font-weight: 400;
    text-align: left;
    color: #000000;
}

.ai-tool-card--featured .ai-tool-card__preview {
    margin-top: 14px;
    background: #ffffff;
    border-radius: 10px;
}

.ai-tool-card--featured .ai-tool-card__featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.ai-tool-card--featured .ai-tool-card__stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: #000000;
    font-size: 0.9rem;
    font-weight: 500;
}

.ai-tool-card--featured .ai-tool-card__stats .fa-star {
    color: #f5c518;
}

.ai-tool-card--featured .ai-tool-card__featured-category {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 70%;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: #000000;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-tool-card--featured .ai-tool-card__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
}

.ai-tools-grid .ai-tool-card--featured .ai-tool-card__actions,
.ai-tool-related-grid .ai-tool-card--featured .ai-tool-card__actions {
    margin-top: auto;
    padding-top: 14px;
}

.ai-tool-card--featured .ai-tool-card__view,
.ai-tool-card--featured .ai-tool-card__visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: filter 0.2s ease;
}

.ai-tool-card--featured .ai-tool-card__view {
    background: #0363FB;
}

.ai-tool-card--featured .ai-tool-card__visit {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.733);
    color: #000000;
}

.ai-tool-card--featured .ai-tool-card__view:hover,
.ai-tool-card--featured .ai-tool-card__view:focus-visible,
.ai-tool-card--featured .ai-tool-card__visit:hover,
.ai-tool-card--featured .ai-tool-card__visit:focus-visible {
    filter: brightness(1.08);
}

.ai-tools-categories {
    width: 100%;
    padding: 2.5rem var(--page-gutter) 4.5rem;
}

.ai-tools-categories-inner {
    max-width: 1800px;
    margin: 0 auto;
    text-align: center;
}

.ai-tools-categories h2 {
    margin: 0 0 36px;
    font-size: clamp(1.8rem, 3.2vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
    color: #000000;
}

.ai-tools-categories-grid {
    display: flex;
    flex-direction: column;
    gap: 3.25rem;
    text-align: left;
}

.ai-tools-category-group[hidden] {
    display: none !important;
}

.ai-tools-category-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
}

.ai-tools-category-group__title {
    margin: 0;
    text-align: left;
    font-size: clamp(1.35rem, 2.5vw, 1.2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #000000;
}

.ai-tools-category-group__view-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    color: #000000;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(0, 0, 0, 0.589);
    transition: filter 0.2s ease;
}

.ai-tools-category-group__view-all:hover,
.ai-tools-category-group__view-all:focus-visible {
    filter: brightness(1.08);
}

.ai-tools-categories-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 18px;
    align-items: stretch;
}

.ai-tools-categories-cards[hidden] {
    display: none !important;
}

.ai-tools-category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 14px 10px 10px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.158);
    color: inherit;
    text-decoration: none;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ai-tools-category-card:hover,
.ai-tools-category-card:focus-visible,
.ai-tools-category-card.is-active {
    border-color: rgba(255, 255, 255, 0.14);
    background: #f5f5f5;
}

.ai-tools-category-card[hidden] {
    display: none !important;
}

.ai-tools-category-card__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #0363FB;
    color: #ffffff;
    font-size: 1.05rem;
}

.ai-tools-category-card__name {
    flex: 1;
    min-width: 0;
    color: #000000;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-tools-category-card__count {
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f5f5f5;
    color: #000000;
    font-size: 1rem;
    font-weight: 500;
}

.ai-tools-categories-status {
    grid-column: 1 / -1;
    margin: 0;
    padding: 12px 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    font-weight: 300;
}

body.ai-tools-view-category .ai-tools-hero,
body.ai-tools-view-category #ai-tools-featured,
body.ai-tools-view-category .ai-tools-categories,
body.ai-tools-view-search .ai-tools-hero,
body.ai-tools-view-search #ai-tools-featured,
body.ai-tools-view-search .ai-tools-categories,
body.ai-tools-view-search .ai-tools-seo,
body.ai-tools-view-search .ai-tools-faq,
body.ai-tools-view-search #ai-tools-category-page {
    display: none !important;
}

.ai-tools-search-page[hidden] {
    display: none !important;
}

.ai-tools-search-page {
    width: 100%;
    padding: 1.5rem var(--page-gutter) 3.5rem;
}

.ai-tools-search-page-inner {
    max-width: 1800px;
    margin: 0 auto;
}

.ai-tools-search-hero {
    max-width: 760px;
    margin: 0 auto 28px;
    padding: 12px 12px 0;
    text-align: center;
}

.ai-tools-search-hero h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3.4vw, 2rem);
    line-height: 1.15;
    font-weight: 600;
    color: #000000;
}

.ai-tools-search-hero p {
    margin: 10px 0 0;
    color: #000000;
    font-size: clamp(0.92rem, 1.4vw, 1.02rem);
    font-weight: 500;
    line-height: 1.5;
}

.ai-tools-search-hero .ai-tools-search {
    margin: 28px auto 0;
}

.ai-tools-search-empty {
    padding: 12px 0 0;
}

.ai-tools-search-empty h2 {
    margin: 12px 0 8px;
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    color: #000000;
}

.ai-tools-search-empty > p {
    margin: 0 auto 40px;
    max-width: 560px;
    text-align: center;
    color: rgb(0, 0, 0);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.ai-tools-search-empty h3 {
    margin: 0 0 18px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #000000;
}

.ai-tools-category-page[hidden] {
    display: none !important;
}

.ai-tools-category-page {
    width: 100%;
    padding: 1.5rem var(--page-gutter) 3.5rem;
}

.ai-tools-category-inner {
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
}

.ai-tools-category-search {
    width: min(100%, 1800px);
    margin: 50px auto 100px ;
}

.ai-tools-category-hero {
    max-width: 760px;
    margin: 0 auto 28px;
    padding: 12px 12px 0;
    text-align: center;
    color: #000000;
}

.ai-tools-category-hero h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3.4vw, 2rem);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.ai-tools-category-hero p {
    margin: 20px 0 0;
    color: rgb(0, 0, 0);
    font-size: clamp(0.92rem, 1.4vw, 1.02rem);
    font-weight: 500;
    line-height: 1.5;
}

.ai-tools-featured--category .ai-tools-featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-tools-category-page .ai-tools-featured--category {
    padding: 0;
}

.ai-tools-featured--category .ai-tools-featured-pill {
    padding: 9px 22px;
}

.ai-tools-category-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
}

.ai-tools-category-page .ai-tools-pills {
    flex: 1 1 0;
    margin-bottom: 0;
}

.ai-tools-category-count {
    margin: 25px 0 20px;
    color: #000000;
    font-size: 1.2rem;
    font-weight: 600;
}

.ai-tools-category-count[hidden],
.ai-tools-grid[hidden] {
    display: none !important;
}

.ai-tool-card--catalog {
    position: relative;
    padding: 16px;
    border-radius: 10px;
}

.ai-tool-card--catalog .ai-tool-card__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.ai-tool-card--catalog .ai-tool-card__identity {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.ai-tool-card--catalog .ai-tool-card__logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #000000;
}

.ai-tool-card--catalog .ai-tool-card__copy {
    min-width: 0;
    flex: 1;
}

.ai-tool-card--catalog h3,
.ai-tools-grid .ai-tool-card--catalog h3 {
    margin: 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ai-tool-card--catalog .ai-tool-card__desc,
.ai-tools-grid .ai-tool-card--catalog .ai-tool-card__desc {
    margin: 4px 0 0;
    padding: 0;
    color: #b9b9bb;
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
}

.ai-tool-card--catalog .ai-tool-card__copy .ai-tool-card__stats {
    margin-top: 6px;
    font-size: 0.82rem;
}

.ai-tool-card--catalog .ai-tool-card__tags,
.ai-tools-grid .ai-tool-card--catalog .ai-tool-card__tags {
    min-height: 0;
    max-height: none;
    margin-top: 14px;
}

.ai-tool-card--catalog .ai-tool-card__preview {
    margin-top: 16px;
    background: #000000;
    border-radius: 10px;
}

.ai-tools-directory {
    width: 100%;
    padding: 20px var(--page-gutter) 3.5rem;
}

.ai-tools-seo {
    width: 100%;
    padding: 100px var(--page-gutter) 4rem;
}

.ai-tools-seo-inner {
    max-width: 1800px;
    margin: 0 auto;
}

.ai-tools-seo-inner h2 {
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 2.6vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: center;
    color: #000000;
}

.ai-tools-seo-inner > p {
    margin: 0 0 28px;
    max-width: 1800px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.7;
    text-align: center;
}

.ai-tools-seo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 40px;
}

.ai-tools-seo-grid article {
    padding: 22px 22px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: #f5f5f5;
}

.ai-tools-seo-grid h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #000000;
}

.ai-tools-seo-grid p {
    margin: 0;
    color: rgba(0, 0, 0, 0.78);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

.ai-tools-seo-grid a {
    color: #2cc00f;
    text-decoration: none;
}

.ai-tools-seo-grid a:hover {
    text-decoration: underline;
}

.ai-tools-faq {
    width: 100%;
    padding: 0 var(--page-gutter) 5rem;
}

.ai-tools-faq-inner {
    max-width: 900px;
    margin: 0 auto;
}

.ai-tools-faq-inner h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2.6vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: center;
}

.ai-tools-faq-intro {
    margin: 14px auto 0;
    max-width: 640px;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.6;
}

.ai-tools-faq-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-tools-faq-item {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 18px;
    overflow: hidden;
}

.ai-tools-faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    color: #000000;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    user-select: none;
}

.ai-tools-faq-item summary::-webkit-details-marker {
    display: none;
}

.ai-tools-faq-item summary span {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.ai-tools-faq-item summary i {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    color: #ffffff;
    background: #0A0A0A;
    transition: transform 0.25s ease, background 0.2s ease;
}

.ai-tools-faq-item[open] summary i {
    transform: rotate(180deg);
    background: linear-gradient(180deg, #17a504 0%, #07a121 100%);
}

.ai-tools-faq-answer {
    padding: 0 24px 20px;
}

.ai-tools-faq-answer p {
    margin: 0;
    color: #535353;
    font-size: 1rem;
    line-height: 1.6;
}

.ai-tools-directory-inner {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.ai-tools-sidebar {
    position: sticky;
    top: 88px;
    padding: 22px 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: #0c0c0e;
}

.ai-tools-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.ai-tools-sidebar__head h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.ai-tools-sidebar-close {
    display: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: #221E49;
    color: #ffffff;
    cursor: pointer;
}

.ai-tools-filter-group + .ai-tools-filter-group {
    margin-top: 18px;
}

.ai-tools-filter-group__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.ai-tools-filter-group__toggle i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.ai-tools-filter-group.is-open .ai-tools-filter-group__toggle i {
    transform: rotate(180deg);
}

.ai-tools-filter-group__body {
    display: none;
    padding-top: 12px;
}

.ai-tools-filter-group.is-open .ai-tools-filter-group__body {
    display: grid;
    gap: 10px;
}

.ai-tools-filter-empty {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    font-weight: 300;
}

#ai-tools-category-filters .ai-tools-filter-option.is-collapsed {
    display: none;
}

.ai-tools-filter-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2cc00f;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    width: fit-content;
}

.ai-tools-filter-more:hover {
    color: #48d52b;
}

.ai-tools-filter-more i {
    font-size: 0.7rem;
}

.ai-tools-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    font-weight: 300;
    cursor: pointer;
}

.ai-tools-filter-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ai-tools-check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: transparent;
}

.ai-tools-filter-option input:checked + .ai-tools-check {
    border-color: #2cc00f;
    box-shadow: inset 0 0 0 4px #0c0c0e;
    background: #2cc00f;
}

.ai-tools-stars {
    display: inline-flex;
    gap: 3px;
    color: #2cc00f;
    font-size: 0.78rem;
}

.ai-tools-filter-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-tools-filter-apply,
.ai-tools-filter-reset {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.ai-tools-filter-apply {
    border: 0;
    color: #ffffff;
    background: #0363FB;
}

.ai-tools-filter-apply:hover {
    filter: brightness(1.08);
}

.ai-tools-filter-reset {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    background: transparent;
}

.ai-tools-filter-reset:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.ai-tools-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    min-width: 0;
}

.ai-tools-pill {
    height: 38px;
    padding: 0 16px;
    font-weight: 300;
    border-radius: 999px;
    background-color: #0030FF;
    color: #ffffff;
    border: 0;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
}

.ai-tools-pill:hover,
.ai-tools-pill[aria-pressed="true"] {
    color: #2cc00f;
    filter: brightness(1.06);
}

.ai-tools-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.ai-tools-toolbar__copy h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2.6vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.ai-tools-toolbar__copy p {
    margin: 6px 0 0;
    color: #b9b9bb;
    font-size: 0.95rem;
    font-weight: 300;
}

.ai-tools-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ai-tools-filter-toggle {
    display: none;
    height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 0.9rem;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ai-tools-sort {
    position: relative;
}

.ai-tools-sort__trigger {
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #f5f5f5;
    color: #000000;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.ai-tools-sort__trigger i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.ai-tools-sort.is-open .ai-tools-sort__trigger i {
    transform: rotate(180deg);
}

.ai-tools-sort__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    min-width: 170px;
    padding: 8px;
    border-radius: 14px;
    background: #f1f1f1;
}

.ai-tools-sort.is-open .ai-tools-sort__menu {
    display: grid;
    gap: 4px;
}

.ai-tools-sort__option {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #111111;
    text-align: left;
    font: inherit;
    font-size: 0.9rem;
    padding: 9px 10px;
    cursor: pointer;
}

.ai-tools-sort__option:hover,
.ai-tools-sort__option:focus-visible {
    background: #e7e7e7;
}

.ai-tools-search-page .ai-tools-grid {
    max-width: 1800px;
    width: 100%;
    padding-bottom: 80px;
}

.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ai-tool-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    padding: 18px;
    border-radius: 22px;
    background: #0d0d0e;
    border: 1px solid rgba(255, 255, 255, 0.151);
    text-decoration: none;
    color: inherit;
}

a.ai-tool-card {
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

a.ai-tool-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.ai-tool-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.ai-tool-card__logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #000000;
    flex-shrink: 0;
    overflow: hidden;
}

.ai-tool-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-tool-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    color: #ffffff;
}

.ai-tool-card__badge--editors {
    background: #4f6bff;
}

.ai-tool-card__badge--trending {
    background: #2cc00f;
}

.ai-tool-card__badge--popular {
    background: #ff4d9a;
}

.ai-tool-card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.ai-tools-grid .ai-tool-card h3,
.ai-tool-related-grid .ai-tool-card h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

.ai-tools-grid .ai-tool-card--featured h3,
.ai-tool-related-grid .ai-tool-card--featured h3 {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: #000000;
}

.ai-tool-related-grid .ai-tool-card--featured .ai-tool-card__top {
    align-items: center;
}

.ai-tool-related-grid .ai-tool-card:not(.ai-tool-card--featured) .ai-tool-card__top {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 0;
}

.ai-tool-related-grid .ai-tool-card__copy {
    min-width: 0;
    flex: 1;
}

.ai-tool-related-grid .ai-tool-card:not(.ai-tool-card--featured) .ai-tool-card__top h3 {
    flex: none;
    min-width: 0;
    margin: 0;
}

.ai-tool-related-grid .ai-tool-card__copy .ai-tool-card__stats {
    margin-top: 6px;
}

.ai-tool-related-grid .ai-tool-card__preview {
    margin-top: 14px;
}

.ai-tool-card__desc {
    margin: 14px 0 0;
    color: #b9b9bb;
    font-size: 0.9rem;
    font-weight: 300;
    padding-top: 12px;
    line-height: 1.4;
}

.ai-tools-grid .ai-tool-card__desc,
.ai-tool-related-grid .ai-tool-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.4em * 3);
}

.ai-tool-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ai-tools-grid .ai-tool-card__tags,
.ai-tool-related-grid .ai-tool-card__tags {
    align-content: flex-start;
    min-height: 62px;
    max-height: 62px;
    overflow: hidden;
}

.ai-tool-card__tags span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 400;
}

.ai-tool-card__meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.ai-tools-grid .ai-tool-card__meta,
.ai-tool-related-grid .ai-tool-card__meta {
    margin-top: auto;
    padding-top: 16px;
    flex-shrink: 0;
}

.ai-tool-card__stats {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 200;
}

.ai-tool-card__stats .fa-star {
    color: #2cc00f;
}

.ai-tool-card__stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ai-tool-card__best-for {
    margin: 8px 0 0;
    color: rgb(255, 255, 255);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-tool-card__best-for-label {
    color: #2cc00f;
    font-weight: 500;
}

.ai-tool-card--featured .ai-tool-card__best-for {
    margin-top: 10px;
    color: rgba(0, 0, 0, 0.863);
    font-weight: 500;
}

.ai-tool-card--featured .ai-tool-card__best-for-label {
    color: #0030FF;
}

.ai-tool-card--featured .ai-tool-card__plan {
    margin: 8px 0 0;
    padding: 5px 15px;
    font-size: 0.72rem;
}

.ai-tool-card--featured .ai-tool-card__plan--freemium {
    color: #ffffff;
    background: #0f023d;
}

.ai-tool-card--featured .ai-tool-card__plan--paid {
    color: #ffffff;
    background: #f5c518;
}

.ai-tool-card__plan {
    display: inline-flex;
    align-items: center;
    margin: 10px 0 0;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    width: fit-content;
}

.ai-tool-card__plan--free {
    color: #2cc00f;
    background: rgba(44, 192, 15, 0.12);
}

.ai-tool-card__plan--freemium {
    color: #7eb6ff;
    background: rgba(3, 99, 251, 0.18);
}

.ai-tool-card__plan--paid {
    color: #f5c518;
    background: rgba(245, 197, 24, 0.14);
}

.ai-tool-card__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
    color: #2cc00f;
    text-align: right;
}

.ai-tool-card__price span {
    font-size: 0.72rem;
    font-weight: 400;
}

.ai-tool-card__price strong {
    font-size: 1.3rem;
    font-weight: 700;
}

.ai-tool-card__preview {
    margin-top: 14px;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    background: #000000;
    overflow: hidden;
    flex-shrink: 0;
}

.ai-tool-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-tools-grid-status {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    font-weight: 300;
}

.ai-tools-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 2.5rem;
}

.ai-tools-pagination[hidden] {
    display: none !important;
}

.ai-tools-pagination__btn {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.356);
    border-radius: 999px;
    background: #f5f5f5;
    color: #000000;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ai-tools-pagination__btn:hover:not(:disabled) {
    background: #0363FB;
    border-color: transparent;
    color: #ffffff;
}

.ai-tools-pagination__btn.is-active {
    background: #0363FB;
    border-color: transparent;
    color: #ffffff;
}

.ai-tools-pagination__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ai-tools-sidebar-backdrop {
    display: none;
}

@media (max-width: 1200px) {
    .ai-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-tools-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-tools-featured--category .ai-tools-featured-grid,
    .ai-tools-category-group .ai-tools-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-tools-categories-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .ai-tools-directory-inner {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 20px;
    }

    .ai-tools-featured-inner {
        padding: 48px 20px 22px;
        border-radius: 28px;
    }
}

@media (max-width: 900px) {
    .ai-tools-featured {
        padding-top: 22px;
    }

    .ai-tools-categories-grid {
        gap: 2.5rem;
    }

    .ai-tools-featured-inner {
        padding: 44px 16px 18px;
        border-radius: 24px;
    }

    .ai-tools-featured-pill {
        padding: 10px 18px;
        font-size: 0.88rem;
    }

    .ai-tools-category-search {
        width: 100%;
        margin-top: 18px;
    }

    .ai-tools-category-hero {
        padding: 4px 0 0;
        margin-bottom: 24px;
    }

    .ai-tools-category-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ai-tools-category-controls .ai-tools-sort {
        align-self: flex-end;
    }

    .ai-tools-directory {
        padding: 0 var(--page-gutter) 3.5rem;
    }

    .ai-tools-categories {
        padding-top: 1.75rem;
        padding-bottom: 3.5rem;
    }

    .ai-tools-categories h2 {
        margin-bottom: 28px;
    }

    .ai-tools-seo {
        padding: 8px var(--page-gutter) 3rem;
    }

    .ai-tools-faq {
        padding: 0 var(--page-gutter) 4rem;
    }

    .ai-tools-seo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-tools-directory-inner {
        grid-template-columns: 1fr;
    }

    .ai-tools-filter-toggle {
        display: inline-flex;
    }

    .ai-tools-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(360px, 88vw);
        max-height: none;
        margin: 0;
        border-radius: 0 18px 18px 0;
        z-index: 1300;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        display: flex;
        flex-direction: column;
    }

    .ai-tools-filter-actions {
        margin-top: auto;
    }

    .ai-tools-sidebar.is-open {
        transform: translateX(0);
    }

    .ai-tools-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ai-tools-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1290;
    }

    .ai-tools-sidebar-backdrop[hidden] {
        display: none;
    }

    .ai-tools-main {
        min-width: 0;
    }

    .ai-tools-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        width: calc(100% + 3rem);
        max-width: none;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        margin-bottom: 24px;
        padding: 2px 1.5rem 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .ai-tools-category-page .ai-tools-pills {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        padding: 2px 0 8px;
    }

    .ai-tools-pills::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 640px) {
    .ai-tools-seo-grid {
        grid-template-columns: 1fr;
    }

    .ai-tools-grid {
        grid-template-columns: 1fr;
    }

    .ai-tools-featured-grid,
    .ai-tools-category-group .ai-tools-featured-grid {
        grid-template-columns: 1fr;
    }

    .ai-tools-categories-cards {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .ai-tools-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .ai-tools-toolbar__actions {
        width: 100%;
        justify-content: space-between;
    }

    .ai-tools-pagination {
        margin-top: 1.5rem;
        gap: 6px;
    }

    .ai-tools-pagination__btn {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .ai-tools-directory,
    .ai-tools-seo,
    .ai-tools-faq {
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
    }

    .ai-tools-featured-inner {
        padding: 42px 12px 14px;
        border-radius: 22px;
    }

    .ai-tools-featured-pill {
        padding: 9px 16px;
        font-size: 0.82rem;
    }

    .ai-tools-pills {
        width: calc(100% + (2 * var(--page-gutter)));
        margin-left: calc(-1 * var(--page-gutter));
        margin-right: calc(-1 * var(--page-gutter));
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
    }

    .ai-tools-category-page .ai-tools-pills {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}
