/* ==========================================================
   مرکز فروشندگان — Seller Center
   نوار ناوبری مگامنو + صفحه خانه + سفارش‌ها و تعهدات ارسال
   ========================================================== */
/* توکن‌ها از تم قالب پنل خوانده می‌شوند؛ با عوض شدن «رنگ تم» در هدر، همه‌ی بخش‌ها هم‌رنگ می‌شوند */
body {
    --sc-primary: var(--bs-primary, #0d6efd);
    --sc-primary-rgb: var(--bs-primary-rgb, 13, 110, 253);
    --sc-primary-600: color-mix(in srgb, var(--sc-primary) 80%, #000);
    --sc-primary-2: color-mix(in srgb, var(--sc-primary) 58%, #fff);
    --sc-primary-50: rgba(var(--sc-primary-rgb), .10);
    --sc-accent: #f59e0b;
    --sc-accent-50: rgba(245, 158, 11, .14);
    --sc-danger: #ef394e;
    --sc-success: #12a36a;
    --sc-bg: var(--bs-body-bg, #f5f6f8);
    --sc-surface: var(--bs-card-bg, #fff);
    --sc-border: var(--bs-border-color, #e6e8ec);
    --sc-text: var(--bs-body-color, #23262b);
    --sc-muted: var(--bs-secondary-color, #6b7280);
    --sc-radius: 14px;
    --sc-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.05);
    --sc-ease: cubic-bezier(.22,1,.36,1);
}

[data-bs-theme="dark"] body {
    --sc-shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
}

/* ---------- صفحه ---------- */
.sc-page {
    background: var(--sc-bg);
    color: var(--sc-text);
    min-height: calc(100vh - 140px);
    padding: 1.5rem 0 5rem;
    direction: rtl;
}

.sc-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.sc-page-head {
    margin: .5rem 0 1.25rem;
}

.sc-page-head--split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
}

.sc-page-head h1 {
    margin: 0;
    font-size: 1.15rem;
    display: flex;
    align-items: baseline;
    gap: .6rem;
    flex-wrap: wrap;
}

    .sc-page-head h1 span {
        font-weight: 800;
        padding-inline-end: .6rem;
        border-inline-end: 2px solid var(--sc-border);
    }

    .sc-page-head h1 small {
        color: var(--sc-muted);
        font-size: .82rem;
        font-weight: 400;
    }

.sc-updated {
    color: var(--sc-muted);
    font-size: .82rem;
}

.sc-card {
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    transition: box-shadow .3s var(--sc-ease), transform .3s var(--sc-ease);
}

.sc-card--flush {
    padding: 0;
    overflow: hidden;
}

.sc-card__title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 1rem;
}

.sc-muted {
    color: var(--sc-muted);
    font-size: .88rem;
    margin-bottom: 1.25rem;
}

.sc-link {
    color: var(--sc-primary);
    text-decoration: none;
    font-size: .85rem;
}

    .sc-link:hover {
        color: var(--sc-primary-600);
    }

.sc-link--u {
    text-decoration: underline;
}

/* ---------- دکمه‌ها ---------- */
.sc-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: .5rem 1.1rem;
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s var(--sc-ease), box-shadow .2s, background .2s;
}

    .sc-btn:hover:not(:disabled) {
        transform: translateY(-2px);
    }

    .sc-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.sc-btn--primary {
    background: var(--sc-primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(var(--sc-primary-rgb), .3);
}

    .sc-btn--primary:hover {
        color: #fff;
        background: var(--sc-primary-600);
    }

.sc-btn--ghost {
    background: var(--sc-bg);
    color: var(--sc-muted);
    border-color: var(--sc-border);
}

.sc-btn--outline {
    background: transparent;
    border-color: var(--sc-border);
    color: var(--sc-primary);
}

.sc-btn--sm {
    padding: .3rem .8rem;
    font-size: .8rem;
}

.sc-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    transform: scale(0);
    animation: sc-ripple .6s linear;
    pointer-events: none;
}

/* ---------- صفحه خانه ---------- */
.sc-grid-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .sc-grid-home {
        grid-template-columns: 1fr;
    }
}

/* مراحل */
.sc-stepper {
    --line: var(--sc-border);
    display: grid;
    grid-template-columns: repeat(var(--steps), 1fr);
    list-style: none;
    margin: 1.5rem 0 1.75rem;
    padding: 0;
    position: relative;
}

.sc-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    text-align: center;
    font-size: .8rem;
    color: var(--sc-muted);
}

    .sc-step::before {
        content: "";
        position: absolute;
        top: 17px;
        inset-inline-start: 50%;
        width: 100%;
        height: 3px;
        background: var(--line);
        z-index: 0;
    }

    .sc-step:last-child::before {
        display: none;
    }

    .sc-step.is-done::before {
        background: linear-gradient(90deg, var(--sc-success), var(--sc-success)) no-repeat right/0 100% var(--line);
        animation: sc-line-fill .8s var(--sc-ease) forwards;
        animation-delay: calc(var(--i) * .2s);
    }

.sc-step__dot {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--sc-bg);
    border: 1px solid var(--sc-border);
    font-weight: 700;
}

.sc-step.is-done .sc-step__dot {
    background: var(--sc-success);
    border-color: var(--sc-success);
    color: #fff;
    animation: sc-pop .5s var(--sc-ease) both;
    animation-delay: calc(var(--i) * .15s);
}

.sc-step.is-current {
    color: var(--sc-text);
    font-weight: 700;
}

    .sc-step.is-current .sc-step__dot {
        background: var(--sc-surface);
        border: 2px solid var(--sc-text);
    }

.sc-step__pulse {
    width: 12px;
    height: 12px;
    background: var(--sc-text);
    border-radius: 3px;
    position: relative;
}

    .sc-step__pulse::after {
        content: "";
        position: absolute;
        inset: -14px;
        border-radius: 14px;
        border: 2px solid var(--sc-primary);
        animation: sc-pulse 1.8s ease-out infinite;
    }

.sc-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: .88rem;
}

