/*
 * Salehly category directory
 * Page-scoped styles only. No global form/table overrides.
 */
.salehly-category-page {
    --category-navy: #0f2748;
    --category-blue: #326bc9;
    --category-blue-deep: #174b92;
    --category-blue-soft: #eaf3ff;
    --category-sky: #67b7ff;
    --category-text: #15243c;
    --category-muted: #647892;
    --category-border: #dbe7f5;
    --category-surface: #ffffff;
    --category-page-bg: #f7faff;
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding: clamp(2rem, 4vw, 4.5rem) 0 clamp(4rem, 7vw, 7rem);
    color: var(--category-text);
    background:
        radial-gradient(circle at 12% 8%, rgba(103, 183, 255, 0.13), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, var(--category-page-bg) 58%, #ffffff 100%);
}

.salehly-category-page,
.salehly-category-page * {
    box-sizing: border-box;
}

.salehly-category-page__ambient {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(50, 107, 201, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 107, 201, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.52), transparent 52%);
}

.salehly-category-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.34fr);
    align-items: center;
    min-height: clamp(260px, 29vw, 360px);
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.5rem);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: clamp(24px, 3vw, 38px);
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 18%, rgba(110, 190, 255, 0.35), transparent 24rem),
        linear-gradient(125deg, #102f59 0%, #1f579f 48%, #326bc9 100%);
    box-shadow: 0 30px 70px rgba(19, 63, 116, 0.2);
}

[dir="rtl"] .salehly-category-hero {
    background:
        radial-gradient(circle at 88% 18%, rgba(110, 190, 255, 0.35), transparent 24rem),
        linear-gradient(235deg, #102f59 0%, #1f579f 48%, #326bc9 100%);
}

.salehly-category-hero::before,
.salehly-category-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.salehly-category-hero::before {
    width: 330px;
    height: 330px;
    inset-block-start: -190px;
    inset-inline-end: -80px;
}

.salehly-category-hero::after {
    width: 200px;
    height: 200px;
    inset-block-end: -130px;
    inset-inline-start: 34%;
}

.salehly-category-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.salehly-category-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4.4vw, 4.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.salehly-category-hero p {
    max-width: 680px;
    margin: 1.15rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.45vw, 1.25rem);
    line-height: 1.9;
    text-wrap: pretty;
}

.salehly-category-hero__visual {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    min-height: 180px;
}

.salehly-category-hero__mark {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: clamp(112px, 12vw, 154px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 36%;
    color: #ffffff;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.09));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.36),
        0 24px 52px rgba(5, 31, 66, 0.28);
    backdrop-filter: blur(12px);
    transform: rotate(-7deg);
}

[dir="rtl"] .salehly-category-hero__mark {
    transform: rotate(7deg);
}

.salehly-category-hero__mark svg {
    width: 52%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.salehly-category-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    animation: salehly-category-orbit 16s linear infinite;
}

.salehly-category-orbit--one {
    width: 190px;
    height: 190px;
}

.salehly-category-orbit--two {
    width: 240px;
    height: 240px;
    animation-direction: reverse;
    animation-duration: 22s;
}

.salehly-category-orbit::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    inset-block-start: 18px;
    inset-inline-start: 26px;
    border-radius: 50%;
    background: #bfe1ff;
    box-shadow: 0 0 20px rgba(191, 225, 255, 0.9);
}

@keyframes salehly-category-orbit {
    to { transform: rotate(1turn); }
}

.salehly-category-directory {
    position: relative;
    z-index: 3;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid var(--category-border);
    border-radius: clamp(24px, 2.5vw, 34px);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 65px rgba(28, 68, 116, 0.1);
    backdrop-filter: blur(18px);
}

.salehly-category-directory__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(0.4rem, 1vw, 0.8rem) clamp(0.25rem, 1vw, 0.75rem) 1.5rem;
    border-bottom: 1px solid #e6eef8;
}

