.sibmac-no-external-hero main.primary-content{padding-top:96px}.sibmac-archive-header-clearance main#content-1.primary-content{padding-top:0}

/* معرفی آرشیو همهٔ نرم‌افزارها: هم‌ترازی با کانتینر قالب و خوانایی متن */
body:is(.sibmac-archive-header-clearance,.category) .fx-crumb-bar,
body:is(.sibmac-archive-header-clearance,.category) .fx-page .fx-breadcrumb-wrap,
body:is(.sibmac-archive-header-clearance,.category) main#content-1.primary-content h1{
    width:100%;
    max-width:var(--container-max,1320px);
    margin-inline:auto;
    padding-inline:clamp(16px,2vw,24px);
    box-sizing:border-box;
}
body:is(.sibmac-archive-header-clearance,.category) main#content-1.primary-content h1{text-align:center}
/* کلاس دقیق wrapper آرشیو نرم‌افزارها؛ selectorهای قدیمی category-archive-description حذف شدند. */
html body .software-archive-description,
html body .software-archive-description p{
    width:100% !important;
    max-width:1050px !important;
    margin-inline:auto !important;
    box-sizing:border-box !important;
}
html body .software-archive-description{
    padding-inline:clamp(16px,2vw,24px) !important;
    font-weight:400 !important;
    line-height:1.9 !important;
    text-align:center !important;
}
html body .software-archive-description p{
    padding-inline:0 !important;
    font-weight:400 !important;
    line-height:inherit !important;
    text-align:justify !important;
}