.sc-alert--warn {
    background: var(--sc-accent-50);
    border: 1px solid #fcd9a0;
    color: #8a5a00;
}

[data-bs-theme="dark"] .sc-alert--warn {
    color: #f6c66b;
    border-color: #5c4513;
}

.sc-box {
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
}

    .sc-box h3 {
        font-size: .95rem;
        margin: 0 0 .5rem;
    }

    .sc-box p {
        font-size: .85rem;
        margin-bottom: 1rem;
    }

.sc-box__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
}

.sc-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .85rem;
}

/* راهنماها */
.sc-guides {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .85rem;
}

@media (max-width: 720px) {
    .sc-guides {
        grid-template-columns: 1fr;
    }
}

.sc-guide {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: transform .3s var(--sc-ease), box-shadow .3s var(--sc-ease), border-color .2s;
}

    .sc-guide:hover {
        transform: translateY(-4px);
        border-color: var(--sc-primary);
        box-shadow: 0 12px 28px rgba(var(--sc-primary-rgb), .14);
    }

.sc-guide__icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--sc-primary-50);
    color: var(--sc-primary);
    font-size: 1.2rem;
    transition: transform .4s var(--sc-ease);
}

.sc-guide:hover .sc-guide__icon {
    transform: rotate(-8deg) scale(1.1);
}

.sc-guide__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

    .sc-guide__text strong {
        font-size: .88rem;
    }

    .sc-guide__text small {
        color: var(--sc-muted);
        font-size: .78rem;
    }

.sc-guide__arrow {
    color: var(--sc-muted);
    transition: transform .25s var(--sc-ease);
}

.sc-guide:hover .sc-guide__arrow {
    transform: translateX(-5px);
    color: var(--sc-primary);
}

/* پروفایل */
.sc-badge {
    display: inline-block;
    padding: .25rem .8rem;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 700;
}

.sc-badge--info {
    background: var(--sc-primary-50);
    color: var(--sc-primary);
}

