/**
 * داشبورد فرمولا (/dashboard/) و بخش ابزارهای صفحه اول (شورت‌کد fap_tools_home) — Tools_Dashboard.
 *
 * طرح تیم مارکتینگ (آبان ۱۴۰۵)، نسخه روشن با توکن‌های سایت. این فایل فقط چیدمان است: دکمه (.fap-btn)،
 * برچسب (fap_badge)، نقطه (.fap-dot) و آیکن (fap_icon) از fap-msg.css.
 *
 * - کارت «فقط حاشیه»، بی‌سایه؛ هاور فقط رنگ حاشیه (brand-200). کارت شاخص (استعلام، خرید سفارشی) زمینه
 *   brand-50 از همان اول.
 * - پیوند فراخوان کارت کل کارت را می‌پوشاند (::after)؛ چیپ‌های استعلام رویش‌اند.
 * - قانون‌های متن دوکلاسه‌اند: قالب Formula برای .fml-kit h1/h2/a وزن (۰،۱،۱) دارد.
 */

/* ============================================================ صفحه */
.fap-dash {
    padding: 0 0 48px;
}

.fap-dash__wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- هیرو ---------- */
.fap-dash__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 36px 0 36px;
}

.fap-dash__hero--story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
}

.fap-dash__intro {
    max-width: 560px;
}

