:root {
  --bg: #efe6d6;
  --ink: #122017;
  --muted: #5b6d64;
  --brand: #0f5c45;
  --brand-d: #0a3327;
  --gold: #c99212;
  --gold-2: #e8b84a;
  --card: #fffaf1;
  --line: #ddd1b8;
  --danger: #b33b2b;
  --ok: #1a7a52;
  --off: #8a4b3a;
  --shadow: 0 18px 50px rgba(18, 32, 23, .1);
  --radius: 20px;
}
* { box-sizing: border-box; }
html { height: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
.app-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 400px at 100% -10%, #d4a01733, transparent 60%),
    radial-gradient(700px 380px at -10% 110%, #0f5c4530, transparent 55%),
    repeating-linear-gradient(135deg, #0000 0 18px, #00000006 18px 19px);
}
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
main.wrap,
main.full {
  flex: 1 0 auto;
  width: min(1180px, calc(100% - 32px));
}
main.full { width: 100%; }
.topbar {
  position: sticky; top: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 22px;
  background: linear-gradient(90deg, #0a3327, #164736 55%, #1d3d33);
  color: #f7f1e3;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gold); color: var(--brand-d);
  overflow: hidden; flex: none;
}
.brand-mark .ico { width: 22px; height: 22px; fill: currentColor; }
.brand-mark.has-logo {
  background: #fff;
  padding: 0;
}
.brand-mark.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand small { display: block; opacity: .72; font-size: 12px; }
.topnav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.topnav a { padding: 8px 12px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; }
.topnav a:hover { background: #ffffff18; }
.topnav .ico { width: 16px; height: 16px; fill: currentColor; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--brand); color: #fff;
}
.btn-gold, a.btn-gold, button.btn-gold { background: var(--gold); color: var(--brand-d); }
.btn-ghost, .ghost { background: transparent; border: 1px solid #ffffff44; color: inherit; }
.btn-line, button.btn-line, a.btn-line { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-danger, a.btn-danger, button.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 10px; border-radius: 10px; font-size: 13px; }
.ico { width: 18px; height: 18px; fill: currentColor; }
.ico-search,
.topnav .ico-search,
.brand-mark .ico-search,
.mob-nav .ico-search,
.filters .ico-search,
.btn .ico-search {
  fill: none !important;
  stroke: currentColor;
}
.hero {
  margin: 28px auto 16px;
  background: linear-gradient(135deg, #0a3327 0%, #1a5a44 48%, #3b2a10 100%);
  color: #f7f1e3; border-radius: 32px; padding: 42px 36px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: min(1180px, calc(100% - 32px));
  overflow: hidden;
}
.hero-copy { min-width: 0; position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  margin: 10px 0 12px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.hero-lead {
  margin: 0 0 18px;
  opacity: .84;
  font-size: 1rem;
  line-height: 1.85;
  max-width: 36em;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  position: relative;
  z-index: 3;
}
.hero-ctas .btn { position: relative; z-index: 3; }
.hero-art {
  height: 220px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, #d4a01755, transparent),
    repeating-linear-gradient(90deg, #fff0 0 22px, #fff2 22px 23px);
  display: grid;
  place-items: center;
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.hero-art .ico { width: 120px; height: 120px; fill: #f1c40f; }
.hero-art.has-img {
  display: block;
  padding: 0;
  background: #0a3327;
}
.hero-art.has-img picture,
.hero-art.has-img img,
.hero-art.has-img canvas {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover;
}
.grid-3, .grid-4, .chips { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.pad { padding: 18px; }
.spec {
  padding: 16px; display: flex; gap: 12px; align-items: flex-start;
  transition: transform .15s ease;
}
.spec:hover { transform: translateY(-3px); }
.spec .mark {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: #e7f3ec; color: var(--brand); flex: none;
}
.flash { margin: 12px auto; width: min(1180px, calc(100% - 32px)); padding: 10px 14px; border-radius: 12px; }
.flash.ok { background: #d7f0e3; }
.flash.err { background: #f8d7d2; }
.site-foot {
  margin-top: auto;
  flex: 0 0 auto;
  padding: 22px 0 18px;
  background: #0a3327;
  color: #e9e1d0;
}
.site-foot .foot-copy {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ffffff22;
  font-size: 12.5px;
  opacity: .9;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  justify-content: space-between;
  line-height: 1.5;
}
.site-foot .foot-copy a {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-foot .foot-copy .foot-company-info {
  width: 100%;
  margin: 2px 0 0;
  opacity: .75;
  font-size: 12px;
  line-height: 1.55;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px 28px;
  align-items: start;
}
.foot-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.foot-grid strong {
  display: block;
  font-size: 14px;
  margin: 0;
}
.foot-col > span {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin: 0;
}
.foot-grid p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  opacity: .82;
  max-width: 34em;
}
.foot-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.foot-links a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ffffff22;
  background: #ffffff0d;
  color: #f0e8d8;
  font-size: 13px;
  line-height: 1.4;
  opacity: 1;
  text-decoration: none;
  box-sizing: border-box;
}
.foot-links a:hover {
  background: #ffffff18;
  border-color: #ffffff44;
}
.foot-links a .ico {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}
.foot-links a .ico-search {
  fill: none !important;
  stroke: currentColor;
}
.foot-links a > span {
  display: block;
  font-weight: 500;
  font-size: 13px;
  margin: 0;
  line-height: 1.35;
}
.search-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) 1fr;
  min-height: calc(100vh - 68px);
}
.filters {
  padding: 12px;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #fffaf1;
}
.filters h2 { margin: 0 0 6px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.search-field { position: relative; }
.search-field .ico {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  width: 18px; height: 18px; opacity: .62; pointer-events: none;
}
.search-field input { padding-right: 40px; }
.filters label { margin: 6px 0 2px; }
.my-vehicles { margin: 4px 0 10px; }
.vehicle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 6px;
}
.vehicle-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: right;
  max-width: 100%;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.vehicle-chip:hover { border-color: #c9b48a; }
.vehicle-chip.is-active {
  border-color: var(--gold);
  background: #fff6df;
  box-shadow: 0 0 0 2px #f0d58a55;
}
.vehicle-chip-title { font-size: 13px; font-weight: 700; line-height: 1.3; }
.vehicle-chip-sub { font-size: 11px; color: var(--muted); line-height: 1.3; }
.vehicle-chip-other,
.vehicle-chip-add {
  flex-direction: row;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.vehicle-chip-add {
  border-style: dashed;
  background: transparent;
}
.add-vehicle-panel {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.add-vehicle-panel.is-hidden,
.vehicle-manual-filters.is-hidden { display: none; }
.add-vehicle-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.add-vehicle-head > strong {
  display: block;
  margin: 0;
  font-size: 13px;
  padding-top: 8px;
  flex: 0 0 auto;
}
.add-vehicle-panel > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}
.vehicle-quick-search {
  position: relative;
  flex: 1 1 180px;
  min-width: min(100%, 200px);
  max-width: 320px;
}
.vehicle-quick-search input {
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
}
.vehicle-quick-search input:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.vehicle-qs-results {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  inset-inline: 0;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(18, 32, 23, .12);
  padding: 6px;
}
.vehicle-qs-item {
  display: grid;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: right;
  cursor: pointer;
}
.vehicle-qs-item:hover,
.vehicle-qs-item:focus-visible {
  background: #e7f3ec;
  outline: none;
}
.vehicle-qs-item strong {
  font-size: 13px;
  font-weight: 700;
}
.vehicle-qs-item small {
  font-size: 11px;
  color: var(--muted);
}
.vehicle-qs-en {
  font-size: 11px;
  color: #7a8a80;
  direction: ltr;
  text-align: left;
}
.vehicle-qs-empty {
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.add-vehicle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}
@media (max-width: 720px) {
  .add-vehicle-head {
    flex-direction: column;
    align-items: stretch;
  }
  .add-vehicle-head > strong {
    padding-top: 0;
  }
  .vehicle-quick-search {
    max-width: none;
  }
}
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.map-pane { min-height: 50vh; }
.map-pane .leaflet-container, #map, #pickMap, #miniMap { height: 100%; width: 100%; min-height: 360px; }

.guest-access-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, #0a3327, #164736 55%, #2a2110);
  color: #f7f1e3;
  box-shadow: 0 12px 28px rgba(18, 32, 23, .16);
}
.guest-access-banner.is-hidden { display: none; }
.guest-access-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--gold);
  color: #0a3327;
}
.guest-access-mark .ico { width: 22px; height: 22px; fill: currentColor; }
.guest-access-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.guest-access-copy p {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.7;
  opacity: .88;
}
.guest-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.guest-access-actions .btn-line {
  border-color: #ffffff55;
  color: #f7f1e3;
  background: transparent;
}
.guest-shop-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 0 0 14px; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(120deg, #0a3327, #164736 60%, #3b2a10);
  color: #f7f1e3; flex-wrap: wrap;
}
.guest-shop-banner p { margin: 4px 0 0; opacity: .82; font-size: 13px; max-width: 42em; }
.guest-lock-note {
  margin: 8px 0 14px; padding: 10px 12px; border-radius: 12px;
  background: #fff4d8; color: #6a4f0d; font-size: 13px;
}
.guest-locked-block {
  margin-top: 18px; padding: 16px; border-radius: 16px;
  border: 1px dashed var(--line); background: #faf6ee; text-align: center;
}
.guest-locked-block p { margin: 0 0 12px; color: var(--muted); }

/* دسکتاپ: نقشه ثابت، فقط لیست فیلتر اسکرول می‌شود */
body.search-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
body.search-page main.full {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.search-page .search-layout {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
body.search-page .filters {
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body.search-page .map-pane {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
body.search-page .map-pane #map,
body.search-page .map-pane .leaflet-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: var(--ink); }
.check input { width: auto; }
.shop-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.shop-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
}
.shop-card > div { min-width: 0; }
.shop-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.shop-card .muted {
  font-size: 12.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.shop-card:hover, .shop-card.active { outline: 2px solid var(--gold); }
.shop-card img, .cover {
  width: 86px; height: 86px; object-fit: cover; border-radius: 14px; background: #dfe8e2;
  flex: none;
  align-self: start;
}
.shop-card-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 2px;
}
.shop-card-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  justify-content: center;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
  padding: 8px 12px;
}
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.skill {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(48px, 1.4fr) 34px;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  margin: 4px 0;
  min-width: 0;
}
.skill > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.skill > b { text-align: left; font-variant-numeric: tabular-nums; }

/* —— آکاردیون نرم —— */
.soft-acc {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  margin: 12px 0 16px;
  transition: border-color .28s ease, box-shadow .28s ease;
}
.soft-acc.is-open {
  border-color: #d4c4a4;
  box-shadow: 0 12px 28px rgba(18, 32, 23, .06);
}
.soft-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  background: linear-gradient(180deg, #fffdf8, #faf4e8);
  color: inherit;
  font: inherit;
  text-align: right;
  cursor: pointer;
  transition: background .25s ease;
}
.soft-acc-trigger:hover {
  background: linear-gradient(180deg, #fff8e8, #f5edd9);
}
.soft-acc-trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.soft-acc-trigger-sm {
  padding: 11px 12px;
  background: #fffaf1;
}
.soft-acc-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.soft-acc-title strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.soft-acc-trigger-sm .soft-acc-title strong {
  font-size: 13.5px;
  font-weight: 600;
}
.soft-acc-title small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.soft-acc-chevron {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #efe7d8;
  color: var(--brand-d);
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), background .25s ease, color .25s ease;
}
.soft-acc-trigger-sm .soft-acc-chevron {
  width: 26px;
  height: 26px;
  background: #f3ebe0;
}
.soft-acc.is-open > .soft-acc-trigger .soft-acc-chevron {
  transform: rotate(180deg);
  background: var(--brand);
  color: #fff;
}
.soft-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s cubic-bezier(.22, 1, .36, 1);
}
.soft-acc.is-open > .soft-acc-panel {
  grid-template-rows: 1fr;
}
.soft-acc-panel[hidden] {
  display: grid;
}
.soft-acc-panel-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .32s ease .04s, transform .42s cubic-bezier(.22, 1, .36, 1);
}
.soft-acc.is-open > .soft-acc-panel > .soft-acc-panel-inner {
  opacity: 1;
  transform: none;
}
.shop-vehicles-acc > .soft-acc-panel > .soft-acc-panel-inner {
  padding: 6px 10px 12px;
}
.shop-vehicle-brands {
  display: grid;
  gap: 8px;
}
.soft-acc-nested {
  margin: 0;
  border-radius: 12px;
  box-shadow: none;
  background: #fffdf9;
}
.soft-acc-nested.is-open {
  box-shadow: none;
  border-color: #e2d5bb;
}
.shop-vehicle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 10px 12px;
}
.shop-vehicle-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f3ec;
  color: var(--brand-d);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid #cfe3d7;
}
.shop-vehicle-chip.is-all {
  background: #fff4d8;
  border-color: #ecd9a4;
  color: #7a5b08;
}

@media (max-width: 720px) {
  .soft-acc-trigger { padding: 12px 14px; }
  .soft-acc-title strong { font-size: 14px; }
  .shop-vehicles-acc > .soft-acc-panel > .soft-acc-panel-inner {
    padding: 4px 8px 10px;
  }
}

.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.pill.on { background: #d7f0e3; color: var(--ok); }
.pill.off { background: #f6e1dc; color: var(--off); }
.pill.paused { background: #e4e6e5; color: #5c6360; }
.shop-card.is-paused {
  filter: grayscale(1);
  opacity: .72;
  cursor: not-allowed;
}
.shop-card.is-paused:hover { outline: 1px solid #b8beb9; }
.shop-card-actions .btn.is-disabled {
  pointer-events: none;
  opacity: .7;
  cursor: not-allowed;
}
.shop-pause-box {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffaf1;
}
.shop-pause-box.is-paused {
  background: #eef0ef;
  border-color: #c5cac7;
}
.shop-paused-banner {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #e8ebe9;
  color: #3d4541;
}
.shop-paused-banner p { margin: 4px 0 0; opacity: .85; font-size: 13px; }
.card.pad.is-paused { filter: grayscale(.35); }
tr.row-paused td { background: #f0f2f1; color: #5a615e; }
.pill.gold { background: #f8e7b8; color: #7a5b08; }
.pill.blue { background: #dceaf5; color: #1d4a6e; }
.sms-fields[hidden] { display: none !important; }
.bar { height: 8px; background: #ece4d4; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: #9aa; }
.bar.good i { background: linear-gradient(90deg, #1a7a52, #3dbe86); }
.bar.mid i { background: linear-gradient(90deg, #c99212, #e8b84a); }
.bar.bad i { background: linear-gradient(90deg, #b33b2b, #e07a6a); }
.stars i { color: #d9d1c2; }
.stars i.on, .stars i.half { color: #d4a017; }
.panel-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
  margin: 20px auto 40px;
  width: 100%;
  max-width: 1180px;
  min-width: 0;
}
.panel-main {
  min-width: 0;
}
.panel-main > h1 {
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  line-height: 1.35;
  margin: 0 0 10px;
  word-break: break-word;
}
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 10px 0 0;
  border-radius: 12px;
}
.table-scroll table {
  min-width: 520px;
}
.table-scroll .shops-table {
  min-width: 720px;
}
.td-actions {
  white-space: normal;
}
.td-actions .btn {
  margin: 2px;
  white-space: nowrap;
}
.side { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 10px; height: max-content; position: sticky; top: 84px; }
.side a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
}
.side a.active, .side a:hover { background: #e7f3ec; }
.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  flex: none;
}
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gallery img { width: 100%; height: 110px; object-fit: cover; border-radius: 12px; }

.shop-slideshow {
  position: relative;
  width: 100%;
  height: 240px;
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
  background: #0a3327;
}
.shop-slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.shop-slideshow-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}
.shop-slideshow-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.shop-slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-slideshow-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(10, 51, 39, .4);
}
.shop-slideshow-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #ffffff66;
  cursor: pointer;
}
.shop-slideshow-dot.is-active {
  background: var(--gold-2, #d4a84b);
  transform: scale(1.15);
}
.login-box { width: min(520px, 92vw); margin: 40px auto; }
.admin-login { margin-top: 18px; color: #8aa396; }
.admin-login summary { cursor: pointer; font-weight: 600; }
.admin-login input { margin-bottom: 8px; }
.coord-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  max-width: 280px;
  margin: 10px 0 4px;
}
.coord-row > div { flex: 0 0 auto; }
.coord-row label { font-size: 12px; }
.coord-input,
input.coord-input {
  width: 7.6rem;
  max-width: 7.6rem;
  padding: 5px 8px;
  font-size: 12px;
  letter-spacing: .02em;
  background: #f4f1e8;
  cursor: default;
}
.coord-input:not([readonly]) {
  background: #fff;
  cursor: text;
  outline: 2px solid #c99212;
}
.home-pick-map {
  height: 240px;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 8px 0 12px;
  background: #e8efe9;
}
.login-box .home-pick-map { height: 220px; }
#accountHomeMap.home-pick-map {
  height: min(240px, 42vh);
}
.account-block {
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.account-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.account-block > h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.account-cars-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.account-cars-head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.account-car-dialog {
  max-width: 480px;
  max-height: min(90vh, 720px);
  overflow: hidden;
  padding: 0;
}
.account-car-dialog[open] {
  display: flex;
  flex-direction: column;
}
.account-car-dialog .va-form {
  overflow-y: auto;
  max-height: min(90vh, 720px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.account-car-dialog .vehicle-quick-search {
  max-width: none;
  flex: 1 1 auto;
}
body.dialog-open,
html.dialog-open {
  overflow: hidden !important;
  touch-action: none;
}
#addCarDialog input.is-filled,
#addCarDialog select.is-filled,
#addCarDialog textarea.is-filled,
#addCarDialog .vehicle-flag-trigger.is-filled {
  background: #ffffcc;
}
.va-actions .btn-sm {
  min-width: 52px;
}
.account-car-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.account-car-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}
.account-car-meta {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
input.is-required-empty,
select.is-required-empty,
.vehicle-flag-trigger.is-required-empty,
.home-pick-map.is-required-empty {
  border-color: #d64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, .22), 0 0 14px rgba(214, 69, 69, .28);
}
.vehicle-cascade-step.is-required-empty > label::after {
  content: ' *';
  color: #d64545;
}
.steps { display: flex; gap: 8px; margin-bottom: 16px; }
.steps span { flex: 1; height: 6px; border-radius: 99px; background: #ddd; }
.steps span.on { background: var(--gold); }
.demo-chip { display: inline-block; margin: 4px 0 0 8px; padding: 4px 8px; border-radius: 999px; background: #efe3c4; cursor: pointer; font-size: 12px; }
.toast {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 14px; z-index: 70;
}
.mob-nav { display: none; }
.stat { padding: 16px; }
.stat b { display: block; font-size: 1.6rem; }
.review { border-top: 1px solid var(--line); padding: 12px 0; }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); text-align: right; }
.leaflet-default-icon-path { background-image: none; }
.leaflet-container { z-index: 1; }
.map-pane, #map, #pickMap, #miniMap { position: relative; z-index: 1; }
.hero-drop {
  display: grid; place-items: center; gap: 4px; text-align: center;
  border: 2px dashed var(--line); border-radius: 18px;
  padding: 22px 16px; margin: 0; cursor: pointer; background: #fff;
}
.hero-drop:hover, .hero-drop.on { border-color: var(--gold); background: #fff8e8; }
.hero-drop span { color: var(--muted); font-size: 13px; }
.hero-drop-lg { padding: 28px 18px; }
.hero-editor { margin-top: 4px; }
.hero-editor-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.hero-editor-head h1 { margin: 0 0 6px; }
.hero-editor-head p { margin: 0; max-width: 52em; }
.hero-stat { font-weight: 700; white-space: nowrap; }
.hero-editor-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.05fr);
  gap: 18px;
  align-items: start;
}
.hero-editor-manage { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero-editor-block h2 { margin: 0 0 12px; font-size: 1.05rem; }
.hero-interval-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.hero-list-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.hero-list-head h2 { margin: 0; font-size: 1.05rem; }
.hero-slide-list {
  display: grid;
  gap: 10px;
}
.hero-slide-list.is-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.hero-slide-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 32, 23, .06);
}
.hero-slide-card img {
  width: 96px; height: 54px; object-fit: cover; border-radius: 10px; background: #0a3327;
}
.hero-slide-meta strong { display: block; margin-bottom: 2px; }
.hero-slide-actions {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.hero-editor-foot {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 4px;
}
.hero-editor-preview {
  position: sticky;
  top: 88px;
  min-width: 0;
}
.hero-preview-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.hero-preview-head h2 { margin: 0; font-size: 1.05rem; }
.hero-preview-mount {
  position: relative;
  overflow: hidden;
}
/* فقط پیش‌نمایش ادمین — روی صفحه اصلی absolute نگذار (تصویر کل صفحه را می‌گیرد) */
.hero-preview-mount .hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-art.hero-slider {
  position: relative;
  inset: auto;
  display: block;
}
.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  touch-action: pan-y;
  cursor: grab;
}
.hero-slider-track.is-drag { cursor: grabbing; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide picture,
.hero-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}
.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(10, 51, 39, .35);
  backdrop-filter: blur(4px);
}
.hero-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #ffffff66;
  cursor: pointer;
}
.hero-dot.is-active {
  background: var(--gold-2);
  transform: scale(1.15);
}
.hero-art-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  background: #0a3327;
  border-radius: inherit;
  color: #e9e1d0;
  font-size: 13px;
}
.hero-uploads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 22px;
}
.hero-upload-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
}
.hero-upload-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 4px;
}
.hero-upload-card .hero-drop { margin-top: 8px; padding: 18px 12px; }
.hero-upload-card .hero-stage-wrap { min-height: 180px; margin: 10px 0 8px; }
.tiny { font-size: 12px; margin: 6px 0 0; }
.hero-modes { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.hero-stage-wrap {
  background: #0a3327; border-radius: 24px;
  display: grid; place-items: center;
  min-height: 240px; overflow: hidden; margin: 8px 0 22px;
}
.hero-stage {
  cursor: grab; touch-action: none;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 2px #e8b84a88;
  max-width: 100%;
}
.hero-stage.is-drag { cursor: grabbing; }
.hero-stage canvas { display: block; max-width: 100%; }
.hero-previews {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 18px;
  align-items: start;
}
.hero-preview-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px;
}
.hero-preview-pane { margin-bottom: 8px; }
.hero-preview-pane[hidden] { display: none !important; }
.hero-browser {
  background: #efe6d6;
  border: 1px solid #cfc2a8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(18, 32, 23, .18);
}
.hero-browser-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f7f2e8, #ebe2d2);
  border-bottom: 1px solid #d8ccb6;
}
.hero-browser-dots { display: flex; gap: 6px; }
.hero-browser-dots i {
  width: 10px; height: 10px; border-radius: 50%; display: block;
  background: #d9c9a8;
}
.hero-browser-dots i:nth-child(1) { background: #e36d5d; }
.hero-browser-dots i:nth-child(2) { background: #e8b84a; }
.hero-browser-dots i:nth-child(3) { background: #4caf7a; }
.hero-browser-url {
  flex: 1;
  background: #fff;
  border: 1px solid #ddd1b8;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: #5b6d64;
  text-align: center;
}
.hero-browser-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #0a3327, #164736 55%, #1d3d33);
  color: #f7f1e3;
}
.hero-browser-brand {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.hero-browser-brand .brand-mark {
  width: 34px; height: 34px; border-radius: 12px;
}
.hero-browser-brand .brand-mark .ico { width: 18px; height: 18px; }
.hero-browser-brand strong { display: block; font-size: 13px; line-height: 1.2; }
.hero-browser-brand small { display: block; opacity: .7; font-size: 10px; }
.hero-browser-nav {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px;
}
.hero-browser-nav .ico { width: 14px; height: 14px; }
.hero-browser-body {
  padding: 18px 16px 22px;
  background:
    radial-gradient(700px 280px at 100% -10%, #d4a01728, transparent 60%),
    radial-gradient(500px 240px at -10% 110%, #0f5c4524, transparent 55%),
    #efe6d6;
}
.hero-preview-desktop.hero {
  grid-template-columns: 1.15fr .85fr !important;
  margin: 0;
  width: 100%;
  padding: 34px 28px;
  gap: 22px;
  align-items: center;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(10, 51, 39, .28);
}
.hero-preview-desktop .hero-preview-copy h1 {
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  margin: 0 0 8px;
  line-height: 1.4;
}
.hero-preview-desktop .hero-preview-copy p { margin: 0 0 10px; font-size: 13px; opacity: .88; }
.hero-preview-ctas {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important;
  pointer-events: none;
}
.hero-preview-desktop .hero-art,
.hero-preview-mobile .hero-art {
  height: auto !important;
  width: 100%;
  min-height: 0;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}
.hero-preview-desktop .hero-art {
  aspect-ratio: 2 / 1;
}
.hero-preview-mobile .hero-art {
  aspect-ratio: 1.35 / 1;
}
.hero-preview-desktop, .hero-preview-mobile { pointer-events: none; }
.hero-preview-mount { pointer-events: auto; }
.hero-preview-mount .hero-slider-track { pointer-events: auto; }
.hero-art[data-hero-preview].is-active { outline: none; }
.hero-phone {
  width: min(360px, 100%);
  margin: 0 auto;
  background: linear-gradient(160deg, #1a2a22, #0b1611 45%, #152018);
  border-radius: 42px;
  padding: 12px 12px 16px;
  border: 3px solid #2f463b;
  box-shadow:
    0 28px 60px rgba(18, 32, 23, .28),
    inset 0 0 0 1px #3d5a4c;
  position: relative;
}
.hero-phone-notch {
  width: 108px; height: 10px; border-radius: 999px;
  background: #0a120e; margin: 4px auto 10px;
}
.hero-phone-screen {
  background: #efe6d6;
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
}
.hero-phone-topbar {
  padding: 8px 10px;
}
.hero-phone-topbar .brand-mark { width: 28px; height: 28px; border-radius: 10px; }
.hero-phone-topbar .brand-mark .ico { width: 14px; height: 14px; }
.hero-phone-topbar strong { font-size: 12px; }
.hero-phone-topbar small { font-size: 9px; }
.hero-preview-mobile.hero {
  grid-template-columns: 1fr !important;
  margin: 12px;
  padding: 18px 14px 14px;
  border-radius: 20px;
  gap: 12px;
}
.hero-preview-mobile h1 {
  font-size: 1.05rem;
  margin: 8px 0 6px;
  line-height: 1.55;
  font-weight: 700;
}
.hero-preview-mobile .hero-preview-copy p { font-size: 12px; margin: 0 0 10px; line-height: 1.7; opacity: .8; }
.hero-preview-mobile .hero-preview-ctas {
  flex-direction: column;
}
.hero-preview-mobile .hero-preview-ctas .btn {
  width: 100%;
  justify-content: center;
}
.hero-phone-home {
  width: 108px; height: 4px; border-radius: 999px;
  background: #6f8579; margin: 12px auto 2px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-tools { margin: 8px 0 24px; }
.hero-tools input[type=range], .hero-upload-card input[type=range] { accent-color: var(--gold); }
@media (max-width: 980px) {
  .hero, .grid-3, .grid-4, .foot-grid, .panel-grid, .search-layout, .row-2 { grid-template-columns: 1fr; }
  .search-layout { min-height: auto; }
  .map-pane { order: -1; height: 42vh; }
  .filters { border: 0; max-height: none; }
  body.search-page {
    height: auto;
    overflow: auto;
  }
  body.search-page main.full {
    overflow: visible;
    display: block;
  }
  body.search-page .search-layout {
    height: auto;
    overflow: visible;
  }
  body.search-page .filters {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  body.search-page .map-pane {
    position: relative;
    height: 42vh;
  }
  body.search-page .map-pane #map,
  body.search-page .map-pane .leaflet-container {
    position: relative;
    inset: auto;
    height: 100%;
    min-height: 42vh;
  }
  .guest-access-banner { margin-bottom: 12px; }
  .guest-shop-banner { align-items: flex-start; }
  .topnav a:not(.btn-gold):not(.ghost) { display: none; }
  .mob-nav {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; bottom: 0; inset-inline: 0; background: #0a3327; color: #f7f1e3;
    z-index: 50; padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  }
  .mob-nav a { display: grid; place-items: center; font-size: 11px; gap: 2px; }
  .mob-nav .ico { width: 20px; height: 20px; }
  .site-foot { padding: 18px 0 72px; }
  .foot-grid { gap: 14px; }
  .panel-verified {
    top: auto;
    bottom: calc(64px + env(safe-area-inset-bottom));
    right: 12px;
    left: auto;
    padding: 6px 10px 6px 7px;
  }
  .panel-verified-text { font-size: 11.5px; max-width: 11.5em; }
  .hero-previews { grid-template-columns: 1fr; }
  .hero-uploads { grid-template-columns: 1fr; }
  .hero-editor-grid { grid-template-columns: 1fr; }
  .hero-editor-preview { position: static; }
  .hero-phone { width: min(360px, 100%); }
  .hero-browser-nav { display: none; }
  .hero-preview-desktop.hero {
    grid-template-columns: 1fr !important;
  }

  /* Mobile hero — calm typography, stacked CTAs, balanced image */
  .hero {
    margin: 14px auto 10px;
    padding: 20px 16px 16px;
    gap: 14px;
    border-radius: 22px;
    align-items: stretch;
    box-shadow: 0 12px 32px rgba(18, 32, 23, .12);
  }
  .hero .pill.gold {
    font-size: 11px;
    padding: 3px 10px;
    letter-spacing: 0;
  }
  .hero h1 {
    font-size: 1.22rem;
    line-height: 1.55;
    margin: 10px 0 8px;
    font-weight: 700;
    max-width: 18em;
  }
  .hero-lead {
    font-size: 0.86rem;
    line-height: 1.75;
    margin: 0 0 14px;
    opacity: .78;
    max-width: none;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 8px;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
  }
  .hero-art {
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    order: 2;
  }
  .hero-copy { order: 1; }
}

@media (max-width: 420px) {
  .hero {
    padding: 18px 14px 14px;
    border-radius: 20px;
  }
  .hero h1 {
    font-size: 1.12rem;
    line-height: 1.58;
  }
  .hero-lead {
    font-size: 0.82rem;
    line-height: 1.7;
  }
}

/* —— 404 —— */
body.page-404 main.wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(960px, calc(100% - 32px));
  padding: 28px 0 40px;
}
.err404 {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 48px);
  color: #f7f1e3;
  background:
    linear-gradient(145deg, #07261e 0%, #0a3327 42%, #163528 72%, #2a2110 100%);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  animation: err404-in .55s ease both;
}
.err404-glow {
  position: absolute;
  inset: -20% auto auto -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, #d4a01733, transparent 68%);
  pointer-events: none;
  animation: err404-pulse 5s ease-in-out infinite;
}
.err404-rail {
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e8b84a, transparent);
  opacity: .55;
}
.err404-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
}
.err404-code {
  font-size: clamp(5.5rem, 14vw, 8.5rem);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.04em;
  color: transparent;
  background: linear-gradient(180deg, #f1c40f 10%, #c99212 55%, #7a5a10 100%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .92;
  user-select: none;
}
.err404-mark {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #e8b84a;
  color: #0a3327;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
  animation: err404-float 3.2s ease-in-out infinite;
}
.err404-mark .ico {
  width: 38px;
  height: 38px;
  fill: currentColor;
}
.err404-brand {
  margin: 0 0 8px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--gold-2);
}
.err404-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.45;
  font-weight: 800;
}
.err404-lead {
  margin: 0 0 22px;
  opacity: .82;
  font-size: .98rem;
  line-height: 1.85;
  max-width: 34em;
}
.err404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.err404-actions .ghost {
  border-color: #ffffff44;
  color: #f7f1e3;
}
.err404-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  opacity: .78;
}
.err404-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.err404-links a:hover { color: var(--gold-2); }

@keyframes err404-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes err404-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes err404-pulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@media (max-width: 820px) {
  .err404 {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 20px 32px;
  }
  .err404-visual { min-height: 140px; }
  .err404-lead { margin-inline: auto; }
  .err404-actions { justify-content: center; }
  .err404-links { justify-content: center; }
  .err404-actions .btn { width: 100%; justify-content: center; }
}

/* —— کاتالوگ درختی خودرو (ادمین) —— */
.vehicle-admin-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.vehicle-admin-tree { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 8px; max-height: 70vh; overflow: auto; }
.va-root, .va-children { list-style: none; margin: 0; padding: 0; }
.va-children { padding-right: 12px; border-right: 1px dashed #e5ddd0; margin-right: 10px; }
.va-node.is-collapsed > .va-children { display: none; }
.va-node.is-dragging { opacity: .45; }
.va-node.va-drop-ok > .va-row { outline: 2px solid var(--gold); background: #fff8e8; }
.va-node.va-drop-bad > .va-row { outline: 2px solid #c45c4a; background: #fdecea; }
.va-row {
  display: grid;
  grid-template-columns: 28px 22px 44px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  margin: 4px 0;
  border-radius: 12px;
  background: #fffaf1;
  border: 1px solid transparent;
}
.va-toggle { border: 0; background: transparent; cursor: pointer; font-size: 14px; width: 28px; }
.va-handle { cursor: grab; color: #9a8b72; user-select: none; padding: 4px; }
.va-handle:active { cursor: grabbing; }
.va-thumb {
  width: 44px; height: 44px; border-radius: 10px; overflow: hidden;
  background: #efe7d8; display: grid; place-items: center; font-size: 12px; color: #8a7b63;
}
.va-thumb img { width: 100%; height: 100%; object-fit: cover; }
.va-thumb.is-inherited { opacity: .72; box-shadow: inset 0 0 0 2px #c9b48a55; }
.va-meta strong { display: block; font-size: 14px; }
.va-kind { font-size: 11px; color: var(--muted); }
.va-actions { display: flex; flex-wrap: nowrap; gap: 4px; justify-content: flex-end; align-items: center; }
.btn-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex: 0 0 36px;
}
.btn-icon .ico { width: 18px; height: 18px; }
.va-actions .btn-icon,
.vehicle-admin-toolbar .btn-icon { width: 36px; height: 36px; }
.va-img-btn { cursor: pointer; margin: 0; }
.va-img-btn input { display: none; }

.levels-editor { display: grid; gap: 12px; margin: 14px 0; }
.levels-row { display: grid; gap: 8px; }
.levels-row-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.levels-row-tools { display: flex; gap: 4px; }
.levels-flags { display: grid; gap: 6px; }
.levels-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.vehicle-cascade { display: grid; gap: 4px; }
.vehicle-cascade-step { display: grid; gap: 4px; }
.country-flag-img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #d8cfc0;
  vertical-align: middle;
  flex: 0 0 auto;
  background: #f3eee4;
}
.vc-flag-preview {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.vc-flag-preview img,
.va-country-flag-preview {
  width: 40px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.va-name-with-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vehicle-flag-select {
  position: relative;
}
.vehicle-flag-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf1;
  color: var(--ink);
  font: inherit;
  text-align: right;
  cursor: pointer;
}
.vehicle-flag-trigger::after {
  content: '▾';
  margin-right: auto;
  opacity: .55;
}
.vehicle-flag-select.is-open .vehicle-flag-trigger::after { content: '▴'; }
.vehicle-flag-menu {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px #0002;
  padding: 4px;
}
.vehicle-flag-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: right;
  cursor: pointer;
}
.vehicle-flag-option:hover { background: #fff4df; }
.vehicle-flag-preview-wrap {
  display: none;
  margin-top: 6px;
}
.vehicle-flag-preview-wrap.has-flag {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vehicle-flag-preview {
  width: 48px;
  height: 34px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.is-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.va-dialog { border: 0; border-radius: 18px; padding: 0; max-width: 420px; width: calc(100% - 24px); box-shadow: 0 20px 50px #0003; }
.va-dialog::backdrop { background: #12201766; }
.va-form { padding: 18px; display: grid; gap: 6px; }
.va-form-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.va-form-actions .btn { flex: 1 1 auto; }

.vehicle-chip-img {
  width: 28px; height: 28px; border-radius: 8px; object-fit: cover; margin-left: 4px;
}
.vehicle-chip { flex-direction: row; flex-wrap: wrap; align-items: center; }
.vehicle-chip .vehicle-chip-title { flex: 1 1 auto; }
.vehicle-chip .vehicle-chip-sub { flex: 1 1 100%; padding-right: 32px; }

/* —— ریسپانسیو پنل ادمین / تعمیرگاه —— */
@media (min-width: 981px) and (max-width: 1100px) {
  .panel-grid {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  body.panel-page main.wrap {
    width: calc(100% - 24px);
    max-width: none;
  }

  .panel-grid {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: none !important;
    width: 100%;
    max-width: none;
    gap: 12px;
    margin: 10px auto 96px;
  }

  .side {
    position: sticky;
    top: 64px;
    z-index: 30;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    height: auto;
  }

  .side nav {
    display: flex;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 2px 12px;
    margin: 0;
    background: linear-gradient(180deg, #efe6d6 70%, #efe6d600);
  }

  .side nav::-webkit-scrollbar {
    display: none;
  }

  .side a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    background: #fffaf1;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(18, 32, 23, .05);
  }

  .side a.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 92, 69, .22);
  }

  .side a:hover {
    background: #e7f3ec;
  }

  .side a.active:hover {
    background: var(--brand);
  }

  .side a .nav-badge {
    background: #fff;
    color: var(--danger);
  }

  .side a.active .nav-badge {
    background: #fff;
    color: var(--brand-d);
  }

  .panel-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px !important;
    border-radius: 18px;
  }

  .panel-main > h1 {
    font-size: 1.28rem;
    margin: 0 0 6px;
  }

  .panel-main > .muted {
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 14px;
  }

  .panel-page .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .panel-main .card.pad {
    padding: 14px;
  }

  .panel-main input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),
  .panel-main select,
  .panel-main textarea {
    width: 100%;
    max-width: 100%;
  }

  .table-scroll {
    margin: 4px 0 0;
    overflow: visible;
    border-radius: 0;
  }

  .table-scroll table,
  .table-scroll .shops-table {
    min-width: 0 !important;
    width: 100%;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    display: grid;
    gap: 8px;
    width: 100%;
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(18, 32, 23, .05);
  }

  .admin-table tr:last-child {
    margin-bottom: 0;
  }

  .admin-table td {
    display: grid;
    grid-template-columns: 4.5em minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    width: 100%;
    padding: 0;
    border: 0;
    text-align: start;
    font-size: 14px;
    line-height: 1.45;
  }

  .admin-table td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    line-height: 1.45;
    padding-top: 1px;
  }

  .admin-table td.td-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px dashed var(--line);
  }

  .admin-table td.td-actions::before {
    display: none;
  }

  .admin-table td.td-actions .btn {
    flex: 1 1 calc(50% - 8px);
    min-height: 40px;
    margin: 0;
    justify-content: center;
  }

  .admin-table td[colspan] {
    display: block;
    text-align: center;
    color: var(--muted);
  }

  .admin-table td[colspan]::before {
    display: none;
  }

  .admin-table .pill {
    justify-self: start;
  }

  .admin-table td[data-label="نام"] {
    font-weight: 700;
  }

  .admin-table td[data-label="موبایل"] {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
  }

  .va-row {
    grid-template-columns: 24px 20px 36px minmax(0, 1fr);
    grid-template-areas:
      "toggle handle thumb meta"
      "actions actions actions actions";
    gap: 6px 8px;
    padding: 10px;
  }

  .va-toggle { grid-area: toggle; width: 24px; }
  .va-handle { grid-area: handle; }
  .va-thumb {
    grid-area: thumb;
    width: 36px;
    height: 36px;
  }
  .va-meta { grid-area: meta; min-width: 0; }
  .va-meta strong { font-size: 13px; }
  .va-actions {
    grid-area: actions;
    justify-content: flex-start;
    width: 100%;
  }
  .va-actions .btn {
    font-size: 12px;
    padding: 7px 9px;
    border-radius: 10px;
  }
  .va-children {
    padding-right: 8px;
    margin-right: 4px;
  }
  .vehicle-admin-tree {
    max-height: min(70vh, 520px);
    padding: 6px;
  }
  .vehicle-admin-toolbar .btn-icon {
    flex: 0 0 36px;
  }
  .vehicle-admin-toolbar .btn {
    flex: 0 0 auto;
    justify-content: center;
  }
  .va-form-actions {
    flex-direction: column;
  }
  .va-form-actions .btn {
    width: 100%;
  }
  .brand-preview {
    flex-wrap: wrap;
  }
  .hero-interval-row {
    grid-template-columns: 1fr;
  }
  .hero-interval-row .btn {
    width: 100%;
  }
  .hero-slide-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .hero-slide-card img {
    width: 72px;
    height: 42px;
  }
  .hero-editor-foot .btn,
  .hero-editor-foot a.btn {
    flex: 1 1 140px;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .panel-page .grid-4 {
    grid-template-columns: 1fr;
  }

  .admin-table td.td-actions .btn {
    flex: 1 1 100%;
  }

  .topbar {
    padding: 10px 14px;
    gap: 10px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  body.panel-page main.wrap {
    width: calc(100% - 16px);
  }

  .panel-grid {
    margin-top: 8px;
    gap: 10px;
  }

  .panel-main {
    padding: 14px !important;
    border-radius: 16px;
  }

  .side {
    top: 56px;
  }

  .side a {
    font-size: 12.5px;
    padding: 8px 12px;
  }

  .stat {
    padding: 14px;
  }

  .stat b {
    font-size: 1.35rem;
  }
}