.sc-profile__row {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 1rem 0 .75rem;
}

    .sc-profile__row small {
        display: block;
        color: var(--sc-muted);
        font-size: .78rem;
    }

.sc-profile__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--sc-bg);
    border: 2px solid var(--sc-primary-50);
    color: var(--sc-muted);
    font-size: 1.6rem;
    position: relative;
}

    .sc-profile__avatar::after {
        content: "";
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        border: 2px dashed var(--sc-primary);
        opacity: .5;
        animation: sc-spin 12s linear infinite;
    }

    .sc-profile__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.sc-profile__link {
    display: inline-block;
    margin-bottom: 1rem;
}

.sc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--sc-border);
    text-align: center;
}

    .sc-stats b {
        display: block;
        font-size: 1.4rem;
        color: var(--sc-primary);
    }

    .sc-stats span {
        font-size: .75rem;
        color: var(--sc-muted);
    }

/* اعلان‌ها */
.sc-notify__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sc-notify__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .sc-notify__list li {
        border-bottom: 1px solid var(--sc-border);
    }

        .sc-notify__list li:last-child {
            border-bottom: 0;
        }

    .sc-notify__list a {
        display: block;
        padding: .7rem .4rem;
        color: inherit;
        text-decoration: none;
        border-radius: 8px;
        transition: background .2s;
    }

        .sc-notify__list a:hover {
            background: var(--sc-bg);
        }

    .sc-notify__list small, .sc-notify__list time {
        display: block;
        color: var(--sc-muted);
        font-size: .75rem;
    }

    .sc-notify__list li.is-unread strong::before {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        margin-inline-end: .4rem;
        border-radius: 50%;
        background: var(--sc-danger);
        animation: sc-pulse-dot 1.6s infinite;
    }

.sc-empty {
    text-align: center;
    padding: 1.5rem 0 1rem;
    color: var(--sc-muted);
}

.sc-empty--table {
    padding: 2.5rem 0;
}

.sc-empty__art {
    width: 130px;
    height: 130px;
    animation: sc-float 4s ease-in-out infinite;
}

    .sc-empty__art .a {
        fill: var(--sc-primary-50);
        stroke: var(--sc-primary);
        stroke-width: 2;
    }

    .sc-empty__art .b, .sc-empty__art .d {
        fill: none;
        stroke: var(--sc-primary);
        stroke-width: 3;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-dasharray: 100;
        animation: sc-draw 2.4s ease-in-out infinite alternate;
    }

    .sc-empty__art .c {
        fill: var(--sc-success);
        opacity: .9;
    }

    .sc-empty__art .d {
        stroke: #fff;
    }

.sc-app-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1.1rem;
    border-radius: var(--sc-radius);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    background: linear-gradient(110deg, #d4143c, #ef394e, #d4143c);
    background-size: 220% 100%;
    animation: sc-sheen 5s linear infinite;
    box-shadow: 0 10px 24px rgba(239,57,78,.3);
    transition: transform .25s var(--sc-ease);
}

    .sc-app-banner:hover {
        transform: translateY(-3px);
        color: #fff;
    }

