/* =====================================================
   دیوار مهربانی — استایل اصلی
   طراحی مدرن، گرم و ریسپانسیو (RTL)
   ===================================================== */

/* ---------- فونت وزیرمتن (ارقام فارسی) ---------- */
@font-face {
    font-family: "Vazirmatn FD";
    src: url("../fonts/Vazirmatn-FD-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn FD";
    src: url("../fonts/Vazirmatn-FD-Medium.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn FD";
    src: url("../fonts/Vazirmatn-FD-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn FD";
    src: url("../fonts/Vazirmatn-FD-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn FD";
    src: url("../fonts/Vazirmatn-FD-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-display: swap;
}

/* ---------- متغیرها ---------- */
:root {
    --mehr-teal: #0d9488;
    --mehr-teal-dark: #0f766e;
    --mehr-teal-deep: #115e59;
    --mehr-teal-soft: #ccfbf1;
    --mehr-amber: #f59e0b;
    --mehr-amber-dark: #d97706;
    --mehr-rose: #e11d48;
    --mehr-bg: #f8f6f2;
    --mehr-surface: #ffffff;
    --mehr-surface-2: #fdfcf9;
    --mehr-text: #1f2937;
    --mehr-text-2: #4b5563;
    --mehr-muted: #6b7280;
    --mehr-border: #e7e2da;
    --mehr-radius: 18px;
    --mehr-radius-sm: 12px;
    --mehr-shadow: 0 6px 24px -8px rgba(17, 94, 89, .14);
    --mehr-shadow-lg: 0 18px 44px -14px rgba(17, 94, 89, .22);
    --mehr-header-h: 74px;
    --bs-body-font-family: "Vazirmatn FD", "Vazirmatn", Tahoma, sans-serif;
}

[data-bs-theme="dark"] {
    --mehr-teal: #14b8a6;
    --mehr-teal-dark: #0d9488;
    --mehr-teal-deep: #5eead4;
    --mehr-teal-soft: #0f3d38;
    --mehr-bg: #14120f;
    --mehr-surface: #1e1b17;
    --mehr-surface-2: #232019;
    --mehr-text: #ece7e0;
    --mehr-text-2: #cfc8bd;
    --mehr-muted: #9a938a;
    --mehr-border: #34302a;
    --mehr-shadow: 0 6px 24px -8px rgba(0, 0, 0, .5);
    --mehr-shadow-lg: 0 18px 44px -14px rgba(0, 0, 0, .65);
}

/* ---------- پایه ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--bs-body-font-family);
    background-color: var(--mehr-bg);
    color: var(--mehr-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.9;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.6; }

a { text-decoration: none; }

::selection { background: var(--mehr-teal); color: #fff; }

:focus-visible {
    outline: 3px solid var(--mehr-amber);
    outline-offset: 2px;
    border-radius: 6px;
}

/* لینک پرش برای کیبورد */
.skip-link {
    position: fixed;
    top: -60px;
    right: 16px;
    z-index: 2000;
    background: var(--mehr-teal-dark);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: 1200px; }

/* دکمه بازگشت به بالا */
.back-to-top {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--mehr-teal-dark);
    color: #fff;
    font-size: 1.2rem;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s;
    box-shadow: var(--mehr-shadow);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--mehr-teal-deep); color: #fff; }

/* ---------- دکمه‌ها ---------- */
.btn { border-radius: 14px; font-weight: 600; padding: .55rem 1.25rem; }

.btn-mehr {
    background: linear-gradient(135deg, var(--mehr-teal), var(--mehr-teal-dark));
    color: #fff;
    border: none;
    box-shadow: 0 8px 20px -8px rgba(13, 148, 136, .55);
}
.btn-mehr:hover, .btn-mehr:focus {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -8px rgba(13, 148, 136, .6);
}
.btn-mehr:active { color: #fff; }

.btn-mehr-outline {
    border: 2px solid var(--mehr-teal);
    color: var(--mehr-teal-dark);
    background: transparent;
}
.btn-mehr-outline:hover { background: var(--mehr-teal); color: #fff; }
[data-bs-theme="dark"] .btn-mehr-outline { color: var(--mehr-teal); }

.btn-amber {
    background: linear-gradient(135deg, var(--mehr-amber), var(--mehr-amber-dark));
    color: #fff;
    border: none;
    box-shadow: 0 8px 20px -8px rgba(217, 119, 6, .5);
}
.btn-amber:hover { color: #fff; filter: brightness(1.05); }

.btn-soft {
    background: var(--mehr-teal-soft);
    color: var(--mehr-teal-deep);
    border: none;
}
.btn-soft:hover { background: var(--mehr-teal); color: #fff; }

.btn-icon {
    width: 42px; height: 42px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--mehr-border);
    color: var(--mehr-text-2);
    font-size: 1.15rem;
}
.btn-icon:hover { background: var(--mehr-teal-soft); color: var(--mehr-teal-deep); border-color: transparent; }

.btn-lg { padding: .8rem 1.8rem; font-size: 1.05rem; border-radius: 16px; }

/* ---------- هدر ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: color-mix(in srgb, var(--mehr-surface) 86%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--mehr-border);
    transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--mehr-shadow); }

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--mehr-text);
}
.brand:hover { color: var(--mehr-teal-dark); }
.brand__logo {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--mehr-teal), var(--mehr-teal-deep));
    display: grid; place-items: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 8px 18px -6px rgba(13, 148, 136, .5);
}
.brand small {
    display: block;
    font-size: .68rem;
    font-weight: 500;
    color: var(--mehr-muted);
    letter-spacing: .5px;
}

.main-nav { gap: .25rem; }
.main-nav .nav-link {
    color: var(--mehr-text-2);
    font-weight: 600;
    font-size: .95rem;
    padding: .5rem .9rem;
    border-radius: 12px;
    position: relative;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--mehr-teal-dark);
    background: var(--mehr-teal-soft);
}
[data-bs-theme="dark"] .main-nav .nav-link:hover,
[data-bs-theme="dark"] .main-nav .nav-link.active { color: var(--mehr-teal); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.notif-btn { position: relative; }
.notif-btn .badge {
    position: absolute;
    top: -4px;
    left: -4px;
    font-size: .62rem;
    min-width: 18px;
    padding: 2px 4px;
    background: var(--mehr-rose);
    color: #fff;
    border-radius: 20px;
}

.dropdown-menu {
    border: 1px solid var(--mehr-border);
    border-radius: var(--mehr-radius-sm);
    box-shadow: var(--mehr-shadow-lg);
    background: var(--mehr-surface);
    padding: .4rem;
    min-width: 220px;
}
.dropdown-item {
    border-radius: 10px;
    padding: .55rem .8rem;
    font-size: .92rem;
    color: var(--mehr-text-2);
    display: flex;
    align-items: center;
    gap: .6rem;
}
.dropdown-item:hover { background: var(--mehr-teal-soft); color: var(--mehr-teal-deep); }
[data-bs-theme="dark"] .dropdown-item:hover { color: var(--mehr-teal); }
.dropdown-item.text-danger:hover { background: #fee2e2; color: var(--mehr-rose) !important; }
[data-bs-theme="dark"] .dropdown-item.text-danger:hover { background: #451a1a; }
.dropdown-divider { border-color: var(--mehr-border); }

.user-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mehr-amber), var(--mehr-amber-dark));
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 1rem;
}

/* ---------- منوی اورلی موبایل ---------- */
.overlay-menu {
    position: fixed;
    inset: 0;
    z-index: 1055;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s, visibility .3s;
}
.overlay-menu.open { visibility: visible; opacity: 1; }

.overlay-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 19, .55);
    backdrop-filter: blur(3px);
}

.overlay-menu__panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 380px);
    background: var(--mehr-surface);
    box-shadow: -18px 0 50px rgba(0, 0, 0, .18);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22, .9, .3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.overlay-menu.open .overlay-menu__panel { transform: translateX(0); }

.overlay-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--mehr-border);
}

.overlay-menu__links { padding: 1rem 1.1rem; display: grid; gap: .3rem; }
.overlay-menu__links a {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .85rem 1rem;
    border-radius: 14px;
    font-weight: 600;
    color: var(--mehr-text-2);
    font-size: 1.02rem;
    transition: background .2s, color .2s;
}
.overlay-menu__links a:hover,
.overlay-menu__links a.active {
    background: var(--mehr-teal-soft);
    color: var(--mehr-teal-deep);
}
.overlay-menu__links a i { font-size: 1.25rem; color: var(--mehr-teal); width: 24px; text-align: center; }

.overlay-menu__foot {
    margin-top: auto;
    padding: 1.1rem 1.25rem 1.4rem;
    border-top: 1px solid var(--mehr-border);
    display: grid;
    gap: .6rem;
}
.overlay-menu__foot .text-note {
    font-size: .8rem;
    color: var(--mehr-muted);
    text-align: center;
}

body.menu-open { overflow: hidden; }

.hamburger {
    border: 1px solid var(--mehr-border);
    background: transparent;
    color: var(--mehr-text);
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 1.3rem;
}

/* ---------- هیرو ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 480px at 85% -10%, rgba(245, 158, 11, .16), transparent 60%),
        radial-gradient(900px 520px at 8% 0%, rgba(13, 148, 136, .22), transparent 55%),
        linear-gradient(160deg, var(--mehr-teal-deep) 0%, #0b4f4a 55%, #0c3f3c 100%);
    color: #fff;
    padding: 4.2rem 0 5.2rem;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -2px 0;
    height: 90px;
    background: var(--mehr-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #d9fbf3;
    padding: .45rem 1.1rem;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}
.hero h1 {
    font-weight: 800;
    font-size: clamp(1.8rem, 4.4vw, 3rem);
    line-height: 1.7;
    margin: 1.1rem 0 .8rem;
}
.hero h1 .accent {
    color: #fcd34d;
    position: relative;
    white-space: nowrap;
}
.hero p.lead-text {
    color: #cbeee6;
    font-size: clamp(.98rem, 1.6vw, 1.15rem);
    max-width: 560px;
    font-weight: 500;
}

.hero__search {
    background: var(--mehr-surface);
    border-radius: 20px;
    padding: .55rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    box-shadow: var(--mehr-shadow-lg);
    max-width: 760px;
    margin-top: 2rem;
}
.hero__search .search-input {
    flex: 1 1 220px;
    border: none;
    background: transparent;
    padding: .8rem 1rem;
    font-size: 1rem;
    color: var(--mehr-text);
    outline: none;
    min-width: 0;
}
.hero__search .select-wrap {
    flex: 1 1 150px;
    position: relative;
    border-inline-start: 1px solid var(--mehr-border);
}
[data-bs-theme="dark"] .hero__search .select-wrap { border-color: var(--mehr-border); }
.hero__search select {
    width: 100%;
    border: none;
    background: transparent;
    padding: .8rem 1rem;
    color: var(--mehr-text);
    outline: none;
    appearance: none;
    cursor: pointer;
    font-family: inherit;
}
.hero__search .select-wrap::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--mehr-muted);
    font-size: .8rem;
}
.hero__search .btn-mehr { flex: 0 0 auto; border-radius: 14px; padding-inline: 1.6rem; }

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2.4rem;
}
.hero__stat {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: .7rem 1.3rem;
    min-width: 130px;
}
.hero__stat b { font-size: 1.35rem; font-weight: 800; color: #fcd34d; display: block; }
.hero__stat span { font-size: .82rem; color: #cbeee6; }

.hero__art { position: relative; text-align: center; }
.hero__art img { width: 100%; max-width: 480px; filter: drop-shadow(0 24px 40px rgba(0,0,0,.25)); }
.hero__float-chip {
    position: absolute;
    background: var(--mehr-surface);
    color: var(--mehr-text);
    border-radius: 14px;
    padding: .5rem .9rem;
    font-size: .82rem;
    font-weight: 700;
    box-shadow: var(--mehr-shadow-lg);
    display: flex;
    align-items: center;
    gap: .45rem;
    animation: floaty 4s ease-in-out infinite;
}
.hero__float-chip i { color: var(--mehr-teal); font-size: 1.05rem; }
.hero__float-chip--1 { top: 12%; right: 6%; animation-delay: .4s; }
.hero__float-chip--2 { bottom: 20%; left: 2%; animation-delay: 1.2s; }
.hero__float-chip--3 { top: 46%; right: -2%; animation-delay: 2s; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@media (max-width: 991.98px) {
    .hero { padding: 3rem 0 4rem; }
    .hero__art { display: none; }
}

/* ---------- بخش‌ها ---------- */
.section { padding: 3.6rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-head .kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--mehr-teal-dark);
    background: var(--mehr-teal-soft);
    border-radius: 50px;
    padding: .3rem 1rem;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: .8rem;
}
[data-bs-theme="dark"] .section-head .kicker { color: var(--mehr-teal); }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
.section-head p { color: var(--mehr-muted); margin: .5rem 0 0; }

/* ---------- کارت دسته‌بندی ---------- */
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    background: var(--mehr-surface);
    border: 1px solid var(--mehr-border);
    border-radius: var(--mehr-radius);
    padding: 1.4rem .8rem;
    text-align: center;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    height: 100%;
}
.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--mehr-shadow);
    border-color: var(--mehr-teal);
}
.cat-card__icon {
    width: 62px; height: 62px;
    border-radius: 20px;
    display: grid; place-items: center;
    font-size: 1.7rem;
    color: var(--mehr-teal-dark);
    background: var(--mehr-teal-soft);
    transition: all .25s;
}
.cat-card:hover .cat-card__icon {
    background: linear-gradient(135deg, var(--mehr-teal), var(--mehr-teal-dark));
    color: #fff;
}
.cat-card b { font-size: .95rem; color: var(--mehr-text); }
.cat-card span { font-size: .78rem; color: var(--mehr-muted); }

