/* ============================================================
   فروشگاه شاپ — استایل اصلی (سبک، RTL، ریسپانسیو)
   ============================================================ */

/* ---------- فونت ---------- */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn/Vazirmatn.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --brand: #ef4056;
    --brand-dark: #d63a4d;
    --brand-soft: #fff5f6;
    --ink: #23254e;
    --bg: #f6f7fa;
    /* سطوح نرم (کارت‌ها، بخش‌های رنگی) — در دارک فلیپ می‌شوند */
    --soft-1: #f8fafc;
    --soft-2: #f1f5f9;
    --soft-3: #fff5f6;
    --soft-4: #fdf2f8;
    --panel: #ffffff;
    --panel-2: #f6f7fa;
    --hairline: #eef0f6;
    --ink-muted: #6c757d;
}

/* ---------- دارک مود: فلیپ متغیرهای سراسری (بدون این، متن/آیکون‌ها تیره‌روی‌تیره می‌شوند) ---------- */
[data-bs-theme="dark"] {
    --ink: #e8eaf0;
    --bg: #101218;
    --brand-soft: rgba(239, 64, 86, .14);
    --soft-1: #1e2126;
    --soft-2: #23262c;
    --soft-3: #2a1d21;
    --soft-4: #251f2a;
    --panel: #1c1f23;
    --panel-2: #23262c;
    --hairline: #2c3034;
    --ink-muted: #9aa0a6;
}