/* ---------- ویدیوها ---------- */
.sc-videos {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 1300px) {
    .sc-videos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .sc-videos {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sc-video {
    border: 1px solid var(--sc-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--sc-surface);
    transition: transform .3s var(--sc-ease), box-shadow .3s var(--sc-ease);
}

    .sc-video:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 30px rgba(16,24,40,.14);
    }

.sc-video__thumb {
    position: relative;
    height: 118px;
    display: flex;
    align-items: flex-start;
    padding: .6rem;
    color: #fff;
    background: linear-gradient(135deg, var(--sc-primary-2), var(--sc-primary));
    overflow: hidden;
}

.sc-video--t2 .sc-video__thumb {
    background: linear-gradient(135deg, #5b3fd4, #2a1c80);
}

.sc-video--t3 .sc-video__thumb {
    background: linear-gradient(135deg, #14b8a6, #0b8f93);
}

.sc-video--t5 .sc-video__thumb {
    background: linear-gradient(135deg, #0891b2, #155e75);
}

.sc-video__label {
    position: relative;
    z-index: 2;
    font-size: .75rem;
    font-weight: 700;
    max-width: 55%;
    line-height: 1.5;
}

.sc-video__art {
    position: absolute;
    inset-inline-start: -6px;
    bottom: -4px;
    width: 70%;
    fill: rgba(255,255,255,.16);
    stroke: rgba(255,255,255,.55);
    stroke-width: 2;
    animation: sc-float 5s ease-in-out infinite;
}

.sc-video__play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    color: #1f2937;
    font-size: 1.4rem;
    display: grid;
    place-items: center;
    transition: transform .3s var(--sc-ease);
}

    .sc-video__play::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 2px solid rgba(255,255,255,.8);
        animation: sc-pulse 2s ease-out infinite;
    }

.sc-video:hover .sc-video__play {
    transform: scale(1.18);
}

.sc-video__time {
    position: absolute;
    z-index: 3;
    left: .6rem;
    bottom: .5rem;
    background: rgba(0,0,0,.35);
    padding: 0 .5rem;
    border-radius: 6px;
    font-size: .7rem;
}

.sc-video__title {
    font-size: .8rem;
    margin: 0;
    padding: .7rem .8rem;
    font-weight: 600;
}

.sc-related {
    font-size: .85rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ---------- تب‌ها و خلاصه ---------- */
.sc-tabs {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--sc-border);
    flex-wrap: wrap;
}

.sc-tabs__spacer {
    flex: 1;
}

.sc-tab {
    position: relative;
    border: 0;
    background: none;
    padding: 1.2rem 0;
    font: inherit;
    font-size: .9rem;
    color: var(--sc-primary);
    text-decoration: none;
}

.sc-tab--link {
    font-size: .8rem;
}

.sc-tab.is-active {
    font-weight: 700;
}

    .sc-tab.is-active::after {
        content: "";
        position: absolute;
        inset-inline: 0;
        bottom: -1px;
        height: 3px;
        background: var(--sc-primary);
        border-radius: 3px 3px 0 0;
        transform-origin: right;
        animation: sc-grow-x .6s var(--sc-ease);
    }

.sc-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    padding: 1.5rem;
}

@media (max-width: 900px) {
    .sc-summary {
        grid-template-columns: 1fr;
    }
}

.sc-summary__card {
    position: relative;
    border: 1px solid var(--sc-border);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    min-height: 130px;
    overflow: hidden;
    transition: transform .3s var(--sc-ease), box-shadow .3s var(--sc-ease);
}

    .sc-summary__card::before {
        content: "";
        position: absolute;
        inset-inline-end: -40px;
        top: -40px;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: var(--sc-primary-50);
        opacity: .7;
        transition: transform .5s var(--sc-ease);
    }

    .sc-summary__card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 28px rgba(16,24,40,.1);
    }

        .sc-summary__card:hover::before {
            transform: scale(1.5);
        }

    .sc-summary__card > * {
        position: relative;
    }

    .sc-summary__card > b {
        display: block;
        font-size: 1.5rem;
        font-weight: 800;
        text-align: end;
    }

        .sc-summary__card > b small {
            font-size: .85rem;
            font-weight: 600;
        }

    .sc-summary__card p {
        margin: .35rem 0 .9rem;
        font-size: .88rem;
        text-align: end;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: .4rem;
    }

        .sc-summary__card p .bi {
            color: var(--sc-text);
            font-size: .95rem;
            cursor: help;
        }

.sc-pills {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sc-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    font-size: .78rem;
    background: var(--sc-bg);
    color: var(--sc-muted);
    border: 1px solid var(--sc-border);
}

.sc-pill--warn {
    background: var(--sc-accent-50);
    color: #b45309;
    border-color: #fcd9a0;
}

[data-bs-theme="dark"] .sc-pill--warn {
    color: #f6c66b;
    border-color: #5c4513;
}

/* جستجو */
.sc-search {
    padding: 0 1.5rem 1.25rem;
}

    .sc-search label {
        display: block;
        font-size: .88rem;
        margin-bottom: .5rem;
    }

