/*
 * چیلک پرواز — صفحه‌های روشن (صفحه اصلی، لیست خودروها)
 * پالت روشن (به خواست کاربر سایت روشن می‌مونه): کرم + متن تیره، طلایی و زرشکی برای تأکید.
 * فونت‌ها و منو: editorial.css
 */
:root {
  --bg: #E9E1D3;            /* کرم */
  --surface: #F3EDE3;       /* کارت‌ها: کمی روشن‌تر از پس‌زمینه */
  --line: rgba(26,23,20,.12);
  --text: #1A1714;
  --muted: rgba(26,23,20,.6);
  --gold: #9C7638;          /* طلایی تیره‌تر که روی کرم خوانا باشه */
  --crimson: #B3263A;
  --footer: #0E0D0C;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--f-text);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 56px); }
h1, h2, h3 { font-family: var(--f-text); font-weight: 300; }
h1 { font-weight: 200; font-size: clamp(36px, 5vw, 64px); line-height: 1.2; margin: 24px 0; }
.ed-nav.is-light .ed-accent, .ed-accent { color: var(--gold); }

/* --- لوگو --- */
.logo-motion { display: block; flex-shrink: 0; aspect-ratio: 1096 / 726; }

/* (هدر صفحه اصلی قدیمی برداشته شد — طرح v9: v9.css) */
.btn {
  display: inline-block; margin-top: 28px; padding: 14px 34px;
  background: var(--crimson); color: #fff; border-radius: 999px; font-weight: 500; font-size: 15px;
  transition: background .25s, transform .25s;
}
.btn:hover { background: #951E30; transform: translateY(-1px); }

.sec-head { display: flex; flex-direction: column; gap: 4px; margin: 0 0 clamp(20px, 4vh, 36px); padding-top: 28px; border-top: 1px solid var(--line); }
.sec-head .ed-label { color: var(--gold); }
.sec-head h2 { margin: 0; font-weight: 200; font-size: clamp(30px, 4vw, 52px); line-height: 1.2; }

/* --- کارت خودرو --- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.car-card { display: block; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s; }
.car-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.car-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #DCD3C3; }
.car-card-media img, .car-card-media .no-image, .car-card-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.car-card .no-image { display: grid; place-items: center; color: var(--muted); }
/* ویدیو تا وقتی واقعاً پخش نشده نامرئیه و poster زیرش دیده می‌شه */
.car-card-media video { opacity: 0; transition: opacity .4s; pointer-events: none; }
.car-card-media video.is-playing { opacity: 1; }
.car-card-body { padding: 16px 18px 18px; text-align: center; }   /* نوشته‌های کارت وسط‌چین (به خواست کاربر) */
.card-kicker { display: block; color: var(--muted); }
.car-card h3 { margin: 4px 0 0; font-size: 22px; font-weight: 300; }
.muted { color: var(--muted); margin: 0; }

/* کارت‌های خودرو کوچیک‌تر (صفحه اصلی و لیست خودروها؛ کلاس car-grid) — دسکتاپ ۴ تایی، موبایل ۲ تایی */
.car-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); }
@media (max-width: 900px) { .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.car-grid .car-card-body { padding: 12px 14px 14px; }
.car-grid .car-card h3 { font-size: 18px; }
.car-grid .car-card .muted { font-size: 14px; }
.car-grid .price { margin-top: 6px; font-size: 13px; }
@media (max-width: 560px) {
  .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .car-grid .car-card-body { padding: 10px 8px 12px; }
  .car-grid .car-card h3 { font-size: 15px; line-height: 1.5; }
  .car-grid .card-kicker { font-size: 10px; letter-spacing: .08em; }
  .car-grid .car-card .muted { font-size: 12px; }
  .car-grid .price { font-size: 12px; }
}
.price { margin: 10px 0 0; color: var(--crimson); font-weight: 500; font-size: 14px; }

/* (فوتر قدیمی برداشته شد — طرح v9: v9.css) */

/* --- مشخصات و گالری (صفحه‌های قدیمی) --- */
.specs { width: 100%; border-collapse: collapse; background: var(--surface); }
.specs th, .specs td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.specs th { color: var(--muted); width: 35%; font-weight: 400; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery img { width: 100%; }

/* --- ورود / ثبت‌نام (templates/accounts/auth.html) --- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 7vw, 110px);
  align-items: center; min-height: calc(100vh - 260px); padding: clamp(32px, 8vh, 90px) 0; }
.auth .ed-label { color: var(--gold); }
.auth h1 { margin: 12px 0 14px; font-size: clamp(38px, 5.4vw, 76px); }
.auth .muted { max-width: 40ch; font-size: 16px; }
.auth-card { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 4vw, 40px);
  background: var(--surface); border: 1px solid var(--line); }
.auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-field .ed-label { color: var(--muted); }
.auth-field input { font: inherit; font-size: 18px; color: var(--text); background: transparent; border: 0;
  border-bottom: 1px solid rgba(26,23,20,.35); padding: 8px 0; border-radius: 0; outline: none; text-align: right; }
.auth-field input:focus { border-color: var(--crimson); }
.auth-field input::placeholder { color: rgba(26,23,20,.3); }
/* کپچا (templates/staff/_captcha.html) — هم‌شکل فیلدهای ورود */
.auth-card .cp-captcha label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.auth-card .cp-captcha__row { display: flex; gap: 10px; align-items: center; }
.auth-card .cp-captcha__row input { flex: 1; min-width: 0; font: inherit; font-size: 18px; letter-spacing: .25em; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid rgba(26,23,20,.35); padding: 8px 0; border-radius: 0; outline: none; text-align: center; }
.auth-card .cp-captcha__row input:focus { border-color: var(--crimson); }
.auth-card .cp-captcha__img { height: 46px; width: auto; border-radius: var(--radius-field); border: 1px solid var(--line); cursor: pointer; flex-shrink: 0; }
.auth-card .cp-captcha__new { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  cursor: pointer; font-size: 16px; color: var(--muted); flex-shrink: 0; }
.auth-btn { margin-top: 4px; border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.auth-switch { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--crimson); border-bottom: 1px solid currentColor; }
.auth-soon p { margin: 0; font-size: 17px; line-height: 1.9; }
.auth-soon .btn { align-self: flex-start; margin-top: 0; }
@media (max-width: 760px) { .auth { grid-template-columns: 1fr; min-height: 0; } }
/* مرحله کد پیامکی (templates/accounts/verify.html) */
.auth-form { display: flex; flex-direction: column; gap: 22px; }
.auth-field input.otp-input { text-align: center; font-family: var(--f-mono); font-size: 26px; letter-spacing: .4em; }
.auth-test, .auth-info { margin: 0; padding: 10px 14px; border-radius: var(--radius-field); font-size: 14px; }
.auth-test { background: rgba(156,118,56,.12); color: #6E5222; }
.auth-info { background: rgba(31,120,80,.1); color: #1F6B47; }
.auth-resend { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.auth-resend a, .link-btn { color: var(--crimson); }
.link-btn { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.link-btn:disabled { color: var(--muted); cursor: default; }

/* پنل مشتری (templates/accounts/dashboard.html) */
.acc-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
.acc-card h2 { margin: 0; color: var(--gold); font-size: 12px; }
.acc-list { margin: 0; display: grid; gap: 12px; }
.acc-list div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.acc-list dt { color: var(--muted); }
.acc-list dd { margin: 0; }
.acc-logout { cursor: pointer; font: inherit; background: none; }
.acc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.acc-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.acc-steps strong { font-weight: 500; }
.acc-steps .muted { font-size: 14px; }
.acc-dot { width: 14px; height: 14px; margin-top: 8px; border-radius: 50%; border: 2px solid rgba(26,23,20,.25); }
.acc-steps .done .acc-dot { background: var(--gold); border-color: var(--gold); }
.acc-steps .now .acc-dot { border-color: var(--crimson); }
.acc-steps .wait .acc-dot { border-color: var(--gold); }
/* احراز هویت (templates/accounts/identity.html) */
.kyc-lead { max-width: 60ch; }
.kyc-state { max-width: 560px; }
.kyc-state p { margin: 0; font-size: 17px; }
.kyc-state .btn { align-self: flex-start; margin-top: 0; }
.kyc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 760px; }
.kyc-step { gap: 16px; }
.kyc-step header { display: flex; align-items: center; gap: 12px; }
.kyc-step h2 { margin: 0; font-size: 20px; font-weight: 400; }
.kyc-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font-size: 15px; flex-shrink: 0; }
.kyc-step.is-done .kyc-num { background: var(--gold); border-color: var(--gold); color: #fff; }
.kyc-note { margin: 0; font-size: 14px; }
.kyc-form { display: flex; flex-direction: column; gap: 12px; }
.kyc-file { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.kyc-file input { font: inherit; font-size: 14px; max-width: 100%; padding: 10px; border: 1px dashed rgba(26,23,20,.3); border-radius: var(--radius-field); background: rgba(255,255,255,.4); }
.kyc-btn { align-self: flex-start; margin-top: 0; cursor: pointer; font: inherit; }
button.btn-ghost { background: none; }
.kyc-thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.kyc-thumbs figure { margin: 0; width: 180px; }
.kyc-thumbs img { width: 100%; aspect-ratio: 1.58; object-fit: cover; border-radius: var(--radius-field); border: 1px solid var(--line); }
.kyc-thumbs figcaption { font-size: 12px; color: var(--muted); text-align: center; }
.kyc-phrase { margin: 0; padding: 14px 18px; border-inline-start: 3px solid var(--gold); background: rgba(156,118,56,.08); border-radius: var(--radius-field); font-size: 18px; line-height: 2; }
.kyc-video { display: block; width: 100%; max-width: 420px; aspect-ratio: 4 / 3; background: #1A1714; border-radius: var(--radius-card); object-fit: cover; }
.kyc-ok { margin: 0; font-size: 14px; color: #2E7D4F; }
/* ضبط‌کننده: تصویر زنده + کادر بیضی صورت + دکمه‌های Record / Stop / Play */
.kyc-recorder { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.kyc-recorder[hidden], .kyc-form[hidden] { display: none; }
.kyc-cam { --rx: 19%; --ry: 33%; --cy: 57%; position: relative; width: 100%; max-width: 520px; aspect-ratio: 4 / 3; background: #1A1714; border-radius: var(--radius-card); overflow: hidden; }
.kyc-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }   /* آینه؛ فایل ضبط‌شده آینه‌ای نیست */
.kyc-cam[data-mode="review"] video, .kyc-cam[data-mode="playing"] video { transform: none; }
.kyc-cam-on { position: absolute; inset: 0; margin: auto; width: fit-content; height: fit-content; display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; border: 1px solid rgba(237,230,218,.5); border-radius: var(--radius-btn); background: rgba(237,230,218,.1); color: #EDE6DA; font: inherit; font-size: 15px; cursor: pointer; }
.kyc-cam-on:hover { background: rgba(237,230,218,.2); }
.kyc-cam-on svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.kyc-cam-on[hidden] { display: none; }
.kyc-rec { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: var(--radius-btn); background: rgba(14,13,12,.6); color: #fff; font-family: var(--f-mono, monospace); font-size: 12px; letter-spacing: .1em; direction: ltr; }
.kyc-rec i { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; animation: kyc-blink 1s steps(2) infinite; }
@keyframes kyc-blink { 50% { opacity: 0; } }
.kyc-rec[hidden], .kyc-recorder .btn[hidden], .kyc-actions [hidden] { display: none; }
.kyc-deck { display: flex; gap: 22px; justify-content: center; width: 100%; max-width: 460px; direction: ltr; }
.kyc-key { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink, #1A1714); cursor: pointer; font: inherit; }
.kyc-key .ico { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.55); transition: transform .15s, background .2s; }
.kyc-key .ico::before { content: ''; display: block; }
.kyc-key-rec .ico::before { width: 22px; height: 22px; border-radius: 50%; background: #C8262E; }
.kyc-key-rec.is-on .ico { background: rgba(200,38,46,.12); border-color: #C8262E; animation: kyc-pulse 1.2s ease-in-out infinite; }
.kyc-key-stop .ico::before { width: 18px; height: 18px; border-radius: 3px; background: currentColor; }
.kyc-key-play .ico::before { width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent currentColor; }
.kyc-key-play.is-playing .ico::before { width: 16px; height: 18px; margin: 0; border: 0; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.kyc-key:not(:disabled):hover .ico { transform: scale(1.06); }
.kyc-key:disabled { opacity: .35; cursor: not-allowed; }
.kyc-key .ed-label { font-size: 11px; }
@keyframes kyc-pulse { 50% { box-shadow: 0 0 0 8px rgba(200,38,46,.15); } }
.kyc-status { margin: 0; font-size: 14px; color: var(--muted); }
.kyc-status.is-bad { color: var(--crimson); }
@media (max-width: 600px) {
  .kyc-cam { aspect-ratio: 3 / 4; max-width: none; --rx: 33%; --ry: 30%; --cy: 58%; }   /* موبایل: تصویر عمودی */
  .kyc-deck { max-width: none; }
}
.kyc-newphrase { margin: 0; font-size: 14px; }
.kyc-submit .btn:disabled { opacity: .45; cursor: not-allowed; }
.acc-step-btn { align-self: flex-start; margin-top: 8px; padding: 8px 24px; font-size: 14px; }

.acc-contracts { margin-top: clamp(28px, 5vh, 48px); }
.acc-contracts h2 { color: var(--gold); margin: 0 0 14px; font-size: 12px; }
.acc-contracts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.acc-contract { flex-direction: row; align-items: center; gap: 16px; padding: 18px 22px; }
.acc-contract > div { margin-inline-end: auto; }
.acc-contract .muted { font-size: 13px; }
.acc-contract .btn { margin-top: 0; }
.acc-badge { font-size: 13px; padding: 4px 12px; border-radius: var(--radius-btn); white-space: nowrap; }
.acc-badge.is-ready { background: rgba(179,38,58,.1); color: var(--crimson); }
.acc-badge.is-signed { background: rgba(156,118,56,.14); color: #6E5222; }
@media (max-width: 760px) {
  .acc-grid { grid-template-columns: minmax(0, 1fr); }
  .acc-contract { flex-wrap: wrap; }
  .acc-contract > div { flex-basis: 100%; }
}

/* --- درباره ما (templates/cars/about.html) --- */
.about-hero { padding: clamp(40px, 9vh, 100px) 0 clamp(40px, 8vh, 80px); }
.about-hero .ed-label { color: var(--gold); }
.about-hero h1 { margin: 12px 0 0; font-size: clamp(40px, 6vw, 88px); }
.about-intro { margin: 20px 0 0; max-width: 44ch; font-size: clamp(18px, 1.8vw, 24px); font-weight: 300; line-height: 1.9; }
.about-empty { margin-bottom: 48px; }
.team-grid { display: grid; gap: clamp(16px, 2.4vw, 32px); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 72px; }
.team-card { text-align: center; }
.team-photo { aspect-ratio: 4/5; background: #DCD3C3; overflow: hidden; display: grid; place-items: center; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }
.team-photo span { font-size: 64px; font-weight: 200; color: var(--muted); }
.team-card h3 { margin: 14px 0 2px; font-size: 21px; }
.team-role { display: block; color: var(--gold); }
.team-card .muted { margin-top: 8px; font-size: 14px; }
.timeline { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tl-year { font-weight: 200; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; color: var(--crimson); }
.timeline h3 { margin: 0; font-size: 20px; }
.timeline .muted { margin-top: 6px; font-size: 15px; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* --- گوشه‌گرد (توکن‌ها در editorial.css) --- */
.car-card, .auth-card, .team-photo, .gallery img, .specs { border-radius: var(--radius-card); overflow: hidden; }
.car-card-media { border-radius: 0; }   /* گوشه‌های بالا رو خود کارت می‌بره */
.btn { border-radius: var(--radius-btn); padding-inline: 40px; }
.auth-field input { border: 1px solid rgba(26,23,20,.22); border-radius: var(--radius-field);
  padding: 12px 16px; background: rgba(255,255,255,.45); }
.auth-field input:focus { border-color: var(--crimson); }
.auth-field input { width: 100%; min-width: 0; }

/* --- صفحه ساده خودرو (templates/cars/car_detail_simple.html) --- */
.simple-car { padding: clamp(28px, 6vh, 64px) 0; }
.sc-head .ed-label { color: var(--gold); }
.sc-head h1 { margin: 10px 0 8px; font-size: clamp(36px, 5.4vw, 72px); }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(24px, 4vh, 40px); align-items: start; }
.sc-photo { margin: 0; aspect-ratio: 16/10; background: #DCD3C3; border-radius: var(--radius-card); overflow: hidden; }
.sc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-photo .no-image { height: 100%; display: grid; place-items: center; color: var(--muted); }
.sc-label { display: block; color: var(--muted); margin-bottom: 10px; }
.trim-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.trim-pills a { padding: 9px 18px; border: 1px solid var(--line); border-radius: var(--radius-btn); font-size: 14px;
  background: var(--surface); transition: border-color .2s, background .2s, color .2s; }
.trim-pills a:hover { border-color: var(--gold); }
.trim-pills a.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.sc-price { margin: 0; font-size: 20px; font-weight: 500; color: var(--crimson); display: flex; gap: 12px; align-items: baseline; }
.sc-price .ed-label { color: var(--muted); }
.sc-info .btn { margin-top: 16px; }
.sc-specs-title { margin: 34px 0 12px; font-size: 26px; }
.sc-desc { max-width: 70ch; margin-top: 40px; font-size: 16px; line-height: 2; }
@media (max-width: 860px) { .sc-grid { grid-template-columns: minmax(0, 1fr); } }

/* ===== صفحه‌های شرکت (templates/pages/) — همون استایل روشن کرم ===== */
.page-hero { padding: clamp(36px, 8vh, 90px) 0 clamp(24px, 5vh, 48px); }
.page-hero .ed-label { color: var(--gold); }
.page-hero .ed-label a { color: inherit; }
.page-hero h1 { margin: 12px 0 8px; font-size: clamp(38px, 5.6vw, 80px); line-height: 1.15; }
.page-sec { margin-bottom: clamp(40px, 8vh, 80px); }
.placeholder-note { padding: 18px 22px; border: 1px dashed rgba(26,23,20,.3); border-radius: var(--radius-card);
  color: var(--muted); background: rgba(255,255,255,.35); }
.prose { max-width: 72ch; font-size: 16.5px; line-height: 2.05; }
.prose h2 { font-size: 28px; margin: 1.6em 0 .4em; }
.prose h3 { font-size: 21px; margin: 1.4em 0 .3em; font-weight: 400; }
.prose a { color: var(--crimson); border-bottom: 1px solid currentColor; }
.prose ul { padding-inline-start: 1.2em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-inline-start: 3px solid var(--gold);
  background: rgba(255,255,255,.4); border-radius: 0 var(--radius-field) var(--radius-field) 0; }
.btn-ghost { display: inline-block; padding: 11px 26px; border: 1px solid rgba(26,23,20,.3); border-radius: var(--radius-btn);
  font-size: 14px; transition: border-color .2s, background .2s; }
.btn-ghost:hover { border-color: var(--text); background: rgba(255,255,255,.4); }
.page-cta { margin-top: 40px; }

/* درباره ما */
.value-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.value-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.value-num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .15em; color: var(--gold); }
.value-card h3 { margin: 8px 0 6px; font-size: 21px; }
.reg-table th { width: 30%; }

/* مراحل خرید: تایم‌لاین */
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 27px; width: 1px; background: var(--line); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding-bottom: clamp(26px, 5vh, 44px); }
.step-num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--gold); color: var(--gold); font-size: 18px; }
.step-body h2 { margin: 10px 0 6px; font-size: clamp(22px, 2.4vw, 30px); }

/* سؤالات متداول */
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.faq-cats a { padding: 8px 18px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--surface); font-size: 14px; }
.faq-cats a.on, .faq-cats a:hover { border-color: var(--text); }
.faq-group { margin-bottom: 40px; scroll-margin-top: 90px; }
.faq-group h2 { font-size: 26px; margin: 0 0 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .prose { padding: 0 22px 18px; }

/* وبلاگ */
.post-card .muted { margin-top: 6px; font-size: 14px; }
.post-card .no-image { color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 36px 0; }
.post { max-width: 820px; margin: 0 auto; }
.post-cover { margin: 0 0 28px; border-radius: var(--radius-card); overflow: hidden; }
.post-cover img { width: 100%; display: block; }
.post-car { margin: 36px 0; padding: 22px; background: var(--surface); border-radius: var(--radius-card); display: flex;
  align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-car .btn { margin-top: 0; }

/* تماس */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 6vw, 90px); align-items: start; }
.contact-list { margin: 0 0 24px; }
.contact-list div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 4px 0 0; font-size: 17px; }
.map-frame { aspect-ratio: 4/3; border-radius: var(--radius-card); overflow: hidden; background: #DCD3C3; margin-bottom: 14px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-empty { display: grid; place-items: center; text-align: center; padding: 16px; }
.auth-field textarea { font: inherit; font-size: 17px; color: var(--text); width: 100%; min-width: 0; resize: vertical;
  border: 1px solid rgba(26,23,20,.22); border-radius: var(--radius-field); padding: 12px 16px; background: rgba(255,255,255,.45); outline: none; }
.auth-field textarea:focus { border-color: var(--crimson); }
.form-err { margin: 0; color: var(--crimson); font-size: 13px; }
.has-error input, .has-error textarea { border-color: var(--crimson); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* فوتر */
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; max-width: 760px; }
.footer-info p { margin: 2px 0; }
.footer-info a { color: inherit; }
.enamad-slot { min-height: 90px; min-width: 90px; display: grid; place-items: center; }
.enamad-slot:empty { border: 1px dashed rgba(237,230,218,.2); border-radius: var(--radius-field); }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  .step-num { width: 44px; height: 44px; font-size: 15px; }
  .steps::before { inset-inline-start: 21px; }
}
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

/* --- مجله واردات خودرو (includes/magazine.html، صفحه تماس) + آیکون‌های فوتر ---
 * رنگ هر پیام‌رسان: --msg (آیکون/خط)، --msg-dark (متن و دکمه روی کرم؛ کنتراست کافی) */
.msg-telegram { --msg: #2AABEE; --msg-dark: #1A75A8; --msg-soft: rgba(42,171,238,.12); }
.msg-bale     { --msg: #1FB58F; --msg-dark: #0E7C61; --msg-soft: rgba(31,181,143,.13); }
.msg-rubika   { --msg: #8A4DE8; --msg-dark: #6A33C2; --msg-soft: rgba(138,77,232,.12); }
.msg-icon { display: block; width: 100%; height: 100%; }

.magazine { margin-top: clamp(48px, 8vh, 88px); padding-top: 28px; border-top: 1px solid var(--line); }
.magazine-in-blog { margin: -8px 0 clamp(32px, 6vh, 56px); padding-top: 0; border-top: 0; }
.magazine-head .ed-label { color: var(--gold); }
.magazine-head h2 { margin: 2px 0 0; font-weight: 200; font-size: clamp(26px, 3vw, 38px); line-height: 1.3; }
.magazine-lead { margin: 4px 0 0; color: var(--muted); font-size: 15px; max-width: 60ch; }

/* سه پیام‌رسان کنار هم در یک خط؛ موبایل زیر هم */
.msg-row { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.msg-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-btn);
  transition: border-color .25s;
}
.msg-item:hover { border-color: var(--msg); }
.msg-badge { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--msg-soft); color: var(--msg-dark); flex-shrink: 0; }
.msg-name { font-size: 15px; margin-inline-end: auto; }
.msg-link {
  padding: 5px 12px; border-radius: var(--radius-btn); font-size: 13px; white-space: nowrap;
  color: var(--msg-dark); border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.msg-link:hover { background: var(--msg-soft); }
.msg-link-main { background: var(--msg-dark); color: #fff; }
.msg-link-main:hover { background: var(--text); }
.msg-link:focus-visible, .footer-social a:focus-visible { outline: 2px solid var(--msg-dark); outline-offset: 3px; }

/* آیکون وقتی ردیفش دیده شد با یه پرش کوچیک می‌آد (کلاس in از js/editorial.js) */
html.js .msg-item[data-reveal] .msg-badge { transform: scale(.4) rotate(-20deg); opacity: 0;
  transition: transform .7s cubic-bezier(.3,1.6,.5,1), opacity .4s; transition-delay: calc(var(--d, 0s) + .2s); }
html.js .msg-item[data-reveal].in .msg-badge { transform: none; opacity: 1; }

@media (max-width: 980px) { .msg-row { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }

.footer-social { display: flex; gap: 10px; list-style: none; margin: 4px 0 0; padding: 0; }
.footer-social a {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 8px; border-radius: 50%;
  background: rgba(237,230,218,.08); color: var(--msg); transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--msg); color: #fff; }
.footer-social a:focus-visible { outline-color: var(--msg); }
@media (prefers-reduced-motion: reduce) {
  html.js .msg-item[data-reveal] .msg-badge { transform: none; opacity: 1; transition: none; }
}
/* پنل مشتری: اتصال به بله + دکمه‌های قرارداد امضاشده */
.acc-bale { max-width: 760px; margin: 0 0 24px; gap: 12px; }
.acc-bale h2 { margin: 0; color: var(--gold); font-size: 13px; letter-spacing: 0; }
.acc-bale p { margin: 0; }
.acc-bale .btn { align-self: flex-start; margin-top: 0; }
.acc-bale-note { font-size: 13px; }
.acc-c-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* بررسی زنده فیلدها (static/js/field-check.js): درست سبز، غلط قرمز */
:root { --ok: #2E7D4F; }
main form .is-valid, form[data-check-form] .is-valid { border-color: var(--ok) !important; box-shadow: 0 0 0 3px rgba(46,125,79,.12); }
main form .is-invalid, form[data-check-form] .is-invalid { border-color: var(--crimson) !important; box-shadow: 0 0 0 3px rgba(179,38,58,.1); }
.fc-msg { display: block; min-height: 0; font-size: 12px; color: var(--crimson); }
.fc-msg:empty { display: none; }
/* تقویم شمسی (static/js/jdate-picker.js) */
.jdp-wrap { position: relative; }
input[data-jdate] { cursor: pointer; }
.jdp { position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline-start: 0; width: min(310px, 86vw); padding: 12px;
  background: #FBF8F2; border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: 0 18px 40px rgba(26,23,20,.16); }
.jdp-head { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.jdp-head select { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-field); background: #fff; }
.jdp-nav { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(26,23,20,.06); font-size: 18px; cursor: pointer; line-height: 1; }
.jdp-week, .jdp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.jdp-week span { font-size: 12px; color: var(--muted); padding: 4px 0; }
.jdp-day { aspect-ratio: 1; border: 0; border-radius: 50%; background: none; font: inherit; font-size: 14px; cursor: pointer; }
.jdp-day:hover:not(:disabled) { background: rgba(156,118,56,.15); }
.jdp-day.is-today { box-shadow: inset 0 0 0 1px var(--gold); }
.jdp-day.is-sel { background: var(--crimson); color: #fff; }
.jdp-day:disabled { opacity: .3; cursor: default; }

/* کادر ضبط: بیرون بیضی همون تصویر ولی مات، بیضی بی‌رنگ (فقط جای صورت)، ۵ کلمه بالای کادر */
.kyc-frost { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  -webkit-backdrop-filter: blur(12px) brightness(.85); backdrop-filter: blur(12px) brightness(.85);
  -webkit-mask: radial-gradient(ellipse var(--rx) var(--ry) at 50% var(--cy), transparent 99%, #000 100%);
  mask: radial-gradient(ellipse var(--rx) var(--ry) at 50% var(--cy), transparent 99%, #000 100%); }
.kyc-oval { position: absolute; left: 50%; top: var(--cy); width: calc(var(--rx) * 2); height: calc(var(--ry) * 2);
  transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(255,255,255,.85); pointer-events: none;
  opacity: 0; transition: opacity .3s, border-color .3s; }
.kyc-cam[data-mode="live"] .kyc-frost, .kyc-cam[data-mode="recording"] .kyc-frost,
.kyc-cam[data-mode="live"] .kyc-oval, .kyc-cam[data-mode="recording"] .kyc-oval { opacity: 1; }
.kyc-cam[data-mode="recording"] .kyc-oval { border-color: #E5484D; }
.kyc-cam[data-mode="saved"] video { transform: none; }
.kyc-words { position: absolute; top: 12px; inset-inline: 12px; margin: 0; padding: 0; list-style: none; display: flex;
  flex-wrap: wrap; justify-content: center; gap: 6px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.kyc-cam[data-mode="live"] .kyc-words, .kyc-cam[data-mode="recording"] .kyc-words, .kyc-cam[data-mode="off"] .kyc-words { opacity: 1; }
.kyc-words li { padding: 4px 12px; border-radius: var(--radius-btn); background: rgba(14,13,12,.55); color: #fff; font-size: 16px;
  transition: transform .25s, background .25s, opacity .25s; }
.kyc-words li.is-now { background: #C9A46A; color: #1A1714; transform: scale(1.18); }
.kyc-words li.is-past { opacity: .45; }
.kyc-cam[data-mode="recording"] .kyc-rec { top: auto; bottom: 12px; }
.kyc-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* گام‌های احراز هویت */
.kyc-stepper { max-width: 900px; margin: 0 0 18px; overflow-x: auto; }
.kyc-stepper ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; min-width: max-content; }
.kyc-stepper li { flex: 1; }
.kyc-stepper a, .kyc-stepper span { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: var(--radius-btn);
  color: inherit; text-decoration: none; font-size: 14px; white-space: nowrap; }
.kyc-stepper b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); font-weight: 400; font-size: 13px; }
.kyc-stepper em { font-style: normal; }
.kyc-stepper .is-current span { background: rgba(179,38,58,.08); }
.kyc-stepper .is-current b { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.kyc-stepper .is-done b { background: var(--ok); border-color: var(--ok); color: #fff; }
.kyc-stepper .is-open b { border-color: var(--crimson); color: var(--crimson); }
.kyc-stepper .is-locked { opacity: .45; }
.kyc-stepper a:hover { background: rgba(26,23,20,.05); }
.kyc-step { max-width: 900px; gap: 18px; }
.kyc-err { padding: 10px 14px; border-radius: var(--radius-field); background: rgba(179,38,58,.08); }
.kyc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kyc-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.kyc-field > span { color: var(--muted); }
.kyc-field i { font-style: normal; font-size: 12px; }
.kyc-field input, .kyc-field select { font: inherit; font-size: 16px; width: 100%; min-width: 0; padding: 12px 14px; color: var(--text);
  background: rgba(255,255,255,.55); border: 1px solid rgba(26,23,20,.22); border-radius: var(--radius-field); }
.kyc-field input[readonly]:not([data-jdate]) { background: rgba(26,23,20,.04); color: var(--muted); }
.kyc-field input:focus { outline: none; border-color: var(--crimson); }
.kyc-field input[type="file"] { font-size: 14px; border-style: dashed; padding: 10px; }
.kyc-field small { font-size: 12px; }
.kyc-photo { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.kyc-photo .kyc-field { flex: 1; min-width: 220px; }
.kyc-photo-frame { width: 96px; aspect-ratio: 3 / 4; border-radius: var(--radius-field); overflow: hidden; border: 1px dashed rgba(26,23,20,.3);
  display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.4); flex-shrink: 0; }
.kyc-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.kyc-next { align-self: flex-start; margin-top: 0; cursor: pointer; font: inherit; }
.kyc-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kyc-doc { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.kyc-doc img, .kyc-doc-ph { width: 100%; aspect-ratio: 1.58; object-fit: cover; border-radius: var(--radius-field); border: 1px solid var(--line); }
.kyc-doc-ph { display: grid; place-items: center; color: var(--muted); border-style: dashed; background: rgba(255,255,255,.4); }
.kyc-doc input { font: inherit; font-size: 13px; max-width: 100%; padding: 8px; border: 1px dashed rgba(26,23,20,.3); border-radius: var(--radius-field); background: rgba(255,255,255,.4); }
.kyc-req { color: var(--crimson); font-weight: 400; font-size: 12px; }
.kyc-shahkar { max-width: 420px; }
.kyc-review { display: grid; gap: 14px; }
.kyc-review section { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-field); }
.kyc-review header { display: flex; justify-content: space-between; align-items: center; }
.kyc-review h3 { margin: 0; font-size: 16px; font-weight: 500; }
.kyc-review header a { font-size: 13px; color: var(--crimson); }
.kyc-review p { margin: 0; font-size: 14px; }
.kyc-review-person { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.kyc-review-person .acc-list { flex: 1; min-width: 240px; }
.kyc-review-photo { width: 90px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-field); }
.kyc-confirm { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; font-size: 15px; cursor: pointer; }
.kyc-confirm input { width: 18px; height: 18px; accent-color: #B3263A; }
/* پنل مشتری: عکس پرسنلی گوشه */
.acc-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.acc-avatar { width: clamp(72px, 12vw, 112px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-card); border: 3px solid #fff; box-shadow: 0 10px 30px rgba(26,23,20,.15); flex-shrink: 0; }
.acc-flash { max-width: 760px; margin: 0 0 20px; }
.acc-c-actions button:disabled { opacity: .4; cursor: not-allowed; }
/* احراز هویت: «مشکل دارید؟» و درخواست‌های پشتیبانی */
.kyc-help { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; }
.kyc-help summary { cursor: pointer; color: var(--crimson); }
.kyc-help[open] summary { margin-bottom: 12px; }
.kyc-help textarea, .kyc-help select { font: inherit; font-size: 15px; width: 100%; padding: 10px 12px; border: 1px solid rgba(26,23,20,.22); border-radius: var(--radius-field); background: rgba(255,255,255,.55); }
.kyc-support-list { max-width: 900px; display: grid; gap: 8px; margin: 0 0 14px; }
.kyc-ticket { padding: 12px 16px; border-radius: var(--radius-field); background: rgba(156,118,56,.1); font-size: 14px; }
.kyc-ticket.is-answered { background: rgba(46,125,79,.1); }
.kyc-ticket p { margin: 6px 0 0; }
.kyc-ticket-reply span { font-weight: 600; }
/* خوندن کارت ملی (OCR) */
.kyc-ocr-note { margin: 0; padding: 10px 14px; border-radius: var(--radius-field); background: rgba(156,118,56,.12); font-size: 14px; }
.kyc-ocr-tag { color: #6E5222; font-size: 12px; }
.kyc-ocr-diff { color: var(--crimson); font-size: 12px; }
.kyc-field input[data-ocr] { background: rgba(201,164,106,.12); }
.kyc-ocr-use { color: var(--crimson); text-decoration: underline; font-size: 12px; }
.acc-receipts { max-width: 760px; margin: 0 0 24px; gap: 12px; }
.acc-receipts h2 { margin: 0; color: var(--gold); font-size: 13px; letter-spacing: 0; }
.acc-receipts p { margin: 0; }
.acc-receipts .btn { align-self: flex-start; margin-top: 0; }

/* --- تیکت‌ها (templates/accounts/tickets.html، ticket.html، _ticket_thread.html) --- */
a.kyc-ticket { display: block; color: inherit; text-decoration: none; }
.tk-wrap { max-width: 820px; display: flex; flex-direction: column; gap: 18px; margin-bottom: 60px; }
.tk-new { gap: 0; padding: 18px 22px; border-radius: var(--radius-card); }
.tk-new summary { list-style: none; cursor: pointer; }
.tk-new summary::-webkit-details-marker { display: none; }
.tk-new[open] summary { margin-bottom: 18px; }
.tk-form { display: flex; flex-direction: column; gap: 16px; }
.tk-form input[type=file] { font: inherit; font-size: 14px; }
.tk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tk-item { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: var(--radius-card); color: inherit;
  text-decoration: none; border-inline-start: 4px solid var(--gold); transition: transform .2s, border-color .2s; }
.tk-item:hover { transform: translateY(-2px); }
.tk-item.is-answered { border-inline-start-color: #2E7D4F; }
.tk-item.is-closed { border-inline-start-color: rgba(26,23,20,.2); opacity: .75; }
.tk-item.is-unread { box-shadow: 0 0 0 2px rgba(179,38,58,.25); }
.tk-item b { font-size: 16px; font-weight: 600; }
.tk-item__top, .tk-item__meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tk-no { font-family: var(--f-mono); font-size: 12px; }
.tk-badge { display: inline-block; padding: 1px 10px; border-radius: var(--radius-btn); background: var(--crimson); color: #fff;
  font-size: 12px; font-weight: 600; }
.tk-status.is-open { color: var(--gold); } .tk-status.is-answered { color: #2E7D4F; } .tk-status.is-closed { color: var(--muted); }
.tk-thread { display: flex; flex-direction: column; gap: 12px; }
.tk-msg { max-width: 88%; padding: 14px 18px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); }
.tk-msg.is-customer { align-self: flex-start; border-start-start-radius: 6px; }
.tk-msg.is-staff { align-self: flex-end; background: #fff; border-color: rgba(156,118,56,.35); border-start-end-radius: 6px; }
.tk-msg header { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 6px; }
.tk-msg header b { font-weight: 600; } .tk-msg.is-staff header b { color: var(--gold); }
.tk-msg header time { color: var(--muted); font-size: 12px; }
.tk-msg p { margin: 0; line-height: 1.9; white-space: normal; overflow-wrap: anywhere; }
.tk-att img { display: block; margin-top: 10px; max-width: 260px; max-height: 220px; border-radius: var(--radius-field); border: 1px solid var(--line); }
.tk-file { display: inline-block; margin-top: 10px; color: var(--crimson); }
.tk-reply { padding: 20px 22px; border-radius: var(--radius-card); }
.tk-close { text-align: center; }
.tk-close .link-btn, .tk-closed a { color: var(--muted); font-size: 14px; }
.tk-closed { text-align: center; }
.acc-tickets .acc-c-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) { .tk-msg { max-width: 100%; } }
.tk-new { display: block; }
.tk-new summary .btn { margin: 0; }
.tk-form textarea, .tk-form input:not([type=file]), .tk-form select { border-radius: var(--radius-field); }
.tk-form textarea { font: inherit; font-size: 16px; width: 100%; box-sizing: border-box; padding: 12px 14px; color: var(--text);
  background: #fff; border: 1px solid var(--line); resize: vertical; line-height: 1.8; }
.tk-form textarea:focus { outline: none; border-color: var(--crimson); }

/* پنل مشتری: کاشی‌ها (بله، فیش‌ها، تیکت‌ها) و کارت قراردادها — templates/accounts/dashboard.html */
.acc-tiles { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin: clamp(16px, 2.4vw, 28px) 0 0; }
.acc-tile { gap: 10px; padding: clamp(20px, 2.4vw, 26px); border-radius: var(--radius-card); transition: transform .2s, box-shadow .2s; }
.acc-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -14px rgba(26,23,20,.22); }
.acc-tile p { margin: 0; }
.acc-tile .muted { font-size: 14px; line-height: 1.8; }
.acc-tile__head { display: flex; align-items: center; gap: 10px; }
.acc-tile__head h2 { margin: 0; color: var(--gold); font-size: 13px; letter-spacing: 0; }
.acc-tile__head .tk-badge { margin-inline-start: auto; }
.acc-tile__ico { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(179,38,58,.09); color: var(--crimson); }
.acc-tile__ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.acc-tile.is-ok .acc-tile__ico { background: rgba(46,125,79,.1); color: #2E7D4F; }
.acc-tile__big { font-size: clamp(24px, 3vw, 30px); font-weight: 300; line-height: 1.3; margin-top: 4px !important; }
.acc-tile__big small { font-size: 14px; color: var(--muted); font-weight: 400; }
.acc-tile.is-ok .acc-tile__big { color: #2E7D4F; }
.acc-tile__foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.acc-tile__foot.acc-c-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
.acc-tile__foot small { font-size: 12px; }
.acc-tile__foot .btn { margin-top: 0; }
/* قراردادها هم کارتی */
.acc-contracts ul { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(14px, 2vw, 22px); }
.acc-contract.acc-tile { flex-direction: column; align-items: stretch; padding: clamp(20px, 2.4vw, 26px); }
.acc-contract.acc-tile > div { margin: 0; }
.acc-contract.acc-tile strong { font-size: 17px; font-weight: 500; }
.acc-contract.acc-tile .acc-badge { align-self: flex-start; }
.acc-contract.acc-tile > .acc-c-actions, .acc-contract.acc-tile > .btn { margin-top: auto; align-self: flex-start; }
.acc-contract.acc-tile .acc-badge { order: -1; }
/* پنل مشتری: مشخصات و مراحل هم کاشی؛ همه در یک شبکه */
.acc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acc-tile--wide { grid-column: span 2; }
.acc-tile .acc-list { margin-top: 4px; }
.acc-tile .acc-steps { margin-top: 6px; gap: 14px; }
.acc-tile .acc-steps .muted { font-size: 13.5px; }
@media (max-width: 980px) { .acc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .acc-tiles { grid-template-columns: minmax(0, 1fr); } .acc-tile--wide { grid-column: auto; } }
/* خوندن فیش از روی عکس (contracts/receipt_ocr.py) */
.rc-read { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
.rc-read__btn { cursor: pointer; font: inherit; font-size: 14px; }
.rc-read__btn:disabled { opacity: .45; cursor: not-allowed; }
.rc-read small { font-size: 12.5px; line-height: 1.8; }
.rc-ocr { box-shadow: 0 0 0 2px rgba(156,118,56,.45) !important; background: #FBF4E6 !important; }
.rc-ocr-note { display: block; margin-top: 4px; font-size: 12.5px; color: var(--gold); }
.rc-ocr-note .link-btn { color: var(--crimson); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