/* یوتیلیتی‌های بوت‌استرپ که با زمینه تیره ناخوانا می‌شوند */
[data-bs-theme="dark"] .bg-white { background-color: #1c1e23 !important; }
[data-bs-theme="dark"] .bg-light { background-color: #23252c !important; }
[data-bs-theme="dark"] .text-dark { color: #e8eaf0 !important; }

* { font-family: 'Vazirmatn', Tahoma, sans-serif; }

html, body { overflow-x: clip; }
body {
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content { flex: 1; padding-bottom: 2rem; }

a { color: var(--brand); }
.text-muted { color: #8b8d9f !important; }

/* ---------- هدر مدرن (شیشه‌ای چسبان) ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header:hover { box-shadow: 0 2px 26px rgba(0, 0, 0, 0.08); }

[data-bs-theme="dark"] .site-header {
    background: rgba(22, 24, 29, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.brand-logo {
    width: 40px; height: 40px;
    background: var(--brand);
    color: #fff;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.brand-name {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
}

.search-input {
    border-radius: 12px;
    background: #f2f3f5;
    border: none;
    padding-inline-start: 2.5rem;
    height: 42px;
}
.search-input:focus { background: #fff; box-shadow: 0 0 0 2px var(--brand-soft), 0 0 0 1px var(--brand); }
.search-icon {
    position: absolute; inset-inline-start: 12px; top: 50%;
    transform: translateY(-50%); color: #9a9caE;
}

.btn-icon { border: none; background: transparent; color: var(--ink); }
.cart-badge {
    position: absolute; top: -4px; inset-inline-end: -4px;
    background: var(--brand); color: #fff;
    font-size: .65rem; font-weight: 700;
    border-radius: 999px; padding: 1px 6px;
}

.btn-user {
    border: 1px solid #e2e3e8; border-radius: 10px;
    color: var(--ink); font-size: .875rem;
    background: #fff;
}
.btn-user:hover { border-color: var(--brand); color: var(--brand); }

.suggest-box {
    position: absolute; top: 110%; inset-inline: 0;
    background: #fff; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    z-index: 1050; overflow: hidden;
    max-width: min(380px, 100%);
    max-height: 55vh; overflow-y: auto;
    overscroll-behavior: contain;
}
/* موبایل: چسبیده به لبه راست ویوپورت، بدون سرریز و بدون پرش */
@media (max-width: 767.98px) {
    .suggest-box {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
    }
}
.suggest-item {
    display: flex; gap: .75rem; align-items: center;
    padding: .6rem .9rem; text-decoration: none; color: var(--ink);
}
.suggest-item:hover { background: var(--brand-soft); }
.suggest-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }


.nav-menu > li > a.nav-all { color: var(--brand); font-weight: 800; }

.submenu {
    position: absolute; top: 100%; inset-inline-start: 50%;
    transform: translateX(50%) translateY(8px);
    min-width: 230px; background: #fff;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 14px 36px rgba(0,0,0,.13);
    padding: .6rem; opacity: 0; visibility: hidden;
    transition: all .18s ease; z-index: 1040;
    text-align: right;
}
.has-sub:hover .submenu,
.nav-menu > li:hover .submenu.mega {
    opacity: 1; visibility: visible; transform: translateX(50%) translateY(0);
}
.nav-menu > li:hover .submenu.mega { transform: translateY(0); inset-inline: 0; }
.submenu a {
    display: block; padding: .45rem .8rem;
    color: var(--ink); text-decoration: none; font-size: .82rem;
    border-radius: 8px;
}
.submenu a:hover { background: var(--brand-soft); color: var(--brand); }
.submenu-head {
    font-size: .8rem; font-weight: 800; color: var(--brand);
    padding: .45rem .8rem; border-bottom: 1px solid #f3f3f7; margin-bottom: .3rem;
}
.submenu-all {
    color: var(--brand) !important; font-weight: 700; font-size: .78rem !important;
    border-top: 1px solid #f3f3f7; margin-top: .3rem; padding-top: .55rem !important;
}

/* مگا منوی «همه دسته‌ها» */
.submenu.mega {
    position: absolute; inset-inline: 0; top: 100%;
    transform: translateY(8px);
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: .4rem 1.2rem; min-width: 0;
    padding: 1.1rem 1.4rem; text-align: right;
}
.mega-group { display: flex; flex-direction: column; }
.mega-title {
    font-weight: 800 !important; font-size: .85rem !important;
    color: var(--brand) !important;
    display: flex; align-items: center; gap: 6px;
    padding: .4rem .5rem !important;
}
.mega-link { padding: .3rem .5rem .3rem 1.6rem !important; font-size: .8rem !important; color: #555 !important; }

.mobile-link {
    display: flex; align-items: center;
    padding: .7rem .5rem; color: var(--ink); text-decoration: none;
    border-radius: 10px; font-size: .925rem;
}
.mobile-link:hover { background: var(--brand-soft); color: var(--brand); }
.mobile-link.sub { padding-inline-start: 2rem; color: #666; font-size: .85rem; }

/* ---------- اسلایدر ---------- */
.slider-img { width: 100%; height: auto; aspect-ratio: 1200/420; object-fit: cover; }
@media (max-width: 767px) { .slider-img { aspect-ratio: 1200/600; } }

/* ---------- شگفت‌انگیز ---------- */
.amazing-box { background: linear-gradient(135deg, var(--brand), #b3123c); color: #fff; }
.amazing-title { font-size: 1.1rem; font-weight: 800; }
.see-all { color: inherit; text-decoration: none; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.see-all:hover { opacity: .8; }

.countdown { display: inline-flex; gap: 4px; align-items: center; }
.cd-box {
    background: rgba(255,255,255,.2); border-radius: 8px;
    padding: .2rem .45rem; font-weight: 700; font-size: .95rem;
    min-width: 2.4rem; text-align: center;
}

.scroll-row { scrollbar-width: thin; }

/* ---------- نوار دسته‌ها ---------- */
.cat-strip-item {
    display: flex; flex-direction: column; align-items: center; gap: .4rem;
    text-decoration: none; color: var(--ink); font-size: .8rem;
    padding: .75rem .25rem; border-radius: 12px;
}
.cat-strip-item i { font-size: 1.6rem; color: var(--brand); }
.cat-strip-item:hover { background: var(--brand-soft); }

/* ---------- بخش‌ها ---------- */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 1.5rem 0 1rem;
}
.section-title { font-size: 1.05rem; font-weight: 800; margin: 0; }

/* ---------- کارت محصول ---------- */
.product-card {
    background: #fff; border-radius: 16px; padding: .75rem;
    height: 100%; transition: box-shadow .18s ease, transform .18s ease;
    border: 1px solid transparent;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(35,37,78,.09); transform: translateY(-2px); border-color: #f0f0f5; }
.product-card-link { text-decoration: none; color: inherit; }
.product-thumb { position: relative; }
.product-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

.discount-badge {
    position: absolute; top: 8px; inset-inline-start: 8px;
    background: var(--brand); color: #fff;
    font-size: .7rem; font-weight: 700;
    border-radius: 999px; padding: 2px 8px;
}

.amazing-badge {
    position: absolute; bottom: 8px; inset-inline-start: 8px;
    background: rgba(255,255,255,.92); color: var(--brand);
    font-size: .68rem; font-weight: 700;
    border-radius: 999px; padding: 2px 8px;
}

.product-name {
    font-size: .82rem; font-weight: 600; margin: .6rem 0 .4rem;
    height: 2.4em; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.product-meta { display: flex; justify-content: space-between; align-items: center; }
.rating { color: #f9a825; font-size: .78rem; font-weight: 700; }

.product-price { margin-top: .5rem; }
.old-price { font-size: .75rem; color: #b0b2c3; }
.new-price { font-size: .95rem; color: var(--ink); }

.stock-warning { color: #e53935; font-size: .78rem; font-weight: 600; }

/* ---------- وبلاگ ---------- */
.blog-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    text-decoration: none; color: inherit; display: flex; flex-direction: column;
    transition: box-shadow .18s ease; height: 100%;
}
.blog-card:hover { box-shadow: 0 8px 24px rgba(35,37,78,.09); }
.blog-card-img { width: 100%; aspect-ratio: 800/420; object-fit: cover; }
.blog-card-html, body { overflow-x: clip; }
body { padding: 1rem; flex: 1; }
.blog-card-title { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.blog-card-desc {
    font-size: .8rem; color: #8b8d9f; margin-bottom: .5rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-html, body { overflow-x: clip; }
body { line-height: 2; color: #444; }

/* ---------- فوتر ---------- */
.site-footer { background: #fff; border-top: 1px solid #ececf1; margin-top: 2rem; }
.footer-title { font-weight: 800; font-size: .95rem; margin-bottom: .8rem; }
.footer-text { font-size: .85rem; color: #8b8d9f; }
.footer-links { list-style: none; padding: 0; }
.footer-links a { color: #66687f; text-decoration: none; font-size: .85rem; display: block; padding: .25rem 0; }
.footer-links a:hover { color: var(--brand); }
.footer-social { color: #8b8d9f; }
.footer-social:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid #f1f1f5; font-size: .8rem; color: #8b8d9f; }

/* ---------- پنل کاربر ---------- */
.panel-link {
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem .9rem; color: var(--ink); text-decoration: none;
    border-radius: 10px; font-size: .9rem;
}
.panel-link:hover, .panel-link.active { background: var(--brand-soft); color: var(--brand); }

/* ---------- دکمه‌ها ---------- */
.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
}

/* ---------- توست ---------- */
.toast-container { z-index: 2000; }

/* ---------- جزئیات محصول ---------- */
.product-desc { line-height: 2.1; color: #444; font-size: .9rem; }
.product-desc table { max-width: 100%; }
.product-desc td { padding: .4rem .8rem; border-bottom: 1px solid #f1f1f5; }
.rating-input i { font-size: 1.4rem; cursor: pointer; color: #ccc; margin-inline-start: 2px; }
.rating-input i.active, .rating-input i.text-warning { color: #f9a825 !important; }

/* ---------- صفحه‌بندی ---------- */
.pagination .page-link { color: var(--ink); border-radius: 8px; margin: 0 2px; border: none; }
.pagination .page-item.active .page-link { background: var(--brand); color: #fff; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 991px) {
    .page-content { padding-bottom: 1rem; }
    .section-title { font-size: .95rem; }
}
@media (max-width: 575px) {
    .container { padding-inline: 12px; }
    .product-name { font-size: .78rem; }
    .new-price { font-size: .85rem; }
    .btn { font-size: .85rem; }
}

/* ---------- چاپ ---------- */
@media print {
    .site-header, .site-footer, .btn, .toast-container { display: none !important; }
}

/* ---------- سکشن‌های لندینگ ---------- */
.landing-section { padding: 3.5rem 0; }
.bg-gradient-soft { background: linear-gradient(180deg, #fff, var(--bg)); border-radius: 24px; }
.landing-badge {
    display: inline-block; background: #fff; border: 1px solid #f3d9dd;
    color: var(--brand); font-size: .8rem; font-weight: 700;
    border-radius: 999px; padding: .35rem 1rem;
    box-shadow: 0 2px 10px rgba(239,64,86,.08);
}
.landing-title { font-size: 1.7rem; font-weight: 900; margin: 1rem 0 .4rem; }
.text-brand { color: var(--brand); }
.landing-sub { color: #8b8d9f; font-size: .95rem; max-width: 640px; margin: 0 auto; }
.landing-section .container { text-align: center; }
.landing-section .row { text-align: right; }

.compare-card {
    border-radius: 20px; padding: 1.5rem; height: 100%; text-align: right;
}
.compare-card.compare-good { background: linear-gradient(135deg, var(--brand), #b3123c); color: #fff; }
.compare-card.compare-bad { border: 2px dashed #f3c2ca; background: #fff; }
.compare-tag { font-size: .78rem; font-weight: 800; opacity: .85; margin-bottom: .5rem; }
.compare-good .compare-tag { color: #ffe1e6; }
.compare-bad .compare-tag { color: var(--brand); }
.compare-card ul { list-style: none; padding: 0; margin: 0; }
.compare-card li { padding: .45rem 0; font-size: .88rem; display: flex; gap: .5rem; align-items: center; }
.compare-bad li i { color: #d6293a; }
.compare-good li i { color: #b9f6ca; }

.feature-card {
    background: #fff; border-radius: 18px; padding: 1.4rem; height: 100%;
    text-align: right; border: 1px solid #f1f1f5;
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(35,37,78,.1); }
.feature-icon { font-size: 1.8rem; margin-bottom: .5rem; }
.feature-card h3 { font-size: .95rem; font-weight: 800; margin-bottom: .35rem; }
.feature-card p { font-size: .82rem; color: #8b8d9f; margin: 0; line-height: 1.9; }

/* ---------- انیمیشن ظاهرشدن با اسکرول ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- زوم عکس محصول ---------- */
.zoom-stage { position: relative; overflow: hidden; border-radius: 16px; cursor: zoom-in; }

/* ---------- Pjax loading bar ---------- */
#pjaxBar {
    display: none;
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px; z-index: 10000;
    background: transparent;
}
.pjax-bar-inner {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--brand), #b3123c);
    transition: width .3s ease;
    border-radius: 0 2px 2px 0;
}

/* ---------- زوم عکس محصول ---------- */
.zoom-stage { position: relative; overflow: hidden; border-radius: 16px; cursor: zoom-in; }
.zoom-stage img { transition: transform .25s ease; will-change: transform; }
.zoom-stage.zooming img { transform: scale(2); }

/* ---------- لایت‌باکس ---------- */
.lightbox {
    position: fixed; inset: 0; background: rgba(15,15,25,.92);
    display: none; align-items: center; justify-content: center; z-index: 3000;
    cursor: zoom-out;
}
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
.lightbox.open { display: flex; }
/* ---------- منوی دسته‌بندی ---------- */
.header-nav { background: #fff; border-top: 1px solid #f1f1f5; position: relative; z-index: 200; }
.nav-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block; padding: .65rem .55rem;
    color: var(--ink); text-decoration: none; font-size: .8rem; font-weight: 600;
    white-space: nowrap; line-height: 1.4;
}
.nav-menu > li > a:hover { color: var(--brand); }

.submenu {
    position: absolute; top: 100%; right: 0;
    min-width: 220px; background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.14);
    border: 1px solid #eee;
    padding: .5rem;
    display: none;
    z-index: 9999;
}
.has-sub:hover > .submenu { display: block; }
.submenu a {
    display: block; padding: .5rem .8rem;
    color: var(--ink); text-decoration: none; font-size: .84rem;
    border-radius: 8px;
}
.submenu a:hover { background: var(--brand-soft); color: var(--brand); }
.submenu-head {
    font-size: .8rem; font-weight: 800; color: var(--brand);
    padding: .4rem .8rem; border-bottom: 1px solid #f3f3f7; margin-bottom: .2rem;
}

/* ---------- مگا منو (همه دسته‌ها) ---------- */
.mega-panel {
    position: absolute; top: 100%; right: 0; left: 0;
    background: #fff;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 36px rgba(0,0,0,.15);
    border: 1px solid #eee;
    padding: 1.2rem 1.6rem;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem 1.5rem;
    z-index: 9999;
}
.nav-menu > li:hover > .mega-panel { display: grid; }
.mega-group { display: flex; flex-direction: column; }
.mega-title {
    font-weight: 800; font-size: .85rem; color: var(--brand);
    padding: .4rem .5rem; text-decoration: none;
    border-bottom: 1px solid #f6f6f9; margin-bottom: .2rem;
}
.mega-link { padding: .3rem .5rem .3rem 1.4rem; font-size: .8rem; color: #555; text-decoration: none; }
.mega-link:hover { color: var(--brand); background: var(--brand-soft); }
/* ---------- Skeleton (Placeholder با انیمیشن) ---------- */
.skeleton{position:relative;overflow:hidden;background:#e9ecef;border-radius:.5rem}
.skeleton::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);animation:skShimmer 1.3s infinite}
@keyframes skShimmer{100%{transform:translateX(100%)}}
.skeleton-card{background:#fff;border-radius:.75rem;padding:.5rem;height:100%}
@media(prefers-reduced-motion:reduce){.skeleton::after{animation:none}}

/* ---------- PWA Section (موکاپ گوشی) ---------- */
.pwa-phone-wrap{position:relative;display:inline-block}
.phone-mockup{width:240px;max-width:80vw;border-radius:40px;background:#1f2340;padding:12px;box-shadow:0 30px 70px rgba(35,37,78,.28);animation:phoneFloat 5s ease-in-out infinite}
@keyframes phoneFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
.phone-screen{border-radius:30px;overflow:hidden;background:#f6f7fb;direction:rtl}
.phone-status{display:flex;justify-content:space-between;align-items:center;padding:6px 14px 2px;font-size:.6rem;color:#6b7080}
.phone-header{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:8px 12px;font-size:.72rem;font-weight:700}
.phone-search{margin:8px 10px;background:#fff;border-radius:20px;padding:6px 12px;font-size:.62rem;color:#9aa0ad;display:flex;justify-content:space-between;align-items:center}
.phone-banner{margin:0 10px;border-radius:14px;background:linear-gradient(135deg,#ef4056,#ff7a59);color:#fff;font-size:.66rem;font-weight:700;padding:10px 12px}
.phone-products{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:8px 10px 10px}
.phone-product{background:#fff;border-radius:10px;padding:4px;text-align:center}
.phone-product img{width:100%;border-radius:8px;aspect-ratio:1;object-fit:cover}
.pp-line{height:5px;border-radius:3px;background:#e8eaf0;margin-top:4px}
.pp-line.short{width:60%;margin-inline:auto}
.pp-price{height:5px;border-radius:3px;background:#ef4056;margin:3px auto 0;width:70%}
.phone-nav{display:flex;justify-content:space-around;background:#fff;padding:7px 0;border-top:1px solid #eef0f4;font-size:.9rem;color:#9aa0ad}
.phone-nav .on{color:#ef4056}
@media(prefers-reduced-motion:reduce){.phone-mockup{animation:none}}

/* ---------- انیمیشن‌های غنی‌تر سکشن‌ها ---------- */
.reveal-right{transform:translateX(40px)}
.reveal-left{transform:translateX(-40px)}
.reveal-zoom{transform:scale(.88)}
.reveal-pop{transform:scale(.6)}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1!important;transform:none!important;transition:none!important}}

/* خط زیر عنوان سکشن‌ها (وقتی وارد دید شد) */
.section-head .section-title{position:relative}
.section-head .section-title::after{content:"";display:block;width:0;height:3px;border-radius:3px;background:#ef4056;margin-top:6px;transition:width .55s ease .25s}
.section-head.visible .section-title::after{width:56px}

/* هاور نرم کارت‌ها */
.product-card{transition:transform .25s ease,box-shadow .25s ease}
.product-card:hover{transform:translateY(-5px);box-shadow:0 12px 28px rgba(35,37,78,.12)}
.cat-strip-item{transition:transform .25s ease,color .25s ease}
.cat-strip-item:hover{transform:translateY(-4px);color:#ef4056}
.blog-card{overflow:hidden}
.blog-card-img{transition:transform .45s ease}
.blog-card:hover .blog-card-img{transform:scale(1.06)}

/* پالس آیکون شگفت‌انگیز */
.amazing-title i{display:inline-block;animation:zapPulse 2.2s ease-in-out infinite}
@keyframes zapPulse{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(1.25) rotate(-8deg)}}
@media(prefers-reduced-motion:reduce){.amazing-title i{animation:none}}

/* ---------- سایدبار فیلترها (الگوی مارکت‌پلیس) ---------- */
.filter-panel{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto}
.filter-panel .filter-sec{border-bottom:1px solid #eef0f4;padding:4px 2px}
.filter-panel details:last-of-type{border-bottom:0}
.filter-panel summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:.85rem;padding:.6rem .25rem}
.filter-panel summary::-webkit-details-marker{display:none}
.filter-panel summary .chev{transition:transform .25s ease;font-size:.75rem;color:#8a90a2}
.filter-panel details[open] summary .chev{transform:rotate(180deg)}
.f-search{margin:.25rem 0 .5rem}
.f-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.42rem .35rem;font-size:.8rem;cursor:pointer;border-radius:.5rem}
.f-row:hover{background:#f7f8fa}
.f-row input[type=checkbox]{accent-color:#ef4056;width:1rem;height:1rem;flex-shrink:0}
.f-count{color:#9aa0ad;font-size:.68rem}
.f-clear{background:#f1f2f6;border:0;border-radius:8px;padding:4px 8px;font-size:.7rem;color:#444}
.f-clear:hover{background:#e6e8ee}
.f-switch{display:flex;align-items:center;justify-content:space-between;padding:.45rem .25rem;font-size:.8rem}
.f-switch .form-check-input{width:2.2rem;height:1.15rem;flex-shrink:0}
.brand-latin{color:#9aa0ad;font-size:.68rem}

/* ---------- شگفت‌انگیز: اسکرول مخفی + درگ موس ---------- */
.scroll-row{scrollbar-width:none;-ms-overflow-style:none;cursor:grab}
.scroll-row::-webkit-scrollbar{display:none;width:0;height:0}
.scroll-row.dragging{cursor:grabbing;scroll-behavior:auto}
.scroll-row.dragging *{pointer-events:none}
.amazing-box .scroll-row{overflow-y:hidden;align-items:stretch}
.amazing-box .scroll-row::-webkit-scrollbar{display:none}

/* ---------- کانتر شگفت‌انگیز (جعبه‌های فارسی) ---------- */
.countdown .cd-box{background:#fff;color:#ef4056;font-weight:800;border-radius:8px;padding:5px 9px;font-size:1rem;min-width:40px;text-align:center;display:inline-block}
.countdown .cd-sep{color:#fff;font-weight:800;padding:0 2px}

/* ---------- اسلایدر قابل درگ ---------- */
#mainSlider.swipeable{cursor:grab}
#mainSlider.swipeable.dragging{cursor:grabbing}
#mainSlider.drag-far .carousel-inner *{pointer-events:none}
#mainSlider .carousel-item img{user-select:none;-webkit-user-drag:none}
#mainSlider .carousel-indicators [data-bs-target]{width:26px;height:4px;border-radius:4px;background:#fff;opacity:.55;border:0}
#mainSlider .carousel-indicators .active{opacity:1;background:#ef4056}

/* ---------- ماسونری: پرفروش‌های هفته ---------- */
.masonry{column-count:4;column-gap:14px}
@media(max-width:991px){.masonry{column-count:3}}
@media(max-width:600px){.masonry{column-count:2}}
.m-card{break-inside:avoid;margin-bottom:14px;background:#f7f7f8;border-radius:18px;overflow:hidden;transition:transform .25s ease,box-shadow .25s ease;display:block;text-decoration:none}
.m-card:hover{transform:translateY(-6px);box-shadow:0 16px 34px rgba(35,37,78,.13)}
.m-card .m-img{background:#fff;display:flex;align-items:center;justify-content:center;padding:10px}
.m-card .m-img img{width:100%;object-fit:cover;aspect-ratio:1/1;border-radius:12px;transition:transform .35s ease}
.m-card:hover .m-img img{transform:scale(1.04)}
.m-card.tall .m-img img{aspect-ratio:4/5.4}
.m-card .m-body{padding:12px 14px 14px}
.m-card .m-name{font-size:.86rem;font-weight:800;color:#23254e;line-height:1.7}
.m-card .m-sub{font-size:.7rem;color:#9aa0ad;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m-card .m-price{font-size:.88rem;font-weight:800;color:#ef4056;margin-top:8px}


/* ---------- ماسونری: ۳ ستون مستقل (چیدمان دقیق) ---------- */
.mgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;align-items:start}
.mcol{display:flex;flex-direction:column;gap:14px}
.mgrid .m-card{margin-bottom:0}
.m-card.tall .m-img img{aspect-ratio:3/4.2}
.m-card.tall .m-name{font-size:.95rem}
.m-card .m-img img{transition:transform .35s ease}
.m-card:hover .m-img img{transform:scale(1.03)}
@media(max-width:991px){.mgrid{gap:12px}}
@media(max-width:600px){
  .mgrid{display:block}
  .mcol + .mcol{margin-top:14px}
}
/* ---------- وبلاگ: گرید تمیز ---------- */
.bgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media(max-width:991px){.bgrid{grid-template-columns:repeat(2,1fr)}}
.b-card{background:#f7f7f8;border-radius:18px;overflow:hidden;display:block;text-decoration:none;transition:transform .25s ease,box-shadow .25s ease}
.b-card:hover{transform:translateY(-6px);box-shadow:0 16px 34px rgba(35,37,78,.13)}
.b-card .b-img{overflow:hidden}
.b-card .b-img img{width:100%;aspect-ratio:4/5;object-fit:cover;display:block;transition:transform .35s ease}
.b-card:hover .b-img img{transform:scale(1.05)}
.b-body{padding:12px 14px 14px}
.b-title{font-size:.84rem;font-weight:800;color:#23254e;line-height:1.8}
.b-sub{font-size:.7rem;color:#9aa0ad;margin-top:4px;line-height:1.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.b-views{font-size:.66rem;color:#9aa0ad;margin-top:8px}

/* ---------- Upload Dropzone (drag & drop + progress) ---------- */
.upload-zone{position:relative;border:2px dashed #cdd2e0;border-radius:16px;background:#fafbff;transition:.2s;cursor:pointer;overflow:hidden}
.upload-zone:hover{border-color:#ef4056;background:#fff5f6}
.upload-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:3}
.upload-preview{max-height:120px;max-width:100%;object-fit:cover}
.progress{background:#eef0f6}

/* ---------- Searchable Select ---------- */
.ss-wrap{position:relative}
.ss-wrap .ss-clear{position:absolute;left:8px;top:50%;transform:translateY(-50%);border:0;background:none;font-size:1rem;color:#98a0b3;cursor:pointer;z-index:5;line-height:1}
.ss-list{position:absolute;top:calc(100% + 4px);right:0;left:0;background:#fff;border:1px solid #e3e6ef;border-radius:12px;box-shadow:0 12px 30px rgba(35,37,78,.14);max-height:260px;overflow:auto;z-index:60;padding:4px}
.ss-item{padding:.5rem .75rem;border-radius:8px;cursor:pointer;font-size:.85rem}
.ss-item:hover{background:#f4f5f9}
.ss-item.active{background:#fdeef0;color:#b3123c;font-weight:700}
/* ---------- Multi Select (chips) ---------- */
.ms-wrap .ms-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.ms-chip{display:inline-flex;align-items:center;gap:4px;background:#fdeef0;color:#b3123c;border-radius:999px;padding:4px 10px;font-size:.78rem;font-weight:700}
.ms-chip .ms-x{border:0;background:none;color:#b3123c;cursor:pointer;font-size:.95rem;line-height:1;padding:0}
/* ---------- Slider banners (1600x600) + overlay ---------- */
.slider-img{aspect-ratio:1600/600;object-fit:cover;min-height:260px}
.slider-slide{position:relative;display:block}
.slider-overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;padding:0 6%;background:linear-gradient(to left,rgba(15,15,30,0) 45%,rgba(15,15,30,.35));}
.slider-badge{background:rgba(255,255,255,.92);color:#b3123c;font-size:.75rem;font-weight:800;border-radius:999px;padding:5px 14px;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.slider-title{color:#fff;font-size:clamp(1.3rem,3.2vw,2.4rem);font-weight:900;text-shadow:0 3px 18px rgba(0,0,0,.35);margin:0;max-width:640px}
.slider-cta{display:inline-flex;align-items:center;gap:6px;background:#fff;color:#1f2340;font-weight:800;font-size:.9rem;border-radius:999px;padding:9px 22px;box-shadow:0 8px 22px rgba(0,0,0,.22);transition:.2s}
.slider-slide:hover .slider-cta{background:#ef4056;color:#fff;transform:translateY(-2px)}
/* ---------- Rich Editor ---------- */
.rich-wrap .ql-toolbar{border-radius:12px 12px 0 0;border-color:#e3e6ef;background:#fafbff}
.rich-wrap .ql-container{border-radius:0 0 12px 12px;border-color:#e3e6ef;font-family:inherit;font-size:.9rem}
.rich-wrap .ql-editor{min-height:140px;direction:rtl;text-align:right}
.rich-wrap .ql-editor.ql-blank::before{color:#98a0b3;font-style:normal}
/* ---------- Slider overlay — نسخه نهایی (فاصله درست بِج/عنوان/CTA) ---------- */
.slider-overlay{position:absolute;inset:0;z-index:2;display:flex !important;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:flex-start;gap:14px;padding:0 6%;pointer-events:none}
.slider-badge{display:inline-block !important;align-self:flex-start;background:rgba(255,255,255,.94);color:#b3123c;font-size:.75rem;font-weight:800;border-radius:999px;padding:6px 16px;box-shadow:0 4px 14px rgba(0,0,0,.2);line-height:1.4}
.slider-title{display:block !important;margin:0 !important;color:#fff;font-size:clamp(1.3rem,3.2vw,2.4rem);font-weight:900;line-height:1.5;text-shadow:0 3px 18px rgba(0,0,0,.4);max-width:620px}
.slider-cta{display:inline-flex !important;align-self:flex-start;align-items:center;gap:6px;background:#fff;color:#1f2340;font-weight:800;font-size:.9rem;border-radius:999px;padding:10px 24px;box-shadow:0 8px 22px rgba(0,0,0,.25);transition:.2s;margin-top:6px;pointer-events:auto}
.slider-slide:hover .slider-cta{background:#ef4056;color:#fff;transform:translateY(-2px)}
/* ---------- PWA Splash Screen (مثل اسنپ) ---------- */
.pwa-splash{position:fixed;inset:0;z-index:999999;background:linear-gradient(135deg,#1f2340 0%,#2d3561 50%,#ef4056 150%);display:flex;align-items:center;justify-content:center;transition:opacity .6s ease,visibility .6s ease}
.pwa-splash.hide{opacity:0;visibility:hidden;pointer-events:none}
.splash-content{text-align:center;color:#fff}
.splash-logo-ring{width:72px;height:72px;margin:0 auto 16px;border:3px solid rgba(255,255,255,.3);border-top-color:#ef4056;border-radius:50%;animation:splashSpin 1.2s linear infinite}
.splash-logo-ring::after{content:"🛍️";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:1.8rem}
@keyframes splashSpin{to{transform:rotate(360deg)}}
.splash-logo-text{font-size:2rem;font-weight:900;letter-spacing:2px;margin-bottom:6px}
.splash-tagline{font-size:.8rem;opacity:.7;margin-bottom:24px}
.splash-loader{display:flex;gap:6px;justify-content:center}
.splash-dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.4);animation:splashBounce .6s ease infinite alternate}
.splash-dot:nth-child(2){animation-delay:.2s}
.splash-dot:nth-child(3){animation-delay:.4s}
@keyframes splashBounce{to{transform:translateY(-8px);background:#ef4056}}

/* ---------- Bottom Navigation (Glassmorphism) ---------- */
.bottom-nav{position:fixed;bottom:12px;left:12px;right:12px;z-index:9000;display:none;
  background:rgba(255,255,255,.72);backdrop-filter:blur(24px) saturate(180%);-webkit-backdrop-filter:blur(24px) saturate(180%);
  border:1px solid rgba(255,255,255,.4);border-radius:22px;
  box-shadow:0 8px 32px rgba(0,0,0,.12),0 2px 8px rgba(0,0,0,.06),inset 0 1px 0 rgba(255,255,255,.5);
  padding:6px 4px;justify-content:space-around;align-items:center}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;text-decoration:none;color:#6b7280;font-size:.6rem;font-weight:600;padding:6px 10px;border-radius:14px;transition:.2s;position:relative}
.bottom-nav a i{font-size:1.25rem}
.bottom-nav a.active{color:#ef4056;background:rgba(239,64,86,.08)}
.bottom-nav a:active{transform:scale(.92)}
.bottom-nav .bn-badge{position:absolute;top:2px;right:8px;background:#ef4056;color:#fff;font-size:.55rem;font-weight:800;border-radius:999px;min-width:16px;height:16px;display:flex;align-items:center;justify-content:center;padding:0 4px}
@media(max-width:768px){.bottom-nav{display:flex}}
@media(min-width:769px){.bottom-nav{display:none !important}}
/* فضای خالی پایین صفحه برای پنهان نشدن محتوا در موبایل */
@media(max-width:768px){body{padding-bottom:0}}

/* ============================================================
   Dark Mode — data-bs-theme="dark" (Bootstrap 5.3) + overrides
   ============================================================ */
[data-bs-theme="dark"] html, body { overflow-x: clip; }
body {
    background: #121417;
    color: #e4e6eb;
}
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .card.bg-white,
[data-bs-theme="dark"] .product-card,
[data-bs-theme="dark"] .filter-panel {
    background-color: #1c1f23 !important;
    color: #e4e6eb;
}
[data-bs-theme="dark"] .text-dark { color: #e4e6eb !important; }
[data-bs-theme="dark"] .text-muted { color: #9aa0a6 !important; }
[data-bs-theme="dark"] .border, [data-bs-theme="dark"] .border-bottom, [data-bs-theme="dark"] .border-top {
    border-color: #2c3034 !important;
}
[data-bs-theme="dark"] .bg-light { background-color: #24272b !important; }
[data-bs-theme="dark"] .btn-outline-secondary { color: #cfd2d6; border-color: #4a4f55; }
[data-bs-theme="dark"] .btn-outline-secondary:hover { background: #2c3034; }
[data-bs-theme="dark"] .badge.bg-light { background: #2c3034 !important; color: #e4e6eb; }
[data-bs-theme="dark"] .dropdown-menu { background: #1c1f23; border-color: #2c3034; }
[data-bs-theme="dark"] .dropdown-item { color: #e4e6eb; }
[data-bs-theme="dark"] .dropdown-item:hover { background: #2c3034; }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select {
    background: #1c1f23; color: #e4e6eb; border-color: #3a3f45;
}
[data-bs-theme="dark"] .form-control::placeholder { color: #6c757d; }
[data-bs-theme="dark"] .alert-light { background: #1c1f23; color: #e4e6eb; }
[data-bs-theme="dark"] .table { color: #e4e6eb; }
[data-bs-theme="dark"] .table-hover tbody tr:hover { color: #fff; }

/* ---------- Dark Mode جامع (نسخه ۲) ---------- */
[data-bs-theme="dark"] .card:not(.bg-white):not(.text-bg-success):not(.text-bg-danger),
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .offcanvas,
[data-bs-theme="dark"] .accordion-item,
[data-bs-theme="dark"] .list-group-item,
[data-bs-theme="dark"] .toast {
    background-color: #1c1f23;
    color: #e4e6eb;
    border-color: #2c3034;
}
[data-bs-theme="dark"] .btn-light { background: #2c3034; border-color: #3a3f45; color: #e4e6eb; }
[data-bs-theme="dark"] .btn-outline-primary { color: #6ea8fe; border-color: #3d5a80; }
[data-bs-theme="dark"] .btn-outline-danger,
[data-bs-theme="dark"] .btn-outline-success,
[data-bs-theme="dark"] .btn-outline-secondary { border-color: #4a4f55; }
[data-bs-theme="dark"] .input-group-text { background: #2c3034; border-color: #3a3f45; color: #e4e6eb; }
[data-bs-theme="dark"] .form-check-input { background-color: #3a3f45; border-color: #4a4f55; }
[data-bs-theme="dark"] .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
[data-bs-theme="dark"] .table th, [data-bs-theme="dark"] .table td { border-color: #2c3034; }
[data-bs-theme="dark"] hr { border-color: #2c3034; opacity: 1; }
[data-bs-theme="dark"] .alert-danger { background: #2c1215 !important; color: #f1aeb5; border-color: #5c2b30 !important; }
[data-bs-theme="dark"] .alert-info { background: #0f2430 !important; color: #9ee0f5; border-color: #1c4a5c !important; }
[data-bs-theme="dark"] .alert-success { background: #0f2418 !important; color: #8ee0b0; border-color: #1c5c34 !important; }
[data-bs-theme="dark"] .alert-warning { background: #2e2410 !important; color: #ffd88a; border-color: #5c4a1c !important; }
[data-bs-theme="dark"] .nav-pills .nav-link { color: #cfd2d6; }
[data-bs-theme="dark"] .nav-pills .nav-link.active { background: var(--brand); color: #fff; }
[data-bs-theme="dark"] .page-link { background: #1c1f23; border-color: #3a3f45; color: #e4e6eb; }
[data-bs-theme="dark"] .breadcrumb-item a { color: #9aa0a6; }
[data-bs-theme="dark"] .breadcrumb-item + .breadcrumb-item::before { color: #6c757d; }
[data-bs-theme="dark"] .stock-warning { background: #2e2410; color: #ffd88a; }
[data-bs-theme="dark"] .discount-badge { background: #5c1a24; color: #ffb3c0; }
[data-bs-theme="dark"] .site-header { background: #17191d; border-color: #2c3034; }
[data-bs-theme="dark"] .search-input { background: #1c1f23; color: #e4e6eb; }
[data-bs-theme="dark"] .submenu { background: #1c1f23; border-color: #2c3034; }
[data-bs-theme="dark"] .submenu a { color: #e4e6eb; }
[data-bs-theme="dark"] .submenu a:hover { background: #2c3034; }
[data-bs-theme="dark"] .ship-option input:checked + .card,
[data-bs-theme="dark"] .ship-option .card { background: #1c1f23; color: #e4e6eb; border-color: #3a3f45; }
[data-bs-theme="dark"] .ship-option input:checked + .card { border-color: var(--brand); background: #2c1215; }
[data-bs-theme="dark"] .tier-box, [data-bs-theme="dark"] .filter-panel,
[data-bs-theme="dark"] .ads-filter { background: #1c1f23 !important; border-color: #2c3034 !important; }
[data-bs-theme="dark"] .tier-badge { background: #2c3034 !important; color: #e4e6eb !important; }
[data-bs-theme="dark"] .comment-item, [data-bs-theme="dark"] .amazing-box { background: #1c1f23; color: #e4e6eb; }
[data-bs-theme="dark"] .offcanvas { background: #17191d; color: #e4e6eb; }
[data-bs-theme="dark"] .accordion-button { background: #1c1f23; color: #e4e6eb; }
[data-bs-theme="dark"] .accordion-button:not(.collapsed) { background: #2c3034; }
[data-bs-theme="dark"] .accordion-html, body { overflow-x: clip; }
body { background: #1c1f23; color: #e4e6eb; }
[data-bs-theme="dark"] .badge.text-bg-light, [data-bs-theme="dark"] .badge.bg-light.text-dark { background: #2c3034 !important; color: #e4e6eb !important; }
[data-bs-theme="dark"] .border-end, [data-bs-theme="dark"] .border-start { border-color: #2c3034 !important; }
[data-bs-theme="dark"] .bg-success-subtle { background: #10331f !important; color: #8ee0b0 !important; }
[data-bs-theme="dark"] .bg-danger-subtle { background: #331a1e !important; color: #f1aeb5 !important; }
[data-bs-theme="dark"] .bg-warning-subtle { background: #332a10 !important; color: #ffd88a !important; }
[data-bs-theme="dark"] .bg-info-subtle { background: #0f2a33 !important; color: #9ee0f5 !important; }
[data-bs-theme="dark"] .bg-primary-subtle { background: #14203a !important; color: #a8c7fa !important; }
[data-bs-theme="dark"] .btn-outline-secondary:hover { background: #2c3034; }
[data-bs-theme="dark"] .product-card .price, [data-bs-theme="dark"] .text-success { }
[data-bs-theme="dark"] .footer-links a { color: #b9bcd9; }
[data-bs-theme="dark"] .amazing-box { border-color: #5c2b30; }


/* ---------- کارت معرفی به دوستان (افیلیت) ---------- */
.referral-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: referralGlow 3s ease-in-out infinite;
}
@keyframes referralGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, .4); }
    50% { box-shadow: 0 0 24px 4px rgba(118, 75, 162, .35); }
}
.referral-hero .btn-light { transition: transform .15s; }
.referral-hero .btn-light:hover { transform: translateY(-2px) scale(1.04); }

/* ---------- ولیدیشن خوشگل سراسری (MVC + Blazor) ---------- */
.input-validation-error,
.form-control.input-validation-error,
.form-select.input-validation-error,
textarea.input-validation-error,
input.invalid,
select.invalid,
textarea.invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12'%3e%3ccircle fill='%23dc3545' cx='6' cy='6' r='6'/%3e%3cpath fill='white' d='M6 3a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-1.5 0v-2.5A.75.75 0 0 1 6 3zm0 5.5a.9.9 0 1 0 0 1.8.9.9 0 0 0 0-1.8z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.6rem center;
    background-size: 0.9rem;
    padding-left: 2rem;
}
.input-validation-error:focus,
input.invalid:focus,
textarea.invalid:focus,
select.invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}
input.valid:focus,
textarea.valid:focus,
select.valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.12);
}
.field-validation-error,
.validation-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}
.field-validation-error::before,
.validation-message::before {
    content: '\\26A0\\FE0F ';
    font-size: 0.7rem;
}
.field-validation-valid { display: none; }
.validation-summary-errors {
    background: #fff5f5;
    border: 1px solid #f5c2c7;
    border-right: 4px solid #dc3545;
    border-radius: 0.75rem;
    padding: 0.9rem 1.1rem;
    color: #842029;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.validation-summary-errors ul { margin: 0.25rem 0 0; padding-right: 1.1rem; }
.validation-summary-errors li { margin-bottom: 0.3rem; }
.validation-summary-valid { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .input-validation-error, input.invalid, textarea.invalid, select.invalid {
        animation: validationPop 0.25s ease;
    }
    @keyframes validationPop {
        0% { transform: translateX(0); }
        25% { transform: translateX(-3px); }
        75% { transform: translateX(3px); }
        100% { transform: translateX(0); }
    }
}
[data-bs-theme='dark'] .validation-summary-errors { background: #2c1215; border-color: #5c2b30; color: #f1aeb5; }

/* ---------- لیست آگهی‌ها (مدرن) ---------- */
.ads-hero {
    background: linear-gradient(135deg, var(--brand) 0%, #b32c3f 100%);
    color: #fff;
    padding: 1.6rem 1.8rem;
}
.ads-filter { position: sticky; top: 76px; z-index: 100; }
.cat-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.chip {
    border: 1px solid #e2e5ec; background: #fff; color: #495057;
    border-radius: 2rem; padding: .35rem 1rem; font-size: .82rem; white-space: nowrap;
    transition: all .15s ease; cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.ad-card {
    background: #fff; border: 1px solid #eef0f4; border-radius: 1rem; overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease; height: 100%;
    display: flex; flex-direction: column;
}
.ad-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.1); border-color: transparent; }
.ad-img-wrap { position: relative; padding-top: 72%; overflow: hidden; background: #f4f5f8; }
.ad-img-wrap img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform .35s ease;
}
.ad-card:hover .ad-img-wrap img { transform: scale(1.06); }
.ad-urgent {
    position: absolute; top: .6rem; inset-inline-start: .6rem;
    background: #dc3545; color: #fff; font-size: .68rem; font-weight: 700;
    padding: .2rem .55rem; border-radius: 1rem;
}
.ad-title { font-size: .86rem; font-weight: 600; line-height: 1.5; }
.ad-price { font-size: .95rem; font-weight: 800; color: var(--brand); }
.ad-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .7rem; color: #98a2b3; margin-top: .6rem;
}
.ad-meta i { opacity: .7; }

.sk-img { padding-top: 72%; background: linear-gradient(90deg, #f1f2f6 25%, #e9ebf0 50%, #f1f2f6 75%); background-size: 200% 100%; animation: skShimmer 1.4s infinite; }
.sk-line { height: 12px; border-radius: .4rem; background: linear-gradient(90deg, #f1f2f6 25%, #e9ebf0 50%, #f1f2f6 75%); background-size: 200% 100%; animation: skShimmer 1.4s infinite; }
@keyframes skShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty-state i { font-size: 3.4rem !important; }
[data-bs-theme="dark"] .ad-card { background: #1c1e23; border-color: #2a2d34; }
[data-bs-theme="dark"] .chip { background: #1c1e23; border-color: #2a2d34; color: #cfd4dc; }
[data-bs-theme="dark"] .chip.on { background: var(--brand); color: #fff; }
[data-bs-theme="dark"] .ads-filter { background: #1c1e23; }
[data-bs-theme="dark"] .ads-hero { background: linear-gradient(135deg, #b32c3f 0%, #6e1a26 100%); }

/* ---------- جزئیات آگهی (مدرن) ---------- */
.ad-price-chip {
    display: inline-block;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff; font-size: 1.35rem; font-weight: 800;
    padding: .55rem 1.4rem; border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(22, 163, 74, .3);
}
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.spec-item {
    background: #f8f9fb; border: 1px solid #eef0f4; border-radius: .75rem;
    padding: .55rem .8rem; display: flex; justify-content: space-between; gap: .5rem;
}
.spec-name { color: #6b7280; font-size: .78rem; align-self: center; }
.spec-val { font-weight: 700; font-size: .8rem; text-align: left; }
[data-bs-theme="dark"] .spec-item { background: #1c1e23; border-color: #2a2d34; }
[data-bs-theme="dark"] .spec-name { color: #9ca3af; }

/* ---------- جزئیات آگهی (بازطراحی مدرن) ---------- */
.ad-detail { padding-bottom: 96px; }
@media (min-width: 992px) { .ad-detail { padding-bottom: 1.5rem; } }
.ad-crumb { padding: .9rem 0 .2rem; font-size: .82rem; }
.ad-gallery { position: relative; border-radius: 1.25rem; overflow: hidden; background: #0e1013; aspect-ratio: 4 / 3; max-height: 480px; cursor: zoom-in; }
.ad-g-main { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-g-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: #23254e; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 3; transition: transform .15s ease, background .15s ease; }
.ad-g-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.ad-g-prev { inset-inline-start: 14px; }
.ad-g-next { inset-inline-end: 14px; }
.ad-g-counter { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(14,16,19,.62); color: #fff; border-radius: 999px; font-size: .78rem; font-weight: 700; padding: .3rem .8rem; z-index: 3; backdrop-filter: blur(4px); }
.ad-g-zoomhint { position: absolute; bottom: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 10px; background: rgba(14,16,19,.55); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 3; backdrop-filter: blur(4px); }
.ad-g-urgent { position: absolute; top: 14px; inset-inline-end: 14px; background: #ef4056; color: #fff; border-radius: 999px; font-size: .75rem; font-weight: 800; padding: .3rem .8rem; z-index: 3; box-shadow: 0 4px 14px rgba(239,64,86,.45); }
.ad-g-sold { position: absolute; inset: 0; background: rgba(14,16,19,.55); display: flex; align-items: center; justify-content: center; z-index: 4; }
.ad-g-sold span { border: 2px solid #fff; color: #fff; padding: .5rem 1.6rem; border-radius: .8rem; font-weight: 900; font-size: 1.15rem; transform: rotate(-8deg); }
.ad-g-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .75rem .1rem 0; scrollbar-width: none; }
.ad-g-thumbs::-webkit-scrollbar { display: none; }
.ad-g-thumb { flex: 0 0 auto; width: 72px; height: 56px; border-radius: .6rem; object-fit: cover; cursor: pointer; opacity: .6; border: 2px solid transparent; transition: all .15s ease; }
.ad-g-thumb:hover { opacity: .9; }
.ad-g-thumb.on { opacity: 1; border-color: var(--brand); }
.ad-sec { background: #fff; border: 1px solid #eef0f4; border-radius: 1.25rem; padding: 1.2rem 1.4rem; }
.ad-title { font-size: 1.3rem; font-weight: 900; color: var(--ink); line-height: 1.7; margin: 0; }
.ad-badge-feat { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border-radius: 999px; font-size: .75rem; font-weight: 800; padding: .35rem .85rem; white-space: nowrap; }
.ad-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; color: #7a7d9c; font-size: .8rem; margin-top: .6rem; }
.ad-meta-row i { opacity: .75; }
.ad-meta-sep { width: 4px; height: 4px; border-radius: 50%; background: #c9ccd8; }
.ad-sec-title { font-size: .95rem; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: .5rem; padding-bottom: .7rem; margin: 0 0 1rem; border-bottom: 1px solid #f1f2f6; }
.ad-sec-title i { color: var(--brand); }
.ad-desc { color: #3f4254; line-height: 2.1; font-size: .92rem; white-space: pre-line; }
.ad-map-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.ad-map-chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid #e5e7ef; background: #f8f9fb; color: #3f4254; border-radius: 999px; padding: .38rem .9rem; font-size: .78rem; font-weight: 600; text-decoration: none; transition: all .15s ease; }
.ad-map-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.ad-safety { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 1px solid #bbf7d0; border-radius: 1.25rem; padding: 1.1rem 1.4rem; color: #166534; font-size: .85rem; }
.ad-safety i { color: #16a34a; }
.ad-safety ul { padding-inline-start: 1.1rem; line-height: 2; margin-top: .4rem; }
.ad-contact { background: #fff; border: 1px solid #eef0f4; border-radius: 1.25rem; padding: 1.3rem; }
@media (min-width: 992px) { .ad-contact { position: sticky; top: 104px; } }
.ad-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #7c3aed); color: #fff; font-size: 1.2rem; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ad-reveal-btn { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; border: none; border-radius: 1rem; padding: .8rem 1rem; font-size: 1.05rem; font-weight: 800; box-shadow: 0 6px 18px rgba(22,163,74,.3); transition: all .15s ease; }
.ad-reveal-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,163,74,.4); color: #fff; }
.ad-phone-box { background: #f0fdf4; border: 1px dashed #86efac; border-radius: 1rem; padding: .8rem; text-align: center; }
.ad-phone-box a { color: #15803d; }
.ad-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.ad-action { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; background: #f8f9fb; border: 1px solid #eef0f4; border-radius: .9rem; padding: .55rem .3rem; font-size: .7rem; font-weight: 600; color: #5b5e73; transition: all .15s ease; }
.ad-action i { font-size: 1.05rem; }
.ad-action:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.ad-action.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.ad-report { background: #fff8f8; border: 1px solid #fecaca; border-radius: .9rem; padding: .7rem; }
.ad-mini-urgent { position: absolute; top: 8px; inset-inline-start: 8px; background: #ef4056; color: #fff; font-size: .65rem; font-weight: 800; border-radius: 999px; padding: .15rem .55rem; z-index: 2; }
.ad-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; font-weight: 700; color: var(--ink); line-height: 1.7; min-height: 2.9em; }
.ad-card-price { font-size: .85rem; font-weight: 900; color: var(--brand); margin-top: .3rem; }
.ad-mobile-bar { position: fixed; bottom: 0; inset-inline: 0; background: #fff; border-top: 1px solid #eef0f4; box-shadow: 0 -6px 24px rgba(0,0,0,.08); padding: .6rem .9rem; padding-bottom: calc(.6rem + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .6rem; z-index: 1500; }
.ad-bar-price { font-weight: 900; color: #15803d; font-size: .9rem; white-space: nowrap; }

/* ---------- لایت‌باکس گالری (زوم/سوایپ) ---------- */
.ad-lightbox { position: fixed; inset: 0; z-index: 20000; background: rgba(8,9,12,.94); display: none; align-items: center; justify-content: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.ad-lightbox.open { display: flex; }
.alb-img { max-width: 94vw; max-height: 86vh; border-radius: .6rem; transition: transform .18s ease; will-change: transform; -webkit-user-drag: none; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.alb-close { position: fixed; top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 1.5rem; z-index: 2; transition: background .15s ease; }
.alb-close:hover { background: rgba(255,255,255,.25); color: #fff; }
.alb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 1.5rem; z-index: 2; transition: background .15s ease; }
.alb-nav:hover { background: rgba(255,255,255,.25); color: #fff; }
.alb-prev { inset-inline-start: 16px; }
.alb-next { inset-inline-end: 16px; }
.alb-counter { position: fixed; top: 26px; inset-inline: 0; margin-inline: auto; width: fit-content; background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; font-size: .85rem; font-weight: 700; padding: .35rem 1rem; z-index: 2; }
.alb-hint { position: fixed; bottom: 18px; inset-inline: 0; margin-inline: auto; width: fit-content; color: rgba(255,255,255,.65); font-size: .78rem; background: rgba(255,255,255,.08); border-radius: 999px; padding: .3rem .9rem; z-index: 2; pointer-events: none; transition: opacity .6s ease; }
.ad-lightbox.open .alb-hint { animation: albHintFade 5s forwards; }
@keyframes albHintFade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

[data-bs-theme="dark"] .ad-sec { background: #1c1e23; border-color: #2a2d34; }
[data-bs-theme="dark"] .ad-title, [data-bs-theme="dark"] .ad-sec-title { color: #e8eaf0; }
[data-bs-theme="dark"] .ad-sec-title { border-bottom-color: #2a2d34; }
[data-bs-theme="dark"] .ad-desc { color: #cfd4dc; }
[data-bs-theme="dark"] .ad-contact { background: #1c1e23; border-color: #2a2d34; }
[data-bs-theme="dark"] .ad-map-chip { background: #23252c; border-color: #2a2d34; color: #cfd4dc; }
[data-bs-theme="dark"] .ad-map-chip:hover { background: rgba(239,64,86,.12); }
[data-bs-theme="dark"] .ad-action { background: #23252c; border-color: #2a2d34; color: #aeb3bf; }
[data-bs-theme="dark"] .ad-action:hover, [data-bs-theme="dark"] .ad-action.on { background: rgba(239,64,86,.12); }
[data-bs-theme="dark"] .ad-report { background: rgba(239,64,86,.06); border-color: #452428; }
[data-bs-theme="dark"] .ad-mobile-bar { background: #1c1e23; border-top-color: #2a2d34; }
[data-bs-theme="dark"] .ad-phone-box { background: rgba(22,163,74,.08); border-color: #14532d; }
[data-bs-theme="dark"] .ad-safety { background: rgba(22,163,74,.08); border-color: #14532d; color: #86efac; }

/* ---------- ریسپانسیو هدر (موبایل باریک) ---------- */
@media (max-width: 575.98px) {
    .header-top { gap: .4rem !important; padding-block: .55rem !important; }
    .header-actions { gap: .1rem !important; }
    .header-actions .btn-icon { padding: .25rem .4rem; }
    .header-actions .btn-user { padding: .25rem .5rem; font-size: .78rem; }
    .search-box { min-width: 0; }
    .search-input { height: 38px; padding-inline-start: 2.1rem; font-size: .8rem; }
    .brand-name { font-size: 1rem; }
    .brand-logo { width: 34px; height: 34px; font-size: 1.05rem; }
}

/* ---------- اسکرول‌استریپ‌های افقی: حذف مارجین منفی ردیف ---------- */
.amazing-box .row,
.product-strip .row,
.strip-scroll.row { margin-inline: 0; }

/* ---------- منوی موبایل (offcanvas) پولیش + بنر بروزرسانی ---------- */
/* بنر بروزرسانی وقتی منو/مودال باز است مخفی شود (تداخل بصری نداشته باشد) */
body:has(.offcanvas.show) #updateBanner,
body:has(.modal.show) #updateBanner { display: none !important; }

.offcanvas.mobile-menu { width: 300px; background: #1c1e28; color: #e7e8f4; }
[data-bs-theme="dark"] .offcanvas.mobile-menu { background: #14151d; }
.offcanvas.mobile-menu .offcanvas-header {
    padding: 1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08);
    position: sticky; top: 0; background: #1c1e28; z-index: 2;
}
[data-bs-theme="dark"] .offcanvas.mobile-menu .offcanvas-header { background: #14151d; }
.offcanvas.mobile-menu .offcanvas-title { font-weight: 800; color: #fff; display: flex; align-items: center; gap: .5rem; }
.offcanvas.mobile-menu .btn-close { filter: invert(1); opacity: .8; }
.offcanvas.mobile-menu .offcanvas-html, body { overflow-x: clip; }
body { padding: .6rem .7rem 2rem; overflow-y: auto; }
.offcanvas.mobile-menu .mobile-link {
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem .65rem; margin: 0 0 .15rem;
    color: #d7daea; text-decoration: none; font-size: .92rem; font-weight: 600;
    border-radius: .8rem; transition: background .12s ease, color .12s ease;
}
.offcanvas.mobile-menu .mobile-link i { color: #9fa2c4; font-size: 1.05rem; width: 1.3rem; text-align: center; }
.offcanvas.mobile-menu .mobile-link:hover,
.offcanvas.mobile-menu .mobile-link:active { background: rgba(239,64,86,.14); color: #fff; }
.offcanvas.mobile-menu .mobile-link:hover i { color: #ff8a9c; }
.offcanvas.mobile-menu .mobile-link.sub {
    padding: .45rem .65rem .45rem 2.4rem; font-size: .8rem; font-weight: 500;
    color: #b9bcd9; border-radius: .6rem; margin-bottom: .1rem;
}
.offcanvas.mobile-menu .mobile-link.sub i { font-size: .8rem; width: auto; }
.offcanvas.mobile-menu .mobile-link.fw-bold { margin-top: .35rem; color: #fff; }
.offcanvas.mobile-menu hr { border-color: rgba(255,255,255,.08); opacity: 1; margin: .6rem 0; }
.offcanvas.mobile-menu .mobile-cat { margin-bottom: .4rem; }

/* ---------- کارت آگهی مدرن ---------- */
.ads-page .ad-card {
    background: #fff; border: 1px solid #eef0f4; border-radius: 1rem; overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    height: 100%; display: flex; flex-direction: column;
}
.ads-page .ad-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); border-color: transparent; }
.ads-page .ad-card .ad-img-wrap { position: relative; padding-top: 68%; overflow: hidden; background: #f4f5f8; }
.ads-page .ad-card .ad-img-wrap img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; transition: transform .3s ease; }
.ads-page .ad-card:hover .ad-img-wrap img { transform: scale(1.04); }
.ads-page .ad-card .badge-urgent { position: absolute; top: 8px; inset-inline-start: 8px; background: #ef4056; color: #fff; border-radius: 999px; padding: 2px 8px; font-size: .65rem; font-weight: 700; }
.ads-page .ad-card .badge-featured { position: absolute; top: 8px; inset-inline-start: 8px; background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: .65rem; font-weight: 700; }
.ads-page .ad-card .ad-html, body { overflow-x: clip; }
body { padding: .75rem .9rem; display: flex; flex-direction: column; flex-grow: 1; }
.ads-page .ad-card .ad-title { font-size: .82rem; font-weight: 700; color: var(--ink); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.ads-page .ad-card .ad-price { font-size: .82rem; font-weight: 900; color: var(--brand); margin-top: auto; padding-top: .4rem; }
.ads-page .ad-card .ad-meta { display: flex; align-items: center; gap: .4rem; margin-top: .3rem; font-size: .7rem; color: #9ca3af; }
[data-bs-theme="dark"] .ads-page .ad-card { background: #1c1e23; border-color: #2a2d34; }
[data-bs-theme="dark"] .ads-page .ad-card .ad-title { color: #e8eaf0; }
.ads-page .ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
@media (max-width: 575.98px) { .ads-page .ads-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; } }

/* ---------- فیلتر بار compact ---------- */
.ads-filter { background: #fff; }
[data-bs-theme="dark"] .ads-filter { background: #1c1e23; }
.ads-filter .form-select, .ads-filter .form-control { border-radius: .7rem; font-size: .82rem; height: 38px; }
.ads-filter .btn-group .btn { border-radius: .7rem !important; padding: .35rem .65rem; font-size: .78rem; }
.ads-page .ad-crumb { padding: .8rem 0 .1rem; font-size: .78rem; color: #98a2b3; }
.ads-page .ads-count-badge { background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: .2rem .7rem; font-size: .72rem; font-weight: 700; }
/* ---------- چنج‌لاگ مودال ---------- */
#changelogOverlay { position: fixed; inset: 0; z-index: 30000; display: flex; align-items: center; justify-content: center; }
.cl-backdrop { position: absolute; inset: 0; background: rgba(8,9,12,.7); backdrop-filter: blur(6px); animation: clFadeIn .3s ease; }
.cl-modal {
    position: relative; z-index: 1;
    width: 92vw; max-width: 520px; max-height: 88vh;
    background: #fff; border-radius: 1.4rem; overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.3);
    animation: clPopIn .4s cubic-bezier(.34,1.56,.64,1);
    display: flex; flex-direction: column;
}
[data-bs-theme="dark"] .cl-modal { background: #1c1e23; }
.cl-modal.cl-closing { animation: clPopOut .25s ease forwards; }
@keyframes clFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes clPopIn { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes clPopOut { to { opacity: 0; transform: scale(.9) translateY(15px); } }

.cl-header { text-align: center; padding: 1.8rem 1.5rem 1rem; position: relative; background: linear-gradient(135deg, #ef4056, #7c3aed); color: #fff; border-radius: 1.4rem 1.4rem 0 0; }
.cl-rocket { font-size: 3.2rem; animation: clRocket 2s ease infinite alternate; display: inline-block; }
@keyframes clRocket { 0% { transform: translateY(0) rotate(-5deg); } 100% { transform: translateY(-6px) rotate(5deg); } }
.cl-title { font-size: 1.5rem; font-weight: 900; margin: .5rem 0 .2rem; }
.cl-subtitle { font-size: .85rem; opacity: .85; }
.cl-close {
    position: absolute; top: 12px; inset-inline-start: 12px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.2); color: #fff; border: none;
    font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.cl-close:hover { background: rgba(255,255,255,.35); }

.cl-html, body { overflow-x: clip; }
body { padding: 1rem 1.2rem; overflow-y: auto; flex-grow: 1; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .55rem; }
.cl-item {
    display: flex; align-items: flex-start; gap: .6rem;
    background: #f8f9fb; border: 1px solid #eef0f4; border-radius: .9rem;
    padding: .7rem .8rem; transition: transform .12s ease;
}
.cl-item:hover { transform: translateY(-2px); }
[data-bs-theme="dark"] .cl-item { background: #23252c; border-color: #2a2d34; }
.cl-icon { font-size: 1.4rem; flex-shrink: 0; width: 1.8rem; text-align: center; }
.cl-item-title { display: block; font-size: .8rem; font-weight: 800; color: var(--ink); }
[data-bs-theme="dark"] .cl-item-title { color: #e8eaf0; }
.cl-item-desc { display: block; font-size: .7rem; color: #9ca3af; margin-top: .1rem; line-height: 1.5; }

.cl-footer { text-align: center; padding: .8rem 1.5rem 1.2rem; }
.cl-btn-start {
    background: linear-gradient(135deg, var(--brand), #7c3aed); color: #fff;
    border: none; border-radius: 999px; padding: .7rem 2.5rem;
    font-size: .95rem; font-weight: 800; cursor: pointer;
    box-shadow: 0 6px 20px rgba(239,64,86,.3);
    transition: transform .15s ease, box-shadow .15s ease;
}
.cl-btn-start:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(239,64,86,.4); }

/* ============================================================
   UI v3 — منوی موبایل مدرن + دارک جامع + مقایسه + پنل فروشنده
   ============================================================ */

/* ---------- منوی موبایل: راست‌بازشو، انیمیشن، مدرن ---------- */
.offcanvas.mobile-menu {
    width: min(86vw, 330px);
    background: var(--panel);
    border-left: 1px solid var(--hairline);
    border-radius: 0 0 0 0;
}
.mobile-menu-head {
    background: linear-gradient(135deg, var(--brand), #7c3aed);
    color: #fff;
    padding: 1.1rem 1.25rem;
    border-radius: 0 0 1.2rem 0;
}
.mobile-menu-head .offcanvas-title { color: #fff; font-weight: 900; font-size: 1.05rem; }
.mobile-menu-head .btn-close { opacity: .9; }
.mobile-menu .offcanvas-html, body { overflow-x: clip; }
body { padding: .9rem; overflow-y: auto; }
.mobile-menu .mobile-link {
    display: flex;
    align-items: center;
    padding: .68rem .85rem;
    margin-bottom: .15rem;
    border-radius: .9rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    transition: background .15s ease, transform .15s ease, color .15s ease;
    animation: drawerItem .38s cubic-bezier(.2,.8,.3,1) both;
}
.mobile-menu .mobile-link:hover,
.mobile-menu .mobile-link:focus { background: var(--soft-1); color: var(--brand); transform: translateX(-4px); }
.mobile-menu .mobile-link.sub {
    padding-inline-start: 2.1rem;
    font-weight: 500;
    font-size: .88rem;
    color: var(--ink-muted);
    animation-delay: .05s;
}
.mobile-menu .mobile-cat { margin-bottom: .6rem; }
.mobile-menu hr { border-color: var(--hairline); opacity: 1; margin: .7rem 0; }
.mobile-menu .mobile-cat .mobile-link { animation-delay: .08s; }
@keyframes drawerItem {
    from { opacity: 0; transform: translateX(26px); }
    to   { opacity: 1; transform: none; }
}
/* اسکریم هم‌نو با تم */
.offcanvas-backdrop { backdrop-filter: blur(2px); }

/* ---------- دکمه مقایسه روی کارت محصول ---------- */
.compare-btn {
    position: absolute;
    top: .5rem;
    inset-inline-start: .5rem;
    z-index: 3;
    border: 0;
    background: rgba(255,255,255,.92);
    color: #6c757d;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: transform .15s, color .15s, background .15s;
}
.compare-btn:hover { transform: scale(1.1); color: var(--brand); }
.compare-btn.in-compare { color: var(--brand); background: var(--brand-soft); }
.compare-btn.in-compare i::before { content: "\F270"; } /* bi-check2 */
.compare-bar {
    position: fixed;
    bottom: 76px;
    inset-inline: 0;
    z-index: 1040;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.compare-bar .inner {
    pointer-events: auto;
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    padding: .5rem .9rem;
    display: flex; align-items: center; gap: .8rem;
    animation: comparePop .3s cubic-bezier(.2,.8,.3,1);
}
@keyframes comparePop { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
[data-bs-theme="dark"] .compare-btn { background: rgba(28,31,35,.92); color: #cfd2d6; }

/* ---------- پنل فروشنده v2 — مدرن و حرفه‌ای ---------- */
.seller-hero {
    background: linear-gradient(135deg, var(--brand) 0%, #7c3aed 100%);
    border-radius: 1.4rem;
    color: #fff;
    padding: 1.6rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(239,64,86,.25);
}
.seller-hero::after {
    content: "";
    position: absolute;
    inset-inline-end: -40px; top: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
}
.seller-hero h4 { color: #fff; font-weight: 900; margin: 0; }
.seller-hero .muted { color: rgba(255,255,255,.85); font-size: .88rem; }
.seller-stat {
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 1.2rem;
    padding: 1rem 1.1rem;
    height: 100%;
    display: flex; align-items: center; gap: .9rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.seller-stat:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.10); border-color: var(--brand); }
.seller-stat .ic {
    width: 46px; height: 46px;
    border-radius: .9rem;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    background: var(--brand-soft);
    color: var(--brand);
    flex-shrink: 0;
}
.seller-stat .lbl { font-size: .78rem; color: var(--ink-muted); }
.seller-stat .val { font-weight: 900; font-size: 1.15rem; color: var(--ink); }
.seller-panel-card {
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 1.3rem;
    padding: 1.3rem 1.4rem;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
}
.seller-panel-card > h6 { font-weight: 900; display: flex; align-items: center; gap: .5rem; }
.seller-panel-card table { margin: 0; }
[data-bs-theme="dark"] .seller-hero { box-shadow: 0 14px 40px rgba(0,0,0,.4); }
[data-bs-theme="dark"] .seller-stat .val { color: #e4e6eb; }

/* ---------- دارک مود v3 — پوشش کامل باقیمانده ---------- */
[data-bs-theme="dark"] .table-light { background-color: #23262c !important; color: #e4e6eb !important; }
[data-bs-theme="dark"] .table-light th, [data-bs-theme="dark"] .table-light td { color: #e4e6eb; }
[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(180%); }
[data-bs-theme="dark"] .mobile-menu-head .btn-close { filter: none; }
[data-bs-theme="dark"] .nav-tabs { border-color: #2c3034; }
[data-bs-theme="dark"] .nav-tabs .nav-link { color: #cfd2d6; background: transparent; border-color: transparent; }
[data-bs-theme="dark"] .nav-tabs .nav-link:hover { background: #23262c; border-color: transparent; }
[data-bs-theme="dark"] .nav-tabs .nav-link.active { background: #1c1f23; color: #fff; border-color: #2c3034 #2c3034 #1c1f23; }
[data-bs-theme="dark"] .modal-header, [data-bs-theme="dark"] .modal-footer { border-color: #2c3034; }
[data-bs-theme="dark"] .pagination .page-item .page-link:hover { background: #2c3034; }
[data-bs-theme="dark"] .pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); }
[data-bs-theme="dark"] .accordion-button::after { filter: invert(1); }
[data-bs-theme="dark"] .text-html, body { overflow-x: clip; }
body { color: #cfd2d6 !important; }
[data-bs-theme="dark"] .link-dark { color: #cfd2d6 !important; }
[data-bs-theme="dark"] .img-thumbnail { background: #23262c; border-color: #3a3f45; }
[data-bs-theme="dark"] .bg-body-tertiary { background-color: #1c1f23 !important; }
[data-bs-theme="dark"] .list-group-item-action:hover { background: #23262c; color: #e4e6eb; }
[data-bs-theme="dark"] .btn-outline-light { color: #cfd2d6; border-color: #4a4f55; }
[data-bs-theme="dark"] .btn-outline-light:hover { background: #2c3034; color: #e4e6eb; }
[data-bs-theme="dark"] .site-footer { background: #12151a; }
[data-bs-theme="dark"] .site-footer h6 { color: #e4e6eb; }
[data-bs-theme="dark"] .toast-container .toast { background: #1c1f23; color: #e4e6eb; }
[data-bs-theme="dark"] .form-control-plaintext { color: #e4e6eb; }
[data-bs-theme="dark"] .form-range::-webkit-slider-runnable-track { background: #3a3f45; }
[data-bs-theme="dark"] .alert a { color: inherit; font-weight: 700; }
[data-bs-theme="dark"] .btn-primary { color: #fff; }
[data-bs-theme="dark"] .btn-success, [data-bs-theme="dark"] .btn-danger { color: #fff; }
[data-bs-theme="dark"] .dropdown-divider { border-color: #2c3034; }
[data-bs-theme="dark"] .card-header { background: #1e2126 !important; color: #e4e6eb; border-color: #2c3034; }
[data-bs-theme="dark"] .figure-caption, [data-bs-theme="dark"] .small.text-black { color: #9aa0a6 !important; }
[data-bs-theme="dark"] .old-price { color: #6c757d !important; }
[data-bs-theme="dark"] .progress { background-color: #2c3034; }
[data-bs-theme="dark"] .placeholder { background-color: #23262c; }
[data-bs-theme="dark"] .visually-hidden-focusable { color: inherit; }

/* ---------- بنر بروزرسانی PWA (جمع‌وجور) ---------- */
.sw-banner {
    position: fixed; top: .7rem; left: 50%; transform: translateX(-50%);
    z-index: 2200;
    display: flex; align-items: center; gap: .6rem;
    background: rgba(16,18,24,.92); color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding: .45rem .55rem .45rem 1rem;
    font-size: .8rem; font-weight: 600;
    box-shadow: 0 8px 30px rgba(0,0,0,.35);
    max-width: 92vw; white-space: nowrap; overflow: hidden;
}
.swb-btn { border: 0; cursor: pointer; border-radius: 999px; font-size: .76rem; font-weight: 700; padding: .28rem .8rem; }
.swb-primary { background: #ef4056; color: #fff; }
.swb-primary:hover { background: #d63a4d; }
.swb-x { background: transparent; color: #fff; padding: .2rem .45rem; font-size: .8rem; opacity: .8; }
.swb-x:hover { opacity: 1; }

/* ---------- چنج‌لاگ: دارک + موبایل ---------- */
[data-bs-theme="dark"] .cl-item { background: #1e2126 !important; border-color: #2a2d34 !important; }
[data-bs-theme="dark"] .cl-item-title { color: #e8eaf0; }
[data-bs-theme="dark"] .cl-item-desc { color: #9aa0a6; }
@media (max-width: 480px) {
    .cl-modal { width: 96vw; max-height: 92vh; border-radius: 1.1rem; }
    .cl-header { padding: 1.2rem 1rem .8rem; }
    .cl-rocket { font-size: 2.4rem; }
    .cl-title { font-size: 1.2rem; }
    .cl-grid { grid-template-columns: 1fr !important; gap: .45rem; }
    .cl-html, body { overflow-x: clip; }
body { padding: .8rem .9rem; }
    .cl-item { padding: .5rem .6rem; border-radius: .7rem; }
    .cl-item-title { font-size: .8rem; }
    .cl-item-desc { font-size: .72rem; }
}


/* ============================================================
   گارد سراسری ریسپانسیو — هیچ عنصری در هیچ رزولوشنی از صفحه بیرون نمی‌زند
   ============================================================ */
html, body {
    overflow-x: clip !important;
    max-width: 100vw;
}
img, video, canvas, svg, iframe, embed {
    max-width: 100%;
    height: auto;
}
table {
    max-width: 100%;
}
[class*="col-"], [class*="row"], .flex-grow-1, .min-w-0 {
    min-width: 0;
    max-width: 100%;
}
/* عناصر اسکرول‌افقی عمدی (اسلایدرها) استثنا — خودشان overflow دارند */
.scroll-row, [style*="overflow-x:auto"], [style*="overflow-x: auto"], .banners-row, .amazing-track {
    max-width: none !important;
    overflow-x: auto !important;
}

/* ==== سالون‌پلاس فقط روشن — خنثی‌سازی body تیره مارکت ==== */
body { background:#f6f7fa; color:#1d2333; }
/* ═══════════ ماژول یکپارچه آپلود سالون‌پلاس (sp-drop) ═══════════ */
.sp-drop-label { display:flex; align-items:center; gap:6px; font-size:.78rem; color:#565e6e; font-weight:800; margin-bottom:7px; }
.sp-drop-label i { color:#ef4056; font-size:.9rem; }

/* ── ناحیه آپلود ── */
.sp-drop { position:relative; border:2px dashed #d3dae8; border-radius:20px;
    background:linear-gradient(180deg,#fcfdff 0%,#f4f6fc 100%); min-height:150px;
    transition:all .28s cubic-bezier(.4,0,.2,1); overflow:hidden;
    display:flex; align-items:stretch; justify-content:stretch; }
.sp-drop::before { content:''; position:absolute; inset:0; pointer-events:none;
    background:radial-gradient(circle at 50% -10%, rgba(239,64,86,.07), transparent 62%); opacity:0; transition:opacity .25s; }
.sp-drop:hover { border-color:#f291a3; background:#fff9fa; box-shadow:0 10px 28px rgba(239,64,86,.10); }
.sp-drop:hover::before { opacity:1; }
.sp-drop-input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; z-index:2; }
.sp-drop-body { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
    text-align:center; padding:20px 14px; gap:6px; pointer-events:none; }

/* آیکون ابری گرادیانی */
.sp-drop-icon { font-size:2.7rem; line-height:1;
    background:linear-gradient(135deg,#ef4056 20%,#f97316 90%);
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
    filter:drop-shadow(0 6px 12px rgba(239,64,86,.25)); transition:transform .25s cubic-bezier(.34,1.56,.64,1); }
.sp-drop:hover .sp-drop-icon { transform:translateY(-5px) scale(1.12); }
.sp-drop-busy { animation:spPulse 1s ease-in-out infinite; }
@keyframes spPulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.18) translateY(-4px); } }

/* حالت drag فعال */
.sp-drop-drag { border-color:#ef4056 !important;
    background:linear-gradient(180deg,#fff0f3,#ffe3e8) !important;
    transform:scale(1.02); box-shadow:0 16px 44px rgba(239,64,86,.28) !important; }
.sp-drop-drag::before { opacity:1; }
.sp-drop-drag .sp-drop-icon { transform:scale(1.3) translateY(-8px); animation:spShake .5s ease-in-out infinite; }
@keyframes spShake { 0%,100% { transform:scale(1.3) translateY(-8px) rotate(-3deg); } 50% { transform:scale(1.35) translateY(-10px) rotate(3deg); } }

.sp-drop-title { font-size:.84rem; font-weight:800; color:#333b4d; }
.sp-drop-hint { font-size:.72rem; color:#969eb0; }
.sp-drop-badge { font-size:.66rem; color:#b45309; background:linear-gradient(135deg,#fef3c7,#fde68a);
    border-radius:99px; padding:3px 12px; margin-top:6px; font-weight:800; box-shadow:0 2px 8px rgba(217,119,6,.15); }

/* ── حالت آپلود: progress بزرگ ── */
.sp-drop-pct { font-size:1.5rem; font-weight:900; letter-spacing:-1px;
    background:linear-gradient(135deg,#ef4056,#f97316);
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.sp-drop-progress { width:84%; height:14px !important; border-radius:99px; background:#ffe4e8; box-shadow:inset 0 2px 6px rgba(239,64,86,.12); }
.sp-drop-progress .progress-bar { background:linear-gradient(90deg,#ef4056,#f97316,#ef4056);
    background-size:200% 100%; animation:spSlide 1.1s linear infinite; border-radius:99px; font-size:.68rem; font-weight:800; }
@keyframes spSlide { 0% { background-position:0% 0; } 100% { background-position:-200% 0; } }

/* ── حالت تکمیل: پیش‌نمایش ── */
.sp-drop-preview { pointer-events:auto; }
.sp-drop-thumb { max-height:118px; max-width:72%; border-radius:16px; border:3px solid #fff;
    box-shadow:0 10px 26px rgba(16,24,40,.18); transition:transform .2s; }
.sp-drop-preview:hover .sp-drop-thumb { transform:scale(1.04); }
.sp-drop-pdf { font-size:2.4rem; color:#dc2626; filter:drop-shadow(0 6px 12px rgba(220,38,38,.25)); }
.sp-drop-ok { display:inline-flex; align-items:center; gap:4px; font-size:.7rem; color:#fff; font-weight:800;
    background:linear-gradient(135deg,#16a34a,#22c55e); border-radius:99px; padding:3px 12px;
    box-shadow:0 4px 12px rgba(22,163,74,.30); margin-top:6px; }
.sp-drop-file { font-size:.68rem; color:#8b93a8; max-width:78%; overflow:hidden; text-overflow:ellipsis;
    white-space:nowrap; background:#f2f4f9; border-radius:99px; padding:2px 12px; }
.sp-drop-actions { display:flex; gap:8px; margin-top:8px; }
.sp-drop-mini-btn { font-size:.7rem; font-weight:800; color:#4f6ef7; background:#eef2ff; border:1.5px solid #c7d2fe;
    border-radius:99px; padding:4px 14px; cursor:pointer; transition:.18s; display:inline-flex; align-items:center; gap:5px; }
.sp-drop-mini-btn:hover { background:#e0e7ff; transform:translateY(-1px); box-shadow:0 4px 10px rgba(79,110,247,.25); }
.sp-drop-mini-danger { color:#dc2626; background:#fef2f2; border-color:#fecaca; }
.sp-drop-mini-danger:hover { background:#fee2e2; box-shadow:0 4px 10px rgba(220,38,38,.25); }
.sp-drop-err { display:flex; align-items:center; gap:5px; font-size:.72rem; color:#dc2626; margin-top:5px;
    font-weight:800; background:#fef2f2; border:1px solid #fecaca; border-radius:10px; padding:6px 10px; }

/* ═══════════ سیستم فرم سالون‌پلاس (sp-form) ═══════════ */
.sp-form-sec { display:flex; align-items:center; gap:9px; font-weight:900; font-size:.86rem; color:#c2410c;
    background:linear-gradient(90deg,#fff1ec 0%,rgba(255,241,236,0) 90%);
    border-right:4px solid #ef4056; padding:11px 14px; border-radius:12px 6px 6px 12px;
    margin:16px 0 14px; box-shadow:0 2px 10px rgba(239,64,86,.05); }
.sp-form-sec i { font-size:1.05rem; color:#ef4056; }

.sp-field label { display:flex; align-items:center; gap:4px; font-size:.75rem; color:#565e6e; font-weight:800; margin-bottom:6px; }
.sp-field label .req { color:#ef4056; font-weight:900; }
.sp-field .form-control, .sp-field .form-select { height:44px; border-radius:14px; border:1.5px solid #e3e8f2;
    padding:.55rem 1rem; font-size:.88rem; background:#fbfcfe; transition:all .2s ease; color:#1f2430; }
.sp-field .form-control::placeholder { color:#b3bac9; font-size:.8rem; }
.sp-field .form-control:hover, .sp-field .form-select:hover { border-color:#c4cde0; background:#fff; }
.sp-field .form-control:focus, .sp-field .form-select:focus { border-color:#ef4056;
    box-shadow:0 0 0 4px rgba(239,64,86,.09); background:#fff; }
.sp-field .form-select { cursor:pointer; }

.sp-modal-head { background:linear-gradient(135deg,#1e2430 0%,#333c52 100%); color:#fff;
    border-radius:20px 20px 0 0; padding:18px 24px; display:flex; justify-content:space-between;
    align-items:center; position:relative; overflow:hidden; }
.sp-modal-head::after { content:''; position:absolute; inset:0; pointer-events:none;
    background:radial-gradient(circle at 85% 20%, rgba(239,64,86,.22), transparent 45%); }
.sp-modal-head h6 { color:#fff; margin:0; font-size:1rem; font-weight:900; letter-spacing:-.2px; position:relative; z-index:1; }
.sp-modal-head h6 i { color:#fb7185; }
.sp-modal-head .btn-close { filter:invert(1) grayscale(1); opacity:.75; position:relative; z-index:1; }
.sp-modal-head .btn-close:hover { opacity:1; }
.sp-modal-body { padding:18px 24px 22px; }

.sp-switch-row { background:linear-gradient(180deg,#f6f7fb,#eef0f6); border:1px solid #e6e9f2;
    border-radius:14px; padding:12px 16px; display:flex; align-items:center; gap:12px; height:auto; }
.sp-switch-row .form-check-input { width:2.7em; height:1.4em; cursor:pointer; flex-shrink:0; }
.sp-switch-row .form-check-input:checked { background-color:#16a34a; border-color:#16a34a; }
.sp-switch-row label { font-size:.78rem !important; font-weight:700; color:#454d5d !important; margin:0 !important; }

.sp-form-foot { display:flex; justify-content:flex-end; gap:10px; border-top:1.5px dashed #e8ebf3;
    padding-top:16px; margin-top:8px; }
.sp-form-foot .btn { border-radius:14px; padding:.5rem 1.5rem; font-weight:800; font-size:.85rem; transition:all .2s ease; }
.sp-form-foot .btn-outline-secondary:hover { transform:translateY(-1px); }
.sp-form-foot .btn-primary { background:linear-gradient(135deg,#ef4056,#d63347); border:none;
    box-shadow:0 6px 18px rgba(239,64,86,.35); }
.sp-form-foot .btn-primary:hover:not(:disabled) { transform:translateY(-2px);
    box-shadow:0 10px 26px rgba(239,64,86,.45); }
.sp-form-foot .btn-primary:disabled { opacity:.6; }

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .sp-modal-body { padding:14px 16px 18px; }
    .sp-modal-head { padding:14px 18px; }
    .sp-drop { min-height:130px; }
    .sp-drop-icon { font-size:2.2rem; }
    .sp-field .form-control, .sp-field .form-select { height:42px; font-size:.86rem; }
    .sp-form-foot { flex-direction:row; }
    .sp-form-foot .btn { flex:1; }
}


/* ═══════════ نقشه انتخاب موقعیت (ادمین) ═══════════ */
.sp-map-wrap { border:1.5px solid #e3e8f2; border-radius:16px; overflow:hidden; background:#fbfcfe; }
.sp-map { height:260px; width:100%; cursor:crosshair; direction:ltr; }
.sp-map-actions { display:flex; align-items:center; justify-content:space-between; gap:10px;
    padding:9px 12px; background:#f6f7fb; border-top:1px solid #e6e9f2; flex-wrap:wrap; }
.sp-map-btn { font-size:.75rem; font-weight:800; color:#0ea5e9; background:#e0f2fe;
    border:1.5px solid #bae6fd; border-radius:99px; padding:5px 14px; cursor:pointer;
    display:inline-flex; align-items:center; gap:5px; transition:.18s; }
.sp-map-btn:hover { background:#bae6fd; transform:translateY(-1px); box-shadow:0 4px 10px rgba(14,165,233,.25); }
.sp-map-coords { font-size:.72rem; color:#475569; font-weight:800; background:#e2e8f0;
    border-radius:99px; padding:4px 12px; }
.sp-map-hint { font-size:.72rem; color:#969eb0; }
.sp-map .leaflet-container { font-family:inherit; }
.sp-map .leaflet-control-attribution { font-size:.6rem; }

/* پین موقعیت سالن — divIcon بدون فایل تصویر */
.sp-pin { position:relative; width:34px; height:46px; }
.sp-pin::before { content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%);
    width:0; height:0; border:23px solid transparent; border-bottom:none;
    border-top-color:#ef4056; filter:drop-shadow(0 4px 6px rgba(239,64,86,.35)); }
.sp-pin-dot { position:absolute; top:6px; left:50%; transform:translateX(-50%);
    width:20px; height:20px; background:#fff; border:4px solid #ef4056; border-radius:50%; }

/* نوار جستجوی نقشه + نتایج */
.sp-map-search { display:flex; gap:8px; padding:10px 12px; background:#f6f7fb; border-bottom:1px solid #e6e9f2; flex-wrap:wrap; }
.sp-map-search .form-control { flex:1; min-width:150px; height:36px !important; border-radius:10px !important; font-size:.8rem; }
.sp-map-results { display:flex; flex-direction:column; border-top:1px solid #e6e9f2; max-height:170px; overflow-y:auto; }
.sp-map-result { display:flex; align-items:center; gap:8px; text-align:right; padding:8px 14px; font-size:.76rem;
    color:#333b4d; background:#fff; border:none; border-bottom:1px solid #f0f2f8; cursor:pointer; transition:.15s; }
.sp-map-result:hover { background:#fff5f6; color:#ef4056; }
.sp-map-result i { color:#b4593a; flex-shrink:0; }
.sp-map-status { font-size:.72rem; font-weight:800; color:#0ea5e9; background:#e0f2fe;
    border-radius:99px; padding:4px 12px; }

/* ═══════════ جدول + صفحه‌بندی مشترک لیست‌ها ═══════════ */
.sp-table-wrap { background:#fff; border-radius:18px; box-shadow:0 4px 18px rgba(16,24,40,.06); padding:6px; }
.sp-table-wrap .table-responsive { border-radius:14px; }
.sp-table-wrap table { margin:0; font-size:.82rem; }
.sp-table-wrap thead th { background:linear-gradient(180deg,#f8f9fc,#f1f3f9); color:#5b6472;
    font-weight:800; font-size:.74rem; white-space:nowrap; border-bottom:2px solid #e8ebf3;
    padding:10px 12px; text-align:center; }
.sp-table-wrap tbody td { padding:10px 12px; text-align:center; vertical-align:middle;
    border-bottom:1px solid #f2f4f9; }
.sp-table-wrap tbody tr { transition:background .15s; }
.sp-table-wrap tbody tr:hover { background:#fff9fa; }
.sp-sort { background:none; border:none; padding:0; font:inherit; color:inherit; font-weight:800;
    cursor:pointer; display:inline-flex; align-items:center; gap:4px; transition:color .15s; }
.sp-sort:hover { color:#ef4056; }
.sp-sort i { font-size:.7rem; opacity:.45; }
.sp-sort.on { color:#ef4056; }
.sp-sort.on i { opacity:1; }

.sp-pager { display:flex; align-items:center; justify-content:space-between; gap:12px;
    flex-wrap:wrap; padding:12px 8px 6px; }
.sp-pager-info { font-size:.74rem; color:#6b7280; font-weight:700; }
.sp-pager-sizes { display:flex; align-items:center; gap:6px; }
.sp-pager-label { font-size:.72rem; color:#8b93a8; font-weight:700; margin:0; }
.sp-pager-sizes .form-select { width:auto; min-width:70px; border-radius:10px; font-size:.78rem; }
.sp-pager-nav { display:flex; align-items:center; gap:4px; }
.sp-page-btn { min-width:32px; height:32px; border:1.5px solid #e3e8f2; background:#fff;
    border-radius:10px; font-size:.76rem; font-weight:800; color:#4b5563; cursor:pointer;
    display:inline-flex; align-items:center; justify-content:center; transition:.15s; padding:0 8px; }
.sp-page-btn:hover:not(:disabled) { border-color:#ef4056; color:#ef4056; }
.sp-page-btn:disabled { opacity:.4; cursor:not-allowed; }
.sp-page-on { background:linear-gradient(135deg,#ef4056,#d63347) !important; color:#fff !important;
    border-color:transparent !important; box-shadow:0 4px 12px rgba(239,64,86,.30); }
.sp-page-dots { color:#9aa1b1; font-weight:800; padding:0 4px; }

/* ریسپانسیو موبایل: جدول اسکرول افقی نرم */
@media (max-width: 768px) {
    .sp-table-wrap { padding:4px; border-radius:14px; }
    .sp-table-wrap table { font-size:.76rem; }
    .sp-table-wrap thead th, .sp-table-wrap tbody td { padding:8px 10px; }
    .sp-pager { justify-content:center; }
}

/* آپلود سریع لوگو روی کارت سالن */
.sl-logo-wrap { position:relative; width:42px; height:42px; }
.sl-logo-wrap img { width:42px; height:42px; object-fit:cover; }
.sl-logo-up { position:absolute; bottom:-6px; left:-8px; width:22px; height:22px; background:#1f2430; color:#fff;
    border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.65rem; cursor:pointer;
    border:2px solid #fff; box-shadow:0 2px 8px rgba(16,24,40,.25); transition:.18s; z-index:2; }
.sl-logo-up:hover { background:#ef4056; transform:scale(1.15); }
.sl-logo-del { position:absolute; top:-6px; right:-8px; width:18px; height:18px; background:#dc2626; color:#fff;
    border-radius:50%; border:2px solid #fff; font-size:.62rem; line-height:1; cursor:pointer;
    display:flex; align-items:center; justify-content:center; padding:0; z-index:2; transition:.15s; }
.sl-logo-del:hover { transform:scale(1.2); }

/* ═══════════ ریسپانسیو موبایل جداول — تبدیل ردیف به کارت ═══════════ */
.sp-mcard { display:none; }
@media (max-width: 768px) {
    .sp-table-wrap table thead { display: none; }
    .sp-table-wrap table, .sp-table-wrap table tbody { display: block; }
    .sp-table-wrap table tbody tr { display: block; background: #fff;
        border: 1.5px solid #e8ebf3; border-radius: 16px; padding: 12px 14px;
        margin-bottom: 12px; box-shadow: 0 2px 10px rgba(16,24,40,.05); }
    .sp-table-wrap table tbody tr:hover { background: #fff9fa; }
    .sp-table-wrap table tbody td { display: flex; justify-content: space-between;
        align-items: center; gap: 12px; text-align: right; border: none;
        padding: 5px 0; width: 100%; }
    .sp-table-wrap table tbody td::before { content: attr(data-label);
        font-weight: 800; color: #8b93a8; font-size: .7rem; flex-shrink: 0; }
    .sp-table-wrap table tbody td:empty, .sp-table-wrap table tbody td:first-child::before { }
    .sp-table-wrap table tbody td .btn-group { justify-content: flex-end; }
}

/* ═══════════ Confirm خوشگل سالون‌پلاس ═══════════ */
.sp-confirm-overlay { position: fixed; inset: 0; z-index: 10900;
    background: rgba(15,18,30,.55); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    animation: spConfIn .18s ease; }
@keyframes spConfIn { from { opacity: 0; } to { opacity: 1; } }
.sp-confirm-box { background: #fff; border-radius: 22px; width: min(92vw, 400px);
    padding: 26px 24px 22px; text-align: center; box-shadow: 0 24px 70px rgba(16,24,40,.35);
    animation: spConfPop .22s cubic-bezier(.34,1.56,.64,1); }
@keyframes spConfPop { from { transform: scale(.85) translateY(12px); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sp-confirm-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
    background: linear-gradient(135deg, #fee2e2, #fecaca); display: flex;
    align-items: center; justify-content: center; font-size: 1.8rem; color: #dc2626; }
.sp-confirm-title { font-size: 1rem; font-weight: 900; color: #1f2430; margin-bottom: 8px; }
.sp-confirm-msg { font-size: .82rem; color: #6b7280; line-height: 1.7; margin-bottom: 18px; }
.sp-confirm-btns { display: flex; gap: 10px; }
.sp-confirm-btns button { flex: 1; border-radius: 14px; padding: .55rem; font-weight: 800;
    font-size: .85rem; cursor: pointer; transition: .18s; border: none; }
.sp-confirm-no { background: #f3f4f6; color: #4b5563; }
.sp-confirm-no:hover { background: #e5e7eb; }
.sp-confirm-yes { background: linear-gradient(135deg, #ef4056, #d63347); color: #fff;
    box-shadow: 0 6px 18px rgba(239,64,86,.35); }
.sp-confirm-yes:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(239,64,86,.45); }

/* ═══════════ تقویم ماتریس زنده ═══════════ */
.sp-cal-wrap { background:#fff; border-radius:18px; box-shadow:0 4px 18px rgba(16,24,40,.06); padding:0; overflow:hidden; }
.sp-cal-scroll { max-height:72vh; overflow:auto; scrollbar-width:thin; }
.sp-cal { border-collapse:separate; border-spacing:0; width:100%; min-width:620px; }
.sp-cal thead th { position:sticky; top:0; z-index:3; background:linear-gradient(180deg,#f8f9fc,#eef1f8);
    padding:10px 8px; font-weight:800; color:#4b5563; border-bottom:2px solid #e8ebf3; text-align:center; }
.sp-cal thead th .staff-avatar { display:inline-flex; align-items:center; justify-content:center;
    width:30px; height:30px; border-radius:50%; background:linear-gradient(135deg,#ef4056,#f97316);
    color:#fff; font-weight:900; font-size:.8rem; margin-left:4px; box-shadow:0 3px 8px rgba(239,64,86,.25); }
.sp-cal thead th .staff-name { font-size:.74rem; }
.sp-cal td.stime, .sp-cal th.stime { position:sticky; right:0; z-index:2;
    background:linear-gradient(90deg,#fbfcfe,#f4f6fb); text-align:center;
    border-left:1.5px solid #e8ebf3; min-width:64px; }
.sp-cal td.cell { height:46px; padding:2px 3px; text-align:center; vertical-align:middle;
    border-bottom:1px solid #f2f4f9; min-width:96px; }
.sp-cal tr.sp-empty-row td.cell { border-bottom-color:#f8f9fb; }
.sp-cal td.cell.target { background:#f0fdf4; }
.sp-cal td.cell.target:hover { background:#dcfce7; }
.sp-cal .appt { display:block; width:100%; border:none; border-radius:11px; padding:5px 8px;
    font-size:.64rem; line-height:1.5; text-align:right; cursor:pointer; transition:.15s;
    border-right:3px solid transparent; }
.sp-cal .appt b { display:block; color:#374151; }
.sp-cal .appt .appt-client { color:#8b93a8; font-size:.62rem; }
.sp-cal .appt:hover { transform:scale(1.03); box-shadow:0 6px 16px rgba(16,24,40,.15); }
.sp-cal .appt.wait { background:#fffbeb; border-right-color:#d97706; }
.sp-cal .appt.wait b { color:#92400e; }
.sp-cal .appt.confirmed { background:#eff6ff; border-right-color:#2563eb; }
.sp-cal .appt.confirmed b { color:#1d4ed8; }
.sp-cal .appt.progress { background:#faf5ff; border-right-color:#9333ea; }
.sp-cal .appt.progress b { color:#7e22ce; }
.sp-cal .appt.done { background:#f0fdf4; border-right-color:#16a34a; }
.sp-cal .appt.done b { color:#15803d; }
.sp-cal .move-target { width:100%; height:40px; border:2px dashed #16a34a; border-radius:10px;
    background:#f0fdf4; color:#16a34a; font-size:1rem; cursor:pointer; transition:.15s; }
.sp-cal .move-target:hover { background:#dcfce7; transform:scale(1.05); }
.sp-dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-left:4px; }
/* موبایل: اسکرول نرم + اندازه‌های فشرده */
@media (max-width: 768px) {
    .sp-cal td.cell { min-width:84px; height:42px; }
    .sp-cal td.stime, .sp-cal th.stime { min-width:52px; font-size:.7rem; }
    .sp-cal .appt { font-size:.58rem; padding:4px 6px; }
    .sp-cal-scroll { max-height:64vh; }
}

/* ═══════════ تایم‌لاین موبایل تقویم ═══════════ */
.sp-timeline { display: flex; flex-direction: column; gap: 10px; }
.sp-tl-card { display: flex; align-items: center; gap: 12px; background: #fff;
    border-radius: 16px; padding: 12px 14px; cursor: pointer; transition: .18s;
    border-right: 4px solid #d1d5db; box-shadow: 0 2px 10px rgba(16,24,40,.06); }
.sp-tl-card.wait { border-right-color: #d97706; }
.sp-tl-card.confirmed { border-right-color: #2563eb; }
.sp-tl-card.progress { border-right-color: #9333ea; }
.sp-tl-card.done { border-right-color: #16a34a; }
.sp-tl-card:hover { transform: translateX(-3px); box-shadow: 0 8px 22px rgba(16,24,40,.12); }
.sp-tl-time { font-size: .82rem; font-weight: 900; color: #1f2430; background: #f3f4f6;
    border-radius: 12px; padding: 8px 10px; min-width: 58px; text-align: center; flex-shrink: 0; }
.sp-tl-body { flex: 1; min-width: 0; }
.sp-tl-body b { display: block; font-size: .84rem; color: #1f2430; }
.sp-tl-meta { display: flex; align-items: center; gap: 5px; font-size: .72rem; color: #6b7280; margin-top: 3px; flex-wrap: wrap; }
.sp-tl-meta .staff-avatar { width: 20px; height: 20px; font-size: .6rem; margin: 0; }
.sp-tl-chev { color: #c4cad6; }
.sp-move-panel { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 8px 26px rgba(16,24,40,.10); }
.sp-move-title { font-size: .88rem; font-weight: 900; color: #1d4ed8; margin-bottom: 12px; }
.sp-move-title i { margin-left: 4px; }

/* چیپ‌های انتخاب پرسنل تقویم */
.sp-chip { display: inline-flex; align-items: center; gap: 5px; background: #fff;
    border: 1.5px solid #e3e8f2; border-radius: 99px; padding: 5px 14px 5px 8px;
    font-size: .76rem; font-weight: 800; color: #4b5563; cursor: pointer; transition: .18s; }
.sp-chip .staff-avatar { width: 22px; height: 22px; font-size: .62rem; margin: 0; }
.sp-chip:hover { border-color: #ef4056; color: #ef4056; }
.sp-chip.on { background: linear-gradient(135deg, #ef4056, #d63347); color: #fff;
    border-color: transparent; box-shadow: 0 4px 12px rgba(239,64,86,.30); }
.sp-row-skip td { padding-top: 1px; padding-bottom: 1px; }
.sp-row-skip td.stime { opacity: .35; }
.sp-row-skip:hover td { background: transparent; }

/* نوار ابزار چسبان تقویم — موبایل‌پسند */
.sp-calbar { position: sticky; top: 8px; z-index: 30; background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 18px; box-shadow: 0 10px 30px rgba(16,24,40,.12);
    padding: 12px 14px; margin-bottom: 14px; border: 1px solid #eef1f8; }
.sp-calbar-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sp-calbar-row .form-check { margin: 0; }
.sp-calbar-search { position: relative; margin-top: 10px; }
.sp-calbar-search i { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: #9aa1b1; font-size: .85rem; }
.sp-calbar-search input { width: 100%; height: 40px; border-radius: 12px; border: 1.5px solid #e3e8f2;
    padding: 0 38px 0 12px; font-size: .84rem; background: #fbfcfe; transition: .2s; }
.sp-calbar-search input:focus { border-color: #ef4056; box-shadow: 0 0 0 4px rgba(239,64,86,.08); outline: none; background: #fff; }
.sp-calbar-clear { position: absolute; top: 50%; left: 8px; transform: translateY(-50%);
    width: 24px; height: 24px; border-radius: 50%; border: none; background: #e5e7eb;
    color: #6b7280; cursor: pointer; font-size: .8rem; line-height: 1; }
.sp-chip-row { display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap; margin-top: 10px;
    padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sp-chip-row::-webkit-scrollbar { display: none; }
.sp-chip-row .sp-chip { flex-shrink: 0; }
/* موبایل: نوار همیشه جمع‌وجور */
@media (max-width: 768px) {
    .sp-calbar { padding: 10px 12px; top: 4px; }
    .sp-calbar-row .btn-group .btn { padding: .3rem .5rem; }
}

/* ═══════════ پنل جابجایی موبایل — جستجوی پرسنل + تایم‌پیکر ═══════════ */
.sp-mv-staff-list { max-height: 190px; overflow-y: auto; border: 1.5px solid #e8ebf3;
    border-radius: 14px; margin-top: 6px; background: #fbfcfe; }
.sp-mv-staff { display: flex; align-items: center; gap: 8px; width: 100%; text-align: right;
    padding: 9px 12px; font-size: .8rem; font-weight: 700; color: #374151;
    background: #fff; border: none; border-bottom: 1px solid #f0f2f8; cursor: pointer; transition: .15s; }
.sp-mv-staff:hover { background: #fff5f6; color: #ef4056; }
.sp-mv-staff .staff-avatar { width: 26px; height: 26px; font-size: .68rem; }
.sp-mv-empty { padding: 14px; text-align: center; font-size: .76rem; color: #9aa1b1; }
.sp-mv-selected { display: flex; align-items: center; gap: 8px; width: 100%;
    background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 12px;
    padding: 10px 14px; font-size: .84rem; font-weight: 800; color: #15803d; cursor: pointer; }
.sp-mv-selected .staff-avatar { background: linear-gradient(135deg,#16a34a,#22c55e); }
.sp-mv-selected i { color: #94a3b8; }
.sp-time-row { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-time-chip { min-width: 46px; padding: 7px 4px; border-radius: 10px; border: 1.5px solid #e3e8f2;
    background: #fbfcfe; font-size: .78rem; font-weight: 800; color: #4b5563;
    cursor: pointer; transition: .15s; text-align: center; }
.sp-time-chip:hover { border-color: #16a34a; color: #16a34a; }
.sp-time-chip.on { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff;
    border-color: transparent; box-shadow: 0 4px 12px rgba(22,163,74,.30); }
.sp-mv-time-show { margin-top: 8px; font-size: .78rem; font-weight: 800; color: #15803d;
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 6px 12px; text-align: center; }

/* ═══ polish: نوار تاریخ تقویم ═══ */
.sp-datebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-date-btn { width: 40px; height: 40px; border-radius: 13px; border: 1.5px solid #e3e8f2;
    background: #fbfcfe; color: #4b5563; font-size: 1rem; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; transition: .18s; }
.sp-date-btn:hover { border-color: #ef4056; color: #ef4056; background: #fff5f6; transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(239,64,86,.15); }
.sp-date-today { width: auto; padding: 0 14px; font-size: .78rem; font-weight: 800;
    background: #eff6ff; border-color: #bfdbfe; color: #2563eb; }
.sp-date-today:hover { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.sp-date-show { flex: 1; min-width: 170px; height: 44px; border-radius: 14px; border: 1.5px solid #e3e8f2;
    background: #fbfcfe; display: flex; align-items: center; gap: 8px; padding: 0 12px; cursor: pointer;
    transition: .2s; font-weight: 900; color: #1f2430; font-size: .9rem; }
.sp-date-show:hover { border-color: #ef4056; }
.sp-date-show:focus-within { border-color: #ef4056; box-shadow: 0 0 0 4px rgba(239,64,86,.09); background: #fff; }
.sp-date-show input { flex: 1; height: 100%; border: none !important; background: transparent !important;
    padding: 0 !important; font-weight: 800; font-size: .9rem; color: #1f2430; text-align: center; }
.sp-date-show input:focus { box-shadow: none !important; }

/* ═══ polish: لیست جستجوی پرسنل جابجایی ═══ */
.sp-mv-staff-list { max-height: 200px; overflow-y: auto; border: 1.5px solid #e8ebf3;
    border-radius: 16px; margin-top: 8px; background: #fff; scrollbar-width: thin; }
.sp-mv-staff { display: flex; align-items: center; gap: 10px; width: 100%; text-align: right;
    padding: 10px 14px; font-size: .82rem; font-weight: 700; color: #374151;
    background: transparent; border: none; border-bottom: 1px solid #f2f4f9; cursor: pointer; transition: .15s; }
.sp-mv-staff:last-child { border-bottom: none; }
.sp-mv-staff:hover { background: #fff5f6; color: #ef4056; }
.sp-mv-staff .staff-avatar { width: 34px; height: 34px; font-size: .8rem;
    background: linear-gradient(135deg, #ef4056, #f97316); border-radius: 50%; }
.sp-mv-empty { padding: 16px; text-align: center; font-size: .76rem; color: #9aa1b1; }
.sp-mv-selected { display: flex; align-items: center; gap: 10px; width: 100%;
    background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 14px;
    padding: 10px 14px; font-size: .84rem; font-weight: 800; color: #15803d; cursor: pointer; transition: .18s; }
.sp-mv-selected:hover { background: #dcfce7; }
.sp-mv-selected .staff-avatar { background: linear-gradient(135deg, #16a34a, #22c55e);
    width: 32px; height: 32px; font-size: .78rem; }
.sp-mv-selected i { color: #94a3b8; margin-right: auto; }

/* ═══ polish: تایم‌پیکر چیپی ═══ */
.sp-time-row { display: flex; gap: 7px; flex-wrap: wrap; }
.sp-time-chip { min-width: 54px; height: 42px; border-radius: 14px; border: 1.5px solid #e3e8f2;
    background: #fbfcfe; font-size: .88rem; font-weight: 800; color: #4b5563;
    cursor: pointer; transition: .18s; text-align: center;
    display: inline-flex; align-items: center; justify-content: center; }
.sp-time-chip:hover { border-color: #16a34a; color: #16a34a; transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(22,163,74,.15); }
.sp-time-chip.on { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff;
    border-color: transparent; box-shadow: 0 8px 20px rgba(22,163,74,.35); transform: scale(1.04); }
.sp-mv-time-show { margin-top: 10px; font-size: .84rem; font-weight: 900; color: #15803d;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 1.5px solid #bbf7d0;
    border-radius: 14px; padding: 10px; text-align: center; letter-spacing: .5px; }

/* ═══ نهایی: جمع‌وجورسازی پنل جابجایی ═══ */
.sp-move-panel { padding: 16px 14px; }
.sp-mv-staff { padding: 8px 12px !important; font-size: .78rem !important; gap: 9px; }
.sp-mv-staff .staff-avatar { width: 26px !important; height: 26px !important;
    font-size: .66rem !important; border-radius: 50% !important;
    background: linear-gradient(135deg, #f87070, #f97316) !important; }
.sp-mv-selected .staff-avatar { width: 26px !important; height: 26px !important;
    font-size: .66rem !important; border-radius: 50% !important; }
.sp-mv-staff-list { max-height: 175px !important; }

/* ورودی نمایش تاریخ شمسی */
.sp-jalali-vis { cursor: pointer !important; }
.sp-jalali-vis:focus { outline: none; }

/* ═══════════ راهنمای هر بخش ═══════════ */
.sp-help, .sp-help-collapsed { width: 100%; margin-bottom: 12px; }
.sp-help-head, .sp-help-collapsed { display: flex; align-items: center; gap: 10px; width: 100%;
    background: linear-gradient(135deg, #eff6ff, #e0f2fe); border: 1.5px solid #bfdbfe;
    border-radius: 14px; padding: 10px 14px; cursor: pointer; text-align: right;
    font-size: .8rem; font-weight: 800; color: #1d4ed8; transition: .18s; border: 1.5px solid #bfdbfe; }
.sp-help-collapsed:hover, .sp-help-head:hover { background: #dbeafe; transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37,99,235,.15); }
.sp-help-icon { width: 26px; height: 26px; border-radius: 50%; background: #2563eb; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; flex-shrink: 0; }
.sp-help-chev { margin-right: auto; color: #60a5fa; }
.sp-help-open .sp-help-chev { transform: rotate(180deg); }
.sp-help-body { background: #fff; border: 1.5px solid #dbeafe; border-top: none;
    border-radius: 0 0 14px 14px; padding: 12px 16px; font-size: .8rem; color: #475569; line-height: 1.9; }
.sp-help-body ul { margin: 0; padding-right: 18px; }
.sp-help-body li { margin-bottom: 3px; }
.sp-help-tip { background: #fefce8; border: 1px solid #fde68a; border-radius: 10px;
    padding: 8px 12px; margin-top: 8px; font-size: .76rem; color: #854d0e; font-weight: 700; }
.sp-help-tip i { color: #d97706; }
/* موبایل: راهنمای بسته همیشه کمی دیده شود */
@media (max-width: 768px) {
    .sp-help-body { font-size: .78rem; padding: 10px 12px; }
}