.sc-search__box {
    display: flex;
    align-items: center;
    border: 2px solid var(--sc-primary);
    border-radius: 12px;
    height: 48px;
    background: var(--sc-surface);
    transition: box-shadow .25s;
}

    .sc-search__box:focus-within {
        box-shadow: 0 0 0 5px rgba(var(--sc-primary-rgb), .15);
    }

    .sc-search__box input {
        flex: 1;
        border: 0;
        outline: 0;
        background: transparent;
        padding: 0 1rem;
        height: 100%;
        color: var(--sc-text);
        font: inherit;
        font-size: .88rem;
    }

    .sc-search__box button {
        border: 0;
        background: transparent;
        width: 48px;
        height: 100%;
        font-size: 1.1rem;
        color: var(--sc-text);
        transition: transform .2s var(--sc-ease), color .2s;
    }

        .sc-search__box button:hover {
            color: var(--sc-primary);
            transform: scale(1.2);
        }

.sc-filters {
    display: flex;
    gap: .6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.sc-chip {
    padding: .45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--sc-border);
    color: var(--sc-text);
    text-decoration: none;
    font-size: .8rem;
    transition: all .25s var(--sc-ease);
}

    .sc-chip:hover {
        border-color: var(--sc-primary);
        color: var(--sc-primary);
        transform: translateY(-2px);
    }

    .sc-chip.is-active {
        background: var(--sc-primary-50);
        border-color: #bfe0ef;
        color: var(--sc-primary);
        font-weight: 700;
    }

/* جدول */
.sc-table-wrap {
    overflow-x: auto;
    padding: 0 1.5rem 1.5rem;
}

.sc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .85rem;
}

    .sc-table th {
        text-align: right;
        padding: .8rem 1rem;
        color: var(--sc-muted);
        font-weight: 600;
        background: var(--sc-bg);
        white-space: nowrap;
    }

        .sc-table th:first-child {
            border-radius: 0 10px 10px 0;
        }

        .sc-table th:last-child {
            border-radius: 10px 0 0 10px;
        }

    .sc-table td {
        padding: .85rem 1rem;
        border-bottom: 1px solid var(--sc-border);
        white-space: nowrap;
    }

    .sc-table tbody tr {
        transition: background .2s, transform .25s var(--sc-ease);
    }

        .sc-table tbody tr:hover {
            background: var(--sc-primary-50);
            transform: translateX(-3px);
        }

/* دکمه شناور */
.sc-fab {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 0;
    padding: .8rem 1.25rem;
    border-radius: 999px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    background: linear-gradient(135deg, var(--sc-primary-2), var(--sc-primary));
    box-shadow: 0 10px 28px rgba(var(--sc-primary-rgb), .45);
    transition: transform .25s var(--sc-ease);
}

    .sc-fab:hover {
        transform: translateY(-4px) scale(1.04);
    }

    .sc-fab .bi {
        animation: sc-wiggle 3s ease-in-out infinite;
    }

/* ---------- انیمیشن‌ها ---------- */
@keyframes sc-float {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }
}

@keyframes sc-spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes sc-pulse {
    0% {
        transform: scale(.8);
        opacity: .9
    }

    100% {
        transform: scale(1.5);
        opacity: 0
    }
}

@keyframes sc-pulse-dot {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(239,57,78,.5)
    }

    50% {
        box-shadow: 0 0 0 6px rgba(239,57,78,0)
    }
}

@keyframes sc-grow-x {
    from {
        transform: scaleX(0)
    }

    to {
        transform: scaleX(1)
    }
}

@keyframes sc-line-fill {
    to {
        background-size: 100% 100%
    }
}

@keyframes sc-pop {
    0% {
        transform: scale(.4);
        opacity: 0
    }

    70% {
        transform: scale(1.15)
    }

    100% {
        transform: scale(1);
        opacity: 1
    }
}

@keyframes sc-ripple {
    to {
        transform: scale(4);
        opacity: 0
    }
}

@keyframes sc-draw {
    from {
        stroke-dashoffset: 100
    }

    to {
        stroke-dashoffset: 0
    }
}