/* اسلایدر زیردسته‌های آرشیو نرم‌افزارها — هم‌تراز با اسلایدر مطالب مرتبط صفحهٔ دانلود */
.sibmac-archive-subcategories{
    --sibmac-sub-surface:#f4f6fa;
    --sibmac-sub-surface-hover:#edf1f7;
    --sibmac-sub-border:rgba(15,23,42,.06);
    --sibmac-sub-shadow:0 2px 10px rgba(15,23,42,.03);
    --sibmac-sub-shadow-hover:0 12px 26px rgba(15,23,42,.11);
    --sibmac-sub-brand:var(--color-brand,#1a66d2);
    --sibmac-sub-text:var(--color-text,#0f172a);
    --sibmac-sub-icon-bg:rgba(26,102,210,.09);
    --sibmac-sub-icon-bg-hover:rgba(26,102,210,.15);
    --sibmac-sub-control-hover:#e5e8f0;
    --sibmac-sub-media-shadow:drop-shadow(0 5px 10px rgba(15,23,42,.11));
    --sibmac-archive-card-height:132px;
    display:flex;
    flex-direction:column;
    gap:12px;
    width:100%;
    max-width:var(--container-max,1320px);
    margin:24px auto 26px;
    padding-inline:clamp(16px,2vw,24px);
    box-sizing:border-box;
    direction:rtl;
}
html.dark_mod .sibmac-archive-subcategories,
body.dark_mod .sibmac-archive-subcategories,
html[data-theme="dark"] .sibmac-archive-subcategories,
html[data-color-mode="dark"] .sibmac-archive-subcategories,
body.dark-mode .sibmac-archive-subcategories,
body.dark .sibmac-archive-subcategories,
html.dark-mode .sibmac-archive-subcategories{
    --sibmac-sub-surface:#181c23;
    --sibmac-sub-surface-hover:#242b36;
    --sibmac-sub-border:rgba(255,255,255,.08);
    --sibmac-sub-shadow:0 2px 12px rgba(0,0,0,.28);
    --sibmac-sub-shadow-hover:0 14px 28px rgba(0,0,0,.42);
    --sibmac-sub-brand:#5ba4ff;
    --sibmac-sub-text:#f1f5f9;
    --sibmac-sub-icon-bg:rgba(91,164,255,.14);
    --sibmac-sub-icon-bg-hover:rgba(91,164,255,.22);
    --sibmac-sub-control-hover:#252c38;
    --sibmac-sub-media-shadow:drop-shadow(0 6px 12px rgba(0,0,0,.35));
}
.sibmac-archive-subcategories__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
    min-width:0;
}
.sibmac-archive-subcategories__heading{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin:0;
    padding:5px 12px;
    border-radius:999px;
    background:var(--sibmac-sub-icon-bg);
    color:var(--sibmac-sub-brand);
    font-size:13px;
    font-weight:700;
    line-height:1.4;
    writing-mode:horizontal-tb;
    box-sizing:border-box;
}
.sibmac-archive-subcategories__controls{
    display:inline-flex;
    align-items:center;
    gap:8px;
    flex:0 0 auto;
}
.sibmac-archive-subcategories__controls[hidden]{display:none!important}
.sibmac-archive-subcategories__viewport{position:relative;width:100%;min-width:0}
.sibmac-archive-subcategories__track{
    --sibmac-archive-card-base-width:146px;
    --sibmac-archive-card-width:146px;
    display:flex;
    width:100%;
    align-items:stretch;
    min-width:0;
    height:auto;
    gap:14px;
    margin:-8px 0 -24px;
    padding:12px 4px 36px;
    box-sizing:border-box;
    list-style:none;
    overflow-x:auto;
    overflow-y:hidden;
    direction:rtl;
    scroll-snap-type:x proximity;
    overscroll-behavior-inline:contain;
    cursor:grab;
    scrollbar-width:none;
    -ms-overflow-style:none;
    -webkit-overflow-scrolling:touch;
}
.sibmac-archive-subcategories__track::-webkit-scrollbar{display:none;width:0;height:0}
.sibmac-archive-subcategories__track.is-dragging,.sibmac-archive-subcategories__track.is-dragging *{cursor:grabbing!important;user-select:none}
/* Base floating slider arrows (shared with homepage .sibmac-home-section-slider__arrow). */
.sibmac-archive-subcategories__arrow{
    position:absolute;
    z-index:2;
    top:50%;
    display:grid;
    place-items:center;
    width:38px;
    height:38px;
    min-width:0;
    min-height:0;
    margin:0;
    padding:0;
    box-sizing:border-box;
    border:1px solid var(--color-border,#e5e7eb);
    border-radius:50%;
    background:var(--color-surface,#fff);
    color:var(--color-text,#111)!important;
    font:inherit;
    line-height:1;
    appearance:none;
    -webkit-appearance:none;
    box-shadow:0 2px 8px rgba(17,24,39,.12);
    cursor:pointer;
    transform:translateY(-50%);
    transition:color .15s ease,opacity .15s ease,background-color .15s ease,border-color .15s ease;
}
.sibmac-archive-subcategories__arrow--previous{inset-inline-start:8px}
.sibmac-archive-subcategories__arrow--next{inset-inline-end:8px}
.sibmac-archive-subcategories__arrow::before,
.sibmac-archive-subcategories__arrow::after{content:none!important;display:none!important}
.sibmac-archive-subcategories__arrow[hidden]{display:none!important}
.sibmac-archive-subcategories__arrow:disabled{opacity:.3!important;cursor:default;box-shadow:none}
.sibmac-archive-subcategories__arrow:focus-visible{outline:2px solid #9ca3af!important;outline-offset:2px}
@media(hover:hover) and (pointer:fine){
    .sibmac-archive-subcategories__arrow:not(:disabled):hover:not(:focus-visible){
        border-color:var(--color-border,#e5e7eb)!important;
        background:var(--color-surface,#fff)!important;
        box-shadow:0 2px 8px rgba(17,24,39,.12)!important;
        outline:0!important;
        color:var(--color-brand,#0b63ce)!important;
    }
}
/* Archive subcategory header bar arrows stay inline next to the heading, matching single-page related controls. */
.sibmac-archive-subcategories__controls .sibmac-archive-subcategories__arrow{
    position:static;
    top:auto;
    inset:auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-color:var(--sibmac-sub-border);
    border-radius:999px;
    background:var(--sibmac-sub-surface)!important;
    color:var(--sibmac-sub-text)!important;
    box-shadow:none!important;
    transform:none;
}
.sibmac-archive-subcategories__controls .sibmac-archive-subcategories__arrow:disabled{opacity:.35!important}
.sibmac-archive-subcategories__controls .sibmac-archive-subcategories__arrow:focus-visible{outline:2px solid var(--sibmac-sub-brand)!important;outline-offset:2px}
@media(hover:hover) and (pointer:fine){
    .sibmac-archive-subcategories__controls .sibmac-archive-subcategories__arrow:not(:disabled):hover:not(:focus-visible){
        border-color:color-mix(in srgb,var(--sibmac-sub-brand) 32%,var(--sibmac-sub-border))!important;
        background:var(--sibmac-sub-control-hover)!important;
        box-shadow:none!important;
        outline:0!important;
        color:var(--sibmac-sub-brand)!important;
    }
}
.sibmac-archive-subcategories__entry{
    flex:0 0 var(--sibmac-archive-card-width,146px);
    width:var(--sibmac-archive-card-width,146px);
    height:var(--sibmac-archive-card-height,132px);
    scroll-snap-align:start;
    list-style:none;
}
.sibmac-archive-subcategories__card{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
    width:100%;
    height:100%;
    min-height:0;
    padding:14px 12px 12px;
    box-sizing:border-box;
    overflow:hidden;
    border:1px solid var(--sibmac-sub-border);
    border-radius:20px;
    background:var(--sibmac-sub-surface);
    box-shadow:var(--sibmac-sub-shadow);
    color:var(--sibmac-sub-text);
    text-decoration:none;
    scroll-snap-align:start;
    transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background-color .22s ease;
}
.sibmac-archive-subcategories__card::after{display:none}
.sibmac-archive-subcategories__media{
    display:flex;
    flex:0 0 60px;
    align-items:center;
    justify-content:center;
    width:60px;
    height:60px;
    overflow:visible;
    border-radius:0;
    background:transparent;
    color:var(--sibmac-sub-brand);
    transition:transform .22s ease;
}
.sibmac-archive-subcategories__media .sibmac-icon{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;max-width:100%;overflow:visible;flex:none}
.sibmac-archive-subcategories__media img{display:block;width:60px;height:60px;max-width:100%;max-height:100%;object-fit:contain;border-radius:0;filter:var(--sibmac-sub-media-shadow);transition:transform .22s ease}
.sibmac-archive-subcategories__media svg{display:block;width:54px;height:54px;max-width:60px;max-height:60px;filter:var(--sibmac-sub-media-shadow);transition:transform .22s ease}
.sibmac-archive-subcategories__media i{font-size:38px;line-height:1;transition:transform .22s ease}
.sibmac-archive-subcategories__name{
    display:-webkit-box;
    -webkit-line-clamp:2;
    line-clamp:2;
    -webkit-box-orient:vertical;
    max-width:100%;
    overflow:hidden;
    color:inherit;
    font-size:13.5px;
    font-weight:700;
    line-height:1.4;
    text-align:center;
    overflow-wrap:anywhere;
    transition:color .18s ease;
}
@media(hover:hover) and (pointer:fine){
    .sibmac-archive-subcategories__card:hover{
        transform:translateY(-3px);
        background:var(--sibmac-sub-surface-hover);
        border-color:color-mix(in srgb,var(--sibmac-sub-brand) 34%,var(--sibmac-sub-border));
        box-shadow:var(--sibmac-sub-shadow-hover);
    }
    .sibmac-archive-subcategories__card:hover .sibmac-archive-subcategories__media{
        transform:scale(1.06);
    }
    .sibmac-archive-subcategories__card:hover .sibmac-archive-subcategories__name{
        color:var(--sibmac-sub-brand);
    }
}
.sibmac-archive-subcategories__card:focus-visible{outline:2px solid var(--sibmac-sub-brand);outline-offset:3px}
@media(min-width:701px){
    .sibmac-archive-subcategories{--sibmac-archive-card-height:132px}
    .sibmac-archive-subcategories__track{--sibmac-archive-card-base-width:146px;--sibmac-archive-card-width:146px}
}
@media(max-width:700px){
    .sibmac-archive-subcategories{--sibmac-archive-card-height:118px;gap:10px;margin-block:18px 22px}
    .sibmac-archive-subcategories__heading{font-size:12px;padding:4px 10px}
    .sibmac-archive-subcategories__arrow{width:32px;height:32px}
    .sibmac-archive-subcategories__arrow--previous{inset-inline-start:4px}
    .sibmac-archive-subcategories__arrow--next{inset-inline-end:4px}
    .sibmac-archive-subcategories__controls .sibmac-archive-subcategories__arrow{width:34px;height:34px;inset:auto}
    .sibmac-archive-subcategories__arrow svg{width:16px;height:16px}
    .sibmac-archive-subcategories__track{--sibmac-archive-card-base-width:122px;--sibmac-archive-card-width:122px;gap:12px;margin:-6px 0 -22px;padding:10px 2px 32px}
    .sibmac-archive-subcategories__entry{height:var(--sibmac-archive-card-height)}
    .sibmac-archive-subcategories__card{height:100%;padding:12px 10px 10px;gap:7px;border-radius:18px}
    .sibmac-archive-subcategories__media{width:50px;height:50px;flex-basis:50px}
    .sibmac-archive-subcategories__media img{width:50px;height:50px}
    .sibmac-archive-subcategories__media svg{width:44px;height:44px;max-width:50px;max-height:50px}
    .sibmac-archive-subcategories__media i{font-size:32px}
    .sibmac-archive-subcategories__name{font-size:12.5px}
}
@media(prefers-reduced-motion:reduce){
    .sibmac-archive-subcategories__card,.sibmac-archive-subcategories__media,.sibmac-archive-subcategories__media img,.sibmac-archive-subcategories__media svg,.sibmac-archive-subcategories__media i,.sibmac-archive-subcategories__arrow{transition:none}
}

.primary-content .app-cards-grid .app-card-modern{
    background:var(--color-surface,#fff);
    background:color-mix(in srgb,var(--color-surface,#fff) 92%,transparent);
    box-shadow:0 3px 12px rgba(0,0,0,.06),inset 0 0 0 1px var(--color-border,#dedee1);
}
.primary-content .app-card-modern .card-badge{--badge-fold-color:#166534;position:absolute;inset-inline-start:auto;inset-inline-end:auto;top:16px;right:auto;left:-5px;z-index:2;box-sizing:border-box;height:22px;padding:3px 9px;border-radius:5px 0 0 0;font-size:11px;font-weight:700;line-height:16px;white-space:nowrap;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.primary-content .app-card-modern .card-badge.badge-updated{--badge-fold-color:#9a3412}
.primary-content .app-card-modern .card-badge.badge-hot{--badge-fold-color:#991b1b}
.primary-content .app-card-modern .card-badge::after{content:"";position:absolute;top:100%;left:0;width:5px;height:5px;border-radius:0 0 0 5px;background:var(--badge-fold-color);pointer-events:none}
.primary-content .app-card-modern:has(>.card-badge:not([hidden])){overflow:visible}
.primary-content .app-card-modern .card-badge:not([hidden]){display:inline-flex;align-items:center;justify-content:center}
.primary-content .app-card-modern .card-title{color:var(--color-text,#161616);font-weight:700}
.primary-content .app-card-modern .card-desc,
.primary-content .app-card-modern .card-meta,
.primary-content .app-card-modern .card-meta dd{color:var(--color-text-muted,#6b7280)}
.primary-content .app-card-modern .card-meta{font-variant-numeric:tabular-nums;line-height:1.7}
.primary-content .app-card-modern .card-meta>div+div{border-inline-start-color:var(--color-border,#dedee1)}
.primary-content .app-card-modern[data-card-url]:focus-visible{outline:2px solid var(--color-brand,#2587e8);outline-offset:3px}
@media(hover:hover){.primary-content .app-cards-grid .app-card-modern:hover{box-shadow:0 5px 16px rgba(0,0,0,.08),inset 0 0 0 1px var(--color-brand,#2587e8)}}
.primary-content .sibmac-section{margin-block:0 32px}
.primary-content .sibmac-section>.sibmac-section__head{margin-block:20px 16px}
.primary-content .sibmac-theme-controls{margin-block-end:16px}
.software-category-filter .software-filter-panel{inset-inline-start:0;inset-inline-end:auto}
@media(max-width:700px){
    .primary-content .sibmac-section{margin-block-end:24px}
    .primary-content .sibmac-section>.sibmac-section__head{margin-block:16px 12px}
}
@media(max-width:700px){
    .primary-content .app-cards-grid .app-card-modern{grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto minmax(42px,auto);column-gap:12px;row-gap:6px;padding:12px 14px}
    .primary-content .app-card-modern .card-thumb{grid-column:1;grid-row:1;width:56px;height:56px;padding:0}
    .primary-content .app-card-modern .card-content{grid-column:2;grid-row:1;padding:0;text-align:right;align-self:center}
    .primary-content .app-card-modern .card-title{font-size:16px;line-height:1.35;margin-bottom:4px}
    .primary-content .app-card-modern .card-desc{font-size:11px;line-height:1.45}
    .primary-content .app-card-modern .card-meta{grid-column:1/-1;grid-row:2;padding-inline-end:100px;gap:5px 0;font-size:11px;line-height:1.5}
    .primary-content .app-card-modern .card-actions{grid-column:2;grid-row:2;justify-content:flex-end}
}

/* Home mobile: compact, cardless rows in 3-item RTL groups. */
@media(max-width:700px){
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-cards-grid{
        display:grid!important;
        grid-auto-flow:column;
        grid-template-columns:none!important;
        grid-template-rows:repeat(3,auto)!important;
        grid-auto-columns:90%;
        align-items:stretch;
        column-gap:12px;
        row-gap:0;
        width:100%;
        max-width:100%;
        min-width:0;
        margin-inline:0;
        padding:6px 2px 14px;
        box-sizing:border-box;
        direction:rtl;
        overflow-x:auto;
        overflow-y:hidden;
        scroll-snap-type:x mandatory;
        scroll-padding-inline:2px;
        overscroll-behavior-inline:contain;
        scrollbar-width:none;
        -ms-overflow-style:none;
        -webkit-overflow-scrolling:touch;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-cards-grid::-webkit-scrollbar{display:none;width:0;height:0}
    /*
     * Template DOM: article > .card-main-link > .card-header (thumb/content),
     * followed by article > .card-info-bar > .card-actions > .card-action.
     * Lay out those direct children; ordering the nested thumb/button cannot
     * move them in the outer article's flex row.
     */
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-cards-grid>.app-card-modern{
        display:flex!important;
        flex-direction:row!important;
        direction:rtl;
        align-items:center!important;
        gap:12px!important;
        width:100%;
        max-width:100%;
        min-width:0;
        min-height:84px!important;
        height:auto!important;
        grid-column:auto;
        grid-row:auto;
        margin:0!important;
        padding-block:12px!important;
        padding-inline-start:10px!important;
        padding-inline-end:0!important;
        box-sizing:border-box;
        scroll-snap-align:none;
        background:transparent!important;
        border:0!important;
        border-radius:0!important;
        box-shadow:none!important;
    }
    /* One snap point per three-card column, rather than one for every row. */
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-cards-grid>.app-card-modern:nth-child(3n+1){
        scroll-snap-align:start;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-cards-grid>.app-card-modern:not(:nth-child(3n)):not(:last-child){
        border-block-end:0!important;
        background:linear-gradient(
            color-mix(in srgb,var(--color-border,#dedee1) 94%,var(--color-text,#161616) 6%),
            color-mix(in srgb,var(--color-border,#dedee1) 94%,var(--color-text,#161616) 6%)
        ) left 10px bottom / calc(100% - 88px) 1px no-repeat!important;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-main-link{
        display:flex!important;
        flex:1 1 0!important;
        flex-direction:row!important;
        order:1!important;
        width:auto!important;
        max-width:none!important;
        min-width:0!important;
        margin:0!important;
        padding:0!important;
        text-decoration:none;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-main-link>.card-header{
        display:flex!important;
        flex:1 1 auto!important;
        flex-direction:row!important;
        direction:rtl;
        align-items:center!important;
        gap:12px!important;
        width:100%;
        min-width:0;
        margin:0!important;
        padding:0!important;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-main-link .card-thumb{
        order:1;
        display:flex;
        flex:0 0 56px!important;
        align-items:center;
        justify-content:center;
        width:56px;
        height:56px;
        padding:0;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-main-link .card-content{
        display:flex!important;
        flex:1 1 0!important;
        flex-direction:column;
        order:2;
        min-width:0;
        width:auto!important;
        margin:0!important;
        padding:0!important;
        text-align:right;
        align-self:center;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-info-bar{
        display:flex!important;
        flex:0 0 88px!important;
        flex-direction:row!important;
        order:2!important;
        align-items:center!important;
        justify-content:center!important;
        width:88px!important;
        min-width:88px!important;
        max-width:88px!important;
        margin:0!important;
        padding:0!important;
        position:static!important;
        background:transparent!important;
        border:0!important;
        box-shadow:none!important;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-info-bar>.card-meta-link{
        display:none!important;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-info-bar>.card-actions{
        display:flex!important;
        flex:1 1 100%!important;
        flex-direction:row!important;
        align-items:center!important;
        justify-content:center!important;
        width:100%!important;
        min-width:0!important;
        margin:0!important;
        padding:0!important;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action{
        --sibmac-download-pill-bg:#edf4ff;
        --sibmac-download-pill-ink:var(--sibmac-more-bg,#2458d3);
        position:static!important;
        display:inline-flex!important;
        flex:0 0 68px!important;
        align-self:center!important;
        align-items:center!important;
        justify-content:center!important;
        gap:5px!important;
        width:68px!important;
        min-width:68px!important;
        max-width:68px!important;
        height:44px!important;
        min-height:44px!important;
        max-height:44px!important;
        box-sizing:border-box;
        margin:0!important;
        padding:6px 4px!important;
        border-color:transparent!important;
        border-radius:999px!important;
        -webkit-appearance:none!important;
        appearance:none!important;
        -webkit-clip-path:none!important;
        clip-path:none!important;
        background:
            radial-gradient(circle closest-side,var(--sibmac-download-pill-bg) 99%,transparent 100%) left center / 32px 32px no-repeat,
            linear-gradient(var(--sibmac-download-pill-bg),var(--sibmac-download-pill-bg)) center / calc(100% - 32px) 32px no-repeat,
            radial-gradient(circle closest-side,var(--sibmac-download-pill-bg) 99%,transparent 100%) right center / 32px 32px no-repeat!important;
        box-shadow:none!important;
        color:var(--sibmac-download-pill-ink)!important;
        -webkit-text-fill-color:var(--sibmac-download-pill-ink)!important;
        font-size:12px!important;
        line-height:1.2!important;
        white-space:nowrap;
    }
    /* Follow the site's explicit dark-mode switch and Apple dark surface colors. */
    html.dark_mod .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action,
    html[data-theme="dark"] .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action,
    html[data-color-mode="dark"] .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action,
    body.dark-mode .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action,
    body.dark .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action,
    .dark-mode .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action{
        --sibmac-download-pill-bg:#1c1c1e;
        --sibmac-download-pill-ink:var(--color-brand,#80b2ff);
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-badge{
        display:none!important;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-title{
        display:-webkit-box;
        -webkit-box-orient:vertical;
        -webkit-line-clamp:2;
        overflow:hidden;
    }
    .sibmac-home-sections .sibmac-section__theme-cards .app-card-modern .card-meta-link,
    .sibmac-home-sections .sibmac-section__theme-cards .app-card-modern .card-meta{display:none!important}

}


/* Desktop home: keep the theme grid, but render each app as a compact, cardless row. */
@media(min-width:701px){
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-cards-grid>.app-card-modern{
        display:flex!important;
        flex-direction:row!important;
        direction:rtl;
        align-items:center!important;
        gap:12px!important;
        width:100%;
        max-width:100%;
        min-width:0;
        min-height:84px!important;
        height:auto!important;
        grid-column:auto;
        grid-row:auto;
        margin:0!important;
        padding-block:12px!important;
        padding-inline-start:10px!important;
        padding-inline-end:0!important;
        box-sizing:border-box;
        background:transparent!important;
        border:0!important;
        border-radius:0!important;
        box-shadow:none!important;
    }
    /* Keep grid columns, and draw the separator only below the text/action span. */
    /* No separator under any card in the final visual row of the 3-column grid. */
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-cards-grid:has(>.app-card-modern:nth-child(3n):last-child)>.app-card-modern:not(:nth-last-child(-n+3)),
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-cards-grid:has(>.app-card-modern:nth-child(3n+1):last-child)>.app-card-modern:not(:last-child),
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-cards-grid:has(>.app-card-modern:nth-child(3n+2):last-child)>.app-card-modern:not(:nth-last-child(-n+2)){
        border-block-end:0!important;
        background:linear-gradient(
            color-mix(in srgb,var(--color-border,#dedee1) 94%,var(--color-text,#161616) 6%),
            color-mix(in srgb,var(--color-border,#dedee1) 94%,var(--color-text,#161616) 6%)
        ) left 10px bottom / calc(100% - 88px) 1px no-repeat!important;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-main-link{
        display:flex!important;
        flex:1 1 0!important;
        flex-direction:row!important;
        order:1!important;
        width:auto!important;
        max-width:none!important;
        min-width:0!important;
        margin:0!important;
        padding:0!important;
        text-decoration:none;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-main-link>.card-header{
        display:flex!important;
        flex:1 1 auto!important;
        flex-direction:row!important;
        direction:rtl;
        align-items:center!important;
        gap:12px!important;
        width:100%;
        min-width:0;
        margin:0!important;
        padding:0!important;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-main-link .card-thumb{
        order:1;
        display:flex;
        flex:0 0 56px!important;
        align-items:center;
        justify-content:center;
        width:56px;
        height:56px;
        padding:0;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-main-link .card-content{
        display:flex!important;
        flex:1 1 0!important;
        flex-direction:column;
        order:2;
        min-width:0;
        width:auto!important;
        margin:0!important;
        padding:0!important;
        text-align:right;
        align-self:center;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-title{
        display:-webkit-box;
        -webkit-box-orient:vertical;
        -webkit-line-clamp:2;
        overflow:hidden;
        font-size:16px!important;
        line-height:1.35!important;
        margin-bottom:4px!important;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-desc{
        display:-webkit-box;
        -webkit-box-orient:vertical;
        -webkit-line-clamp:2;
        overflow:hidden;
        font-size:13px!important;
        line-height:1.45!important;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-info-bar{
        display:flex!important;
        flex:0 0 88px!important;
        flex-direction:row!important;
        order:2!important;
        align-items:center!important;
        justify-content:center!important;
        width:88px!important;
        min-width:88px!important;
        max-width:88px!important;
        margin:0!important;
        padding:0!important;
        position:static!important;
        background:transparent!important;
        border:0!important;
        box-shadow:none!important;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-info-bar>.card-meta-link{
        display:none!important;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-info-bar>.card-actions{
        display:flex!important;
        flex:1 1 100%!important;
        flex-direction:row!important;
        align-items:center!important;
        justify-content:center!important;
        width:100%!important;
        min-width:0!important;
        margin:0!important;
        padding:0!important;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action{
        --sibmac-download-pill-bg:#edf4ff;
        --sibmac-download-pill-ink:var(--sibmac-more-bg,#2458d3);
        position:static!important;
        display:inline-flex!important;
        flex:0 0 68px!important;
        align-self:center!important;
        align-items:center!important;
        justify-content:center!important;
        gap:5px!important;
        width:68px!important;
        min-width:68px!important;
        max-width:68px!important;
        height:44px!important;
        min-height:44px!important;
        max-height:44px!important;
        box-sizing:border-box;
        margin:0!important;
        padding:6px 4px!important;
        border-color:transparent!important;
        border-radius:999px!important;
        -webkit-appearance:none!important;
        appearance:none!important;
        -webkit-clip-path:none!important;
        clip-path:none!important;
        background:
            radial-gradient(circle closest-side,var(--sibmac-download-pill-bg) 99%,transparent 100%) left center / 32px 32px no-repeat,
            linear-gradient(var(--sibmac-download-pill-bg),var(--sibmac-download-pill-bg)) center / calc(100% - 32px) 32px no-repeat,
            radial-gradient(circle closest-side,var(--sibmac-download-pill-bg) 99%,transparent 100%) right center / 32px 32px no-repeat!important;
        box-shadow:none!important;
        color:var(--sibmac-download-pill-ink)!important;
        -webkit-text-fill-color:var(--sibmac-download-pill-ink)!important;
        font-size:12px!important;
        line-height:1.2!important;
        white-space:nowrap;
    }
    html.dark_mod .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action,
    html[data-theme="dark"] .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action,
    html[data-color-mode="dark"] .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action,
    body.dark-mode .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action,
    body.dark .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action,
    .dark-mode .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action{
        --sibmac-download-pill-bg:#1c1c1e;
        --sibmac-download-pill-ink:var(--color-brand,#80b2ff);
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern>.card-badge{
        display:none!important;
    }
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-meta-link,
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-meta{
        display:none!important;
    }
}

/* Home desktop: one horizontal slide is a complete 3-column by 3-row grid. */
@media(min-width:701px){
    .sibmac-home-sections .sibmac-section__theme-cards--cards.sibmac-home-section-slider__container{
        position:relative;
        min-width:0;
    }
    .sibmac-home-sections .sibmac-section--home-grid-slider .sibmac-home-section-slider__track{
        display:grid!important;
        grid-auto-flow:row!important;
        grid-template-rows:repeat(3,minmax(0,auto))!important;
        /* Keep each slide column at its intended third-page width. minmax(0, ...) lets
           all six tracks shrink into one viewport instead of creating horizontal overflow. */
        grid-template-columns:repeat(var(--sibmac-home-slider-total-columns),var(--sibmac-home-slider-column-width))!important;
        gap:var(--sibmac-home-slider-row-gap,0px) var(--sibmac-home-slider-column-gap,0px)!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        box-sizing:border-box;
        overflow-x:auto!important;
        overflow-y:hidden!important;
        scroll-snap-type:x mandatory;
        scroll-padding-inline:0;
        overscroll-behavior-inline:contain;
        scrollbar-width:none;
        -ms-overflow-style:none;
        -webkit-overflow-scrolling:touch;
    }
    .sibmac-home-sections .sibmac-section--home-grid-slider .sibmac-home-section-slider__track::-webkit-scrollbar{display:none;width:0;height:0}
    .sibmac-home-sections .sibmac-section--home-grid-slider:not(:hover):not(:focus-within) .sibmac-home-section-slider__arrow{
        opacity:0!important;
        pointer-events:none;
    }
    .sibmac-home-sections .sibmac-section--home-grid-slider:is(:hover,:focus-within) .sibmac-home-section-slider__arrow{
        opacity:1!important;
        pointer-events:auto;
    }
    .sibmac-home-sections .sibmac-section--home-grid-slider:is(:hover,:focus-within) .sibmac-home-section-slider__arrow:disabled{opacity:.3!important}
}
@media(prefers-reduced-motion:reduce){
    .sibmac-home-sections .sibmac-section--home-grid-slider .sibmac-home-section-slider__track{scroll-behavior:auto}
    .sibmac-home-sections .sibmac-section--home-grid-slider .sibmac-home-section-slider__arrow{transition:none}
}

/* Keep desktop home rows fixed; the theme's card hover may apply a lift transform. */
@media(min-width:701px){
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-cards-grid>.app-card-modern,
    .sibmac-home-sections .sibmac-section__theme-cards--cards .app-cards-grid>.app-card-modern:hover{
        transform:none!important;
        translate:none!important;
    }
}

.sibmac-section--theme>.sibmac-section__head{justify-content:flex-end}
.sibmac-theme-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 18px;margin:0 0 14px}
.sibmac-theme-controls>.sibmac-section__head{flex:0 0 auto;order:2;margin:0}
.sibmac-theme-sort{display:flex;align-items:center;flex-wrap:wrap;gap:12px;order:1;margin:0;color:var(--color-text-muted,#6b7280);font-size:14px;font-weight:600}
@media(max-width:700px){.sibmac-theme-controls{flex-direction:column;align-items:stretch;gap:10px}.sibmac-theme-controls>.sibmac-section__head{order:1;justify-content:flex-start;padding-inline-start:4px}.sibmac-theme-sort{order:2}}
.sibmac-theme-sort__options{display:flex;flex-wrap:wrap;gap:2px;max-width:100%;padding:4px;border-radius:24px;background:var(--color-border,#e5e7eb)}
.sibmac-theme-sort__link{padding:8px 14px;border-radius:999px;color:inherit;line-height:1.5;text-decoration:none;white-space:nowrap}
.sibmac-theme-sort__link.active{color:var(--color-brand,#2587e8);background:var(--color-surface,#fff);box-shadow:0 5px 14px rgba(31,41,55,.08)}
.sibmac-theme-sort__link:focus-visible{outline:2px solid var(--color-brand,#2587e8);outline-offset:2px}
.sorting-bar .sorting-options{box-sizing:border-box;border:0;background:transparent;box-shadow:none;padding:0}
.sorting-bar .sorting-options .sort-item{position:relative;color:var(--color-text-muted,#6b7280)}
.sorting-bar .sorting-options .sort-item.active{color:var(--color-brand,#2587e8);background:transparent;box-shadow:none}
.sorting-bar .sorting-options .sort-item.active::after{content:"";position:absolute;inset-inline:12px;inset-block-end:0;height:4px;border-radius:999px;background:var(--color-brand,#2587e8);box-shadow:0 2px 6px color-mix(in srgb,var(--color-brand,#2587e8) 32%,transparent)}
.sorting-bar .sorting-options .sort-item:not(.active):hover{color:var(--color-brand,#2587e8)}
.sorting-bar .sorting-options .sort-item:focus-visible{outline:2px solid var(--color-brand,#2587e8);outline-offset:2px}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.sorting-bar .sorting-options{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}}
.sibmac-home-categories{display:flex;flex-wrap:nowrap;align-items:center;gap:14px;margin-block:16px 26px;min-width:0}
.sibmac-section--banner-slider + .sibmac-home-categories{margin-block:0 26px}
.sibmac-home-categories h2{flex:none;margin:0;font-size:14px;font-weight:600;white-space:nowrap;color:var(--color-text-muted,#6b7280)}
.sibmac-home-categories__list{display:flex;flex:1;min-width:0;flex-wrap:nowrap;gap:10px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scrollbar-color:transparent transparent;-ms-overflow-style:none;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;padding:4px 2px}
.sibmac-home-categories__list::-webkit-scrollbar{display:none;width:0;height:0}
.sibmac-home-categories__list::-webkit-scrollbar-track,
.sibmac-home-categories__list::-webkit-scrollbar-thumb{background:transparent;border:0}
/* ── چیپ کپسولی (حالت افقی) ── */
.sibmac-home-categories:not(.sibmac-home-categories--slider) .sibmac-home-categories__list{gap:8px;padding:4px 2px 6px;padding-inline-end:30px;-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 44px),transparent 100%);mask-image:linear-gradient(to left,#000 calc(100% - 44px),transparent 100%)}
[dir="ltr"] .sibmac-home-categories:not(.sibmac-home-categories--slider) .sibmac-home-categories__list{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 44px),transparent 100%);mask-image:linear-gradient(to right,#000 calc(100% - 44px),transparent 100%)}
.sibmac-home-categories:not(.sibmac-home-categories--slider) .sibmac-home-categories__list a{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:7px 20px;border:1px solid transparent;border-radius:999px;background:var(--sibmac-chip-bg,#f2f2f2);color:var(--sibmac-chip-color,#111);text-decoration:none;font-size:13.5px;font-weight:600;line-height:1.5;white-space:nowrap;box-sizing:border-box;scroll-snap-align:start;-webkit-tap-highlight-color:transparent;transition:background-color .16s ease,color .16s ease,border-color .16s ease}
@media(min-width:701px){
    .sibmac-home-categories:not(.sibmac-home-categories--slider) .sibmac-home-categories__list a{min-height:38px;padding:7px 20px}
}
.sibmac-home-categories:not(.sibmac-home-categories--slider) .sibmac-home-categories__list a:is(:hover,:focus-visible){background:var(--sibmac-chip-hover-bg,#e4e4e4);color:var(--sibmac-chip-hover-color,#111)}
.sibmac-home-categories:not(.sibmac-home-categories--slider) .sibmac-home-categories__list a.active,
.sibmac-home-categories:not(.sibmac-home-categories--slider) .sibmac-home-categories__list a.active:is(:hover,:focus-visible){background:var(--sibmac-chip-active-bg,#111);color:var(--sibmac-chip-active-color,#fff);border-color:transparent}
.sibmac-home-categories:not(.sibmac-home-categories--slider) .sibmac-home-categories__list a:focus-visible{outline:2px solid var(--sibmac-chip-active-bg,#111);outline-offset:2px}
.sibmac-home-categories__list .sibmac-icon{width:18px;height:18px;flex:none;justify-content:center}
.sibmac-home-categories__list svg,.sibmac-home-categories__list img{display:block;width:18px;height:18px;object-fit:contain}
.sibmac-home-categories__list a:focus-visible{outline-offset:-2px}
.sibmac-managed-home .sibmac-section__theme-cards--slider{min-width:0}
.sibmac-home-categories{width:100%;max-width:100%;box-sizing:border-box;direction:rtl;grid-column:1/-1}

/* ── نوار دسته‌بندی در حالت اسلایدر ── */
.sibmac-home-categories--slider{align-items:flex-start;flex-wrap:wrap;gap:10px 14px}
.sibmac-home-categories--slider .sibmac-home-categories__list{flex:1 1 100%;scroll-snap-type:x proximity;padding:4px 2px 10px}
.sibmac-home-categories--slider .sibmac-home-categories__list a{scroll-snap-align:start;flex:0 0 140px;width:140px;aspect-ratio:1;min-height:0;padding:16px 12px;flex-direction:column;gap:14px;border:1px solid var(--color-border,#e5e7eb);border-radius:24px;background:var(--color-surface,#fff);box-shadow:var(--card-shadow,0 2px 10px rgba(0,0,0,.06));white-space:normal;text-align:center;font-weight:600}
.sibmac-home-categories--slider .sibmac-home-categories__list a:hover{border-color:var(--color-brand,#2587e8);color:var(--color-brand,#2587e8)}
.sibmac-home-categories--slider .sibmac-home-categories__list .sibmac-icon{width:32px;height:32px;color:var(--color-brand,#2587e8)}
.sibmac-home-categories--slider .sibmac-home-categories__list svg,.sibmac-home-categories--slider .sibmac-home-categories__list img{width:32px;height:32px}
.sibmac-home-categories--slider .sibmac-home-categories__list a>span:last-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.6}
@media(max-width:700px){.sibmac-home-categories--slider .sibmac-home-categories__list a{flex-basis:112px;width:112px;min-height:0;padding:12px;border-radius:20px;font-size:13px;gap:10px}}
.sibmac-home-categories__dots{flex:1 1 100%;margin:0}
.sibmac-home-categories--slider .sibmac-section__dot::before{background:var(--color-text-muted,#6b7280)}
.sibmac-home-categories--slider .sibmac-section__dot[aria-current="true"]::before{background:var(--color-brand,#2587e8)}
@media(max-width:700px){.sibmac-home-categories{gap:8px}.sibmac-home-categories h2{font-size:13px}.sibmac-home-categories:not(.sibmac-home-categories--slider) .sibmac-home-categories__list a{min-height:36px;padding:6px 16px;font-size:13px}.sibmac-home-categories:not(.sibmac-home-categories--slider) .sibmac-home-categories__list .sibmac-icon,.sibmac-home-categories:not(.sibmac-home-categories--slider) .sibmac-home-categories__list svg,.sibmac-home-categories:not(.sibmac-home-categories--slider) .sibmac-home-categories__list img{width:15px;height:15px}}

/* Slider title remains smaller than section titles. */
.sibmac-home-categories--slider > h2{font-size:20px;white-space:normal;max-width:100%;overflow-wrap:anywhere}
@media(max-width:600px){.sibmac-home-categories--slider > h2{font-size:18px}}

/* Consistent, balanced spacing between consecutive content sections on the homepage. */
.primary-content .sibmac-home-sections > .sibmac-section:not(.sibmac-section--banner):not(.sibmac-section--banner-grid):has(+ .sibmac-section:not(.sibmac-section--banner):not(.sibmac-section--banner-grid)){margin-block-end:36px}
@media(max-width:700px){
    .primary-content .sibmac-home-sections > .sibmac-section:not(.sibmac-section--banner):not(.sibmac-section--banner-grid):has(+ .sibmac-section:not(.sibmac-section--banner):not(.sibmac-section--banner-grid)){margin-block-end:36px}
}

/* Space after the category slider only when a content section follows. */
.primary-content .sibmac-home-sections > .sibmac-home-categories--slider:has(+ .sibmac-section:not(.sibmac-section--banner):not(.sibmac-section--banner-grid)){padding-block-end:16px}
@media(max-width:700px){
    .primary-content .sibmac-home-sections > .sibmac-home-categories--slider:has(+ .sibmac-section:not(.sibmac-section--banner):not(.sibmac-section--banner-grid)){padding-block-end:12px}
}

/* Also cover cached banner HTML when its inline stylesheet is stale. */
.sibmac-section--banner-grid .sibmac-banner-scroll__arrow{display:none!important}

/* ── کارت‌های اسلایدر دسته‌بندی: چیدمان منظم و یکسان آیکون و عنوان ── */
.sibmac-home-categories--slider .sibmac-home-categories__list a{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    box-sizing:border-box;
    padding:14px 12px;
    line-height:1.5;
    text-decoration:none;
}
.sibmac-home-categories--slider .sibmac-home-categories__list a > span{max-width:100%}
.sibmac-home-categories--slider .sibmac-home-categories__list .sibmac-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    margin:0;
    line-height:0;
}
.sibmac-home-categories--slider .sibmac-home-categories__list a > span:last-child{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    line-height:1.55;
}
@media(max-width:700px){
    .sibmac-home-categories--slider .sibmac-home-categories__list a{padding:12px 10px;gap:8px}
}
.sibmac-home-categories--slider .sibmac-home-categories__list{align-items:flex-start}

/* ── پالت خودکار چیپ‌های کپسولی: هم‌رنگ با قالب، در حالت روشن و تیره ──
   وقتی کاربر رنگ دستی انتخاب نکرده باشد، این مقادیر از متغیرهای رنگ قالب ساخته می‌شوند
   و با تغییر تم (روشن/تیره) خودکار هماهنگ می‌مانند. */
.sibmac-home-categories--capsule{
    --sibmac-auto-surface:#ffffff;
    --sibmac-auto-ink:#111111;
    --sibmac-chip-bg:color-mix(in srgb,var(--color-text,var(--sibmac-auto-ink)) 6%,var(--color-surface,var(--sibmac-auto-surface)));
    --sibmac-chip-color:var(--color-text,var(--sibmac-auto-ink));
    --sibmac-chip-hover-bg:color-mix(in srgb,var(--color-text,var(--sibmac-auto-ink)) 13%,var(--color-surface,var(--sibmac-auto-surface)));
    --sibmac-chip-hover-color:var(--color-text,var(--sibmac-auto-ink));
    /* چیپ انتخاب‌شده: رنگ برند قالب با متن روشن (در تم تیره، متن تیره) */
    --sibmac-chip-active-bg:var(--color-brand,var(--sibmac-auto-ink));
    --sibmac-chip-active-color:#ffffff;
}
@supports (color:light-dark(#000,#fff)){
    .sibmac-home-categories--capsule{
        --sibmac-auto-surface:light-dark(#ffffff,#16171a);
        --sibmac-auto-ink:light-dark(#111111,#f3f4f6);
        --sibmac-chip-active-color:light-dark(#ffffff,#101114);
    }
}
/* چیپ انتخاب‌شده بدون حاشیه تا رنگ معکوس تمیز دیده شود. */
.sibmac-home-categories--capsule .sibmac-home-categories__list a.active,
.sibmac-home-categories--capsule .sibmac-home-categories__list a.active:is(:hover,:focus-visible){
    border-color:transparent;
}
.sibmac-home-categories--capsule .sibmac-home-categories__list a.sibmac-home-categories__all.active{
    background:var(--sibmac-chip-bg,#f2f2f2);
    color:var(--sibmac-chip-color,#111);
}
.sibmac-home-categories--capsule .sibmac-home-categories__list a.sibmac-home-categories__all.active:is(:hover,:focus-visible){
    background:var(--sibmac-chip-hover-bg,#e4e4e4);
    color:var(--sibmac-chip-hover-color,#111);
}
.sibmac-home-categories--capsule .sibmac-home-categories__list a:focus-visible{
    outline-color:var(--color-brand,var(--sibmac-auto-ink));
}

/* Archive category cards rendered by the theme (.categories-list). The separate
   .sibmac-archive-subcategories slider and its vertical heading stay untouched. */
@media(min-width:701px){
    body.sibmac-archive-header-clearance .categories-list{
        display:flex!important;
        flex:1 1 0%!important;
        flex-wrap:nowrap!important;
        width:100%!important;
        max-width:100%;
        min-width:0;
    }
    body.sibmac-archive-header-clearance .categories-list .category-item{
        flex:1 1 0%!important;
        width:auto!important;
        min-width:0!important;
        max-width:none!important;
    }
    body.sibmac-archive-header-clearance .categories-list .category-item .cat-icon{
        flex:0 0 36px!important;
        width:36px!important;
        height:36px!important;
        font-size:36px!important;
    }
    body.sibmac-archive-header-clearance .categories-list .category-item .cat-icon :is(svg,img){
        width:36px!important;
        height:36px!important;
        max-width:36px!important;
        max-height:36px!important;
    }
}

/* Archive software cards: preserve the theme's three-column grid and unify visual language with the single download page. */
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid{
    --sibmac-card-surface:#f4f6fa;
    --sibmac-card-surface-hover:#edf1f7;
    --sibmac-card-border:rgba(15,23,42,.06);
    --sibmac-card-shadow:0 2px 10px rgba(15,23,42,.03);
    --sibmac-card-shadow-hover:0 12px 26px rgba(15,23,42,.11);
    --sibmac-brand:var(--color-brand,#1a66d2);
    --sibmac-title:var(--color-text,#0f172a);
    --sibmac-muted:var(--color-text-muted,#5c687a);
    --sibmac-meta-sep:rgba(15,23,42,.24);
    --sibmac-badge-green-bg:#dff5e7;
    --sibmac-badge-green-ink:#137333;
    --sibmac-badge-green-dot:#10a829;
    --sibmac-download-pill-bg:#e2edff;
    --sibmac-download-pill-ink:#1a66d2;
    --sibmac-glow-opacity:.14;
    --sibmac-glow-opacity-hover:.22;
    align-items:stretch;
}
html.dark_mod body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid,
body.dark_mod:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid,
html[data-theme="dark"] body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid,
html[data-color-mode="dark"] body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid,
body.dark-mode:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid,
body.dark:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid,
html.dark-mode body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid{
    --sibmac-card-surface:#181c23;
    --sibmac-card-surface-hover:#242b36;
    --sibmac-card-border:rgba(255,255,255,.08);
    --sibmac-card-shadow:0 2px 12px rgba(0,0,0,.28);
    --sibmac-card-shadow-hover:0 14px 28px rgba(0,0,0,.42);
    --sibmac-brand:#5ba4ff;
    --sibmac-title:#f1f5f9;
    --sibmac-muted:#94a3b8;
    --sibmac-meta-sep:rgba(255,255,255,.24);
    --sibmac-badge-green-bg:rgba(34,197,94,.16);
    --sibmac-badge-green-ink:#4ade80;
    --sibmac-badge-green-dot:#4ade80;
    --sibmac-download-pill-bg:rgba(91,164,255,.15);
    --sibmac-download-pill-ink:#8cc0ff;
    --sibmac-glow-opacity:.18;
    --sibmac-glow-opacity-hover:.28;
}

body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern{
    position:relative;
    height:100%;
    box-sizing:border-box;
    overflow:hidden!important;
    isolation:isolate;
    border-radius:20px;
    border:1px solid var(--sibmac-card-border)!important;
    background:var(--sibmac-card-surface)!important;
    box-shadow:var(--sibmac-card-shadow)!important;
    transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background-color .22s ease;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern>.sibmac-card-glow{
    position:absolute;
    top:-42px;
    inset-inline-start:-42px;
    width:196px;
    height:196px;
    pointer-events:none;
    z-index:0;
    overflow:visible;
    opacity:0;
    -webkit-mask-image:radial-gradient(circle at 46% 46%,#000 0%,rgba(0,0,0,.55) 34%,transparent 68%);
    mask-image:radial-gradient(circle at 46% 46%,#000 0%,rgba(0,0,0,.55) 34%,transparent 68%);
    transition:opacity .26s ease,transform .26s ease;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern>.sibmac-card-glow.is-ready{
    opacity:var(--sibmac-glow-opacity,.14);
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern>.sibmac-card-glow img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    filter:blur(32px) saturate(1.5);
    transform:scale(1.05);
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-thumb,
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-content,
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta,
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-actions{
    position:relative;
    z-index:1;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-thumb{
    overflow:visible!important;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-thumb img{
    object-fit:contain!important;
    border-radius:20%;
    filter:drop-shadow(0 5px 12px rgba(15,23,42,.14));
    transform:translate(var(--sibmac-icon-tx,0%),var(--sibmac-icon-ty,0%)) scale(var(--sibmac-icon-scale,1));
    transition:transform .24s ease;
}
@media(hover:hover) and (pointer:fine){
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern:hover{
        transform:translateY(-2px);
        background:var(--sibmac-card-surface-hover)!important;
        border-color:color-mix(in srgb,var(--sibmac-brand) 34%,var(--sibmac-card-border))!important;
        box-shadow:var(--sibmac-card-shadow-hover)!important;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern:hover>.sibmac-card-glow.is-ready{
        opacity:var(--sibmac-glow-opacity-hover,.22);
        transform:scale(1.05);
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern:hover .card-thumb img{
        transform:translate(var(--sibmac-icon-tx,0%),var(--sibmac-icon-ty,0%)) scale(calc(var(--sibmac-icon-scale,1) * 1.05));
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern:hover .card-title{
        color:var(--sibmac-brand);
    }
}

/* Compact archive CTA pill ("دانلود"): clean text-only pill (no arrow icon), soft blue resting state, solid brand blue on hover. */
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-actions .card-action--primary{
    position:static!important;
    display:inline-flex!important;
    flex:0 0 68px!important;
    align-self:center!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    width:68px!important;
    min-width:68px!important;
    max-width:68px!important;
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    box-sizing:border-box;
    margin:0!important;
    padding:0 12px!important;
    border:0!important;
    border-radius:999px!important;
    -webkit-appearance:none!important;
    appearance:none!important;
    -webkit-clip-path:none!important;
    clip-path:none!important;
    background:var(--sibmac-download-pill-bg)!important;
    background-image:none!important;
    box-shadow:none!important;
    color:var(--sibmac-download-pill-ink)!important;
    -webkit-text-fill-color:var(--sibmac-download-pill-ink)!important;
    font-size:12.5px!important;
    font-weight:700!important;
    line-height:1!important;
    white-space:nowrap;
    transition:background-color .18s ease,color .18s ease,transform .18s ease;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-actions .card-action--primary::before,
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-actions .card-action--primary::after,
body .app-card-modern .card-actions .card-action::before,
body .app-card-modern .card-actions .card-action::after,
body .sibmac-home-sections .card-action::before,
body .sibmac-home-sections .card-action::after,
body .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action::before,
body .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action::after{
    content:none!important;
    display:none!important;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-actions .card-action--primary :is(svg,i,img,.icon,.download-icon,.btn-icon,.card-action-icon),
body .app-card-modern .card-actions .card-action :is(svg,i,img,.icon,.download-icon,.btn-icon,.card-action-icon),
body .app-card-modern .card-actions .card-action span:has(> svg,> i,> img),
body .sibmac-home-sections .card-action :is(svg,i,img,.icon,.download-icon,.btn-icon,.card-action-icon),
body .sibmac-home-sections .card-action span:has(> svg,> i,> img),
body .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action :is(svg,i,img,.icon,.download-icon,.btn-icon,.card-action-icon),
body .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action span:has(> svg,> i,> img){
    display:none!important;
}
body .app-card-modern .card-actions .card-action,
body .sibmac-home-sections .card-action,
body .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action{
    gap:0!important;
    transition:background-color .18s ease,color .18s ease,border-color .18s ease;
}
@media(hover:hover) and (pointer:fine){
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-actions .card-action--primary:hover,
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-actions .card-action--primary:focus-visible{
        background:#1a66d2!important;
        color:#ffffff!important;
        -webkit-text-fill-color:#ffffff!important;
    }
    html.dark_mod body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-actions .card-action--primary:hover,
    html.dark_mod body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-actions .card-action--primary:focus-visible,
    body.dark_mod:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-actions .card-action--primary:hover,
    html[data-theme="dark"] body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-actions .card-action--primary:hover,
    body.dark-mode:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-actions .card-action--primary:hover{
        background:#2563eb!important;
        color:#ffffff!important;
        -webkit-text-fill-color:#ffffff!important;
    }

    /* Harmonize homepage download CTA hover with archive cards — only when hovering the download pill itself. */
    body .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action:hover,
    body .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action:focus-visible{
        --sibmac-download-pill-bg:#1a66d2;
        --sibmac-download-pill-ink:#ffffff;
        color:#ffffff!important;
        -webkit-text-fill-color:#ffffff!important;
    }
    html.dark_mod body .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action:hover,
    html.dark_mod body .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action:focus-visible,
    body.dark_mod .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action:hover,
    html[data-theme="dark"] body .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action:hover,
    html[data-color-mode="dark"] body .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action:hover,
    body.dark-mode .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action:hover,
    body.dark .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action:hover,
    .dark-mode .sibmac-home-sections .sibmac-section__theme-cards--cards .app-card-modern .card-action:hover{
        --sibmac-download-pill-bg:#2563eb;
        --sibmac-download-pill-ink:#ffffff;
        color:#ffffff!important;
        -webkit-text-fill-color:#ffffff!important;
    }
    body .sibmac-home-sections .sibmac-section__theme-cards--slider .app-card-modern .card-action:hover,
    body .sibmac-home-sections .sibmac-section__theme-cards--slider .app-card-modern .card-action:focus-visible,
    body .sibmac-home-sections .sibmac-section__theme-cards:not(.sibmac-section__theme-cards--cards) .app-card-modern .card-action:hover,
    body .sibmac-home-sections .sibmac-section__theme-cards:not(.sibmac-section__theme-cards--cards) .app-card-modern .card-action:focus-visible{
        background:#1a66d2!important;
        background-image:none!important;
        border-color:transparent!important;
        box-shadow:none!important;
        color:#ffffff!important;
        -webkit-text-fill-color:#ffffff!important;
    }
    html.dark_mod body .sibmac-home-sections .sibmac-section__theme-cards--slider .app-card-modern .card-action:hover,
    html.dark_mod body .sibmac-home-sections .sibmac-section__theme-cards--slider .app-card-modern .card-action:focus-visible,
    body.dark_mod .sibmac-home-sections .sibmac-section__theme-cards--slider .app-card-modern .card-action:hover,
    html[data-theme="dark"] body .sibmac-home-sections .sibmac-section__theme-cards--slider .app-card-modern .card-action:hover,
    html[data-color-mode="dark"] body .sibmac-home-sections .sibmac-section__theme-cards--slider .app-card-modern .card-action:hover,
    body.dark-mode .sibmac-home-sections .sibmac-section__theme-cards--slider .app-card-modern .card-action:hover,
    html.dark_mod body .sibmac-home-sections .sibmac-section__theme-cards:not(.sibmac-section__theme-cards--cards) .app-card-modern .card-action:hover,
    body.dark_mod .sibmac-home-sections .sibmac-section__theme-cards:not(.sibmac-section__theme-cards--cards) .app-card-modern .card-action:hover{
        background:#2563eb!important;
        background-image:none!important;
        border-color:transparent!important;
        box-shadow:none!important;
        color:#ffffff!important;
        -webkit-text-fill-color:#ffffff!important;
    }
}

/* Match homepage cards: keep the archive CTA opposite the title and vertically centered. */
@media(min-width:701px){
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern{
        position:relative;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern>.card-info-bar{
        position:static!important;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern>.card-info-bar>.card-actions{
        position:absolute!important;
        inset-block-start:50%!important;
        inset-inline-end:20px!important;
        transform:translateY(-50%)!important;
        z-index:3;
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        width:72px!important;
        min-width:72px!important;
        max-width:72px!important;
        height:44px!important;
        margin:0!important;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern>.card-main-link{
        box-sizing:border-box;
        padding-inline-end:96px!important;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern>.card-info-bar>.card-meta-link{
        flex:1 1 auto;
        width:100%;
        max-width:100%;
    }
}

/* In archives, pair the status capsule cleanly beside the single-line clamped app title. */
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-title-line{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:7px!important;
    width:100%;
    min-width:0;
    margin:0 0 2px!important;
    direction:rtl;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-title-line>.card-title{
    flex:0 1 auto!important;
    min-width:0!important;
    max-width:100%;
    margin:0!important;
    color:var(--sibmac-title);
    font-weight:800;
    line-height:1.3;
    text-align:right!important;
    display:-webkit-box!important;
    -webkit-line-clamp:1!important;
    line-clamp:1!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:normal!important;
    word-break:break-word;
    transition:color .18s ease;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-title-line>.card-badge:not([hidden]){
    --archive-badge-bg:var(--sibmac-badge-green-bg);
    --archive-badge-ink:var(--sibmac-badge-green-ink);
    position:static!important;
    inset:auto!important;
    transform:none!important;
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    box-sizing:border-box;
    width:max-content!important;
    max-width:100%!important;
    height:21px!important;
    min-height:21px!important;
    max-height:21px!important;
    margin:0!important;
    padding:0 8px!important;
    border:0!important;
    border-radius:999px!important;
    background:var(--archive-badge-bg)!important;
    box-shadow:none!important;
    color:var(--archive-badge-ink)!important;
    font-size:10.5px!important;
    font-weight:700!important;
    line-height:1!important;
    white-space:nowrap!important;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-title-line>.card-badge.badge-updated:not([hidden])::before{
    content:"";
    display:inline-block;
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--sibmac-badge-green-dot,#1b8a3e);
    flex:0 0 auto;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-title-line>.card-badge.badge-hot:not([hidden]){
    --archive-badge-bg:#fee2e2;
    --archive-badge-ink:#b91c1c;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-title-line>.card-badge[hidden]{
    display:none!important;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-title-line>.card-badge::after{
    display:none!important;
}

/* Dedicated one-line app subtitle (strictly from fixdl_app_subtitle). */
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-desc{
    min-width:0!important;
    margin:0!important;
    color:var(--sibmac-muted);
    font-size:12.5px;
    line-height:1.45;
    text-align:right!important;
    display:-webkit-box!important;
    -webkit-line-clamp:1!important;
    line-clamp:1!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-desc.sibmac-card-desc--empty,
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-desc[hidden]{
    display:none!important;
}

/* Polished archive meta row: single-line, star rating first (RTL), date hidden for uniform height. */
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta{
    color:var(--sibmac-muted);
    font-size:12px;
    line-height:1.5;
    font-variant-numeric:tabular-nums;
    flex-wrap:nowrap!important;
    overflow:hidden!important;
    white-space:nowrap!important;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta>div{
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    gap:4px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    white-space:nowrap!important;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta>div.card-meta-item--date,
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta>div[hidden]{
    display:none!important;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta>div:not([hidden]):not(.card-meta-item--date)~div:not([hidden]):not(.card-meta-item--date)::before{
    content:"·";
    margin-inline-end:8px;
    color:var(--sibmac-meta-sep);
    font-weight:700;
    line-height:1;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta dt{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0!important;
    color:var(--sibmac-muted);
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta dt svg{
    width:13.5px;
    height:13.5px;
    display:block;
    opacity:.82;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta dd{
    margin:0!important;
    color:var(--sibmac-muted);
    font-variant-numeric:tabular-nums;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta .card-meta-item--rating dt{
    order:2;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta .card-meta-item--rating .sibmac-meta-star{
    color:#f59e0b;
    font-size:13px;
    line-height:1;
}
body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta .card-meta-item--rating dd{
    order:1;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
    color:var(--sibmac-muted);
}

/* Keep the archive's description, metadata and CTA cleanly structured on mobile. */
@media(max-width:700px){
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern{
        display:grid!important;
        direction:rtl!important;
        grid-template-columns:56px minmax(0,1fr) 72px!important;
        grid-template-rows:auto auto!important;
        column-gap:12px!important;
        row-gap:8px!important;
        align-items:stretch!important;
        position:relative!important;
        padding:14px!important;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern>.card-main-link,
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern>.card-main-link>.card-header,
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern>.card-info-bar,
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern>.card-info-bar>.card-meta-link{
        display:contents!important;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-thumb{
        grid-column:1!important;
        grid-row:1 / 3!important;
        display:flex!important;
        align-self:center!important;
        justify-self:center!important;
        align-items:center!important;
        justify-content:center!important;
        width:56px!important;
        min-width:56px!important;
        max-width:56px!important;
        height:56px!important;
        min-height:56px!important;
        max-height:56px!important;
        margin:0!important;
        padding:0!important;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-thumb img{
        display:block!important;
        width:100%!important;
        height:100%!important;
        max-width:100%!important;
        max-height:100%!important;
        object-fit:contain!important;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-thumb .main-icon{
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        width:100%!important;
        height:100%!important;
        margin:0!important;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-thumb .main-icon svg{
        display:block!important;
        width:90%!important;
        height:90%!important;
        max-width:100%!important;
        max-height:100%!important;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-content{
        display:flex!important;
        flex-direction:column!important;
        grid-column:2!important;
        grid-row:1!important;
        box-sizing:border-box;
        min-width:0!important;
        margin:0!important;
        padding:0!important;
        text-align:right;
        align-self:center;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-desc{
        font-size:11.5px;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta{
        grid-column:2 / 4!important;
        grid-row:2!important;
        display:flex!important;
        flex-direction:row!important;
        flex-wrap:nowrap!important;
        align-items:center!important;
        justify-content:flex-start!important;
        width:100%!important;
        min-width:0!important;
        max-width:none!important;
        margin:0!important;
        padding:0!important;
        gap:8px!important;
        font-size:11.5px;
        overflow:hidden!important;
        white-space:nowrap!important;
        box-sizing:border-box;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta>div:not([hidden]):not(.card-meta-item--date)~div:not([hidden]):not(.card-meta-item--date)::before{
        margin-inline-end:6px;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta>div.card-meta-item--date{
        display:none!important;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern>.card-info-bar>.card-actions{
        grid-column:3!important;
        grid-row:1!important;
        position:static!important;
        inset:auto!important;
        transform:none!important;
        z-index:3;
        display:flex!important;
        align-self:center!important;
        justify-self:center!important;
        align-items:center!important;
        justify-content:center!important;
        width:72px!important;
        min-width:72px!important;
        max-width:72px!important;
        height:44px!important;
        margin:0!important;
        padding:0!important;
    }
}
@media(max-width:380px){
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern{
        grid-template-columns:52px minmax(0,1fr) 68px!important;
        column-gap:8px!important;
        row-gap:6px!important;
    }
}

/* Use one archive card grid across tablet and desktop; the title row stays single-line clamped for equal row height. */
@media(min-width:701px){
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern{
        display:grid!important;
        direction:rtl!important;
        grid-template-columns:64px minmax(0,1fr) 72px!important;
        grid-template-rows:minmax(44px,auto) auto!important;
        column-gap:16px!important;
        row-gap:0!important;
        align-items:stretch!important;
        padding:18px 20px!important;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern>.card-main-link,
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern>.card-main-link>.card-header,
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern>.card-info-bar,
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern>.card-info-bar>.card-meta-link{
        display:contents!important;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-thumb{
        grid-column:1!important;
        grid-row:1 / 3!important;
        display:flex!important;
        align-self:center!important;
        justify-self:center!important;
        align-items:center!important;
        justify-content:center!important;
        width:64px!important;
        height:64px!important;
        margin:0!important;
        padding:0!important;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-thumb img{
        width:64px!important;
        height:64px!important;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-content{
        display:flex!important;
        flex-direction:column!important;
        justify-content:center!important;
        grid-column:2!important;
        grid-row:1!important;
        min-width:0!important;
        margin:0!important;
        padding:0!important;
        text-align:right;
        align-self:center;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-meta{
        grid-column:2 / 4!important;
        grid-row:2!important;
        display:flex!important;
        flex-direction:row!important;
        flex-wrap:nowrap!important;
        align-items:center!important;
        justify-content:flex-start!important;
        width:100%!important;
        min-width:0!important;
        max-width:none!important;
        margin:0!important;
        padding:10px 0 0!important;
        border-top:0!important;
        gap:10px!important;
        overflow:hidden!important;
        white-space:nowrap!important;
        box-sizing:border-box;
    }
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern>.card-info-bar>.card-actions{
        grid-column:3!important;
        grid-row:1!important;
        position:static!important;
        inset:auto!important;
        transform:none!important;
        z-index:3;
        display:flex!important;
        align-self:center!important;
        justify-self:center!important;
        align-items:center!important;
        justify-content:center!important;
        width:72px!important;
        min-width:72px!important;
        max-width:72px!important;
        height:44px!important;
        margin:0!important;
        padding:0!important;
    }
}

@media(min-width:1024px){
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern{
        padding:18px 20px!important;
    }
}
@media(prefers-reduced-motion:reduce){
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern,
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern>.sibmac-card-glow,
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-thumb img,
    body:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-card-modern .card-actions .card-action--primary{
        transition:none!important;
    }
}


/* ───────── کارت‌های لیستی بدون دکمهٔ «دانلود» (گزینهٔ پیشخوان؛ پیش‌فرض) ───────── */
/* ویژگی بالاتر از قوانین چیدمان آرشیو (body:is(...) .primary-content .app-card-modern>.card-info-bar>.card-actions{display:flex!important}) */
body.sibmac-cards-no-cta.sibmac-cards-no-cta .primary-content .app-card-modern>.card-info-bar>.card-actions,
body.sibmac-cards-no-cta.sibmac-cards-no-cta .app-card-modern .card-info-bar>.card-actions,
body.sibmac-cards-no-cta.sibmac-cards-no-cta .app-card-modern .card-actions,
body.sibmac-cards-no-cta.sibmac-cards-no-cta .app-card-modern .card-actions .card-action--primary,
body.sibmac-cards-no-cta.sibmac-cards-no-cta .sibmac-compact-row>.sma-dl-pill{display:none!important;visibility:hidden!important;width:0!important;min-width:0!important;padding:0!important;margin:0!important}
/* ستون سوم (دکمه) از گرید آرشیو حذف می‌شود → متن تا لبهٔ کارت */
@media(min-width:701px){
    body.sibmac-cards-no-cta:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern{grid-template-columns:64px minmax(0,1fr)!important}
}
@media(max-width:700px){
    body.sibmac-cards-no-cta:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern{grid-template-columns:56px minmax(0,1fr)!important}
}
@media(max-width:380px){
    body.sibmac-cards-no-cta:is(.sibmac-archive-header-clearance,.archive,.category,.tag,.search) .primary-content .app-cards-grid .app-card-modern{grid-template-columns:52px minmax(0,1fr)!important}
}
/* کل کارت قابل‌کلیک: نشانگر + فیدبک لمسی؛ هاور همان لیفت/سایهٔ fx کارت‌هاست */
body.sibmac-cards-no-cta .app-card-modern.sibmac-card-clickable{cursor:pointer;-webkit-tap-highlight-color:transparent}
body.sibmac-cards-no-cta .app-card-modern.sibmac-card-clickable:active{filter:brightness(.97);transition:filter .08s ease}
body.sibmac-cards-no-cta .app-card-modern.sibmac-card-clickable .card-title a{text-decoration:none}