.salehly-category-directory__heading h2 {
    margin: 0;
    color: var(--category-navy);
    font-size: clamp(1.55rem, 2.3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.salehly-category-directory__heading p {
    max-width: 680px;
    margin: 0.55rem 0 0;
    color: var(--category-muted);
    font-size: 0.98rem;
    line-height: 1.8;
}

.salehly-category-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 118px;
    padding: 0.7rem 1rem;
    border: 1px solid #cfe0f5;
    border-radius: 18px;
    color: #285a9e;
    background: #f0f6ff;
}

.salehly-category-count strong {
    color: var(--category-blue-deep);
    font-size: 1.25rem;
    font-weight: 800;
}

.salehly-category-count span {
    color: #5c7190;
    font-size: 0.84rem;
    font-weight: 700;
}

.salehly-category-component-shell {
    padding-top: clamp(1.35rem, 2.6vw, 2rem);
}

/* CategoryPage.vue search area */
.salehly-category-page .salehly-category-component-shell > section > .row,
.salehly-category-page .salehly-category-component-shell > section > .row > .col-md-12 {
    width: 100%;
    margin: 0;
    padding: 0;
}

.salehly-category-page .salehly-category-component-shell .float-end {
    float: none !important;
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 0 0 clamp(1.5rem, 3vw, 2.4rem);
}

.salehly-category-page .search-form {
    position: relative;
    width: min(100%, 720px);
    min-height: 58px;
    border: 1px solid #d5e3f4;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(25, 68, 118, 0.08);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.salehly-category-page .search-form:focus-within {
    border-color: #78b3f4;
    box-shadow: 0 0 0 4px rgba(50, 107, 201, 0.12), 0 16px 32px rgba(25, 68, 118, 0.12);
    transform: translateY(-1px);
}

.salehly-category-page .search-form .form-control {
    width: 100%;
    min-height: 58px;
    padding-inline: 1.15rem 3.4rem;
    border: 0 !important;
    border-radius: inherit !important;
    color: var(--category-text);
    background: transparent !important;
    font-size: 1rem;
    box-shadow: none !important;
}

.salehly-category-page .search-form .form-control::placeholder {
    color: #91a0b5;
    opacity: 1;
}

.salehly-category-page .search-form .search-icon {
    inset-inline-end: 0.55rem !important;
    inset-inline-start: auto !important;
    top: 50%;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 13px;
    color: #326bc9 !important;
    background: #edf5ff;
    transform: translateY(-50%);
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.salehly-category-page .search-form .search-icon:hover {
    color: #ffffff !important;
    background: #326bc9;
    transform: translateY(-50%) scale(1.04);
}

/* Convert the DataTable rows to a true category grid. */
.salehly-category-page .table-responsive {
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

.salehly-category-page table.custom-card-table,
.salehly-category-page .custom-card-table thead,
.salehly-category-page .custom-card-table tbody,
.salehly-category-page .custom-card-table tfoot {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.salehly-category-page .custom-card-table thead {
    display: none !important;
}

.salehly-category-page .custom-card-table tbody {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.salehly-category-page .custom-card-table tbody tr {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100%;
    border: 0 !important;
    background: transparent !important;
    opacity: 0;
    transform: translateY(16px);
}

.salehly-category-page.is-ready .custom-card-table tbody tr:not(.salehly-category-empty-row) {
    animation: salehly-category-card-in 520ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
    animation-delay: calc(var(--salehly-category-index, 0) * 55ms);
}

@keyframes salehly-category-card-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.salehly-category-page .custom-card-table tbody td {
    display: block !important;
    width: 100% !important;
    height: 100%;
    padding: 0 !important;
    border: 0 !important;
    white-space: normal !important;
    background: transparent !important;
}

.salehly-category-page .custom-card-table tbody td > a {
    display: block !important;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    outline: none;
}

.salehly-category-page .custom-card-table tbody td > a:focus-visible .card.circle-clip-effect {
    outline: 3px solid rgba(50, 107, 201, 0.3);
    outline-offset: 4px;
}

.salehly-category-page .card.circle-clip-effect {
    position: relative;
    isolation: isolate;
    display: flex;
    width: 100%;
    min-height: 282px;
    height: 100% !important;
    margin: 0 !important;
    padding: 1.5px;
    overflow: hidden;
    border: 0 !important;
    border-radius: 24px !important;
    background: #dbe7f5 !important;
    box-shadow: 0 16px 38px rgba(23, 69, 121, 0.1);
    transform: translateZ(0);
    transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 220ms ease;
}

.salehly-category-page .card.circle-clip-effect::before {
    content: "" !important;
    position: absolute;
    z-index: 0;
    inset: -55%;
    display: block !important;
    pointer-events: none;
    opacity: 0;
    background: conic-gradient(
        from 0deg,
        transparent 0 70%,
        #123d7a 80%,
        #5faeff 87%,
        #cfe8ff 92%,
        transparent 98%
    );
    animation: salehly-category-beam 3.2s linear infinite paused;
    transition: opacity 180ms ease;
}

.salehly-category-page .card.circle-clip-effect::after,
[dir="rtl"] .salehly-category-page .card.circle-clip-effect::after {
    content: none !important;
    display: none !important;
    clip-path: none !important;
    background: transparent !important;
}

@keyframes salehly-category-beam {
    to { transform: rotate(1turn); }
}

.salehly-category-page .card.circle-clip-effect:hover,
.salehly-category-page .card.circle-clip-effect:focus-within {
    box-shadow: 0 24px 48px rgba(23, 69, 121, 0.18);
    transform: translateY(-5px);
}

.salehly-category-page .card.circle-clip-effect:hover::before,
.salehly-category-page .card.circle-clip-effect:focus-within::before {
    opacity: 1;
    animation-play-state: running;
}

.salehly-category-page .category-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    padding: clamp(1.4rem, 2.5vw, 2rem) !important;
    border-radius: 22.5px !important;
    background: #ffffff !important;
    transition: background-color 200ms ease, box-shadow 200ms ease;
}

.salehly-category-page .card.circle-clip-effect:hover .category-card,
.salehly-category-page .card.circle-clip-effect:focus-within .category-card {
    background: linear-gradient(145deg, #fbfdff 0%, #edf6ff 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(95, 174, 255, 0.12);
}

.salehly-category-page .img-bg {
    display: grid !important;
    place-items: center;
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
    padding: 10px;
    border: 1px solid #dce8f6 !important;
    border-radius: 22px !important;
    color: inherit !important;
    background: #f7faff !important;
    box-shadow: 0 12px 26px rgba(31, 84, 145, 0.09);
    transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.salehly-category-page .card.circle-clip-effect:hover .img-bg,
.salehly-category-page .card.circle-clip-effect:focus-within .img-bg {
    border-color: rgba(95, 174, 255, 0.68) !important;
    background: #ffffff !important;
    box-shadow: 0 15px 30px rgba(50, 107, 201, 0.14);
}

.salehly-category-page .img-bg img,
.salehly-category-page .avatar-70 {
    width: 64px !important;
    height: 64px !important;
    max-width: 100%;
    object-fit: contain;
    transform: none !important;
    filter: none !important;
}

.salehly-category-page .categories-name {
    width: 100%;
    min-height: 2.9rem;
    margin: 1.25rem 0 0.55rem !important;
    color: var(--category-navy) !important;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    white-space: normal !important;
    overflow: visible !important;
    -webkit-line-clamp: 2 !important;
}

.salehly-category-page .categories-desc {
    display: -webkit-box;
    width: 100%;
    min-height: 4.65rem;
    margin: 0 !important;
    overflow: hidden;
    color: var(--category-muted) !important;
    font-size: 0.9rem;
    line-height: 1.75;
    text-align: center;
    white-space: normal !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3 !important;
}

.salehly-category-page .card.circle-clip-effect:hover .categories-name,
.salehly-category-page .card.circle-clip-effect:focus-within .categories-name {
    color: #123d7a !important;
}

.salehly-category-page .card.circle-clip-effect:hover .categories-desc,
.salehly-category-page .card.circle-clip-effect:focus-within .categories-desc {
    color: #486783 !important;
}

/* Empty and processing states */
.salehly-category-page .salehly-category-empty-row {
    grid-column: 1 / -1;
    opacity: 1 !important;
    transform: none !important;
}

.salehly-category-page .dataTables_empty,
.salehly-category-page td.dataTables_empty {
    display: grid !important;
    place-items: center;
    min-height: 220px;
    padding: 4.5rem 1.5rem 1.8rem !important;
    border: 1px dashed #bfd2e9 !important;
    border-radius: 24px;
    color: #61748c;
    background:
        radial-gradient(circle at 50% 34%, rgba(50, 107, 201, 0.13) 0 23px, transparent 24px),
        linear-gradient(180deg, #fbfdff, #f4f8fd) !important;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.salehly-category-page .dataTables_processing {
    z-index: 10;
    padding: 1rem 1.25rem;
    border: 1px solid #d5e4f5;
    border-radius: 16px;
    color: var(--category-navy);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 45px rgba(20, 55, 98, 0.14);
}

/* DataTables footer */
.salehly-category-page .dataTables_wrapper > .row:last-of-type {
    align-items: center !important;
    gap: 1rem 0;
    margin: clamp(1.5rem, 3vw, 2.25rem) 0 0 !important;
    padding-top: 1.25rem;
    border-top: 1px solid #e5eef8;
}

.salehly-category-page .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: #657892;
    font-size: 0.88rem;
    font-weight: 650;
}

.salehly-category-page .dataTables_length select {
    min-width: 76px;
    min-height: 42px;
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    border: 1px solid #d7e3f2;
    border-radius: 12px;
    color: var(--category-text);
    background-color: #ffffff;
    box-shadow: none;
}

[dir="rtl"] .salehly-category-page .dataTables_length select {
    padding: 0.45rem 0.75rem 0.45rem 2rem;
}

.salehly-category-page .dataTables_paginate .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.42rem;
    margin: 0;
}

[dir="rtl"] .salehly-category-page .dataTables_paginate .pagination {
    justify-content: flex-start;
}

.salehly-category-page .page-item .page-link {
    display: grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0.45rem;
    border: 1px solid #d8e4f2;
    border-radius: 12px !important;
    color: #526985;
    background: #ffffff;
    box-shadow: none;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.salehly-category-page .page-item:not(.disabled) .page-link:hover {
    border-color: #8dbcf0;
    color: #245aa5;
    background: #eef6ff;
    transform: translateY(-1px);
}

.salehly-category-page .page-item.active .page-link {
    border-color: #326bc9;
    color: #ffffff;
    background: #326bc9;
}

.salehly-category-page .page-item.disabled .page-link {
    opacity: 0.48;
}

@media (max-width: 1199.98px) {
    .salehly-category-page .custom-card-table tbody {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .salehly-category-hero {
        grid-template-columns: minmax(0, 1fr) 150px;
    }

    .salehly-category-hero__mark {
        width: 116px;
    }

    .salehly-category-orbit--one {
        width: 160px;
        height: 160px;
    }

    .salehly-category-orbit--two {
        width: 205px;
        height: 205px;
    }
}

@media (max-width: 767.98px) {
    .salehly-category-page {
        padding-top: 1.25rem;
    }

    .salehly-category-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 2rem 1.35rem;
        text-align: center;
    }

    .salehly-category-hero__content {
        margin-inline: auto;
    }

    .salehly-category-hero__visual {
        min-height: 118px;
        margin-top: 1.25rem;
    }

    .salehly-category-hero__mark {
        width: 92px;
        border-radius: 30%;
    }

    .salehly-category-orbit--one {
        width: 130px;
        height: 130px;
    }

    .salehly-category-orbit--two {
        width: 165px;
        height: 165px;
    }

    .salehly-category-directory {
        padding: 1rem;
        border-radius: 24px;
    }

    .salehly-category-directory__heading {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .salehly-category-count {
        align-self: flex-start;
    }

    .salehly-category-page .custom-card-table tbody {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .salehly-category-page .card.circle-clip-effect {
        min-height: 260px;
    }

    .salehly-category-page .category-card {
        padding: 1.25rem !important;
    }

    .salehly-category-page .dataTables_wrapper > .row:last-of-type > [class*="col-"] {
        width: 100%;
        text-align: center;
    }

    .salehly-category-page .dataTables_length label,
    .salehly-category-page .dataTables_paginate .pagination,
    [dir="rtl"] .salehly-category-page .dataTables_paginate .pagination {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .salehly-category-page .custom-card-table tbody {
        grid-template-columns: 1fr;
    }

    .salehly-category-page .card.circle-clip-effect {
        min-height: 244px;
    }

    .salehly-category-page .categories-name {
        min-height: auto;
    }

    .salehly-category-page .categories-desc {
        min-height: auto;
    }
}

/* Dark theme */
[data-bs-theme="dark"] .salehly-category-page {
    --category-text: #eaf2ff;
    --category-muted: #9fb1c8;
    --category-border: #263c58;
    --category-surface: #15243a;
    --category-page-bg: #0d1726;
    background:
        radial-gradient(circle at 12% 8%, rgba(71, 145, 229, 0.14), transparent 28rem),
        linear-gradient(180deg, #0b1422 0%, #0e1a2b 58%, #0b1422 100%);
}

[data-bs-theme="dark"] .salehly-category-directory {
    border-color: #263d5a;
    background: rgba(18, 32, 51, 0.94);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

[data-bs-theme="dark"] .salehly-category-directory__heading {
    border-color: #263b56;
}

[data-bs-theme="dark"] .salehly-category-directory__heading h2,
[data-bs-theme="dark"] .salehly-category-page .categories-name,
[data-bs-theme="dark"] .salehly-category-page .dataTables_processing {
    color: #f2f7ff !important;
}

[data-bs-theme="dark"] .salehly-category-count {
    border-color: #345476;
    background: #172d47;
}

[data-bs-theme="dark"] .salehly-category-count strong {
    color: #91c8ff;
}

[data-bs-theme="dark"] .salehly-category-count span {
    color: #a9bdd5;
}

[data-bs-theme="dark"] .salehly-category-page .search-form,
[data-bs-theme="dark"] .salehly-category-page .category-card,
[data-bs-theme="dark"] .salehly-category-page .dataTables_processing,
[data-bs-theme="dark"] .salehly-category-page .dataTables_length select,
[data-bs-theme="dark"] .salehly-category-page .page-item .page-link {
    border-color: #2b4564;
    background: #15253a !important;
}

[data-bs-theme="dark"] .salehly-category-page .search-form .form-control,
[data-bs-theme="dark"] .salehly-category-page .dataTables_length select {
    color: #edf5ff;
}

[data-bs-theme="dark"] .salehly-category-page .search-form .search-icon {
    color: #9dcdff !important;
    background: #203a58;
}

[data-bs-theme="dark"] .salehly-category-page .card.circle-clip-effect {
    background: #304b6c !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .salehly-category-page .card.circle-clip-effect:hover .category-card,
[data-bs-theme="dark"] .salehly-category-page .card.circle-clip-effect:focus-within .category-card {
    background: linear-gradient(145deg, #16283e 0%, #1a3553 100%) !important;
}

[data-bs-theme="dark"] .salehly-category-page .img-bg {
    border-color: #2d4867 !important;
    background: #1b3049 !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .salehly-category-page .categories-desc,
[data-bs-theme="dark"] .salehly-category-page .card.circle-clip-effect:hover .categories-desc,
[data-bs-theme="dark"] .salehly-category-page .card.circle-clip-effect:focus-within .categories-desc {
    color: #a9bbd0 !important;
}

[data-bs-theme="dark"] .salehly-category-page .card.circle-clip-effect:hover .categories-name,
[data-bs-theme="dark"] .salehly-category-page .card.circle-clip-effect:focus-within .categories-name {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .salehly-category-page .dataTables_empty,
[data-bs-theme="dark"] .salehly-category-page td.dataTables_empty {
    border-color: #365270 !important;
    color: #abc0d8;
    background:
        radial-gradient(circle at 50% 34%, rgba(90, 167, 255, 0.13) 0 23px, transparent 24px),
        linear-gradient(180deg, #14253a, #102033) !important;
}

[data-bs-theme="dark"] .salehly-category-page .dataTables_wrapper > .row:last-of-type {
    border-color: #263c56;
}

[data-bs-theme="dark"] .salehly-category-page .page-item:not(.disabled) .page-link:hover {
    border-color: #4d78a5;
    color: #ffffff;
    background: #203b59 !important;
}

@media (hover: none) {
    .salehly-category-page .card.circle-clip-effect::before {
        opacity: 0;
        animation-play-state: paused;
    }

    .salehly-category-page .card.circle-clip-effect:active::before,
    .salehly-category-page .card.circle-clip-effect:focus-within::before {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .salehly-category-orbit,
    .salehly-category-page .card.circle-clip-effect::before,
    .salehly-category-page.is-ready .custom-card-table tbody tr:not(.salehly-category-empty-row) {
        animation: none !important;
    }

    .salehly-category-page .card.circle-clip-effect,
    .salehly-category-page .category-card,
    .salehly-category-page .img-bg,
    .salehly-category-page .search-form,
    .salehly-category-page .search-form .search-icon,
    .salehly-category-page .page-item .page-link {
        transition: none !important;
    }
}

/* =========================================================
   SALEHLY CATEGORY DIRECTORY — V2 PAGE FILL & NAV CLARITY
   ========================================================= */

body.salehly-list-page-active .salehly-pill-nav .nav-link.active,
body.salehly-list-page-active .salehly-pill-nav .salehly-pill-active,
body.salehly-list-page-active .salehly-pill-nav .active.salehly-pill-active {
    color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(12, 38, 74, 0.2) !important;
}

body.salehly-list-page-active .salehly-pill-nav .salehly-nav-pill {
    background: linear-gradient(135deg, #174696 0%, #326bc9 58%, #4b86e3 100%) !important;
    box-shadow: 0 12px 28px rgba(30, 86, 182, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

body.salehly-list-page-active .salehly-pill-nav .nav-link:not(.active):not(.salehly-pill-active) {
    color: #4f5f75 !important;
}

body.salehly-list-page-active .salehly-pill-nav .nav-link:not(.active):not(.salehly-pill-active):hover {
    color: #174696 !important;
    background: rgba(50, 107, 201, 0.08) !important;
}

.salehly-category-page .custom-card-table tbody {
    grid-auto-flow: row dense !important;
    align-items: stretch !important;
}

.salehly-category-page .dataTables_length select {
    min-width: 82px !important;
}
