/* QASR88 — سیستم طراحی پایه (مطابق طرح صفحه اصلی) */
:root {
  --ink: #0B0F14;
  --ink-2: #2B323C;
  --muted: #4A5361;
  --muted-2: #6B7482;
  --line: #E4E7EC;
  --line-2: #ECEEF2;
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --chip: #F1F3F6;
  --dark-line: #2C3542;
  --dark-text: #AEB7C3;
  --accent: #D4A853;
  --ok: #1F7A4D;
  --warn: #9A6200;
  --err: #B42318;
  --radius: 16px;
  --font: Vazirmatn, Tahoma, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.7; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 560px; }
.mid { max-width: 860px; }

/* Header */
.site-header { background: var(--ink); color: #fff; border-bottom: 1px solid #1C232D; }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: 14px 24px; max-width: 1240px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand-word { font-weight: 900; font-size: 22px; letter-spacing: 1.5px; direction: ltr; }
.brand-word b { color: var(--accent); font-weight: 900; }
.brand-sub { display: block; font-size: 11px; color: #9AA4B2; margin-top: 2px; }
.nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: 15px; flex: 1 1 420px; }
.nav a { color: #E6E9EE; }
.nav a:hover { color: var(--accent); }
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid transparent; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { color: var(--ink); filter: brightness(1.05); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #1A222D; }
.btn-ghost { border-color: var(--dark-line); color: #fff; background: transparent; }
.btn-ghost:hover { color: #fff; border-color: var(--accent); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-block { width: 100%; min-height: 52px; font-size: 16px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 56px 24px 120px; overflow: hidden; }
.hero .inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.hero .copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero .art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--dark-line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: #C9D0DA; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin: 0; font-size: 52px; line-height: 1.3; font-weight: 900; }
.hero h1 span { color: var(--accent); }
.hero p { margin: 0; font-size: 18px; line-height: 1.95; color: var(--dark-text); max-width: 560px; }

/* Search card */
.search-card { max-width: 1240px; margin: -84px auto 0; background: var(--surface); border-radius: 20px; box-shadow: 0 1px 2px rgba(11,15,20,.06), 0 12px 32px rgba(11,15,20,.10); padding: 8px 8px 20px; position: relative; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line-2); }
.tab { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.tab.is-active, .tab[aria-selected="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.search-grid { padding: 16px 12px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.chips { padding: 16px 12px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink-2); background: var(--surface); }

/* Forms */
label, .label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=password], input[type=url], select, textarea {
  min-height: 52px; border-radius: 12px; border: 1px solid #DDE1E7; padding: 0 14px; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--surface); width: 100%;
}
textarea { padding: 12px 14px; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input[type=file] { font: inherit; font-size: 14px; }
.ltr { direction: ltr; text-align: left; }
.otp-input { letter-spacing: 12px; font-size: 26px !important; text-align: center; direction: ltr; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.field-error, .errorlist { color: var(--err); font-size: 13px; font-weight: 500; margin: 2px 0 0; padding: 0; list-style: none; }
.help { color: var(--muted-2); font-size: 12px; font-weight: 400; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink-2); }
.check input { margin-top: 6px; width: 18px; height: 18px; }

/* Cards & sections */
.section { padding: 72px 0 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.section h2, .h2 { margin: 0; font-size: 24px; font-weight: 800; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-dark { background: var(--ink); color: #fff; border-radius: 20px; padding: 32px; }
.grid { display: grid; gap: 16px; }
.grid-cars { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.grid-body { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.grid-brands { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.tile:hover { border-color: var(--ink); color: var(--ink); }
.brand-tile { min-height: 64px; justify-content: center; font-weight: 700; padding: 12px; }
.market { min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 32px; border-radius: 20px; }
.market .tag { align-self: flex-end; direction: ltr; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--muted-2); }
.market.card-dark .tag, .market.card-dark .go { color: var(--accent); }
.market .title { font-size: 24px; font-weight: 800; }
.market .desc { font-size: 15px; line-height: 1.9; color: var(--muted); }
.market.card-dark .desc { color: var(--dark-text); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.empty { text-align: center; padding: 40px 24px; color: var(--muted); border: 1px dashed #CBD1D9; border-radius: var(--radius); background: var(--surface); }

/* Car card */
.car { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.car:hover { color: var(--ink); transform: translateY(-3px); border-color: transparent; box-shadow: 0 2px 4px rgba(11,15,20,.06), 0 18px 40px rgba(11,15,20,.12); }
.car .photo { aspect-ratio: 4/3; overflow: hidden; background: #E9ECF0; position: relative; display: flex; align-items: center; justify-content: center; }
.car .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.car:hover .photo img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; right: 12px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.car .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.car .price { font-size: 19px; font-weight: 900; }
.spec { background: var(--chip); border-radius: 8px; padding: 4px 10px; font-size: 12px; color: var(--ink-2); }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ok); }

/* Status & messages */
.status { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--chip); color: var(--ink-2); }
.status.ok { background: #E6F4EC; color: var(--ok); }
.status.warn { background: #FFF4DE; color: var(--warn); }
.status.err { background: #FDECEA; color: var(--err); }
.messages { list-style: none; margin: 16px auto 0; padding: 0 24px; max-width: 1240px; display: flex; flex-direction: column; gap: 8px; }
.messages li { padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.messages .success { border-color: #B7E0C7; background: #F0FAF4; }
.messages .error { border-color: #F5C2BC; background: #FEF3F2; }
.messages .warning, .messages .info { border-color: #F1D9A6; background: #FFF9EC; }

/* Panel pages */
.page { padding: 40px 24px 72px; }
.page-title { margin: 0 0 6px; font-size: 28px; font-weight: 900; }
.page-sub { margin: 0 0 24px; color: var(--muted); }
.panel { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.side { flex: 1 1 220px; max-width: 280px; display: flex; flex-direction: column; gap: 4px; }
.side a { padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.side a.is-active, .side a:hover { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 14px; }
.kv dt { color: var(--muted-2); }
.kv dd { margin: 0; font-weight: 600; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .n { font-size: 26px; font-weight: 900; }
.stat .t { font-size: 13px; color: var(--muted); }
.copy-box { display: flex; gap: 8px; }
.copy-box input { direction: ltr; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
table.list th { color: var(--muted-2); font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: var(--dark-text); margin-top: 72px; padding: 56px 24px 32px; font-size: 14px; }
.site-footer .cols { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.site-footer h4 { margin: 0 0 6px; color: #fff; font-size: 14px; }
.site-footer a { color: var(--dark-text); display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--accent); }
.site-footer .bottom { max-width: 1240px; margin: 40px auto 0; border-top: 1px solid #1C232D; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #8A94A3; font-size: 13px; }

/* ===== v0.3: photo hero, premium cards, market & detail pages ===== */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(8px); background: rgba(11,15,20,.94); }
.kicker { display: block; font-size: 13px; font-weight: 700; color: var(--muted-2); margin-bottom: 4px; letter-spacing: .3px; }
.kicker-gold { color: var(--accent); }
.link-arrow { font-weight: 700; font-size: 15px; white-space: nowrap; }
.section h2 { font-size: 28px; font-weight: 900; letter-spacing: -.2px; }
.section-head { align-items: flex-end; margin-bottom: 24px; }

.hero-photo { position: relative; min-height: 640px; background-color: var(--ink); background-size: cover; background-position: 30% 55%; color: #fff; display: flex; align-items: flex-end; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(11,15,20,.92) 0%, rgba(11,15,20,.72) 38%, rgba(11,15,20,.15) 70%, rgba(11,15,20,.05) 100%), linear-gradient(0deg, rgba(11,15,20,.55) 0%, rgba(11,15,20,0) 40%); }
.hero-content { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 18px; width: 100%; }
.hero-content h1 { margin: 0; font-size: 60px; line-height: 1.25; font-weight: 900; letter-spacing: -1px; max-width: 640px; }
.hero-content h1 span { color: var(--accent); }
.hero-content > p { margin: 0; font-size: 18px; line-height: 1.95; color: #C9D0DA; max-width: 560px; }
.pill-glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #E6E9EE; backdrop-filter: blur(6px); }
.search-card-hero { margin: 22px 0 0; max-width: 980px; color: var(--ink); }
.search-grid .span-2 { grid-column: span 2; }
.btn-search { min-height: 52px; font-size: 16px; }

.trust-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-items { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; padding-top: 18px; padding-bottom: 18px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.trust-items span { display: inline-flex; align-items: center; gap: 10px; }
.trust-items svg { color: var(--accent); }

/* car card details */
.photo-count { position: absolute; bottom: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(11,15,20,.72); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 8px; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-title { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.5; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(11,15,20,.25); font-style: normal; }
.price-row { border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 2px; }
.price { font-size: 22px; font-weight: 900; letter-spacing: -.2px; }
.price small { font-size: 13px; font-weight: 600; color: var(--muted-2); }
.price-call { font-size: 17px; color: var(--ink-2); }
.seller-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.muted-sm { font-size: 12px; color: var(--muted-2); }

/* market tiles */
.market-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 16px; }
.mtile { position: relative; border-radius: 20px; overflow: hidden; background-color: var(--ink); background-size: cover; background-position: center; color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.mtile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11,15,20,.92) 0%, rgba(11,15,20,.45) 55%, rgba(11,15,20,.1) 100%); transition: background .3s ease; }
.mtile:hover { color: #fff; }
.mtile:hover::before { background: linear-gradient(0deg, rgba(11,15,20,.95) 0%, rgba(11,15,20,.55) 60%, rgba(11,15,20,.2) 100%); }
.mtile-lg { grid-row: span 2; }
.mtile-body { padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.mtile-body .tag { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 1px; }
.mtile-body strong { font-size: 24px; font-weight: 900; }
.mtile-lg .mtile-body strong { font-size: 32px; }
.mtile-body span:not(.tag) { font-size: 14px; color: #C9D0DA; }
.mtile-body em { font-style: normal; font-weight: 700; color: var(--accent); margin-top: 4px; }

.brand-tile { gap: 2px; }
.brand-tile small { color: var(--muted-2); font-size: 12px; font-weight: 500; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.steps li span:last-child { font-size: 14px; color: var(--muted); }
.step-n { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; margin-bottom: 6px; }

.cta-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.cta { border-radius: 24px; padding: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta h2 { margin: 0; font-size: 28px !important; }
.cta p { margin: 0 0 8px; }
.cta-dark { background: var(--ink); color: #fff; }
.cta-dark p { color: var(--dark-text); }
.cta-gold { background: var(--accent); color: var(--ink); }
.cta-gold .kicker { color: rgba(11,15,20,.7); }

/* list page */
.page-hero { background: var(--ink); color: #fff; padding: 36px 0 40px; }
.page-hero h1 { margin: 6px 0 6px; font-size: 36px; font-weight: 900; }
.page-hero p { margin: 0; color: var(--dark-text); }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: #8A94A3; }
.crumbs a { color: #C9D0DA; }
.crumbs-light { color: var(--muted-2); padding: 24px 0 16px; }
.crumbs-light a { color: var(--muted); }
.listing-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 28px; padding-bottom: 24px; }
.filters { flex: 1 1 240px; max-width: 290px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 92px; }
.clear-link { text-align: center; font-size: 13px; color: var(--muted); }
.results { flex: 999 1 560px; min-width: 0; }
.results-head { margin-bottom: 14px; color: var(--muted); }

/* detail page */
.detail { padding-bottom: 24px; }
.detail-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.detail-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.detail-side { flex: 1 1 340px; max-width: 420px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main { position: relative; border-radius: 20px; overflow: hidden; background: #E9ECF0; aspect-ratio: 16/10; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: #E9ECF0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--accent); }
.detail-section h2 { margin: 0 0 16px; font-size: 20px; font-weight: 800; }
.spec-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.spec-grid div { background: var(--chip); border-radius: 12px; padding: 12px 14px; }
.spec-grid dt { font-size: 12px; color: var(--muted-2); }
.spec-grid dd { margin: 2px 0 0; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 12px; color: var(--muted-2); }
.dot-info { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 20px; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.feature-list svg { color: var(--ok); flex: none; }
.desc-line { margin: 0 0 6px; }
.terms { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #FFF9EC; border: 1px solid #F1D9A6; font-size: 14px; }
.buy-box { display: flex; flex-direction: column; gap: 16px; }
.detail-title { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.4; }
.buy-price { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.buy-price .price { font-size: 30px; }
.label-sm { font-size: 13px; font-weight: 600; color: var(--muted); }
.variants { display: flex; flex-direction: column; gap: 8px; }
.variant-list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14px; }
.variant small { color: var(--muted-2); font-weight: 500; }
.variant.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.buy-form { display: flex; flex-direction: column; gap: 12px; }
.buy-form textarea { min-height: 70px; }
.assurance { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--ink-2); }
.assurance li { display: flex; align-items: center; gap: 10px; }
.assurance svg { color: var(--accent); flex: none; }
.seller-card { display: flex; flex-direction: column; gap: 14px; }
.seller-head { display: flex; align-items: center; gap: 12px; }
.seller-head div { display: flex; flex-direction: column; gap: 2px; }
.seller-logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; }
.seller-initial { background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; }

/* ===== v0.4: dubicars-level homepage components ===== */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-search { margin-top: 20px; max-width: 860px; display: flex; flex-direction: column; gap: 12px; }
.hero-markets { display: flex; flex-wrap: wrap; gap: 6px; }
.hm { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #E6E9EE; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.hm.is-active { background: #fff; color: var(--ink); border-color: #fff; }
.hero-search-box { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 8px 8px 8px 8px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.hs-icon { color: var(--muted-2); margin-inline-start: 10px; flex: none; }
.hero-search-box input { border: 0 !important; outline: none !important; min-height: 56px; font-size: 17px; background: transparent; flex: 1; min-width: 0; }
.hs-btn { min-height: 56px; padding: 0 26px; font-size: 16px; border-radius: 12px; white-space: nowrap; }
.hero-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: #AEB7C3; }
.hero-quick a { color: #fff; border-bottom: 1px dashed rgba(255,255,255,.4); }
.hero-quick a:hover { color: var(--accent); border-color: var(--accent); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #E9ECF0; padding: 4px; border-radius: 12px; }
.seg button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button.is-active { background: #fff; color: var(--ink); font-weight: 800; box-shadow: 0 1px 2px rgba(11,15,20,.12); }
.section-foot { display: flex; justify-content: center; margin-top: 20px; }

.rail { position: relative; }
.rail-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-item { flex: 0 0 300px; scroll-snap-align: start; display: flex; }
.rail-item > * { flex: 1; }
.rail-btn { position: absolute; top: 38%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(11,15,20,.14); transition: opacity .2s; }
.rail-prev { right: -14px; }
.rail-next { left: -14px; }
.rail-btn:disabled { opacity: 0; pointer-events: none; }
.rail.no-scroll .rail-btn { display: none; }

.badge-star { color: var(--accent); margin-inline-end: 4px; }
.car-title span { font-weight: 600; color: var(--muted); font-size: 15px; }
.price-line { margin-top: 2px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 10px; }
.meta-line span { display: inline-flex; align-items: center; gap: 5px; }
.meta-line span + span::before { content: "·"; margin: 0 8px; color: #B4BCC7; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: border-color .2s, box-shadow .2s, transform .2s; }
.cat-tile:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,15,20,.08); }
.cat-tile svg { color: var(--ink); margin-bottom: 4px; }
.cat-tile small { color: var(--muted-2); font-size: 12px; }
.cat-text { justify-content: center; min-height: 104px; }
.swatch-lg { width: 34px; height: 34px; margin-bottom: 4px; }

.model-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.model-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11,15,20,.12); }
.model-photo { aspect-ratio: 16/10; background: #E9ECF0; display: block; overflow: hidden; }
.model-photo img { width: 100%; height: 100%; object-fit: cover; }
.model-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.model-body strong { font-size: 18px; font-weight: 800; }
.model-price { font-size: 14px; color: var(--muted); }
.model-price b { font-size: 18px; color: var(--ink); font-weight: 900; }
.model-body small { color: var(--muted-2); font-size: 12px; }

.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.brand-chip { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s; }
.brand-chip:hover { color: var(--ink); border-color: var(--ink); box-shadow: 0 8px 20px rgba(11,15,20,.08); }
.brand-chip.is-empty { opacity: .72; }
.mono { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; flex: none; font-family: Inter, Arial, sans-serif; }
.brand-text { display: flex; flex-direction: column; line-height: 1.4; }
.brand-text small { color: var(--muted-2); font-size: 12px; }

.seller-row-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.seller-feature { background: var(--surface); border: 1px dashed #C9CFD8; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.seller-feature .seller-logo { width: 64px; height: 64px; font-size: 26px; }

.why-band { margin-top: 72px; background: var(--ink); color: #fff; padding: 56px 0; }
.why-band h2 { margin: 0 0 28px; font-size: 28px; font-weight: 900; text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.why-grid > div { background: #141C26; border: 1px solid #1F2935; border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.why-grid p { margin: 0; font-size: 14px; color: var(--dark-text); }
.why-ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(212,168,83,.14); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }

.seo-links { max-width: 1240px; margin: 40px auto 0; padding-top: 28px; border-top: 1px solid #1C232D; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.seo-list { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.seo-list a { display: inline; padding: 2px 0; font-size: 13px; }

@media (max-width: 640px) {
  .hero-search-box { flex-wrap: wrap; }
  .hs-btn { width: 100%; }
  .rail-item { flex-basis: 82%; }
  .rail-btn { display: none; }
  .section-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 980px) {
  .market-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mtile-lg { grid-row: span 1; grid-column: span 2; }
  .detail-side, .filters { position: static; max-width: none; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 36px; }
  .hero { padding-bottom: 104px; }
  .hero-photo { min-height: 0; background-position: 35% 30%; }
  .hero-content { padding-top: 56px; }
  .hero-content h1 { font-size: 38px; }
  .search-grid .span-2 { grid-column: auto; }
  .nav { order: 3; gap: 16px; font-size: 14px; }
  .card, .card-dark, .market, .cta { padding: 22px; }
  .market-tiles { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .mtile-lg { grid-column: auto; }
  .section h2 { font-size: 23px; }
}

/* ───────── v0.5 پنل شرکت/نمایشگاه ───────── */
form.card { display: flex; flex-direction: column; }
.link { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.seg a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; }
.seg a.is-active { background: #fff; color: var(--ink); font-weight: 800; box-shadow: 0 1px 2px rgba(11,15,20,.12); }
.biz-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.biz-org { display: flex; align-items: center; gap: 14px; }
.biz-org img, .biz-mono { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.biz-mono { display: grid; place-items: center; background: var(--ink); color: var(--accent); font-size: 24px; font-weight: 900; }
.biz-org strong { font-size: 20px; display: block; }
.biz-org small { color: var(--muted-2); }
.biz-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip-btn:hover { border-color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.kpi span { color: var(--muted-2); font-size: 13px; }
.kpi strong { font-size: 28px; font-weight: 900; }
.panel-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.row-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.row-line:last-child { border-bottom: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; }
.row-actions form { margin: 0; }
.table-wrap { overflow-x: auto; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.biz-listing { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 16px; }
.biz-thumb { width: 132px; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--chip); flex: none; }
.biz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.biz-info { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.img-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.img-pick label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.img-pick img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.member-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.member-row:last-child { border-bottom: 0; }
.member-row.is-off { opacity: .6; }
.member-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.member-form select, .member-form input[name=title] { min-height: 36px; width: auto; padding: 0 10px; font-size: 13px; }
.member-form input[name=title] { width: 120px; }

/* ───────── v0.6 مذاکره و معامله ───────── */
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-actions form { margin: 0; }
.inline-actions input { min-height: 36px; padding: 0 10px; font-size: 13px; width: auto; }
.thread { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; max-height: 460px; overflow-y: auto; padding: 4px; }
.msg { max-width: 78%; align-self: flex-end; background: var(--chip); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 14px; }
.msg.is-mine { align-self: flex-start; background: #FBF4E4; border-radius: 14px 14px 4px 14px; }
.msg p { margin: 4px 0 0; }
.msg-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted-2); }
.msg-offer { margin-top: 4px; }
.msg.kind-accept { background: #E6F4EC; }
.msg.kind-reject { background: #FDECEA; }
.offer-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.offer-box .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); }
.offer-box .btn-dark { background: var(--accent); color: var(--ink); }
.composer { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.composer textarea { width: 100%; }
.composer-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.composer-row input { min-height: 36px; padding: 0 10px; font-size: 13px; width: auto; flex: 1 1 140px; }
.steps-line { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0 0; counter-reset: st; }
.steps-line li { counter-increment: st; flex: 1 1 100px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted-2); padding: 8px 6px; border-radius: 10px; background: var(--chip); }
.steps-line li::before { content: counter(st) ". "; }
.steps-line li.is-done { background: #E6F4EC; color: var(--ok); }
.steps-line li.is-now { background: var(--ink); color: #fff; }

/* ───────── v0.7 قرارداد ───────── */
.contract-doc { line-height: 2; font-size: 15px; }
.contract-doc header { text-align: center; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 16px; }
.contract-doc header h2 { margin: 0 0 6px; font-size: 22px; }
.contract-doc header p { margin: 0; color: var(--muted); font-size: 13px; }
.contract-doc h3 { font-size: 15px; margin: 18px 0 4px; }
.contract-doc p, .contract-doc ol { margin: 0; }
.contract-meta { margin-top: 20px; border-top: 1px dashed var(--line); padding-top: 8px; }
.sign-box { margin-top: 14px; padding: 14px; border-radius: 12px; background: #FBF4E4; display: flex; flex-direction: column; gap: 10px; }
@media print {
  .site-header, .site-footer, .no-print, .sign-box, form, .panel-bar a { display: none !important; }
  .card { border: 0; padding: 0; }
}

/* ───────── v0.8 کارکرده، علاقه‌مندی، جست‌وجو ───────── */
.ok-tick { color: var(--ok); font-size: 12px; font-weight: 700; }
.own-note { background: var(--chip); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.fav-btn { margin-top: 8px; }
.fav-btn.is-on { color: #C0392B; border-color: #E8B4AE; }
.save-search { margin: 0; }
.feature-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.feature-pick .check { font-size: 14px; }

/* ───────── v0.9 کارشناسی و پشتیبانی ───────── */
.inspection-card { border-color: #CFE7D8; }
.score { font-size: 30px; font-weight: 900; color: var(--ok); }
.score small { font-size: 13px; color: var(--muted-2); }
.chk-ok { color: var(--ok); font-weight: 700; }
.chk-warn { color: var(--warn); font-weight: 700; }
.chk-bad { color: var(--err); font-weight: 700; }

/* ───────── v0.10 صفحات محتوایی ───────── */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; padding-bottom: 48px; }
@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; } }
.prose { line-height: 2.05; font-size: 15.5px; }
.prose h2 { font-size: 19px; margin: 26px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16px; margin: 18px 0 6px; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-inline-start: 22px; }
.prose li { margin-bottom: 4px; }
.content-side { display: flex; flex-direction: column; gap: 14px; }
.side-link { display: block; padding: 7px 0; font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--line-2); }
.side-link:last-child { border-bottom: 0; }
.faq-item { padding: 0; margin-bottom: 10px; }
.faq-item summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: left; color: var(--accent); font-weight: 900; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 20px 16px; color: var(--muted); line-height: 1.9; }
.news-row { display: flex; gap: 16px; align-items: center; }
.news-row img { width: 160px; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; flex: none; }

/* ───────── جست‌وجوی لحظه‌ای ───────── */
.sg-box { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(11,15,20,.16); max-height: 70vh; overflow-y: auto; text-align: right; color: var(--ink); }
.sg-sec { padding: 6px; border-bottom: 1px solid var(--line-2); }
.sg-item, .sg-car { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; color: var(--ink); }
.sg-item:hover, .sg-car:hover, .sg-item.is-active, .sg-car.is-active, .sg-all.is-active { background: var(--chip); }
.sg-ic { width: 28px; text-align: center; }
.sg-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 700; }
.sg-t small { font-weight: 500; color: var(--muted-2); font-size: 12px; }
.sg-n { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.sg-car img, .sg-ph { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--chip); flex: none; }
.sg-car b { font-size: 13px; white-space: nowrap; }
.sg-all { display: block; padding: 12px 14px; font-weight: 700; font-size: 14px; color: var(--ink); }
.car[hidden] { display: none !important; }
.hero:has(.sg-box:not([hidden])) { overflow: visible; }
.hero-search-box { position: relative; z-index: 30; }
.hero-search-box .sg-box { top: calc(100% + 10px); }

/* ───────── v1.1 اعلان، نظر، صفحه فروشنده ───────── */
.bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: inherit; }
.bell:hover { background: rgba(255,255,255,.08); }
.bell-n { position: absolute; top: 4px; left: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.row-line.is-new { background: #FBF4E4; margin-inline: -10px; padding-inline: 10px; border-radius: 8px; }
.rating-sm { color: #D4A853; font-weight: 700; }
.review-form { margin-top: 12px; padding: 14px; border-radius: 12px; background: #FBF4E4; display: flex; flex-direction: column; gap: 8px; }
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 0; }
.stars label { font-size: 28px; color: #D9DDE3; cursor: pointer; line-height: 1; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #D4A853; }
.seller-hero { background: var(--ink); color: #fff; background-size: cover; background-position: center; }
.seller-hero-in { display: flex; align-items: center; gap: 18px; }
.seller-logo-lg { width: 84px; height: 84px; border-radius: 20px; object-fit: cover; background: #fff; flex: none; display: grid; place-items: center; font-size: 34px; font-weight: 900; color: var(--ink); }
.kpi small { color: var(--muted-2); font-size: 12px; }