@keyframes sc-sheen {
    to {
        background-position: -220% 0
    }
}

@keyframes sc-wiggle {
    0%,88%,100% {
        transform: rotate(0)
    }

    92% {
        transform: rotate(-12deg)
    }

    96% {
        transform: rotate(10deg)
    }
}

@keyframes sc-fade-down {
    from {
        opacity: 0;
        transform: translateY(-10px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* ---------- دستیار، مودال، صفحه‌بندی ---------- */
.sc-linkbtn { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-size: .85rem; }
[hidden] { display: none !important; }

.sc-assistant {
    position: fixed; bottom: 5.2rem; left: 1.5rem; z-index: 1041;
    width: 340px; max-width: calc(100vw - 2rem); display: flex; flex-direction: column;
    background: var(--sc-surface); color: var(--sc-text); border: 1px solid var(--sc-border);
    border-radius: 18px; box-shadow: 0 24px 60px rgba(16,24,40,.25); overflow: hidden; direction: rtl;
    transform-origin: bottom left;
}
.sc-assistant.is-in { animation: sc-pop .45s var(--sc-ease) both; }
.sc-assistant header {
    display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; color: #fff;
    background: linear-gradient(135deg, var(--sc-primary-2), var(--sc-primary));
}
.sc-assistant__close { border: 0; background: none; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.sc-assistant__log { height: 240px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--sc-bg); }
.sc-msg { max-width: 85%; padding: .6rem .85rem; border-radius: 14px; font-size: .84rem; line-height: 1.8; animation: sc-fade-down .3s var(--sc-ease); }
.sc-msg--bot { background: var(--sc-surface); border: 1px solid var(--sc-border); align-self: flex-start; border-start-start-radius: 4px; }
.sc-msg--me { background: var(--sc-primary); color: #fff; align-self: flex-end; border-start-end-radius: 4px; }
.sc-msg a { color: var(--sc-primary); }
.sc-typing { display: flex; gap: 4px; }
.sc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sc-muted); animation: sc-float .9s infinite; }
.sc-typing i:nth-child(2) { animation-delay: .15s; } .sc-typing i:nth-child(3) { animation-delay: .3s; }
.sc-assistant__quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: .75rem; border-top: 1px solid var(--sc-border); }
.sc-assistant__quick button {
    border: 1px solid var(--sc-border); background: var(--sc-surface); color: var(--sc-primary);
    border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .75rem; cursor: pointer; transition: all .2s var(--sc-ease);
}
.sc-assistant__quick button:hover { background: var(--sc-primary-50); transform: translateY(-2px); }

.sc-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(10,15,25,.6); backdrop-filter: blur(4px); animation: sc-fade-down .25s; }
.sc-modal__box { position: relative; width: min(460px, 92vw); padding: 1.25rem; border-radius: 18px; background: var(--sc-surface); color: var(--sc-text); text-align: center; animation: sc-pop .45s var(--sc-ease) both; }
.sc-modal__box .sc-assistant__close { position: absolute; top: .5rem; inset-inline-start: .8rem; color: var(--sc-muted); }
.sc-modal__screen { position: relative; height: 200px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 1rem; color: #fff; font-size: 4rem; background: linear-gradient(135deg, var(--sc-primary-2), var(--sc-primary)); }
.sc-modal__screen span { position: absolute; bottom: .6rem; left: .8rem; font-size: .8rem; background: rgba(0,0,0,.35); padding: 0 .5rem; border-radius: 6px; }

.sc-pager { display: flex; justify-content: center; gap: .4rem; padding: 0 1.5rem 1.5rem; flex-wrap: wrap; }
.sc-pager__item { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--sc-border); color: var(--sc-text); text-decoration: none; font-size: .85rem; transition: all .2s var(--sc-ease); }
.sc-pager__item:hover { border-color: var(--sc-primary); color: var(--sc-primary); transform: translateY(-2px); }
.sc-pager__item.is-active { background: var(--sc-primary); border-color: var(--sc-primary); color: #fff; }