.fap-dash .fap-dash__title {
    margin: 0 0 14px;
    color: var(--fap-c-ink, #13292d);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.25;
}

.fap-dash .fap-dash__lead {
    margin: 0 0 10px;
    color: var(--fap-c-text, #34494d);
    font-size: var(--fap-fs-xl, 18px);
    line-height: 1.8;
}

.fap-dash .fap-dash__note {
    margin: 0;
    color: var(--fap-c-muted, #566a6e);
    font-size: var(--fap-fs-md, 14px);
    line-height: 1.9;
}

.fap-dash__acts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 26px;
}

/*
 * نگاره زنده (Tools_Dashboard::hero_story_html): قاب روایت .iqx همان صفحه‌های استعلام و رادار (fap-inquiry-
 * explainer.css؛ .fap-alp قید آن قانون‌هاست). صحنه .iqd یک داشبورد کوچک است: ستون ابزارها (رو به شروع)
 * و کارت نتیجه ابزار جاری. ابزار جاری فیروزه‌ای پر، ابزار گذشته تیک؛ کارت‌ها روی هم در یک خانه گرید تا
 * قاب نپرد. حرکت فقط transition کلاس on (و یک بار پر شدن ردیف‌های مقایسه)؛ با «کاهش حرکت» ساکن.
 */
.fap-dash__story {
    min-width: 0;
}

.iqd {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    min-height: 262px;
    text-align: start;
}

.iqd .iqx-k {
    color: var(--fap-c-faint, #98aaae);
    font-size: var(--fap-fs-xs, 12px);
    line-height: 1.6;
}

.fap-alp .iqd-rail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fap-alp .iqd-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--fap-c-surface, #fff) 12%, transparent);
    border-radius: var(--fap-r-md, 12px);
    color: var(--fap-c-faint, #98aaae);
    font-size: var(--fap-fs-sm, 13px);
    font-weight: 700;
    line-height: 1.5;
}

.fap-alp .iqd-tab.on {
    border-color: var(--fap-brand-500, #1aa29a);
    background-color: var(--fap-brand-500, #1aa29a);
    color: var(--fap-c-dark, #1d212b);
}

.iqd-tab .fap-i {
    flex: none;
}

.iqd-tab__ok {
    display: inline-flex;
    margin-inline-start: auto;
    color: var(--fap-brand-300, #9fd9d1);
}

.iqd-stage {
    display: grid;
    min-width: 0;
}

.iqd-stage > .iqd-card {
    grid-area: 1 / 1;
}

.iqd-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--fap-c-surface, #fff) 14%, transparent);
    border-radius: var(--fap-r-md, 12px);
    background: color-mix(in srgb, var(--fap-c-surface, #fff) 5%, transparent);
    color: var(--fap-brand-100, #e3f4f1);
}

/* قیمت روز: خودرو، قیمت، خط سی‌روزه (کشیده می‌شود)، تغییر */
.iqd-car {
    font-size: var(--fap-fs-md, 14px);
    font-weight: 800;
    line-height: 1.7;
}

.iqd-big {
    font-size: var(--fap-fs-2xl, 22px);
    font-weight: 800;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.iqx-scene .iqd-spark {
    width: 100%;
    max-width: none;
    height: 70px;
    margin: 6px 0 2px;
}

.iqd-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    font-size: var(--fap-fs-xs, 12px);
}

.iqd-foot small {
    color: var(--fap-c-faint, #98aaae);
    font-size: inherit;
}

/* رشد قیمت قرمز، افت سبز (قرارداد جدول قیمت)، روشن‌شده برای سطح تیره؛ مثلث تا فقط رنگ نگوید */
.iqd-chg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.iqd-chg--up { color: color-mix(in srgb, var(--fap-c-error, #c81e1e) 45%, var(--fap-c-surface, #fff)); }
.iqd-chg--down { color: color-mix(in srgb, var(--fap-c-success, #137a3a) 50%, var(--fap-c-surface, #fff)); }

/* مقایسه: دو نیم‌رخ (عکس‌های assets/img/inquiry) و سه ردیف که یکی‌یکی پر می‌شوند */
.iqd-cmp {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 8px;
    margin-top: 6px;
}

.fap-alp .iqd-cmp figure {
    margin: 0;
    text-align: center;
}

.iqd-cmp img {
    display: block;
    width: 100%;
    height: auto;
}

.iqd-cmp figcaption {
    margin-top: 4px;
    color: var(--fap-brand-100, #e3f4f1);
    font-size: var(--fap-fs-xs, 12px);
    font-weight: 800;
}

.iqd-cmp__vs {
    display: inline-flex;
    align-self: center;
    color: var(--fap-brand-300, #9fd9d1);
}

.fap-alp .iqd-rows {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.iqd-rows li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 0;
}

.iqd-rows b {
    color: var(--fap-c-faint, #98aaae);
    font-size: var(--fap-fs-xs, 12px);
    font-weight: 700;
    text-align: center;
}

.iqd-rows i {
    height: 6px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--fap-brand-300, #9fd9d1) 55%, transparent);
}

.iqx.is-live .iqd-card--compare.on .iqd-rows i {
    animation: iqd-fill .5s var(--iqx-ease) both;
    animation-delay: calc(.35s + var(--i, 0) * 180ms);
}

@keyframes iqd-fill {
    from { transform: scaleX(0); }
}

/* پیامک رادار و دیده‌بان: همان حباب .iqr-sms صفحه رادار */
.fap-alp .iqd-card .iqr-sms {
    align-self: stretch;
    margin-top: 6px;
}

.iqd-card .iqr-sms .iqd-chg {
    margin-top: 2px;
}

/* استعلام: پلاک نمونه و ردیف‌های نتیجه (فقط سرویس‌های روشن) */
.iqd-card .iqx-plate {
    display: block;
    width: 176px;
    max-width: 100%;
    height: auto;
    margin: 8px 0 6px;
}

.fap-alp .iqd-res {
    margin: 0;
    padding: 0;
    list-style: none;
}

.iqd-res li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 10px;
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid color-mix(in srgb, var(--fap-c-surface, #fff) 10%, transparent);
    font-size: var(--fap-fs-sm, 13px);
}

.iqd-res span {
    color: var(--fap-c-faint, #98aaae);
}

.iqd-res b {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}

.iqd-res b.is-ok {
    color: var(--fap-brand-300, #9fd9d1);
}

/* ---------- نوار بازار امروز ---------- */
.fap-dash-mkt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    margin: 0 0 32px;
    padding: 16px 22px;
    border: 1px solid var(--fap-c-line, #e0e8e9);
    border-radius: var(--fap-r-md, 12px);
    background-color: var(--fap-c-bg-soft, #f8fafa);
}

.fap-dash .fap-dash-mkt__head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding-inline-end: 28px;
    border-inline-end: 1px solid var(--fap-c-line, #e0e8e9);
    color: var(--fap-brand-700, #0b6c62);
    font-size: var(--fap-fs-sm, 13px);
    font-weight: 700;
    line-height: 1.6;
}

/* فهرست جای باقی‌مانده را می‌گیرد و خودش می‌شکند، تا «جدول کامل» در همان خط اول بماند */
.fap-dash-mkt__list {
    display: flex;
    flex: 1 1 0;
    flex-wrap: wrap;
    min-width: 0;
    gap: 10px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fap-dash-mkt__item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-size: var(--fap-fs-sm, 13px);
    line-height: 1.6;
}

.fap-dash-mkt__label { color: var(--fap-c-muted, #566a6e); }
.fap-dash-mkt__name { color: var(--fap-c-ink, #13292d); font-size: var(--fap-fs-md, 14px); font-weight: 600; }

/* رشد قیمت قرمز، افت سبز: همان قرارداد جدول قیمت صفر؛ مثلث تا جهت فقط با رنگ گفته نشود */
.fap-dash-mkt__val {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--fap-brand-700, #0b6c62);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fap-dash-mkt__val--up { color: var(--fap-c-error, #c81e1e); }
.fap-dash-mkt__val--down { color: var(--fap-c-success, #137a3a); }

.fap-dash-mkt__tri {
    width: 0;
    height: 0;
    border-inline: 4px solid transparent;
}

.fap-dash-mkt__tri--up { border-bottom: 6px solid currentColor; }
.fap-dash-mkt__tri--down { border-top: 6px solid currentColor; }

.fap-dash-mkt .fap-dash-mkt__all {
    margin-inline-start: auto;
}

/* ---------- شبکه کارت‌ها ---------- */
.fap-dash__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.fap-dash-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--fap-c-line, #e0e8e9);
    border-radius: var(--fap-r-lg, 16px);
    background-color: var(--fap-c-surface, #fff);
    transition: border-color var(--fap-dur-fast, .15s) ease;
}

.fap-dash-card:hover { border-color: var(--fap-brand-200, #c6e9e4); }
.fap-dash-card:focus-within { border-color: var(--fap-brand-500, #1aa29a); }

.fap-dash-card--feature {
    border-color: var(--fap-brand-200, #c6e9e4);
    background-color: var(--fap-brand-50, #eef8f6);
}

.fap-dash-card--feature:hover { border-color: var(--fap-brand-300, #9fd9d1); }

/* فاصله عمودی همان کارت‌های کناری، تا فراخوان‌های یک ردیف هم‌تراز بمانند */
.fap-dash-card--inquiry {
    grid-column: span 2;
    padding-inline: 30px;
}

.fap-dash-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fap-dash-card__ic {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--fap-c-link, #0d8276);
}

.fap-dash .fap-dash-card__title {
    margin: 0;
    color: var(--fap-c-ink, #13292d);
    font-size: var(--fap-fs-xl, 18px);
    font-weight: 800;
    line-height: 1.5;
}

.fap-dash .fap-dash-card--inquiry .fap-dash-card__title {
    font-size: var(--fap-fs-2xl, 22px);
}

.fap-dash .fap-dash-card__text {
    margin: 0;
    color: var(--fap-c-text, #34494d);
    font-size: var(--fap-fs-md, 14px);
    line-height: 1.85;
}

/* چیپ‌های استعلام: پیوند واقعی هر استعلام، بالای پوشش فراخوان */
.fap-dash-card__chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fap-dash-card__chips li { margin: 0; }

/* فضای کشسان طرح: فراخوان همه کارت‌های یک ردیف هم‌تراز ته کارت */
.fap-dash-card .fap-dash-card__cta {
    align-self: flex-start;
    margin-top: auto;
    margin-inline-start: -4px;
}

.fap-dash-card .fap-dash-card__cta::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

/*
 * 🐞 :active دکمه شیوه‌نامه translateY(1px) دارد و هر transform پیوند را قاب ::after می‌کند: با فشردن، پوشش
 * به اندازه خود پیوند جمع می‌شد، رها کردن روی کارت می‌افتاد و کلیک وسط کارت به هیچ‌جا نمی‌رفت.
 * وزن (۰،۵،۰) در برابر .fap-btn.fap-btn.fap-btn:active (۰،۴،۰).
 */
.fap-dash .fap-dash-card .fap-dash-card__cta.fap-btn:active {
    transform: none;
}

/* خرید سفارشی: تمام‌عرض، آیکن | متن | دکمه */
.fap-dash-card--row {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    padding: 28px 30px;
}

.fap-dash-card__body {
    flex: 999 1 380px;
    min-width: 0;
}

.fap-dash-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 6px;
}

.fap-dash .fap-dash-card--row .fap-dash-card__title {
    font-size: var(--fap-fs-2xl, 22px);
}

.fap-dash-card--row .fap-dash-card__btn {
    flex: 0 0 auto;
}

/* ---------- نوار «رایگان» ---------- */
.fap-dash-free {
    margin: 32px 0 0;
    padding: 22px 26px;
    border: 1px solid var(--fap-c-line, #e0e8e9);
    border-inline-start: 3px solid var(--fap-brand-500, #1aa29a);
    border-radius: var(--fap-r-md, 12px);
    background-color: var(--fap-c-bg-soft, #f8fafa);
}

.fap-dash .fap-dash-free__q {
    margin: 0 0 6px;
    color: var(--fap-c-ink, #13292d);
    font-size: var(--fap-fs-lg, 16px);
    font-weight: 800;
    line-height: 1.6;
}

.fap-dash .fap-dash-free__a {
    margin: 0;
    color: var(--fap-c-text, #34494d);
    font-size: var(--fap-fs-md, 14px);
    line-height: 1.85;
}

.fap-dash .fap-page-content {
    margin-top: 32px;
}

/* ============================================================ بخش صفحه اول */
.fap-dash-home {
    width: 100%;
    text-align: start;
}

.fap-dash-home__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 24px;
    padding-inline: 4px;
}

.fap-dash-home__intro {
    max-width: 640px;
}

.fap-dash-home .fap-dash-home__kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--fap-brand-700, #0b6c62);
    font-size: var(--fap-fs-sm, 13px);
    font-weight: 700;
    line-height: 1.6;
}

.fap-dash-home .fap-dash-home__title {
    margin: 0;
    color: var(--fap-c-ink, #13292d);
    font-size: var(--fap-fs-3xl, 28px);
    font-weight: 800;
    line-height: 1.5;
}

.fap-dash-home .fap-dash-home__lead {
    margin: 0;
    color: var(--fap-c-muted, #566a6e);
    font-size: var(--fap-fs-lg, 16px);
    line-height: 1.7;
}

.fap-dash-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fap-dash-tiles > li {
    display: flex;
    min-width: 0;
    margin: 0;
}

.fap-dash-tiles .fap-dash-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 20px;
    border: 1px solid var(--fap-c-line, #e0e8e9);
    border-radius: var(--fap-r-lg, 16px);
    background-color: var(--fap-c-surface, #fff);
    color: var(--fap-c-text, #34494d);
    font-weight: 400;
    line-height: 1.6;
    text-decoration: none;
    transition: border-color var(--fap-dur-fast, .15s) ease, background-color var(--fap-dur-fast, .15s) ease;
}

.fap-dash-tiles .fap-dash-tile:hover {
    border-color: var(--fap-brand-200, #c6e9e4);
    color: var(--fap-c-text, #34494d);
}

.fap-dash-tiles .fap-dash-tile:focus-visible {
    outline: 2px solid var(--fap-c-link, #0d8276);
    outline-offset: 2px;
}

.fap-dash-tiles .fap-dash-tile--feature {
    border-color: var(--fap-brand-200, #c6e9e4);
    background-color: var(--fap-brand-50, #eef8f6);
}

.fap-dash-tiles .fap-dash-tile--feature:hover { border-color: var(--fap-brand-300, #9fd9d1); }

.fap-dash-tile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.fap-dash-tile__ic {
    display: inline-flex;
    color: var(--fap-c-link, #0d8276);
}

.fap-dash-tiles .fap-dash-tile__title {
    color: var(--fap-c-ink, #13292d);
    font-size: var(--fap-fs-lg, 16px);
    font-weight: 800;
    line-height: 1.5;
}

.fap-dash-tiles .fap-dash-tile__text {
    color: var(--fap-c-muted, #566a6e);
    font-size: var(--fap-fs-sm, 13px);
    line-height: 1.7;
}

/*
 * نگاره کاشی (Tools_Dashboard::tile_art): همان نگاره‌ها و حرکت‌های بخش قبلی صفحه اول. نوار جدای پایین کاشی
 * (پدینگ پایین)، نه زیر متن: نسخه اول نگاره را پشت متن می‌گذاشت و خواندن سخت می‌شد. از گوشه پایین سمت
 * پایان بیرون می‌زند و لبه کاشی بخشی را می‌بُرد. حرکت فقط یک بار، وقتی بخش دیده می‌شود: is-arm
 * (fap-tools-dash.js) آماده و متوقف، is-in پخش. بی js و با «کاهش حرکت» ساکن و کامل.
 */
.fap-dash-tiles .fap-dash-tile {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.fap-dash-tiles .fap-dash-tile--art {
    padding-bottom: 84px;
}

.fap-dash-tile__top,
.fap-dash-tiles .fap-dash-tile__title,
.fap-dash-tiles .fap-dash-tile__text {
    position: relative;
    z-index: 1;
}

.fap-dash-tile__art {
    position: absolute;
    z-index: 0;
    inset: 0;
    color: var(--fap-brand-500, #1aa29a);
    pointer-events: none;
}

.fap-dash-art {
    position: absolute;
    display: block;
}

/* رادار: دایره‌های هم‌مرکز و یک دور جاروب (گرادیان کاربردی، مثل عقربه) */
.fap-dash-art--radar {
    inset-inline-end: -26px;
    bottom: -74px;
    width: 132px;
    height: 132px;
    border: 1px solid var(--fap-brand-300, #9fd9d1);
    border-radius: 50%;
    background: repeating-radial-gradient(circle, color-mix(in srgb, var(--fap-brand-500, #1aa29a) 12%, transparent) 0 1px, transparent 2px 22px);
}

.fap-dash-art--radar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 300deg, color-mix(in srgb, var(--fap-brand-500, #1aa29a) 22%, transparent) 0 46deg, transparent 46deg);
    opacity: 0;
}

.fap-dash-art--spark {
    inset-inline-end: -6px;
    bottom: 6px;
    width: 230px;
    height: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .6;
}

.fap-dash-art--plate {
    inset-inline-end: 12px;
    bottom: 22px;
    width: 128px;
    height: auto;
    opacity: .45;
    transform: rotate(-8deg);
}

.fap-dash-art--gauge {
    inset-inline-end: 10px;
    bottom: -4px;
    width: 124px;
    height: auto;
    opacity: .45;
}

.fap-dash-art__needle {
    transform-box: view-box;
    transform-origin: 80px 84px;
}

.fap-dash-art--compare {
    inset-inline-end: 14px;
    bottom: 18px;
    width: 160px;
    height: auto;
    max-width: none;
}

.fap-dash-art--bars {
    inset-inline-end: 18px;
    bottom: 14px;
    width: 76px;
    height: auto;
    opacity: .5;
}

.fap-dash-art--bars rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: 50% 100%;
}

/* سه نقطه «در حال نوشتن» دستیار، در حباب گفت‌وگو */
.fap-dash-art--dots {
    inset-inline-end: 18px;
    bottom: 22px;
    display: flex;
    gap: 5px;
    padding: 9px 12px;
    border: 2px solid currentColor;
    border-radius: 14px 14px 14px 4px;
    opacity: .45;
}

.fap-dash-art--dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: currentColor;
}

.fap-dash-tiles.is-arm .fap-dash-art--radar::after { animation: fap-dash-sweep 1.3s cubic-bezier(.4, 0, .2, 1) .1s both; }
.fap-dash-tiles.is-arm .fap-dash-art--spark path { stroke-dasharray: 1; animation: fap-dash-draw 1.4s cubic-bezier(.45, .05, .25, 1) .3s both; }
.fap-dash-tiles.is-arm .fap-dash-art--plate { animation: fap-dash-plate .7s cubic-bezier(.45, .05, .25, 1) .5s both; }
.fap-dash-tiles.is-arm .fap-dash-art--bars rect { animation: fap-dash-grow .6s cubic-bezier(.45, .05, .25, 1) both; }
.fap-dash-tiles.is-arm .fap-dash-art--bars rect:nth-of-type(1) { animation-delay: .55s; }
.fap-dash-tiles.is-arm .fap-dash-art--bars rect:nth-of-type(2) { animation-delay: .65s; }
.fap-dash-tiles.is-arm .fap-dash-art--bars rect:nth-of-type(3) { animation-delay: .75s; }
.fap-dash-tiles.is-arm .fap-dash-art--bars rect:nth-of-type(4) { animation-delay: .85s; }
.fap-dash-tiles.is-arm .fap-dash-art__needle { animation: fap-dash-needle 1.1s cubic-bezier(.45, .05, .25, 1) .65s both; }
.fap-dash-tiles.is-arm .fap-dash-art--compare { animation: fap-dash-slide .6s cubic-bezier(.45, .05, .25, 1) .8s both; }
.fap-dash-tiles.is-arm .fap-dash-art--dots i { animation: fap-dash-dot .35s ease both; }
.fap-dash-tiles.is-arm .fap-dash-art--dots i:nth-child(1) { animation-delay: .9s; }
.fap-dash-tiles.is-arm .fap-dash-art--dots i:nth-child(2) { animation-delay: 1.1s; }
.fap-dash-tiles.is-arm .fap-dash-art--dots i:nth-child(3) { animation-delay: 1.3s; }

.fap-dash-tiles.is-arm:not(.is-in) .fap-dash-art--radar::after,
.fap-dash-tiles.is-arm:not(.is-in) .fap-dash-art--spark path,
.fap-dash-tiles.is-arm:not(.is-in) .fap-dash-art--plate,
.fap-dash-tiles.is-arm:not(.is-in) .fap-dash-art--bars rect,
.fap-dash-tiles.is-arm:not(.is-in) .fap-dash-art__needle,
.fap-dash-tiles.is-arm:not(.is-in) .fap-dash-art--compare,
.fap-dash-tiles.is-arm:not(.is-in) .fap-dash-art--dots i { animation-play-state: paused; }

@keyframes fap-dash-sweep { 0% { opacity: 1; transform: rotate(-360deg); } 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes fap-dash-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fap-dash-plate { from { opacity: 0; transform: translateY(18px) rotate(-14deg); } }
@keyframes fap-dash-grow { from { transform: scaleY(0); } }
@keyframes fap-dash-needle { from { transform: rotate(-132deg); } }
@keyframes fap-dash-slide { from { opacity: 0; transform: translateX(-16px); } }
@keyframes fap-dash-dot { from { opacity: 0; transform: translateY(3px); } }

/* ============================================================ واکنش‌گرا */
@media (max-width: 1023px) {
    .fap-dash__grid,
    .fap-dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fap-dash .fap-dash__title { font-size: 40px; }
    /* هیرو زیر هم: متن، بعد نگاره به پهنای خوانا */
    .fap-dash__hero--story { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .fap-dash__intro { max-width: 640px; }
    .fap-dash__story { max-width: 640px; }
}

@media (max-width: 767px) {
    .fap-dash__hero { padding: 22px 0 24px; }
    /* نگاره روی گوشی نه (خواست کاربر): متن و دو فراخوان، بعد بلافاصله خود ابزارها */
    .fap-dash__story { display: none; }
    .fap-dash__acts { margin-top: 18px; }
    .fap-dash__acts .fap-btn--primary { flex: 1 1 auto; }
    .fap-dash .fap-dash__title { font-size: var(--fap-fs-3xl, 28px); }
    .fap-dash .fap-dash__lead { font-size: var(--fap-fs-lg, 16px); }

    /* نوار بازار: سطرها زیر هم، نه اسکرول افقی */
    .fap-dash-mkt { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 22px; padding: 14px 16px; }
    .fap-dash .fap-dash-mkt__head { padding: 0; border: 0; }
    .fap-dash-mkt__list { flex: none; flex-direction: column; gap: 6px; }
    .fap-dash-mkt__item { flex-wrap: wrap; gap: 2px 8px; }
    .fap-dash-mkt__label { flex: 0 0 100%; font-size: var(--fap-fs-xs, 12px); }
    .fap-dash-mkt__val { margin-inline-start: auto; }
    .fap-dash-mkt .fap-dash-mkt__all { align-self: flex-start; margin-inline-start: -4px; }

    .fap-dash__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .fap-dash-card--inquiry { grid-column: auto; padding: 22px; }
    .fap-dash-card { padding: 20px; }
    .fap-dash-card--row { padding: 22px 20px; }
    .fap-dash-card--row .fap-dash-card__btn { width: 100%; }
    .fap-dash-free { margin-top: 22px; padding: 18px 18px; }

    .fap-dash-home__head { align-items: stretch; margin-bottom: 16px; }
    .fap-dash-home .fap-dash-home__title { font-size: var(--fap-fs-2xl, 22px); }
    .fap-dash-home .fap-dash-home__lead { font-size: var(--fap-fs-md, 14px); }
    .fap-dash-home .fap-dash-home__all { width: 100%; }
    .fap-dash-tiles { gap: 10px; }
    .fap-dash-tiles .fap-dash-tile { padding: 14px; }
    .fap-dash-tiles .fap-dash-tile__title { font-size: var(--fap-fs-md, 14px); }
    .fap-dash-tiles .fap-dash-tile__text { font-size: var(--fap-fs-xs, 12px); }
    .fap-dash-tiles .fap-dash-tile--art { padding-bottom: 62px; }
    .fap-dash-art--radar { inset-inline-end: -22px; bottom: -58px; width: 100px; height: 100px; }
    .fap-dash-art--spark { bottom: 4px; width: 150px; }
    .fap-dash-art--plate { inset-inline-end: 8px; bottom: 16px; width: 96px; }
    .fap-dash-art--gauge { inset-inline-end: 6px; bottom: -4px; width: 92px; }
    .fap-dash-art--compare { inset-inline-end: 8px; bottom: 14px; width: 120px; }
    .fap-dash-art--bars { inset-inline-end: 12px; bottom: 10px; width: 56px; }
    .fap-dash-art--dots { inset-inline-end: 12px; bottom: 14px; padding: 7px 9px; }
}

@media (max-width: 359px) {
    .fap-dash-tiles { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .fap-dash-card,
    .fap-dash-tiles .fap-dash-tile { transition: none; }
    .iqx.is-live .iqd-card--compare.on .iqd-rows i { animation: none; }
}

/* حالت تیره */
/* عکس مقایسه زمینه سفید دارد؛ در تیره دست‌کم مثل یک کارت کوچک دیده شود */
[data-fap-theme="dark"] .fap-dash-art--compare {
    border-radius: var(--fap-r-sm, 10px);
}
