/* ===========================================================
   بازار خودرو — استایل عمومی سایت (پالت رنگی برگرفته از طرح مرجع)
   =========================================================== */

@font-face { font-family: 'Vazirmatn'; font-weight: 400; font-style: normal; src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Vazirmatn'; font-weight: 500; font-style: normal; src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Vazirmatn'; font-weight: 600; font-style: normal; src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Vazirmatn'; font-weight: 700; font-style: normal; src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Vazirmatn'; font-weight: 800; font-style: normal; src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Vazirmatn'; font-weight: 900; font-style: normal; src: url('../fonts/Vazirmatn-Black.woff2') format('woff2'); font-display: swap; }

:root {
    --ink: #10211f;
    --muted: #697774;
    --paper: #f6f5f0;
    --white: #ffffff;
    --line: #e1e4de;
    --teal: #1f6a5b;
    --teal-dark: #154e43;
    --amber: #efa93b;
    --amber-soft: #fff2d9;
    --red: #c14f43;
    --green-soft: #ecfdf5;
    --shadow: 0 16px 50px rgba(16, 33, 31, 0.09);
    --shadow-soft: 0 8px 28px rgba(16, 33, 31, 0.07);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --font-fa: 'Vazirmatn', 'IRANSans', 'Segoe UI', Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 92px; }
body { overflow-x: hidden; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-fa); line-height: 1.8; font-size: 15px; direction: rtl; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, [role="button"] { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [role="button"]:focus-visible { outline: 3px solid rgba(239, 169, 59, 0.45); outline-offset: 2px; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 800; line-height: 1.4; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.site-shell { min-height: 100vh; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 60px 0; }

/* ---------- نوبار ---------- */
.topbar { position: sticky; z-index: 40; top: 0; height: 78px; border-bottom: 1px solid rgba(225, 228, 222, 0.9); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 28px; }
.brand-lockup { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 11px; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: right; }
.brand-lockup.static { cursor: default; }
.brand-mark { display: grid; width: 43px; height: 43px; flex-shrink: 0; place-items: center; border-radius: 14px 4px 14px 4px; background: var(--teal); color: var(--white); }
.brand-lockup > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.brand-lockup strong { font-size: 18px; font-weight: 850; letter-spacing: -0.4px; }
.brand-lockup small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 30px; margin-inline: auto; }
.main-nav a { position: relative; display: inline-block; padding: 28px 0 25px; color: #43524f; cursor: pointer; font-size: 13px; font-weight: 650; }
.main-nav a::after { position: absolute; right: 50%; bottom: 17px; width: 0; height: 2px; border-radius: 10px; background: var(--amber); content: ""; transform: translateX(50%); transition: width 180ms ease; }
.main-nav a:hover { color: var(--teal); }
.main-nav a:hover::after { width: 18px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-action, .mobile-menu-button { position: relative; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: #50605c; cursor: pointer; transition: 160ms ease; }
.icon-action:hover, .mobile-menu-button:hover { border-color: var(--teal); color: var(--teal); }
.icon-action > span { position: absolute; top: -6px; left: -5px; display: none; min-width: 18px; height: 18px; padding-inline: 4px; place-items: center; border: 2px solid white; border-radius: 20px; background: var(--amber); color: #392500; font-size: 9px; font-weight: 800; }
.icon-action > span.show { display: grid; }
.sell-button, .hero-search button, .sell-copy > a, .submit-btn, .drawer-sell { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 0; border-radius: 11px; background: var(--teal); color: var(--white); cursor: pointer; font-size: 12px; font-weight: 750; box-shadow: 0 8px 20px rgba(31, 106, 91, 0.19); transition: 180ms ease; }
.sell-button:hover, .hero-search button:hover, .sell-copy > a:hover, .submit-btn:hover, .drawer-sell:hover { background: var(--teal-dark); transform: translateY(-1px); color: var(--white); }
.mobile-menu-button { display: none; border: none; }
.mobile-menu-button svg, .icon-action svg { display: block; }

.mobile-drawer-backdrop { position: fixed; z-index: 110; inset: 0; background: rgba(7, 16, 15, 0.65); }
.mobile-drawer { position: absolute; top: 0; left: 0; display: flex; width: min(330px, 86vw); height: 100%; flex-direction: column; padding: 20px; background: white; box-shadow: 18px 0 50px rgba(0, 0, 0, 0.2); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.drawer-header > button { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fafbf8; cursor: pointer; }
.mobile-drawer nav { display: flex; flex: 1; flex-direction: column; padding-block: 17px; }
.mobile-drawer nav a { padding: 15px 4px; border-bottom: 1px solid #eef0ec; text-align: right; font-size: 12px; }
.drawer-sell { width: 100%; text-decoration: none; }

/* ---------- هیرو ---------- */
.hero-section { position: relative; min-height: 578px; background: #111d1b; color: var(--white); overflow: hidden; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { background: rgba(8, 20, 18, 0.54); }
.hero-content { position: relative; z-index: 2; display: flex; min-height: 578px; align-items: center; justify-content: space-between; gap: 50px; padding-block: 58px; flex-wrap: wrap; }
.hero-copy { width: min(650px, 64%); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 30px; background: rgba(10, 25, 22, 0.48); color: #f9d494; font-size: 11px; font-weight: 700; }
.hero-copy h1 { margin: 21px 0 16px; font-size: clamp(38px, 5vw, 66px); font-weight: 900; line-height: 1.2; letter-spacing: -2px; }
.hero-copy h1 em { color: var(--amber); font-style: normal; }
.hero-copy > p { max-width: 560px; margin: 0 0 26px; color: rgba(255, 255, 255, 0.78); font-size: 15px; line-height: 2; }
.hero-search { display: flex; width: min(625px, 100%); gap: 8px; padding: 7px; border-radius: 15px; background: var(--white); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28); }
.search-input-wrap { display: flex; min-width: 0; flex: 1; align-items: center; gap: 9px; padding-inline: 10px; color: var(--muted); }
.search-input-wrap input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-input-wrap input::placeholder { color: #919b98; }
.hero-search button { min-width: 155px; }
.quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; color: rgba(255, 255, 255, 0.58); font-size: 10px; }
.quick-links a { padding: 5px 9px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 20px; background: rgba(7, 20, 18, 0.35); color: rgba(255, 255, 255, 0.8); cursor: pointer; font-size: 10px; }
.quick-links a:hover { border-color: var(--amber); color: #ffd58c; }
.hero-stats { display: flex; align-self: flex-end; gap: 0; margin-bottom: 4px; padding: 13px 5px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 15px; background: rgba(10, 24, 21, 0.62); backdrop-filter: blur(8px); }
.hero-stats div { display: flex; min-width: 100px; flex-direction: column; align-items: center; padding: 3px 14px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.hero-stats div:last-child { border-left: 0; }
.hero-stats strong { color: #fff; font-size: 18px; }
.hero-stats span { margin-top: 4px; color: rgba(255, 255, 255, 0.57); font-size: 9px; }

.trust-strip { position: relative; z-index: 3; background: var(--white); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 24px; }
.trust-grid > div { display: flex; align-items: center; justify-content: center; gap: 11px; padding-inline: 24px; border-left: 1px solid var(--line); }
.trust-grid > div:last-child { border-left: 0; }
.trust-grid > div > span { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e9f2ef; color: var(--teal); }
.trust-grid p { display: flex; flex-direction: column; margin: 0; }
.trust-grid strong { font-size: 12px; }
.trust-grid small { margin-top: 4px; color: var(--muted); font-size: 9px; }

/* ---------- بخش آگهی‌ها ---------- */
.listings-section { padding: 78px 0 90px; background: var(--paper); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; flex-wrap: wrap; }
.section-heading.compact { margin-bottom: 31px; }
.section-kicker { display: inline-block; margin-bottom: 8px; color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: 0.5px; }
.section-kicker.light { color: #fbd68f; }
.section-heading h2, .sell-copy h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 900; letter-spacing: -1px; }
.section-heading p, .sell-copy > p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--teal); cursor: pointer; font-size: 12px; font-weight: 750; }
.category-tabs { display: flex; align-items: center; gap: 6px; margin-bottom: 15px; overflow-x: auto; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs a { display: inline-block; min-width: max-content; padding: 10px 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: #586562; cursor: pointer; font-size: 11px; font-weight: 650; transition: 160ms ease; }
.category-tabs a:hover, .category-tabs a.active { border-color: var(--teal); background: var(--teal); color: white; }

.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.chip-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); color: #586562; cursor: pointer; font-family: var(--font-fa); font-size: 11px; font-weight: 700; transition: 160ms ease; }
.chip-toggle:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip-toggle.active { border-color: var(--teal); background: var(--teal); color: white; }
.chip-toggle.active svg { color: white; }

.sell-type-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sell-type-tabs a { padding: 11px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: #586562; font-size: 12.5px; font-weight: 700; transition: 160ms ease; }
.sell-type-tabs a:hover { border-color: var(--teal); color: var(--teal-dark); }
.sell-type-tabs a.active { border-color: var(--teal); background: var(--teal); color: white; }

/* ---------- پرسش‌های متداول ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 5px 17px rgba(16, 33, 31, 0.035); overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 750; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex-shrink: 0; color: var(--muted); transition: transform 180ms ease; }
.faq-item[open] summary svg { transform: rotate(-90deg); color: var(--teal); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item p { margin: 0; padding: 16px 22px 20px; color: #445350; font-size: 13px; line-height: 2; }

/* ---------- قوانین انتشار آگهی ---------- */
.rules-card { display: flex; gap: 16px; align-items: flex-start; max-width: 820px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 5px 17px rgba(16, 33, 31, 0.035); }
.rules-card svg { flex-shrink: 0; color: var(--teal); }
.rules-card p { margin: 0; color: #445350; font-size: 13px; line-height: 2.1; }

/* ---------- مدیریت گالری تصاویر آگهی (پنل ادمین) ---------- */
.image-gallery-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.gallery-manager-item { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcf9; }
.gallery-manager-item.is-cover { border-color: var(--teal); background: var(--green-soft); }
.gallery-manager-item img { width: 100%; aspect-ratio: 4 / 2.65; border-radius: 7px; object-fit: cover; }
.gallery-manager-item .cover-tag { display: inline-flex; align-items: center; justify-content: center; padding: 6px 8px; border-radius: 7px; background: var(--teal); color: white; font-size: 10.5px; font-weight: 700; text-align: center; }
.gallery-manager-item form { margin: 0; }
.gallery-manager-item .btn { width: 100%; border-radius: var(--radius-sm); padding: 8px 10px; font-size: 10.5px; line-height: 1.5; white-space: normal; text-align: center; }

/* ---------- ورودی فایل سفارشی (جایگزین دکمه‌ی پیش‌فرض مرورگر) ----------
   نکته: چون این دکمه‌ی <label> معمولاً داخل .form-group قرار می‌گیرد، قانون عمومی
   «.form-group label { display:block }» می‌تواند روی آن اثر بگذارد؛ برای همین همه‌ی
   قوانین این بخش را با «.file-upload-wrap .file-upload-trigger» (دو کلاس، اولویت بالاتر)
   می‌نویسیم تا همیشه برنده‌ی cascade باشد. */
.file-upload-wrap { position: relative; display: block; width: 100%; margin: 0; font-size: initial; font-weight: initial; }
.file-upload-wrap input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.file-upload-wrap .file-upload-trigger { display: flex !important; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 46px; margin: 0; padding: 4px 20px; border: 0; border-radius: 999px; background: linear-gradient(90deg, var(--teal-dark), var(--teal)); color: white; cursor: pointer; font-family: var(--font-fa); font-size: 13px; font-weight: 700; box-sizing: border-box; transition: .18s ease; box-shadow: 0 8px 18px rgba(15, 61, 52, 0.25); }
.file-upload-wrap .file-upload-trigger:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 61, 52, 0.32); }
.file-upload-wrap .file-upload-trigger .icon-badge { display: grid; flex-shrink: 0; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.file-upload-wrap .file-upload-trigger svg { flex-shrink: 0; }
.file-upload-wrap .file-upload-trigger span { overflow: hidden; max-width: 220px; text-overflow: ellipsis; white-space: nowrap; }
.filter-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 7px 24px rgba(16, 33, 31, 0.04); }
.filter-bar label { position: relative; display: flex; min-width: 0; flex-direction: column; gap: 5px; padding: 4px 12px; border-left: 1px solid var(--line); }
.filter-bar label span { color: #89938f; font-size: 8px; }
.filter-bar select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 700; }
.reset-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafaf7; color: var(--muted); cursor: pointer; font-size: 10px; transition: 160ms ease; }
.reset-button:hover { border-color: var(--red); color: var(--red); }
.view-all-link { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fafaf7; color: var(--teal-dark); font-size: 11.5px; font-weight: 700; transition: 160ms ease; }
.view-all-link:hover { border-color: var(--teal); background: var(--teal); color: white; }
.results-row { display: flex; align-items: center; justify-content: space-between; margin: 22px 2px 14px; color: var(--muted); font-size: 10px; flex-wrap: wrap; gap: 10px; }
.results-row p { margin: 0; }
.results-row strong { color: var(--ink); font-size: 12px; }
.results-row label { display: flex; align-items: center; gap: 5px; }
.results-row select { border: 0; outline: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 700; }

.car-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.car-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 5px 17px rgba(16, 33, 31, 0.035); transition: 200ms ease; }
.car-card:hover { border-color: #cbd4cf; box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.card-media { position: relative; }
.card-image { display: block; aspect-ratio: 4 / 2.65; overflow: hidden; background: #e7e9e4; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.car-card:hover .card-image img { transform: scale(1.035); }
.card-badges { position: absolute; top: 11px; right: 11px; display: flex; flex-wrap: wrap; gap: 5px; pointer-events: none; }
.card-badges span { display: inline-flex; align-items: center; gap: 3px; padding: 5px 8px; border-radius: 6px; font-size: 8px; font-weight: 800; }
.featured-badge { background: var(--amber); color: #362400; }
.verified-badge { background: rgba(20, 78, 67, 0.88); color: white; backdrop-filter: blur(5px); }
.urgent-badge { background: var(--red); color: white; }
.sold-badge { background: var(--red); color: white; }
.tradeable-badge { background: #eef0fb; color: #3b3f8f; }
.favorite-button { position: absolute; top: 10px; left: 10px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: #52605d; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14); transition: 160ms ease; }
.favorite-button:hover, .favorite-button.active { background: white; color: var(--red); }
.favorite-button.active svg { fill: currentColor; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 15px 16px 16px; }
.card-location { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
.card-location span { display: inline-flex; align-items: center; gap: 4px; }
.card-location small { font-size: 8px; }
.card-title { display: flex; width: 100%; align-items: baseline; gap: 6px; padding: 0; cursor: pointer; text-align: right; }
.card-title h3 { margin: 11px 0 6px; font-size: 17px; font-weight: 850; letter-spacing: -0.5px; }
.card-title span { color: var(--muted); font-size: 10px; }
.card-specs { display: flex; align-items: center; gap: 0; margin: 4px 0 15px; color: #687672; font-size: 9px; flex-wrap: wrap; }
.card-specs span { display: inline-flex; align-items: center; gap: 4px; padding: 0 9px; border-left: 1px solid var(--line); }
.card-specs span:first-child { padding-right: 0; }
.card-specs span:last-child { border-left: 0; }
.card-specs svg { color: #89948f; }
.card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 13px; border-top: 1px solid #edf0eb; }
.card-footer > div { display: flex; flex-direction: column; gap: 4px; }
.card-footer small { color: var(--muted); font-size: 8px; }
.card-footer strong { color: var(--teal-dark); font-size: 13px; font-weight: 900; }
.card-footer > button { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fafbf8; color: var(--muted); cursor: pointer; }
.card-footer > button:hover, .card-footer > button.selected { border-color: var(--teal); background: #e9f2ef; color: var(--teal); }
.card-price-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.is-sold-price { color: var(--muted) !important; text-decoration: line-through; }
.price-quality-badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.pq-عالی { background: #dcf5e6; color: #1a7a42; }
.pq-خوب { background: #dce9fb; color: #1d5fa8; }
.pq-معمولی { background: var(--amber-soft); color: #8a5a12; }
.card-trade-note { display: flex; align-items: center; gap: 5px; margin-top: 8px; padding: 7px 9px; border-radius: 7px; background: #f4f5fc; color: #3b3f8f; font-size: 10px; font-weight: 700; }
a.card-trade-note-link { background: var(--green-soft); color: var(--teal-dark); cursor: pointer; transition: 140ms ease; }
a.card-trade-note-link:hover { background: #d8f1e9; }
.phone-masked { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.phone-masked-text { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); filter: blur(3.5px); font-size: 10.5px; font-weight: 700; pointer-events: none; user-select: none; }
.admin-contact-wrap { position: relative; }
.admin-contact-menu { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; display: flex; flex-direction: column; width: max-content; min-width: 160px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow); }
.admin-contact-menu a, .admin-contact-menu button { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 0; background: none; color: var(--ink); cursor: pointer; font-family: var(--font-fa); font-size: 12px; font-weight: 700; text-align: right; }
.admin-contact-menu a:hover, .admin-contact-menu button:hover { background: #f2f5f2; color: var(--teal-dark); }
.admin-contact-menu a { border-bottom: 1px solid var(--line); }
.admin-contact-revealed { color: var(--teal-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }
.empty-state { display: flex; min-height: 300px; flex-direction: column; align-items: center; justify-content: center; padding: 40px; border: 1px dashed #ccd3cf; border-radius: 16px; background: var(--white); text-align: center; }
.empty-state > span { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: #e9f2ef; color: var(--teal); }
.empty-state h3 { margin: 15px 0 5px; font-size: 18px; }
.empty-state p { margin: 0 0 17px; color: var(--muted); font-size: 11px; }
.empty-state > a, .empty-state > button { display: inline-block; padding: 9px 16px; border: 1px solid var(--teal); border-radius: 9px; background: transparent; color: var(--teal); cursor: pointer; font-size: 11px; font-weight: 700; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-size: 12px; font-weight: 700; }
.pagination a:hover { border-color: var(--teal); color: var(--teal); }
.pagination span.active { border-color: var(--teal); background: var(--teal); color: white; }
.pagination span.disabled { color: #c3cac6; }

/* ---------- بنر فروش ---------- */
.sell-banner { position: relative; overflow: hidden; background: var(--teal-dark); color: white; }
.sell-banner::before, .sell-banner::after { position: absolute; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50%; content: ""; }
.sell-banner::before { width: 420px; height: 420px; top: -300px; right: -80px; }
.sell-banner::after { width: 320px; height: 320px; bottom: -250px; left: 100px; }
.sell-banner-inner { position: relative; z-index: 2; display: flex; min-height: 330px; align-items: center; justify-content: center; gap: 100px; padding-block: 48px; flex-wrap: wrap; }
.sell-copy { width: min(570px, 58%); }
.sell-copy > p { color: rgba(255, 255, 255, 0.67); line-height: 2; }
.sell-points { display: flex; flex-wrap: wrap; gap: 16px; margin: 19px 0 23px; }
.sell-points span { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, 0.86); font-size: 10px; }
.sell-points svg { width: 17px; height: 17px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.13); color: #fbd68f; }
.sell-copy > a { display: inline-flex; min-height: 46px; background: var(--amber); color: #322100; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2); text-decoration: none; }
.sell-copy > a:hover { background: #f8bb56; }
.sell-copy > a svg { transform: rotate(180deg); }
.sell-art { position: relative; width: 250px; height: 190px; flex: 0 0 auto; }
.sell-art::before { position: absolute; inset: 18px 25px 10px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 80px 12px 80px 12px; background: rgba(255, 255, 255, 0.04); content: ""; transform: rotate(-6deg); }
.photo-card { position: absolute; z-index: 2; top: 30px; right: 28px; display: flex; width: 170px; height: 112px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 15px; background: rgba(255, 255, 255, 0.09); color: rgba(255, 255, 255, 0.82); font-size: 10px; transform: rotate(4deg); }
.price-pill { position: absolute; z-index: 3; bottom: 14px; left: 0; display: flex; flex-direction: column; gap: 3px; padding: 11px 17px; border-radius: 12px; background: var(--amber); color: #392500; box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2); }
.price-pill small { font-size: 8px; }
.price-pill strong { font-size: 18px; }

/* ---------- بخش راهنما ---------- */
.guide-section { padding: 78px 0 84px; background: white; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.guide-grid article { position: relative; min-height: 245px; padding: 27px 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fbfcf9; transition: 200ms ease; }
.guide-grid article:hover { border-color: #c9d5cf; box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.guide-number { position: absolute; top: 18px; left: 22px; color: #e5e9e4; font-size: 40px; font-weight: 900; }
.guide-icon { display: grid; width: 51px; height: 51px; place-items: center; border-radius: 14px 4px 14px 4px; background: #e8f1ee; color: var(--teal); }
.guide-grid h3 { margin: 19px 0 9px; font-size: 15px; }
.guide-grid p { min-height: 46px; margin: 0 0 18px; color: var(--muted); font-size: 10px; line-height: 1.9; }
.guide-grid a.read-more { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--teal); cursor: pointer; font-size: 10px; font-weight: 750; }
.guide-grid a.read-more svg { transform: rotate(180deg); transition: transform 160ms ease; }
.guide-grid a.read-more:hover svg { transform: rotate(180deg) translateX(4px); }

/* ---------- صفحه‌ی مقاله ---------- */
.article-header { padding: 46px 0 30px; }
.article-header .section-kicker { display: block; }
.article-header h1 { font-size: clamp(24px, 4vw, 36px); letter-spacing: -1px; }
.article-header .article-meta { color: var(--muted); font-size: 11px; }
.article-cover { aspect-ratio: 16/7; overflow: hidden; border-radius: var(--radius-lg); background: #e7e9e4; margin-bottom: 30px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 760px; font-size: 14.5px; line-height: 2.1; color: #33403d; }
.article-body p { margin: 0 0 1.3em; }

/* ---------- صفحه‌ی جزئیات آگهی (کارت ثابت، بدون مودال) ---------- */
.breadcrumb { display: flex; align-items: center; gap: 6px; margin: 26px 0 0; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--teal); }
.listing-code { margin-inline-start: auto; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fbfcf9; color: var(--muted); font-size: 11px; font-weight: 700; }
.back-button { display: inline-flex; align-items: center; gap: 7px; margin-top: 26px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: #43524f; cursor: pointer; font-size: 12px; font-weight: 700; transition: 160ms ease; }
.back-button:hover { border-color: var(--teal); background: var(--teal); color: white; }
.detail-page { display: grid; grid-template-columns: 47% 53%; overflow: hidden; margin: 20px 0 60px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-soft); }
.detail-image { position: relative; min-height: 560px; background: #dfe3de; }
.detail-image > img { width: 100%; height: 100%; object-fit: cover; }
.detail-image-badges { position: absolute; right: 16px; bottom: 16px; left: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.detail-image-badges > span, .detail-image-badges > button { display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 9px; background: rgba(13, 28, 26, 0.77); color: white; font-size: 9px; backdrop-filter: blur(8px); }
.detail-image-badges > span.urgent-badge { background: var(--red); border-color: transparent; }
.detail-image-badges > span.sold-badge { background: var(--red); border-color: transparent; }
.detail-image-badges > span.tradeable-badge { background: #3b3f8f; border-color: transparent; }
.detail-image-badges > button { cursor: pointer; }
.detail-gallery { display: flex; flex-direction: column; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; background: white; overflow-x: auto; }
.gallery-thumb { flex-shrink: 0; width: 64px; height: 46px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .6; transition: 140ms ease; }
.gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: .85; }
.gallery-thumb.active { border-color: var(--teal); opacity: 1; }
.detail-content { padding: 32px 31px 28px; }
.detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.detail-heading > div:first-child > span { display: inline-block; margin-bottom: 8px; color: var(--teal); font-size: 9px; font-weight: 800; }
.detail-heading h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -1px; }
.detail-heading h2 small { color: var(--muted); font-size: 12px; font-weight: 500; }
.detail-heading p { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--muted); font-size: 10px; }
.detail-price { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 5px; }
.detail-price small { color: var(--muted); font-size: 8px; }
.detail-price strong { color: var(--teal-dark); font-size: 17px; }
.detail-spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 19px 0; }
.detail-spec-grid > div { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 10px; border: 1px solid #e8ebe6; border-radius: 10px; background: #fafbf8; color: var(--teal); }
.detail-spec-grid > div > span:not(.color-dot) { display: flex; min-width: 0; flex-direction: column; gap: 3px; color: var(--muted); font-size: 9px; }
.detail-spec-grid strong { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.color-dot { width: 21px; height: 21px; flex: 0 0 auto; border: 1px solid #d7dbd6; border-radius: 50%; }
.detail-description { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-description h3 { margin: 0 0 8px; font-size: 12px; }
.detail-description p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.seller-box { display: flex; align-items: center; gap: 10px; margin: 17px 0; padding: 12px; border: 1px solid #e7eae5; border-radius: 12px; background: #fafbf8; flex-wrap: wrap; }
.seller-avatar { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--teal); color: white; font-weight: 850; }
.seller-box > div:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.seller-box strong { font-size: 11px; }
.seller-box span { display: flex; align-items: center; gap: 3px; color: var(--teal); font-size: 9px; }
.seller-box a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); direction: ltr; font-size: 11px; font-weight: 800; text-decoration: none; }
.detail-actions { display: grid; grid-template-columns: 1.45fr 1fr; gap: 8px; }
.detail-actions a, .detail-actions button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; cursor: pointer; font-size: 11px; font-weight: 750; text-decoration: none; }
.detail-actions a { border: 1px solid var(--teal); background: var(--teal); color: white; }
.detail-actions button { border: 1px solid var(--line); background: white; color: var(--teal); }
.detail-actions button.active { border-color: var(--teal); background: #e9f2ef; }

/* ---------- مقایسه ---------- */
.compare-scroll { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
.compare-scroll table { width: 100%; min-width: 620px; border-collapse: collapse; table-layout: fixed; }
.compare-scroll th, .compare-scroll td { padding: 12px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); text-align: center; font-size: 11px; }
.compare-scroll tr:last-child th, .compare-scroll tr:last-child td { border-bottom: 0; }
.compare-scroll th:last-child, .compare-scroll td:last-child { border-left: 0; }
.compare-scroll tbody th, .compare-scroll thead > tr > th:first-child { width: 120px; background: #f6f7f3; color: var(--muted); font-weight: 700; }
.compare-scroll thead th:not(:first-child) { vertical-align: top; }
.compare-scroll thead img { width: 100%; height: 100px; margin-bottom: 9px; border-radius: 8px; object-fit: cover; }
.compare-scroll thead strong { display: block; margin-bottom: 8px; font-size: 12px; }
.compare-scroll thead a.remove-link { display: inline-flex; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 5px; background: #fff0ed; color: var(--red); cursor: pointer; font-size: 9px; }
.compare-empty { min-height: 260px; margin-top: 20px; }

/* ---------- توست ---------- */
.toast { position: fixed; z-index: 150; right: 50%; bottom: 25px; display: flex; width: max-content; max-width: calc(100vw - 32px); align-items: center; justify-content: center; gap: 8px; padding: 12px 17px; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 12px; background: #10211f; color: white; font-size: 11px; white-space: nowrap; box-shadow: 0 15px 45px rgba(0, 0, 0, 0.28); transform: translateX(50%); }
.toast-icon { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.toast-message { flex: 1; }

/* ---------- سلکت سفارشی (جایگزین ظاهر پیش‌فرض select) ---------- */
select.cs-native-hidden.cs-native-hidden { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.cs-wrap { position: relative; }
.cs-trigger { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; border: 0; background: transparent; color: var(--ink); font-family: var(--font-fa); cursor: pointer; padding: 0; text-align: right; }
.cs-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-trigger svg { flex-shrink: 0; color: #89938f; transition: transform 160ms ease; }
.cs-wrap.open .cs-trigger svg { transform: rotate(180deg); }
.cs-panel { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; left: auto; width: max-content; min-width: 190px; max-width: min(260px, 90vw); max-height: 280px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden; transition: 160ms ease; }
.cs-wrap.open .cs-panel { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; }
.cs-search-wrap { padding: 8px; border-bottom: 1px solid var(--line); }
.cs-search { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-family: var(--font-fa); font-size: 12px; background: #fbfcf9; outline: 0; }
.cs-search:focus { border-color: var(--teal); }
.cs-options { list-style: none; margin: 0; padding: 6px; overflow-y: auto; max-height: 220px; }
.cs-options li { padding: 9px 12px; border-radius: 8px; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.cs-options li:hover, .cs-options li.highlight { background: #eaf2f0; color: var(--teal-dark); }
.cs-options li.selected { background: var(--teal); color: white; font-weight: 700; }
.cs-options li.no-match { color: var(--muted); cursor: default; }
.cs-options li.no-match:hover { background: none; }
.filter-bar .cs-trigger { font-size: 11px; font-weight: 700; }
.results-row .cs-wrap { display: inline-block; min-width: 90px; }
.results-row .cs-trigger { font-size: 10px; font-weight: 700; }
#car-results.is-loading { opacity: .5; transition: opacity 120ms ease; pointer-events: none; }

/* نسخه‌ی جعبه‌ای سلکت سفارشی (برای فرم‌های عمومی/ادمین با کلاس form-control) */
.cs-wrap.cs-boxed { width: 100%; }
.cs-wrap.cs-boxed .cs-trigger { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; background: #fbfcf9; font-size: 14px; font-weight: 400; transition: .2s; }
.cs-wrap.cs-boxed.open .cs-trigger { border-color: var(--teal); background: white; box-shadow: 0 0 0 3px rgba(31, 106, 91, 0.12); }
.cs-wrap.cs-boxed .cs-panel { right: 0; left: 0; width: auto; max-width: none; }

/* ---------- تماس با ما ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.contact-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-soft); }
.included-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 10px 0; border-top: 1px dashed var(--line); }
.included-list li:first-child { border-top: none; }

/* ---------- فرم‌های عمومی ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 13px; }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-fa); font-size: 14px; background: #fbfcf9; transition: .2s; }
.form-control:focus { outline: none; border-color: var(--teal); background: white; box-shadow: 0 0 0 3px rgba(31, 106, 91, 0.12); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.submit-btn { padding: 0 26px; font-size: 13px; }
.submit-btn.block, .btn-block { width: 100%; }

/* ---------- هشدار/پیام فلش ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 13px; }
.alert-success { background: var(--green-soft); color: #047857; border: 1px solid #A7F3D0; }
.alert-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

/* ---------- فوتر ---------- */
footer { padding-top: 55px; background: #0d1c1a; color: rgba(255, 255, 255, 0.75); margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 60px; padding-bottom: 45px; }
.footer-about .brand-lockup strong { color: white; }
.footer-about .brand-lockup small { color: rgba(255, 255, 255, 0.45); }
.footer-about p { max-width: 340px; margin: 19px 0 0; color: rgba(255, 255, 255, 0.45); font-size: 10px; line-height: 2; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.footer-contact li { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.55); font-size: 10.5px; }
.footer-contact svg { flex-shrink: 0; color: rgba(255, 255, 255, 0.35); }
.footer-grid h4 { margin: 5px 0 18px; color: white; font-size: 12px; }
.footer-grid > div:not(.footer-about) { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid > div:not(.footer-about) a { margin-bottom: 12px; color: rgba(255, 255, 255, 0.48); cursor: pointer; font-size: 10.5px; }
.footer-grid > div:not(.footer-about) a:hover { color: #f3c774; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.34); font-size: 9px; flex-wrap: wrap; gap: 8px; }
.footer-bottom div { display: flex; align-items: center; gap: 6px; }

/* ===========================================================
   پنل مدیریت
   =========================================================== */
.admin-body { background: #f2f4f1; min-height: 100vh; }
.admin-topbar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.admin-topbar .navbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; flex-wrap: wrap; gap: 10px; padding-block: 8px; }
.admin-nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-nav-links a { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600; color: #43524f; }
.admin-nav-links a:hover, .admin-nav-links a.active { background: #e8f1ee; color: var(--teal); }
.admin-topbar-actions { display: flex; align-items: center; gap: 8px; }
.admin-main { padding: 30px 0 60px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.admin-header h2 { margin: 0; font-size: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 13px; border: 2px solid transparent; cursor: pointer; transition: .18s ease; white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(.92); }
.btn-sm { padding: 7px 14px; font-size: 12px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-success { background: var(--green-soft); color: #047857; }
.badge-warning { background: var(--amber-soft); color: #92400E; }
.badge-muted { background: #f0f1ee; color: var(--muted); }
.badge-danger { background: #FEF2F2; color: var(--red); }

.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
table th, table td { padding: 13px 15px; text-align: right; border-bottom: 1px solid var(--line); font-size: 13px; }
table th { background: #f7f8f5; font-weight: 700; }
table tr:last-child td { border-bottom: none; }

.stat-card { display: flex; align-items: center; gap: 16px; }
.stat-card .num { font-size: 24px; font-weight: 800; color: var(--teal-dark); }
.stat-card .label { font-size: 12.5px; color: var(--muted); }

.form-card { max-width: 440px; margin: 70px auto; padding: 34px; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1020px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 11px; }
  .hero-content { align-items: center; }
  .hero-copy { width: 70%; }
  .hero-stats { display: none; }
  .trust-grid > div { padding-inline: 12px; }
  .trust-grid small { display: none; }
  .filter-bar { grid-template-columns: repeat(2, 1fr) auto; }
  .filter-bar label:nth-child(2) { border-left: 0; }
  .reset-button { grid-column: 1 / -1; min-height: 38px; }
  .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sell-banner-inner { gap: 60px; }
  .detail-page { grid-template-columns: 1fr; }
  .detail-image { min-height: 340px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .container { width: min(100% - 28px, 620px); }
  .topbar { height: 68px; }
  .brand-lockup small, .main-nav, .header-actions > .icon-action, .header-actions > .sell-button { display: none; }
  .mobile-menu-button { display: grid; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-lockup strong { font-size: 16px; }
  .hero-section, .hero-content { min-height: 560px; }
  .hero-content { align-items: flex-start; padding-top: 55px; }
  .hero-copy { width: 100%; }
  .hero-copy h1 { margin-top: 18px; font-size: 40px; letter-spacing: -1.5px; }
  .hero-copy > p { max-width: 440px; font-size: 13px; }
  .hero-search { flex-direction: column; padding: 8px; }
  .hero-search button { min-height: 45px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); row-gap: 0; padding-block: 8px; }
  .trust-grid > div { justify-content: flex-start; padding: 13px 6px; border-bottom: 1px solid var(--line); }
  .trust-grid > div:nth-child(2) { border-left: 0; }
  .trust-grid > div:nth-child(3), .trust-grid > div:nth-child(4) { border-bottom: 0; }
  .listings-section, .guide-section { padding-block: 50px; }
  .section-heading { align-items: flex-start; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar label { border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .car-grid { grid-template-columns: 1fr; }
  .sell-banner-inner { flex-direction: column-reverse; gap: 25px; padding-block: 50px; }
  .sell-copy { width: 100%; text-align: center; }
  .sell-points { justify-content: center; }
  .sell-art { height: 145px; transform: scale(0.82); }
  .guide-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .detail-content { padding: 22px 18px; }
  .detail-heading { flex-direction: column; }
  .detail-price { align-items: flex-start; }
  .detail-spec-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-actions { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .admin-header { flex-direction: column; align-items: stretch; }
  .admin-header h2, .admin-header > a, .admin-header > div { max-width: 100%; overflow-wrap: break-word; }
  .section-heading { align-items: stretch; }
  .section-heading > div, .section-heading > a { min-width: 0; max-width: 100%; }
  .section-heading h2, .section-heading p { overflow-wrap: break-word; }
  .admin-nav-links { display: none; }
  .admin-topbar .navbar-inner { min-height: 62px; }
  .admin-main { padding: 22px 0 40px; }
  .card { padding: 18px; }
  table th, table td { padding: 10px 11px; font-size: 12px; }
  .table-wrap { overflow-x: visible; border: 0; background: transparent; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { display: none; }
  .table-wrap tbody tr { display: block; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
  .table-wrap tbody td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid #f0f1ee; text-align: left; }
  .table-wrap tbody td:last-child { border-bottom: 0; }
  .table-wrap tbody td::before { flex-shrink: 0; color: var(--muted); font-size: 11px; font-weight: 700; content: attr(data-label); }
  .table-wrap tbody td[data-label=""]::before, .table-wrap tbody td:not([data-label])::before { content: none; }
  .image-gallery-manager { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .admin-header h2 { font-size: 17px; }
  .detail-image-badges { flex-wrap: wrap; justify-content: flex-start; }
  .form-control, select, textarea, input { font-size: 16px; }
  .contact-card, .card, .form-card { padding: 18px; }
  .admin-contact-menu { max-width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
