:root {
  --bg: #0A0A0B;
  --text: #E2E8F0;
  --muted: #94A3B8;
  --accent: #E5243B;
  --line: #475569;
  --card: #111114;
  --danger: #FCA5A5;
}
* { box-sizing: border-box; }
html { direction: rtl; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.8;
}
a { color: inherit; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; }
h1 { font-size: 34px; font-weight: 800; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; }
.muted { color: var(--muted); }

.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding: 16px 5vw; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; text-decoration: none; color: var(--text); }
.logo { width: 40px; height: 40px; border-radius: 50%; display: block; }
.page { padding: 40px 5vw; display: flex; flex-direction: column; gap: 28px; }
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.card.narrow { width: 100%; max-width: 440px; }

label { display: flex; flex-direction: column; gap: 4px; }
input[type="text"], input[type="tel"], textarea {
  min-height: 44px; padding: 0 12px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; font: inherit; width: 100%;
}
textarea { padding: 8px 12px; min-height: 90px; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.check { flex-direction: row; align-items: center; gap: 12px; min-height: 44px; }
.check input { width: 22px; height: 22px; }

.btn {
  min-height: 48px; padding: 0 24px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.btn.small { min-height: 44px; padding: 0 18px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.notice { padding: 14px 18px; border: 1px solid var(--accent); border-radius: 12px; }
.error { padding: 12px 16px; border: 1px solid var(--danger); border-radius: 10px; color: var(--danger); font-size: 16px; line-height: 1.7; }
.ok { padding: 12px 16px; border: 1px solid var(--accent); border-radius: 10px; color: var(--accent); font-size: 16px; }

.badge { padding: 2px 12px; border-radius: 999px; font-size: 16px; border: 1px solid var(--line); color: var(--muted); }
.badge.on { border-color: var(--accent); color: var(--accent); }

.cols { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.cols > .list { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cols > .form { flex: 1 1 360px; min-width: 0; }
.empty { padding: 36px 24px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }
.loading { padding: 24px; text-align: center; color: var(--muted); }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
[hidden] { display: none !important; }

/* ---------- صفحه نخست و خودروها ---------- */
select {
  min-height: 44px; padding: 0 12px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; font: inherit; width: 100%;
}
select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.nav a { text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.hero { padding: 88px 5vw; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: 44px; line-height: 1.4; }
.eyebrow { color: var(--accent); font-weight: 500; }
.hero-art { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 480px; height: auto; }
.section { padding: 72px 5vw; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--line); padding-top: 18px; }
.step.first { border-top-color: var(--accent); }
.step-num {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; border: 2px solid var(--line); font-weight: 800;
}
.step.first .step-num { background: var(--accent); color: #fff; border-color: var(--accent); }
.tabs { display: flex; gap: 12px; flex-wrap: wrap; }
.tab {
  min-height: 48px; padding: 0 24px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font: inherit; cursor: pointer;
}
.tab.on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 500; }
.cars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.car-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.car-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #15171c; border-radius: 10px; }
.car-card .car-img { border-radius: 0; }
.car-img.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.car-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.car-body .btn { align-self: stretch; }
.price { color: var(--accent); font-weight: 700; font-size: 20px; margin: 0; }
.login-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.footer { padding: 28px 5vw; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.detail-wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.detail-wrap > .card { flex: 1 1 360px; min-width: 0; }
.results { display: grid; gap: 8px; margin: 0; }
.results > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.results dt { color: var(--muted); }
.results dd { margin: 0; font-weight: 700; }
p { margin: 0; }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.stepper li { flex: 1 1 120px; border-top: 3px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.stepper li.done { border-top-color: var(--accent); color: var(--text); }
.stepper li.current { border-top-color: var(--accent); color: var(--accent); font-weight: 700; }
.stepper li.rejected { border-top-color: var(--danger); color: var(--danger); font-weight: 700; }
.stepper .state { font-size: 16px; font-weight: 400; }

/* ورودی سینمایی صفحه نخست */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; }
.stage { position: relative; max-width: 1280px; margin: 0 auto; overflow: hidden; background: radial-gradient(ellipse at 50% 62%, #12222a 0%, var(--bg) 62%); }
.scene { position: relative; aspect-ratio: 1280 / 800; }
.scene > * { position: absolute; }
.beams { left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; animation: sweep 6s ease-in-out infinite; }
.stage-word { left: 0; right: 0; top: 6%; margin: 0; text-align: center; font-size: min(11.7vw, 150px); font-weight: 900; letter-spacing: -4px; line-height: 1.2; color: transparent; -webkit-text-stroke: 1.5px rgba(229, 36, 59, 0.22); pointer-events: none; }
.plat-glow { left: 22.7%; top: 59.5%; width: 54.7%; height: 18.7%; border-radius: 50%; background: radial-gradient(ellipse, rgba(229, 36, 59, 0.28) 0%, rgba(229, 36, 59, 0.05) 60%, transparent 72%); }
.plat { left: 24.2%; top: 62%; width: 51.6%; height: 13.75%; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 0 40px rgba(229, 36, 59, 0.45), inset 0 0 40px rgba(229, 36, 59, 0.25); background: #0e1418; }
.plat-inner { left: 27.3%; top: 64%; width: 45.3%; height: 10%; border-radius: 50%; border: 1px solid var(--line); }
.plat-pulse { left: 50%; top: 69%; width: 29.7%; height: 13.75%; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 2.6s ease-out infinite; }
.hero-reflect { left: 28.1%; top: 70%; width: 43.75%; transform: scaleY(-1); opacity: 0.16; -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 55%); mask-image: linear-gradient(to top, #000 0%, transparent 55%); pointer-events: none; }
.hero-car { left: 28.1%; top: 38.5%; width: 43.75%; z-index: 4; color: var(--accent); filter: drop-shadow(0 0 34px rgba(229, 36, 59, 0.45)); animation: floaty 5s ease-in-out infinite; }
.hero-reflect svg { color: var(--accent); }
.hero-car svg, .hero-reflect svg { width: 100%; height: auto; display: block; }
.enter { left: 50%; top: 80.5%; transform: translateX(-50%); min-width: 260px; min-height: 60px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 12px; z-index: 6; background: var(--accent); color: #fff; font-size: 22px; font-weight: 900; border-radius: 999px; text-decoration: none; box-shadow: 0 0 36px rgba(229, 36, 59, 0.55); padding: 0 28px; }
.enter:hover { box-shadow: 0 0 56px rgba(229, 36, 59, 0.85); }
.stage-hint { left: 0; right: 0; top: 93%; margin: 0; text-align: center; font-size: 18px; color: var(--muted); }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; display: block; text-decoration: none; color: #64748b; opacity: 0.55; pointer-events: auto; transition: all 0.35s ease; z-index: 3; }
.orb svg { width: 100%; height: auto; display: block; }
.orb:hover, .orb:focus-visible { color: var(--accent); opacity: 1; transform: translateY(-10px) scale(1.08); filter: drop-shadow(0 0 22px rgba(229, 36, 59, 0.55)); z-index: 8; outline: none; }
.orb-chip { position: absolute; top: 100%; left: 50%; margin-top: 14px; white-space: nowrap; text-align: center; background: rgba(10, 10, 11, 0.92); border: 1px solid var(--accent); border-radius: 14px; padding: 8px 20px; pointer-events: none; transition: all 0.3s ease; opacity: 0; transform: translate(-50%, -8px); display: flex; flex-direction: column; }
.orb-chip strong { font-size: 22px; color: var(--text); }
.orb-chip span { font-size: 18px; color: var(--accent); }
.orb:hover .orb-chip, .orb:focus-visible .orb-chip { opacity: 1; transform: translate(-50%, 0); }
.o1 { left: 4.4%; top: 8.25%; width: 19.5%; }
.o2 { left: 3.1%; top: 34.5%; width: 21.1%; }
.o3 { left: 7.5%; top: 60.75%; width: 19.5%; }
.o4 { left: 76.1%; top: 8.25%; width: 19.5%; }
.o5 { left: 75.8%; top: 34.5%; width: 21.1%; }
.o6 { left: 73%; top: 60.75%; width: 19.5%; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0% { transform: translate(-50%, -50%) scale(0.82); opacity: 0.9; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }
@keyframes sweep { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .beams, .hero-car, .plat-pulse { animation: none; } }
@media (max-width: 1099px) {
  .scene { aspect-ratio: 390 / 500; }
  .stage-word { top: 12%; font-size: 24vw; letter-spacing: -2px; }
  .plat-glow { left: 2%; top: 55%; width: 96%; height: 22%; }
  .plat { left: 5.1%; top: 61%; width: 89.7%; height: 14%; }
  .plat-inner, .hero-reflect, .stage-hint { display: none; }
  .plat-pulse { top: 68%; width: 59%; height: 13%; }
  .hero-car { left: 7.7%; top: 38.5%; width: 84.6%; }
  .enter { top: 80%; width: 78%; min-width: 0; }
  .orbit { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 8px 16px 40px; pointer-events: auto; }
  .orb { position: static; width: auto; opacity: 1; color: var(--accent); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(15, 23, 28, 0.8); }
  .orb svg { width: 120px; }
  .orb:hover, .orb:focus-visible { transform: none; filter: none; border-color: var(--accent); }
  .orb-chip { position: static; margin: 0; opacity: 1; transform: none; border: 0; background: none; padding: 0; white-space: normal; }
  .orb:hover .orb-chip, .orb:focus-visible .orb-chip { transform: none; }
  .orb-chip strong { font-size: 18px; line-height: 1.6; }
  .orb-chip span { display: none; }
}
ul.plain { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 4px; }
.placer { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; touch-action: manipulation; cursor: crosshair; background: #fff; }
.placer img { width: 100%; height: auto; display: block; }
.marker { position: absolute; box-sizing: border-box; border: 2px solid #0a84a0; background: rgba(0, 245, 255, 0.28); color: #04222a; font-size: 14px; line-height: 1.2; overflow: hidden; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.marker.on { border-color: #ff3b30; background: rgba(255, 59, 48, 0.25); }
.form-canvas { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sig-pad { width: 100%; max-width: 900px; min-height: 280px; height: auto; background: #fff; border: 2px dashed #64748b; border-radius: 8px; touch-action: none; display: block; }
/* وعدهٔ اعتماد و مراحل خرید */
.promise { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; max-width: 1100px; margin: 8px auto 56px; padding: 32px 28px; border: 1px solid var(--accent); border-radius: 20px; background: linear-gradient(135deg, rgba(229, 36, 59, 0.12), rgba(15, 23, 28, 0.9)); box-shadow: 0 0 40px rgba(229, 36, 59, 0.12); box-sizing: border-box; width: calc(100% - 10vw); }
.promise-icon { flex: 0 0 auto; }
.promise-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.promise-text h2 { font-size: 28px; line-height: 1.5; }
.promise-text p { font-size: 20px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; max-width: 820px; }
.tl-item { display: flex; gap: 20px; padding-bottom: 28px; position: relative; }
.tl-item:not(:last-child)::before { content: ''; position: absolute; right: 21px; top: 46px; bottom: 0; width: 2px; background: var(--line); }
.tl-num { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; background: var(--bg); position: relative; }
.tl-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tl-body h3 { margin: 0; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-inline-start: 34px; }
.check-list li::before { content: '✓'; position: absolute; inset-inline-start: 0; top: 0; color: var(--accent); font-weight: 700; }
.day-steps { margin: 0; padding-inline-start: 24px; display: flex; flex-direction: column; gap: 10px; }
.congrats { color: var(--accent); font-size: 22px; font-weight: 700; margin: 8px 0 0; }

.check { flex-direction: row; align-items: center; gap: 12px; }
.check input { width: 24px; height: 24px; flex: none; }
fieldset { border: 1px solid #475569; border-radius: 12px; padding: 12px; }

/* صفحهٔ مراحل خرید */
.promise { border: 2px solid var(--accent); border-radius: 12px; padding: 20px; background: rgba(229, 36, 59, 0.06); font-size: 20px; line-height: 2; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: s; }
.timeline li { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 16px 64px 16px 16px; counter-increment: s; line-height: 2; }
.timeline li::before { content: counter(s, persian); position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.timeline li strong { display: block; color: var(--accent); }

@media print { .topbar, .footer, .noprint, .btn, #stepper, #hint { display: none !important; } body { background: #fff; color: #000; } .card { border: 1px solid #999; break-inside: avoid; } * { color: #000 !important; } }
.doc-img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }

/* صفحهٔ اول */
body.home { background: #050506; padding-bottom: 110px; }
.home-logo { position: absolute; left: 16px; top: 14px; z-index: 5; display: block; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 24px rgba(229, 36, 59, 0.35); }
.home-logo img { width: 100%; height: 100%; display: block; }
.login-btn { position: absolute; right: 16px; top: 24px; z-index: 5; }
.hero2 { max-width: 920px; margin: 0 auto; padding: 120px 16px 32px; display: flex; flex-direction: column; gap: 22px; align-items: stretch; text-align: center; }
.visit-cta { display: block; padding: 22px 18px; border-radius: 16px; background: var(--accent); color: #fff; font-size: 26px; font-weight: 800; line-height: 1.6; text-decoration: none; box-shadow: 0 0 36px rgba(229, 36, 59, 0.45); }
.visit-cta:hover, .visit-cta:focus-visible { filter: brightness(1.08); outline: 3px solid #fff; }
.hl { margin: 0; font-size: 22px; font-weight: 700; line-height: 2; color: var(--text); text-shadow: 0 1px 8px #000; }
.request-box { text-align: right; display: flex; flex-direction: column; gap: 14px; background: rgba(17, 17, 20, 0.88); }
.request-box .lead { margin: 0; font-size: 20px; line-height: 2; font-weight: 700; }
.request-box .row input { flex: 1 1 260px; min-width: 0; }
.points { margin: 0; padding-right: 22px; line-height: 2; font-size: 19px; }
.trust { border: 2px solid var(--accent); border-radius: 14px; padding: 18px; background: rgba(229, 36, 59, 0.08); display: flex; flex-direction: column; gap: 10px; font-size: 20px; line-height: 2; }
.trust strong { color: var(--accent); }
.gift { margin: 0; padding: 14px; border-radius: 12px; border: 1px dashed var(--accent); font-size: 20px; line-height: 2; background: rgba(17, 17, 20, 0.8); }
.contact-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 10px 16px; width: max-content; max-width: 100vw; background: rgba(10, 10, 11, 0.92); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; font-size: 18px; }
.contact-bar a, .contact-bar .cb-item { color: var(--text); text-decoration: none; white-space: nowrap; }
.contact-bar a span, .contact-bar .cb-item > span { color: var(--accent); font-weight: 700; margin-left: 4px; }
@media (max-width: 600px) { .hero2 { padding-top: 112px; } .visit-cta { font-size: 21px; } .hl { font-size: 19px; } }
@media (max-width: 600px) {
  body.home { padding-bottom: 120px; }
  .contact-bar { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 14px; padding: 8px 10px; border-radius: 12px 12px 0 0; }
  .contact-bar a, .contact-bar .cb-item { white-space: normal; }
}

/* ویترین خودروها (اسلایدر افقی) */
.showcase { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.sc-title { margin: 0; font-size: 26px; color: var(--accent); }
.sc-wrap { position: relative; }
.sc-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: thin; cursor: grab; -webkit-overflow-scrolling: touch; }
.sc-track.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.sc-slide { flex: 0 0 min(88vw, 640px); scroll-snap-align: center; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.sc-stage { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(180deg, #F1F1EF, #D5D7D9); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sc-ghost { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(70px, 18vw, 170px); font-weight: 900; color: rgba(10, 10, 11, 0.07); white-space: nowrap; pointer-events: none; user-select: none; }
.sc-img { position: relative; max-width: 92%; max-height: 92%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.28)); user-select: none; -webkit-user-drag: none; }
.sc-noimg { width: 90px; height: 90px; border-radius: 50%; opacity: 0.85; filter: none; }
.sc-info { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.sc-info h4 { margin: 0 0 4px; font-size: 22px; }
.sc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; border-bottom: 1px solid rgba(71, 85, 105, 0.35); padding-bottom: 6px; }
.sc-row strong { text-align: left; }
.sc-arrow { position: absolute; top: 28%; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 10, 11, 0.85); color: var(--accent); font-size: 28px; line-height: 1; cursor: pointer; }
.sc-prev { right: 6px; }
.sc-next { left: 6px; }
@media (max-width: 600px) { .sc-arrow { display: none; } }
.thumbs-admin { align-items: flex-start; }
.thumb-box { width: 120px; align-items: stretch; }
.thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; width: 72px; height: 50px; overflow: hidden; }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

#car-img.car-img { max-height: 320px; width: 100%; object-fit: contain; background: linear-gradient(180deg, #F1F1EF, #D5D7D9); border-radius: 12px; }
.sc-stage { text-decoration: none; cursor: pointer; }

/* چت‌بات */
#chat-fab { position: fixed; right: 14px; bottom: 74px; z-index: 40; padding: 12px 18px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; box-shadow: 0 0 22px rgba(229, 36, 59, 0.5); }
#chat-panel { position: fixed; right: 12px; bottom: 12px; z-index: 50; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 24px)); display: flex; flex-direction: column; background: #111114; border: 1px solid var(--accent); border-radius: 16px; overflow: hidden; }
#chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #0A0A0B; border-bottom: 1px solid var(--line); }
.chat-x { background: none; border: 0; color: var(--text); font-size: 28px; cursor: pointer; line-height: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 88%; padding: 10px 12px; border-radius: 12px; line-height: 1.9; font-size: 17px; white-space: pre-wrap; }
.chat-msg.bot { background: #1b1d22; align-self: flex-start; }
.chat-msg.me { background: var(--accent); color: #fff; align-self: flex-end; }
.chat-sug { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 8px; }
.chat-sug button { text-align: right; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 10px; font-size: 16px; cursor: pointer; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; }
.chat-form button { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 0 16px; font-weight: 700; cursor: pointer; }
@media print { #chat-fab, #chat-panel { display: none !important; } }
.chat-sug[hidden] { display: none; }

/* انیمیشن اسکرول و شمارنده */
html.anim .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.anim .reveal.in { opacity: 1; transform: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 920px; margin: 8px auto 0; padding: 0 16px; }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 18px 10px; text-align: center; background: rgba(17, 17, 20, 0.85); }
.stat .num { display: block; font-size: 46px; font-weight: 900; color: var(--accent); line-height: 1.2; text-shadow: 0 0 18px rgba(229, 36, 59, 0.4); }
.stat .lbl { display: block; font-size: 17px; line-height: 1.8; color: var(--text); }
@keyframes cta-pulse { 0%, 100% { box-shadow: 0 0 28px rgba(229, 36, 59, 0.4); } 50% { box-shadow: 0 0 52px rgba(229, 36, 59, 0.75); } }
.visit-cta { animation: cta-pulse 2.6s ease-in-out infinite; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat .num { font-size: 38px; } }
@media (prefers-reduced-motion: reduce) {
  html.anim .reveal { opacity: 1; transform: none; transition: none; }
  .visit-cta { animation: none; }
}


/* صفحهٔ اول: پس‌زمینهٔ سینمایی (عنصر واقعی، نه شبه‌عنصر، تا در موبایل پایدار بماند) */
.hero-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; background: #050506; overflow: hidden; pointer-events: none; }
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 70%; }
.hero-smoke { position: absolute; inset: 0; background:
  linear-gradient(rgba(5, 5, 6, var(--dim, 0.12)), rgba(5, 5, 6, var(--dim, 0.12))),
  radial-gradient(ellipse 45% 35% at 18% 82%, rgba(200, 16, 46, 0.30), transparent 70%),
  radial-gradient(ellipse 40% 38% at 84% 70%, rgba(200, 16, 46, 0.34), transparent 70%),
  radial-gradient(ellipse 60% 25% at 50% 100%, rgba(43, 45, 49, 0.65), transparent 75%); }
@media (min-width: 701px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: heroZoom 22s ease-in-out infinite alternate; transform-origin: 60% 70%; }
  .hero-smoke { animation: smokeFade 9s ease-in-out infinite alternate; }
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes smokeFade { from { opacity: 0.75; } to { opacity: 1; } }
@media (max-width: 700px) {
  .hero-bg img { object-fit: contain; object-position: center 46%; }
}
.hero2 .request-box { margin-top: 30vh; }
.visit-cta { justify-self: center; align-self: center; width: auto; max-width: 92%; padding: 10px 22px; border-radius: 999px; font-size: 18px; font-weight: 700; line-height: 1.7; box-shadow: 0 0 22px rgba(229, 36, 59, 0.45); }
.req-banner { margin: 0; font-size: 20px; line-height: 2; font-weight: 700; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.rf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; text-align: right; }
.rf-field { display: flex; flex-direction: column; gap: 6px; }
.rf-field:nth-of-type(7), .rf-submit, .rf-msg { grid-column: 1 / -1; }
.rf-field .f-label { font-weight: 700; font-size: 18px; }
.rf-field input, .rf-field select, .rf-field textarea { width: 100%; box-sizing: border-box; min-height: 48px; font: inherit; font-size: 18px; color: var(--text); background: rgba(10, 10, 11, 0.85); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.rf-field textarea { resize: vertical; min-height: 96px; }
.rf-field input:focus, .rf-field select:focus, .rf-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 700px) { .rf-form { grid-template-columns: 1fr; } .hero2 .request-box { margin-top: 26vh; } .req-banner { font-size: 18px; } }

.trust strong, .sc-title, .eyebrow { color: #FF6B7D; }

/* تماس‌ها (پنل کارکنان) */
.call-banner { position: fixed; top: 10px; left: 10px; right: 10px; z-index: 90; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.call-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--accent); background: rgba(17, 17, 20, 0.97); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 22px rgba(229, 36, 59, 0.4); animation: callpulse 1.6s ease-in-out infinite; }
@keyframes callpulse { 50% { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 36px rgba(229, 36, 59, 0.8); } }
@media (prefers-reduced-motion: reduce) { .call-row { animation: none; } }
.call-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dial { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flash { outline: 2px solid var(--accent); box-shadow: 0 0 24px rgba(229, 36, 59, 0.5); }

/* فهرست فشردهٔ کارتی و صفحهٔ جزئیات */
.clist { display: flex; flex-direction: column; gap: 6px; }
.crow { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 54px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.crow:hover, .crow:focus-visible { border-color: var(--accent); }
.crow.flag { border-color: var(--accent); }
.crow-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.crow-title { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow-sub { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow .badge { flex: 0 0 auto; padding: 1px 10px; font-size: 14px; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow-go { flex: 0 0 auto; color: var(--muted); font-size: 22px; }
.sheet { position: fixed; inset: 0; z-index: 80; overflow-y: auto; background: var(--bg); -webkit-overflow-scrolling: touch; }
.sheet-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.sheet-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-body { width: min(900px, 100%); margin: 0 auto; padding: 16px 16px 80px; }
body.sheet-open { overflow: hidden; }

/* موبایل: هدر و ردیف‌های جمع‌وجورتر در صفحه‌های فهرست مدیریت */
.crow { min-height: 46px; padding: 4px 10px; }
.crow-title { font-size: 16px; }
.crow-sub { font-size: 13px; }
.crow .badge { font-size: 13px; padding: 0 9px; }
@media (max-width: 700px) {
  .topbar .row { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .topbar .row > * { flex: 0 0 auto; white-space: nowrap; }
  .topbar { flex-wrap: wrap; row-gap: 6px; padding-top: 8px; padding-bottom: 6px; }
  body:has(.clist) .page { padding-top: 12px; gap: 10px; }
  body:has(.clist) .page h1 { font-size: 22px; }
  body:has(.clist) .page h2 { font-size: 18px; }
  body:has(.clist) .page > div > p.muted { display: none; }
  body:has(.clist) .page .cols { gap: 14px; }
}
.crow, .crow-main span { line-height: 1.4; }
.crow-title { font-size: 16px; }

/* راه‌های دریافت اطلاعات و راهنمای کنار گزینه‌ها */
.contact-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.contact-opts .opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.contact-opts .opt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; text-align: center; background: var(--card); }
.contact-opts .opt:hover, .contact-opts .opt:focus-visible { border-color: var(--accent); }
.contact-opts .opt b { font-size: 17px; }
.contact-opts .opt span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.hint { font-weight: 400; font-size: 14px; color: var(--muted); }
@media (max-width: 420px) { .contact-opts .opt b { font-size: 15px; } .contact-opts .opt span { font-size: 12px; } }

/* کاشی‌های آماری گزارش */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.tile b { font-size: 24px; }
.tile span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.tile.warn { border-color: var(--danger); }
.tile.warn b { color: var(--danger); }
@media (max-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* متن قرارداد */
.contract-text { max-height: 60vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; line-height: 2; }
.contract-text.full { max-height: none; overflow: visible; }
.contract-text h3 { margin: 0 0 8px; }
.contract-text h4 { margin: 14px 0 4px; }
.contract-text p { margin: 4px 0; text-align: justify; }
.annex { width: 100%; border-collapse: collapse; margin: 6px 0; }
.annex th, .annex td { border: 1px solid var(--line); padding: 6px 8px; text-align: right; font-size: .9em; }
@media print { .noprint, .topbar { display: none !important; } .contract-text { max-height: none; overflow: visible; border: 0; } }
