/* مسیر: public_html/assets/css/extra.css — استایل‌های جدید (app.css بدون تغییر می‌ماند) */
.pwa-get { margin-top: 14px; text-align: center; }
.pwa-get .btn { margin-bottom: 8px; }

/* ===== سوپرادمین: کارت‌های ریز تبلیغات و گروه‌ها (باز شدن مودال با .ms-modal موجود در app.css) ===== */
.ag { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 0 0 16px; }
@media (min-width: 560px) { .ag { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ag { grid-template-columns: repeat(4, 1fr); } }
.wrap:has(.ag) { max-width: none; }
.ac { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 6px 8px; background: var(--card); border: 1px solid var(--bd); border-radius: var(--radius); color: var(--tx); text-decoration: none; transition: border-color .15s; }
.ac:hover, .ac:focus-visible { border-color: var(--pr); }
.ac-th { flex: none; display: block; width: 46px; height: 46px; border-radius: 8px; background: var(--bg); overflow: hidden; }
.ac-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ac-no { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 9px; color: var(--mu); text-align: center; line-height: 1.3; }
.ac-b { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-b b { font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-b small, .cc small { font-size: 11px; color: var(--mu); }
.ac-f, .cc-f { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.ac-f .bd { font-size: 10px; padding: 1px 8px; }
.cg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 16px; }
@media (min-width: 560px) { .cg { grid-template-columns: repeat(3, 1fr); } }
.cc { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--card); border: 1px solid var(--bd); border-radius: var(--radius); color: var(--tx); text-decoration: none; transition: border-color .15s; }
.cc:hover, .cc:focus-visible { border-color: var(--pr); }
.cc.off { opacity: .6; }
.cc b { font-size: 14px; }
.ms-box .ad-del { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .ac { transition: none; } }

/* ===== ثبت و نمایش «تعویض / بازدید» روی کارت سرویس ===== */
.sa-o { position: relative; cursor: pointer; user-select: none; justify-content: flex-start; }
.sa-o input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.sa-o input:checked + .sc-dot { background: var(--gold); box-shadow: 0 0 0 2px var(--card), 0 0 0 3px color-mix(in srgb, var(--gold) 55%, #000); }
.sa-o:has(input:checked) { box-shadow: inset 0 -3px 0 var(--gold); }
.sa-o input:focus-visible + .sc-dot { outline: 2px solid var(--btx); outline-offset: 3px; }
.sa-row .sc-more { display: none; }
.sa-row:has(input:checked) .sc-more { display: grid; }
.regform.simple .sa-row .sc-more { display: none; }
.sa-v { justify-content: flex-start; }
.sa-v.off { color: var(--mu); font-weight: 500; }

/* ===== فهرست افتادنی سرویس‌های هر پلاک (نتیجه‌ی جستجو) ===== */
.vsd { margin: 0 0 14px; background: var(--card); border: 1px solid var(--bd); border-radius: var(--radius); padding: 0 12px; }
.vsd > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; font-weight: 700; font-size: 14px; }
.vsd > summary::-webkit-details-marker { display: none; }
.vsd > summary::after { content: "▾"; color: var(--mu); transition: transform .15s; }
.vsd[open] > summary::after { transform: rotate(180deg); }
.vsd[open] { padding-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .vsd > summary::after { transition: none; } }
[hidden] { display: none !important; }

/* ===== انتخابگر شهر با جستجوی آنی ===== */
.cp { position: relative; }
.cp-sel { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-sel:not(:empty) { margin-bottom: 6px; }
.cp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--card); border: 1px solid var(--pr); border-radius: 999px; font-size: 13px; }
.cp-x { border: 0; background: none; color: var(--mu); cursor: pointer; padding: 0 2px; font-size: 12px; }
.cp-ls { position: absolute; inset-inline: 0; top: 100%; z-index: 30; margin: 4px 0 0; padding: 4px; list-style: none; max-height: 260px; overflow: auto; background: var(--card); border: 1px solid var(--bd); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.cp-ls li { padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.cp-ls li:hover, .cp-ls li:focus { background: var(--bg); outline: none; }
.cp-ls li small { color: var(--mu); font-size: 11px; }
.cp-ls .cp-no { color: var(--mu); cursor: default; }

/* ===== بنر داشبورد ===== */
.bn { display: grid; gap: 10px; margin: 0 0 14px; }
.bn-fx, .bn-sd { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 1px solid var(--bd); line-height: 0; }
.bn img { display: block; width: 100%; height: auto; }
.bn em { position: absolute; inset-block-start: 6px; inset-inline-start: 6px; font-style: normal; font-size: 10px; line-height: 1.5; padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; }
.bn-sl { position: relative; display: grid; }
.bn-sd { grid-area: 1 / 1; align-self: center; opacity: 0; pointer-events: none; transition: opacity .5s; }
.bn-sd.on { opacity: 1; pointer-events: auto; }
.bn-dots { position: absolute; inset-inline: 0; inset-block-end: 6px; display: flex; justify-content: center; gap: 5px; z-index: 2; line-height: 0; }
.bn-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); cursor: pointer; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.bn-dots i.on { background: #fff; }
.bn-th { width: 72px; height: 24px; }
.bn-th img { object-fit: contain; }
.bn-ac .bn-th { border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .bn-sd { transition: none; } }

/* ===== رزرو بنر: انتخاب نوع و تقویم ===== */
.bk-types { display: grid; gap: 8px; margin: 0 0 12px; }
@media (min-width: 560px) { .bk-types { grid-template-columns: 1fr 1fr; } }
.bk-t { position: relative; display: block; cursor: pointer; }
.bk-t input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-t > span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--card); border: 1px solid var(--bd); border-radius: var(--radius); }
.bk-t small { color: var(--mu); font-size: 11px; }
.bk-t input:checked + span { border-color: var(--pr); box-shadow: inset 0 0 0 1px var(--pr); }
.bk-t input:focus-visible + span { outline: 2px solid var(--pr); outline-offset: 2px; }
.bk-m { margin: 16px 0 8px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0; direction: rtl; }
.cal-w { font-style: normal; text-align: center; font-size: 11px; color: var(--mu); padding: 4px 0; }
.cal-d { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--bd); border-radius: 8px; background: var(--card); cursor: pointer; text-align: center; }
.cal-d input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cal-d b { font-size: 14px; }
.cal-d small { font-size: 10px; color: var(--mu); min-height: 12px; }
.cal-d.off, .cal-d.full { cursor: not-allowed; opacity: .45; }
.cal-d.full { background: color-mix(in srgb, #c0392b 18%, var(--card)); }
.cal-d.hot { background: color-mix(in srgb, var(--gold) 20%, var(--card)); }
.cal-d:has(input:checked) { border-color: var(--pr); box-shadow: inset 0 0 0 2px var(--pr); }
.cal-d:has(input:focus-visible) { outline: 2px solid var(--pr); outline-offset: 2px; }
.bk-lg .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--bd); margin-inline: 6px 2px; vertical-align: middle; }
.bk-lg .lg.hot { background: color-mix(in srgb, var(--gold) 40%, var(--card)); }
.bk-lg .lg.full { background: color-mix(in srgb, #c0392b 35%, var(--card)); }

/* ===== سلام کوچک بالای داشبورد ===== */
.hi { margin: 0 0 10px; font-size: 12px; color: var(--mu); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.hi b { color: var(--tx); font-weight: 600; }

/* ===== فاکتور بنر ===== */
.inv-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.inv-t { font-size: 16px; }
.inv-f { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0; counter-reset: s; }
.inv-f li { counter-increment: s; padding: 4px 10px; border: 1px solid var(--bd); border-radius: 999px; font-size: 12px; color: var(--mu); }
.inv-f li::before { content: counter(s) "؛ "; }
.inv-f li.on { color: var(--tx); border-color: var(--pr); }
@media print {
  body * { visibility: hidden !important; }
  .inv, .inv * { visibility: visible !important; }
  .inv { position: absolute; inset: 0 0 auto 0; border: 0; box-shadow: none; }
  .inv-a { display: none !important; }
}

/* کادر برش بنر (۸:۳) */
.cropper.bc .cbox { aspect-ratio: 8 / 3; max-width: 100%; }

/* ===== کادر برش و زوم تصویر بنر (۸:۳) ===== */
.cr { margin-top: 8px; }
.cr-st { position: relative; width: 100%; aspect-ratio: 8 / 3; border: 2px dashed var(--pr); border-radius: var(--radius); overflow: hidden; background: var(--bg); touch-action: none; cursor: grab; user-select: none; }
.cr-st.drag { cursor: grabbing; }
.cr-st canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.cr-z { width: 100%; margin: 10px 0 4px; }
/* ===== داشبورد: ستون کناری بنر (فقط دسکتاپ؛ موبایل بدون تغییر) ===== */
.dsplit .dside { margin: 0 0 14px; }
@media (min-width: 900px) {
  .dsplit.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
  .dsplit.has-side .dmain { grid-column: 1; grid-row: 1; min-width: 0; }
  .dsplit.has-side .dside { grid-column: 2; grid-row: 1; margin: 0; position: sticky; top: calc(var(--hh) + 16px); }  /* در صفحه‌ی راست‌چین ستون دوم سمت چپ است */
  .dside .bn { margin: 0; }
  .dside .bn-fx, .dside .bn-sd { width: 300px; max-width: 100%; }
  .dside .bn img { width: 300px; max-width: 100%; height: auto; }   /* اندازه‌ی واقعی ۳۰۰×۱۰۰ */
}
/* ===== محصولات مرکز سرویس: نوار فیلتر ثابت ===== */
.pf-bar { position: sticky; top: calc(var(--hh) + 8px); z-index: 25; display: grid; gap: 8px; padding: 10px; margin: 0 0 14px; background: var(--card); border: 1px solid var(--bd); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-row .pf-q { grid-column: 1 / -1; }
.pf-bar input, .pf-bar select { padding: 9px 12px; }
.pf-bar .cp-sel:not(:empty) { margin-bottom: 0; }
.pf-cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.pf-cat { flex: none; font: inherit; font-size: 13px; padding: 6px 14px; border: 1px solid var(--bd); border-radius: 999px; background: var(--bg); color: var(--tx); cursor: pointer; white-space: nowrap; }
.pf-cat small { opacity: .75; margin-right: 6px; }
.pf-cat[aria-pressed="true"] { background: var(--pr); color: var(--btx); border-color: var(--pr); font-weight: 700; }
.pf-n { margin: 0; font-size: 12px; }
@media (min-width: 700px) { .pf-row { grid-template-columns: 2fr 1fr 1.4fr; } .pf-row .pf-q { grid-column: auto; } }
.sa-row .sc-more { grid-template-columns: 1fr; }
/* ===== صفحه‌ی ورود: ثبت‌نام و دریافت اپلیکیشن ===== */
.lg-reg { margin-top: 20px; padding: 18px 16px; text-align: center; background: var(--card); border: 2px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.lg-reg b { display: block; font-size: 16px; margin-bottom: 4px; }
.lg-reg span { display: block; font-size: 13px; color: var(--mu); margin-bottom: 14px; line-height: 1.8; }
.lg-reg .lg-reg-btn { margin: 0; padding: 16px; font-size: 17px; font-weight: 800; background: var(--gold); color: #111; box-shadow: 0 4px 12px color-mix(in srgb, var(--gold) 45%, transparent); }
.lg-reg .lg-reg-btn:hover { background: var(--gold); filter: brightness(1.08); color: #111; }

.lg-app { margin-top: 14px; padding: 14px; background: var(--pr-light); border: 1px dashed var(--pr); border-radius: var(--radius); text-align: right; }
.lg-app[hidden] { display: none !important; }
.lg-app-t { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lg-app-i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; font-size: 24px; background: var(--card); border-radius: 12px; }
.lg-app-t b { display: block; font-size: 14px; }
.lg-app-t small { display: block; color: var(--mu); font-size: 12px; line-height: 1.7; }
.lg-app .btn { margin: 0; }
.lg-app .mu { margin: 10px 0 0; }
/* ===== ویرایشگر کارت ویزیت (مدیر) ===== */
.ce { margin: 10px 0 14px; padding: 12px; background: var(--card); border: 1px solid var(--bd); border-radius: var(--radius); }
.ce-st { width: 100%; border: 2px dashed var(--pr); border-radius: var(--radius); overflow: hidden; background: var(--bg); touch-action: none; cursor: grab; user-select: none; margin-bottom: 10px; }
.ce-st canvas { display: block; width: 100%; height: auto; pointer-events: none; }
.ce .inl { margin-bottom: 10px; }