/* ---------- کارت آگهی ---------- */
.item-card {
    background: var(--mehr-surface);
    border: 1px solid var(--mehr-border);
    border-radius: var(--mehr-radius);
    overflow: hidden;
    height: 100%;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.item-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--mehr-shadow-lg);
    border-color: color-mix(in srgb, var(--mehr-teal) 40%, var(--mehr-border));
}

.item-card__imgwrap {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--mehr-surface-2);
    overflow: hidden;
}
.item-card__imgwrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.item-card:hover .item-card__imgwrap img { transform: scale(1.06); }

.item-card__imgwrap .badge-soft {
    position: absolute;
    top: 12px;
    right: 12px;
    backdrop-filter: blur(4px);
}

.item-card__status {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
}
.item-card__status .badge { font-size: .95rem; padding: .5rem 1.1rem; }

.item-card__body {
    padding: 1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    flex: 1;
}
.item-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--mehr-muted);
}
.item-card__meta .cat-name {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: var(--mehr-teal-dark);
    font-weight: 600;
}
[data-bs-theme="dark"] .item-card__meta .cat-name { color: var(--mehr-teal); }

.item-card__title {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-card__title a { color: var(--mehr-text); }
.item-card__title a:hover { color: var(--mehr-teal-dark); }
[data-bs-theme="dark"] .item-card__title a:hover { color: var(--mehr-teal); }

.item-card__desc {
    font-size: .85rem;
    color: var(--mehr-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.8;
}

.item-card__foot {
    margin-top: auto;
    padding-top: .6rem;
    border-top: 1px dashed var(--mehr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--mehr-muted);
}
.item-card__foot .foot-item { display: inline-flex; align-items: center; gap: .3rem; }

.fav-btn {
    border: none;
    background: transparent;
    color: var(--mehr-muted);
    font-size: 1.15rem;
    padding: .25rem .4rem;
    transition: transform .2s, color .2s;
    line-height: 1;
}
.fav-btn:hover { color: var(--mehr-rose); transform: scale(1.12); }
.fav-btn.active { color: var(--mehr-rose); }
.fav-btn.active i::before { content: "\F417"; } /* heart-fill */

/* ---------- نشان‌های ملایم ---------- */
.badge-soft {
    font-weight: 600;
    font-size: .74rem;
    padding: .35rem .7rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    line-height: 1.6;
}
.badge-soft-primary { background: var(--mehr-teal-soft); color: var(--mehr-teal-deep); }
[data-bs-theme="dark"] .badge-soft-primary { color: #5eead4; }
.badge-soft-success { background: #dcfce7; color: #15803d; }
[data-bs-theme="dark"] .badge-soft-success { background: #14321f; color: #86efac; }
.badge-soft-warning { background: #fef3c7; color: #b45309; }
[data-bs-theme="dark"] .badge-soft-warning { background: #3a2c0e; color: #fcd34d; }
.badge-soft-danger { background: #ffe4e6; color: #be123c; }
[data-bs-theme="dark"] .badge-soft-danger { background: #3d1218; color: #fda4af; }
.badge-soft-info { background: #e0f2fe; color: #0369a1; }
[data-bs-theme="dark"] .badge-soft-info { background: #0c2d3f; color: #7dd3fc; }
.badge-soft-secondary { background: #eceae4; color: #57534e; }
[data-bs-theme="dark"] .badge-soft-secondary { background: #2c2924; color: #d6d3d1; }

/* ---------- فرم‌ها ---------- */
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-label .req { color: var(--mehr-rose); }

.form-control, .form-select {
    border-radius: 14px;
    border: 1.5px solid var(--mehr-border);
    background: var(--mehr-surface);
    color: var(--mehr-text);
    padding: .68rem 1rem;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--mehr-teal);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--mehr-teal) 15%, transparent);
    background: var(--mehr-surface);
    color: var(--mehr-text);
}
.form-control::placeholder { color: color-mix(in srgb, var(--mehr-muted) 70%, transparent); }
.form-text { color: var(--mehr-muted); font-size: .8rem; }

textarea.form-control { min-height: 130px; resize: vertical; }

.field-validation-error, .text-validation {
    color: var(--mehr-rose);
    font-size: .8rem;
    font-weight: 600;
    display: block;
    margin-top: .25rem;
}
.input-validation-error { border-color: var(--mehr-rose) !important; }

/* ناحیه آپلود تصویر */
.upload-drop {
    border: 2.5px dashed color-mix(in srgb, var(--mehr-teal) 45%, var(--mehr-border));
    border-radius: var(--mehr-radius);
    background: var(--mehr-teal-soft);
    padding: 1.8rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    display: block;
}
.upload-drop:hover { background: color-mix(in srgb, var(--mehr-teal-soft) 70%, var(--mehr-surface)); }
.upload-drop i { font-size: 2.2rem; color: var(--mehr-teal); }
.upload-drop p { margin: .5rem 0 0; font-weight: 600; color: var(--mehr-teal-deep); font-size: .92rem; }
[data-bs-theme="dark"] .upload-drop p { color: var(--mehr-teal); }
.upload-drop small { color: var(--mehr-muted); }

.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .7rem; margin-top: 1rem; }
.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--mehr-border);
    background: var(--mehr-surface-2);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .remove {
    position: absolute;
    top: 5px; left: 5px;
    width: 26px; height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(220, 38, 38, .92);
    color: #fff;
    font-size: .8rem;
    display: grid; place-items: center;
}

/* ---------- چیدمان آگهی‌ها + فیلتر ---------- */
.page-head {
    background: var(--mehr-surface);
    border-bottom: 1px solid var(--mehr-border);
    padding: 1.6rem 0;
}
.page-head h1 { font-size: 1.45rem; font-weight: 800; margin: 0; }
.breadcrumb { margin: 0; font-size: .82rem; }
.breadcrumb-item a { color: var(--mehr-muted); }
.breadcrumb-item.active { color: var(--mehr-teal-dark); font-weight: 600; }
[data-bs-theme="dark"] .breadcrumb-item.active { color: var(--mehr-teal); }

.filter-card {
    background: var(--mehr-surface);
    border: 1px solid var(--mehr-border);
    border-radius: var(--mehr-radius);
    padding: 1.25rem;
    position: sticky;
    top: calc(var(--mehr-header-h) + 16px);
}
.filter-card h6 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--mehr-muted);
    margin-bottom: .8rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.filter-list { display: grid; gap: .2rem; max-height: 320px; overflow-y: auto; padding-inline-end: .3rem; }
.filter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem .7rem;
    border-radius: 10px;
    font-size: .88rem;
    color: var(--mehr-text-2);
    font-weight: 500;
}
.filter-list a:hover { background: var(--mehr-teal-soft); color: var(--mehr-teal-deep); }
.filter-list a.active {
    background: linear-gradient(135deg, var(--mehr-teal), var(--mehr-teal-dark));
    color: #fff;
    font-weight: 700;
}
.filter-list a .count {
    font-size: .72rem;
    background: rgba(13, 148, 136, .12);
    color: var(--mehr-teal-dark);
    padding: .05rem .5rem;
    border-radius: 20px;
}
.filter-list a.active .count { background: rgba(255, 255, 255, .2); color: #fff; }
[data-bs-theme="dark"] .filter-list a .count { color: var(--mehr-teal); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1.5px solid var(--mehr-border);
    border-radius: 50px;
    padding: .4rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--mehr-text-2);
    background: var(--mehr-surface);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.chip:hover { border-color: var(--mehr-teal); color: var(--mehr-teal-dark); }
.chip.active {
    background: linear-gradient(135deg, var(--mehr-teal), var(--mehr-teal-dark));
    border-color: transparent;
    color: #fff;
}
.chip i { font-size: .95rem; }

.sort-tabs { display: inline-flex; background: var(--mehr-surface-2); border-radius: 14px; padding: .3rem; gap: .2rem; border: 1px solid var(--mehr-border); }
.sort-tabs a {
    padding: .4rem 1rem;
    border-radius: 11px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--mehr-muted);
}
.sort-tabs a.active { background: var(--mehr-surface); color: var(--mehr-teal-dark); box-shadow: var(--mehr-shadow); font-weight: 700; }
[data-bs-theme="dark"] .sort-tabs a.active { color: var(--mehr-teal); }

.result-count { font-size: .85rem; color: var(--mehr-muted); }
.result-count b { color: var(--mehr-teal-dark); }
[data-bs-theme="dark"] .result-count b { color: var(--mehr-teal); }

/* صفحه‌بندی */
.pagination-mehr { display: flex; justify-content: center; gap: .35rem; margin-top: 2.4rem; flex-wrap: wrap; }
.pagination-mehr a, .pagination-mehr span {
    min-width: 42px;
    height: 42px;
    padding: 0 .5rem;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    border: 1.5px solid var(--mehr-border);
    background: var(--mehr-surface);
    color: var(--mehr-text-2);
    font-weight: 600;
    font-size: .9rem;
}
.pagination-mehr a:hover { border-color: var(--mehr-teal); color: var(--mehr-teal-dark); }
.pagination-mehr .active {
    background: linear-gradient(135deg, var(--mehr-teal), var(--mehr-teal-dark));
    color: #fff;
    border-color: transparent;
}
.pagination-mehr .disabled { opacity: .45; cursor: default; }

/* ---------- صفحه جزئیات آگهی ---------- */
.gallery-main {
    border-radius: var(--mehr-radius);
    overflow: hidden;
    border: 1px solid var(--mehr-border);
    aspect-ratio: 4 / 3;
    background: var(--mehr-surface-2);
    position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.gallery-thumbs button {
    width: 84px; height: 64px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: var(--mehr-surface-2);
    opacity: .75;
    transition: all .2s;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--mehr-teal); opacity: 1; }

.detail-card {
    background: var(--mehr-surface);
    border: 1px solid var(--mehr-border);
    border-radius: var(--mehr-radius);
    padding: 1.6rem;
    box-shadow: var(--mehr-shadow);
}
.detail-card h1 { font-size: 1.45rem; font-weight: 800; }

.spec-list { display: grid; gap: .6rem; }
.spec-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    background: var(--mehr-surface-2);
    border: 1px solid var(--mehr-border);
    border-radius: 13px;
    padding: .65rem .9rem;
    font-size: .9rem;
}
.spec-item i {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid; place-items: center;
    background: var(--mehr-teal-soft);
    color: var(--mehr-teal-dark);
    font-size: 1.05rem;
    flex-shrink: 0;
}
.spec-item .label { color: var(--mehr-muted); font-size: .78rem; display: block; }
.spec-item .value { font-weight: 700; color: var(--mehr-text); }

.donor-card {
    background: linear-gradient(150deg, var(--mehr-teal-soft), transparent 130%);
    border: 1px solid color-mix(in srgb, var(--mehr-teal) 25%, var(--mehr-border));
    border-radius: var(--mehr-radius);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: .9rem;
}
.donor-card .avatar-lg {
    width: 56px; height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--mehr-teal), var(--mehr-teal-deep));
    color: #fff;
    display: grid; place-items: center;
    font-size: 1.4rem;
    font-weight: 800;
    flex-shrink: 0;
}
.donor-card h6 { margin: 0; font-weight: 700; }
.donor-card small { color: var(--mehr-muted); font-size: .78rem; }

.phone-reveal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    background: var(--mehr-surface-2);
    border: 1px dashed color-mix(in srgb, var(--mehr-teal) 50%, var(--mehr-border));
    border-radius: 14px;
    padding: .8rem 1rem;
}
.phone-reveal .num {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 1px;
    direction: ltr;
    color: var(--mehr-teal-deep);
}
[data-bs-theme="dark"] .phone-reveal .num { color: var(--mehr-teal); }

.action-sticky {
    position: sticky;
    top: calc(var(--mehr-header-h) + 16px);
    display: grid;
    gap: .8rem;
}

.description-box {
    background: var(--mehr-surface);
    border: 1px solid var(--mehr-border);
    border-radius: var(--mehr-radius);
    padding: 1.5rem;
    white-space: pre-line;
    line-height: 2.1;
    font-size: .98rem;
    color: var(--mehr-text-2);
}

/* ---------- مراحل (چطور کار می‌کند) ---------- */
.step-card {
    background: var(--mehr-surface);
    border: 1px solid var(--mehr-border);
    border-radius: var(--mehr-radius);
    padding: 1.8rem 1.4rem;
    height: 100%;
    position: relative;
    transition: transform .25s, box-shadow .25s;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--mehr-shadow); }
.step-card .num {
    position: absolute;
    top: -22px;
    right: 22px;
    width: 46px; height: 46px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--mehr-amber), var(--mehr-amber-dark));
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: grid; place-items: center;
    box-shadow: 0 10px 20px -6px rgba(217, 119, 6, .45);
}
.step-card .icon {
    width: 58px; height: 58px;
    border-radius: 18px;
    background: var(--mehr-teal-soft);
    color: var(--mehr-teal-dark);
    display: grid; place-items: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.step-card h5 { font-weight: 700; font-size: 1.05rem; }
.step-card p { color: var(--mehr-muted); font-size: .88rem; margin: 0; }

/* ---------- بنر CTA ---------- */
.cta-banner {
    background:
        radial-gradient(600px 300px at 90% 20%, rgba(245, 158, 11, .25), transparent 60%),
        linear-gradient(140deg, var(--mehr-teal-deep), #0c4a44);
    border-radius: 26px;
    color: #fff;
    padding: 3rem 2.2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner h2 { font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.cta-banner p { color: #cbeee6; max-width: 520px; margin: .6rem auto 1.6rem; }

/* ---------- آمار ---------- */
.stat-box {
    text-align: center;
    padding: 1.6rem 1rem;
    border-radius: var(--mehr-radius);
    background: var(--mehr-surface);
    border: 1px solid var(--mehr-border);
    height: 100%;
}
.stat-box i {
    width: 54px; height: 54px;
    border-radius: 17px;
    display: inline-grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: .7rem;
}
.stat-box b { font-size: 1.7rem; font-weight: 800; display: block; color: var(--mehr-text); }
.stat-box span { color: var(--mehr-muted); font-size: .86rem; }

/* ---------- حالت خالی ---------- */
.empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    background: var(--mehr-surface);
    border: 2px dashed var(--mehr-border);
    border-radius: var(--mehr-radius);
}
.empty-state .icon {
    width: 86px; height: 86px;
    border-radius: 28px;
    background: var(--mehr-teal-soft);
    color: var(--mehr-teal);
    display: inline-grid;
    place-items: center;
    font-size: 2.4rem;
    margin-bottom: 1rem;
}
.empty-state h5 { font-weight: 700; }
.empty-state p { color: var(--mehr-muted); max-width: 420px; margin: .4rem auto 1.3rem; font-size: .92rem; }

/* ---------- پنل کاربری / ادمین ---------- */
.panel-card {
    background: var(--mehr-surface);
    border: 1px solid var(--mehr-border);
    border-radius: var(--mehr-radius);
    overflow: hidden;
}
.panel-card__head {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--mehr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
}
.panel-card__head h5 { margin: 0; font-weight: 700; font-size: 1.02rem; }

.tab-pills { display: inline-flex; gap: .3rem; background: var(--mehr-surface-2); border: 1px solid var(--mehr-border); border-radius: 14px; padding: .3rem; flex-wrap: wrap; }
.tab-pills a {
    padding: .45rem 1.1rem;
    border-radius: 11px;
    font-size: .86rem;
    font-weight: 600;
    color: var(--mehr-muted);
    white-space: nowrap;
}
.tab-pills a.active { background: var(--mehr-teal); color: #fff; font-weight: 700; }

.table-mehr { margin: 0; --bs-table-bg: transparent; color: var(--mehr-text); }
.table-mehr > :not(caption) > * > * {
    padding: .9rem 1.2rem;
    border-bottom: 1px solid var(--mehr-border);
    background: transparent;
    color: var(--mehr-text);
}
.table-mehr thead th {
    font-size: .78rem;
    color: var(--mehr-muted);
    font-weight: 700;
    text-transform: none;
    background: var(--mehr-surface-2) !important;
    white-space: nowrap;
}
.table-mehr tbody tr:hover { background: var(--mehr-surface-2); }
.table-mehr .thumb {
    width: 58px; height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--mehr-border);
}

.notif-icon {
    width: 46px; height: 46px;
    border-radius: 15px;
    display: grid; place-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.notif-icon--success { background: #dcfce7; color: #15803d; }
.notif-icon--warning { background: #fef3c7; color: #b45309; }
.notif-icon--danger { background: #ffe4e6; color: #be123c; }
.notif-icon--info { background: #e0f2fe; color: #0369a1; }
[data-bs-theme="dark"] .notif-icon--success { background: #14321f; color: #86efac; }
[data-bs-theme="dark"] .notif-icon--warning { background: #3a2c0e; color: #fcd34d; }
[data-bs-theme="dark"] .notif-icon--danger { background: #3d1218; color: #fda4af; }
[data-bs-theme="dark"] .notif-icon--info { background: #0c2d3f; color: #7dd3fc; }

.request-card {
    display: flex;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--mehr-border);
    border-radius: var(--mehr-radius-sm);
    background: var(--mehr-surface);
    transition: border-color .2s;
}
.request-card:hover { border-color: color-mix(in srgb, var(--mehr-teal) 45%, var(--mehr-border)); }
.request-card .thumb {
    width: 92px; height: 70px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--mehr-border);
}

/* ---------- صفحه ورود/ثبت‌نام ---------- */
.auth-wrap {
    min-height: calc(100vh - var(--mehr-header-h) - 80px);
    display: grid;
    place-items: center;
    padding: 3rem 1rem;
}
.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--mehr-surface);
    border: 1px solid var(--mehr-border);
    border-radius: 24px;
    padding: 2.4rem 2rem;
    box-shadow: var(--mehr-shadow-lg);
}
.auth-card .auth-icon {
    width: 66px; height: 66px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--mehr-teal), var(--mehr-teal-deep));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    margin: 0 auto 1rem;
    box-shadow: 0 12px 26px -8px rgba(13, 148, 136, .5);
}
.auth-card h1 { font-size: 1.3rem; font-weight: 800; text-align: center; }
.auth-card .subtitle { text-align: center; color: var(--mehr-muted); font-size: .9rem; margin-bottom: 1.6rem; }
.demo-cred {
    background: var(--mehr-surface-2);
    border: 1px dashed var(--mehr-border);
    border-radius: 12px;
    padding: .7rem .9rem;
    font-size: .78rem;
    color: var(--mehr-muted);
    margin-top: 1.2rem;
}
.demo-cred code { background: var(--mehr-teal-soft); color: var(--mehr-teal-deep); padding: .1rem .4rem; border-radius: 6px; font-family: inherit; }
[data-bs-theme="dark"] .demo-cred code { color: var(--mehr-teal); }

/* ---------- آکاردئون FAQ ---------- */
.accordion-item {
    border: 1px solid var(--mehr-border);
    border-radius: var(--mehr-radius-sm) !important;
    margin-bottom: .8rem;
    overflow: hidden;
    background: var(--mehr-surface);
}
.accordion-button {
    font-weight: 700;
    font-size: .98rem;
    color: var(--mehr-text);
    background: var(--mehr-surface);
    padding: 1.1rem 1.3rem;
}
.accordion-button:not(.collapsed) {
    background: var(--mehr-teal-soft);
    color: var(--mehr-teal-deep);
    box-shadow: none;
}
[data-bs-theme="dark"] .accordion-button:not(.collapsed) { color: var(--mehr-teal); }
.accordion-button:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--mehr-teal) 15%, transparent); border-color: transparent; }
.accordion-body { color: var(--mehr-text-2); font-size: .92rem; line-height: 2; }

/* ---------- فوتر ---------- */
.site-footer {
    background: var(--mehr-surface);
    border-top: 1px solid var(--mehr-border);
    margin-top: 3rem;
    padding: 3rem 0 0;
}
.site-footer h6 { font-weight: 700; font-size: .95rem; margin-bottom: 1rem; color: var(--mehr-text); }
.site-footer p, .site-footer a { color: var(--mehr-muted); font-size: .88rem; }
.site-footer a { display: inline-flex; align-items: center; gap: .45rem; padding: .18rem 0; transition: color .2s; }
.site-footer a:hover { color: var(--mehr-teal-dark); }
[data-bs-theme="dark"] .site-footer a:hover { color: var(--mehr-teal); }
.footer-social { display: flex; gap: .6rem; margin-top: .8rem; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid var(--mehr-border);
    display: grid; place-items: center;
    color: var(--mehr-muted);
    font-size: 1.1rem;
}
.footer-social a:hover {
    background: var(--mehr-teal);
    color: #fff;
    border-color: transparent;
}
.footer-bottom {
    border-top: 1px solid var(--mehr-border);
    margin-top: 2.2rem;
    padding: 1.2rem 0;
    text-align: center;
    font-size: .82rem;
    color: var(--mehr-muted);
}
.footer-bottom .heart { color: var(--mehr-rose); }

/* ---------- Toast پیام‌ها ---------- */
.toast-stack {
    position: fixed;
    top: calc(var(--mehr-header-h) + 14px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    display: grid;
    gap: .5rem;
    width: min(92vw, 480px);
}
.mehr-toast {
    display: flex;
    align-items: center;
    gap: .7rem;
    background: var(--mehr-surface);
    color: var(--mehr-text);
    border: 1px solid var(--mehr-border);
    border-inline-start: 4px solid var(--mehr-teal);
    border-radius: 14px;
    padding: .8rem 1.1rem;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: var(--mehr-shadow-lg);
    animation: toastIn .35s cubic-bezier(.22, .9, .3, 1.2);
}
.mehr-toast--error { border-inline-start-color: var(--mehr-rose); }
.mehr-toast--error i { color: var(--mehr-rose); }
.mehr-toast--info { border-inline-start-color: #0369a1; }
.mehr-toast--info i { color: #0369a1; }
.mehr-toast i { color: var(--mehr-teal); font-size: 1.2rem; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: none; }
}

/* ---------- جعبه هشدار ایمنی ---------- */
.safety-box {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: var(--mehr-radius-sm);
    padding: 1rem 1.2rem;
}
.safety-box h6 {
    color: #92400e;
    font-weight: 700;
    font-size: .88rem;
    margin-bottom: .5rem;
}
.safety-box ul {
    margin: 0;
    padding-inline-start: 1.1rem;
    font-size: .82rem;
    color: #78350f;
    line-height: 2.1;
}
[data-bs-theme="dark"] .safety-box { background: #2b2310; border-color: #4a3b12; }
[data-bs-theme="dark"] .safety-box h6 { color: #fcd34d; }
[data-bs-theme="dark"] .safety-box ul { color: #d8c9a5; }

/* کارت پایش مسدودشده */
.moderation-blocked {
    border: 1.5px solid color-mix(in srgb, var(--mehr-rose) 45%, var(--mehr-border));
    background: color-mix(in srgb, #ffe4e6 30%, var(--mehr-surface));
}

/* ---------- صفحات محتوایی ---------- */
.content-page { background: var(--mehr-surface); border: 1px solid var(--mehr-border); border-radius: var(--mehr-radius); padding: 2.4rem; }
.content-page h2 { font-size: 1.2rem; font-weight: 800; margin: 1.8rem 0 .8rem; }
.content-page h2:first-child { margin-top: 0; }
.content-page p, .content-page li { color: var(--mehr-text-2); line-height: 2.1; font-size: .95rem; }
.content-page ul li { margin-bottom: .5rem; }

.value-card {
    text-align: center;
    padding: 1.8rem 1.2rem;
    border-radius: var(--mehr-radius);
    background: var(--mehr-surface);
    border: 1px solid var(--mehr-border);
    height: 100%;
}
.value-card i {
    width: 58px; height: 58px;
    border-radius: 18px;
    display: inline-grid;
    place-items: center;
    background: var(--mehr-teal-soft);
    color: var(--mehr-teal-dark);
    font-size: 1.5rem;
    margin-bottom: .9rem;
}
.value-card h6 { font-weight: 700; }
.value-card p { color: var(--mehr-muted); font-size: .85rem; margin: 0; }

.quote-box {
    background: var(--mehr-teal-soft);
    border-radius: var(--mehr-radius);
    padding: 1.6rem 1.8rem;
    border-inline-start: 5px solid var(--mehr-teal);
    font-weight: 600;
    color: var(--mehr-teal-deep);
    line-height: 2.2;
}
[data-bs-theme="dark"] .quote-box { color: var(--mehr-teal); }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 991.98px) {
    :root { --mehr-header-h: 64px; }
    .section { padding: 2.6rem 0; }
    .filter-card { position: static; }
    .action-sticky { position: static; }
}

@media (max-width: 575.98px) {
    body { font-size: .95rem; }
    .hero__search .select-wrap { border-inline-start: none; border-top: 1px solid var(--mehr-border); }
    .content-page { padding: 1.4rem; }
    .detail-card { padding: 1.2rem; }
    .request-card .thumb { width: 72px; height: 56px; }
    .toast-stack { width: 94vw; }
}

/* کاهش انیمیشن برای کاربران حساس */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
}
