/* میت‌بان — نظام طراحی «کاشی و ایوان»
   رنگ‌ها از کاشی‌کاری ایرانی: لاجورد، فیروزه، طلایی کاشی، آجر؛ خط کوفی بنایی برای تیترها */
@font-face { font-family: Vazirmatn; font-weight: 300; font-display: swap; src: url(/fonts/vazirmatn-arabic-300-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url(/fonts/vazirmatn-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; font-weight: 500; font-display: swap; src: url(/fonts/vazirmatn-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url(/fonts/vazirmatn-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; font-weight: 800; font-display: swap; src: url(/fonts/vazirmatn-arabic-800-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url(/fonts/vazirmatn-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: Vazirmatn; font-weight: 500; font-display: swap; src: url(/fonts/vazirmatn-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url(/fonts/vazirmatn-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: 'Reem Kufi'; font-weight: 400; font-display: swap; src: url(/fonts/reem-kufi-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Reem Kufi'; font-weight: 500; font-display: swap; src: url(/fonts/reem-kufi-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Reem Kufi'; font-weight: 600; font-display: swap; src: url(/fonts/reem-kufi-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Reem Kufi'; font-weight: 700; font-display: swap; src: url(/fonts/reem-kufi-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Reem Kufi'; font-weight: 500; font-display: swap; src: url(/fonts/reem-kufi-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: 'Reem Kufi'; font-weight: 700; font-display: swap; src: url(/fonts/reem-kufi-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF; }

:root {
  /* لاجورد — گنبد و شب */
  --lapis-night: #12203D;
  --lapis: #1B3361;
  --lapis-2: #24427A;
  --lapis-line: #31528E;
  /* فیروزه — دکمه‌های اصلی */
  --firuzeh: #2A9D97;
  --firuzeh-bright: #45BDB5;
  --firuzeh-deep: #1C7A75;
  /* طلای کاشی — تأکید، گوینده، زمان */
  --gold: #D9A441;
  --gold-soft: #F0D9A6;
  /* آجر — خطر و خروج */
  --brick: #B5543A;
  --brick-bright: #CF6A4E;
  /* گچ — سطوح روشن */
  --gach: #E9EEEB;
  --gach-2: #DCE4E0;
  --paper: #F7F9F8;
  --ink: #14223F;
  --ink-2: #4A5B78;
  --line: #C6D1CF;
  --mist: #EAF0F8;
  --mist-2: #A9B8D3;
  /* سیگنال‌ها */
  --good: #45BDB5;
  --fair: #E2BA55;
  --poor: #E06A50;
  /* سازگاری با نام‌های قبلی */
  --saffron: var(--gold);
  --night: var(--lapis-night); --night-2: var(--lapis); --night-3: var(--lapis-2); --night-line: var(--lapis-line);
  --sage: var(--gach); --sage-2: var(--gach-2);
  --radius-s: 8px; --radius-m: 14px; --radius-l: 22px;
  --font: Vazirmatn, Tahoma, system-ui, sans-serif;
  --display: 'Reem Kufi', Vazirmatn, sans-serif;
  --girih-dark: url(/img/girih-dark.svg);
  --girih-light: url(/img/girih-light.svg);
  --girih-gold: url(/img/girih-gold.svg);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.75; direction: rtl; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.brand { font-family: var(--display); font-weight: 700; letter-spacing: 0; line-height: 1.1; }

/* نشان میت‌بان: شمسه هشت‌پر */
.mark { width: 34px; height: 34px; flex: none; }

/* دکمه‌ها */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; background: var(--ink); color: var(--paper); font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary, .btn.saffron { background: var(--firuzeh); color: #fff; }
.btn.primary:hover, .btn.saffron:hover { background: var(--firuzeh-deep); }
.btn.gold { background: var(--gold); color: #2A1B05; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--gach-2); }
.btn.danger { background: var(--brick); color: #fff; }
.btn.danger:hover { background: var(--brick-bright); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ورودی‌ها */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
textarea.input { min-height: 90px; resize: vertical; line-height: 1.7; }
.input:focus { outline: none; border-color: var(--firuzeh); box-shadow: 0 0 0 3px rgb(42 157 151 / .22); }
.hint { font-size: 12.5px; color: var(--ink-2); }
.error-text { color: #A53D27; font-size: 13.5px; min-height: 1.4em; }

/* کپچا */
.captcha { display: flex; gap: 8px; align-items: stretch; }
.captcha .img { flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #eef1ea; cursor: pointer; height: 44px; padding: 0; }
.captcha .img svg { height: 44px; width: auto; }
.captcha input { direction: ltr; text-align: center; letter-spacing: 3px; }

/* پیام‌های کوتاه */
#toasts { position: fixed; inset-block-start: 16px; inset-inline: 0; display: grid; justify-items: center; gap: 8px; z-index: 1000; pointer-events: none; }
.toast { pointer-events: auto; background: var(--lapis); color: var(--mist); padding: 10px 16px; border-radius: 12px; border: 1px solid var(--lapis-line); box-shadow: 0 14px 40px rgb(8 14 30 / .35); max-width: min(92vw, 480px); display: flex; gap: 10px; align-items: center; animation: toast-in .25s ease-out; }
.toast.warn { background: #4A3A12; border-color: #6B5520; }
.toast.err { background: #5A2318; border-color: #7A3526; }
.toast button { background: none; border: 0; color: var(--gold); cursor: pointer; font-weight: 700; padding: 0 4px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* پنجره‌ها */
.modal-back { position: fixed; inset: 0; background: rgb(8 14 30 / .6); display: grid; place-items: center; z-index: 900; padding: 16px; animation: fade .15s; }
.modal { background: var(--paper); color: var(--ink); border-radius: var(--radius-l); width: min(540px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; box-shadow: 0 30px 80px rgb(8 14 30 / .4); border-top: 4px solid var(--gold); }
.modal h2 { margin: 0 0 14px; font-size: 20px; font-family: var(--display); font-weight: 600; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-start; margin-top: 18px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; cursor: pointer; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.switch input:checked { background: var(--firuzeh); }
.switch input:checked::after { inset-inline-start: 21px; }

/* نوار کاشی: حاشیه تزئینی باریک با نقش ستاره */
.kashi-band { height: 10px; background: var(--lapis) var(--girih-gold) center / 10px 10px repeat-x; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ───────── نقش‌مایه‌های هخامنشی ───────── */
/* کنگره پلکانی تخت‌جمشید */
.kongreh-band { height: 18px; background: var(--lapis) url(/img/kongreh.svg) center bottom / 32px 18px repeat-x; }
/* نوار گل نیلوفر دوازده‌پر آپادانا */
.rosette-frieze { height: 40px; background: var(--lapis-night) url(/img/rosette-frieze.svg) center / 48px 40px repeat-x; }

/* پانویس پاسارگاد */
.pasargad { background: var(--lapis-night); color: var(--mist-2); margin-top: 0; display: flow-root; }
.pasargad .kongreh-band { background-color: transparent; background-image: url(/img/kongreh-night.svg); height: 18px; margin-top: -18px; position: relative; }
.pasargad .foot-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: flex-end; gap: clamp(20px, 4vw, 48px); padding: 34px clamp(16px, 5vw, 64px) 26px; }
.pasargad .cyrus { width: clamp(120px, 14vw, 180px); height: auto; aspect-ratio: 3 / 2; color: var(--gold); flex: none; }
.pasargad .foot-text { display: grid; gap: 4px; font-size: 14px; }
.pasargad .foot-text p { margin: 0; }
.pasargad .foot-brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.pasargad .foot-brand .brand { color: var(--gold); font-size: 26px; }
.pasargad .foot-copy { color: var(--mist); }
.pasargad .ver { font-size: 12px; color: var(--gold-soft); border: 1px solid var(--lapis-2); border-radius: 99px; padding: 0 8px; margin-inline-start: 6px; }
@media (max-width: 560px) { .pasargad .foot-inner { flex-direction: column; align-items: flex-start; } }

/* کارت «ورود شما» — لوح سنگی با تاج کنگره */
.visit-card { position: relative; background: var(--lapis) var(--girih-dark) center / 72px; color: var(--mist); border-radius: 4px 4px 16px 16px; padding: 14px clamp(14px, 2.4vw, 24px); box-shadow: 0 20px 40px -26px rgb(18 32 61 / .7); }
.visit-crest { position: absolute; inset: -12px 0 auto; height: 12px; background: url(/img/kongreh.svg) center bottom / 22px 12px repeat-x; }
.visit-row { display: flex; align-items: center; gap: 10px clamp(14px, 2.4vw, 28px); flex-wrap: wrap; }
.visit-ip { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--lapis-night); border: 1px solid var(--lapis-line); border-radius: 12px; flex: none; }
.visit-lbl { display: inline-flex; align-items: center; gap: 6px; color: var(--mist-2); font-size: 12.5px; }
.visit-lock { width: 8px; height: 8px; border-radius: 50%; background: #E06A50; box-shadow: 0 0 0 3px rgb(224 106 80 / .2); }
.visit-lock.on { background: #45BDB5; box-shadow: 0 0 0 3px rgb(69 189 181 / .2); }
.visit-ip b { font-size: clamp(18px, 2vw, 22px); color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.visit-ip .flag { border-radius: 3px; box-shadow: 0 0 0 1px rgb(255 255 255 / .2); width: 24px; height: 18px; }
.visit-facts { display: flex; flex-wrap: wrap; gap: 6px clamp(14px, 2.2vw, 26px); margin: 0; flex: 1; min-width: 0; }
.visit-facts div { min-width: 0; }
.visit-facts dt, .visit-grid dt { font-size: 11.5px; color: var(--mist-2); }
.visit-facts dd { margin: 1px 0 0; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26ch; }
.visit-facts small, .visit-grid small { color: var(--mist-2); font-size: 11.5px; margin-inline-start: 4px; }
.visit-more { margin-top: 10px; border-top: 1px solid var(--lapis-line); padding-top: 8px; }
.visit-more summary { cursor: pointer; font-size: 13px; color: var(--mist-2); width: max-content; }
.visit-more summary:hover { color: var(--gold); }
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 22px; margin: 10px 0 0; }
.visit-grid dd { margin: 1px 0 0; font-size: 14px; color: #fff; }
@media (max-width: 560px) {
  .visit-ip { width: 100%; justify-content: space-between; }
  .visit-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .visit-facts dd { max-width: none; white-space: normal; font-size: 13.5px; }
}
.visit-src { margin: 10px 0 0; font-size: 11px; color: var(--mist-2); opacity: .7; }
.visit-src a { color: inherit; }
.ip-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; font-variant-numeric: tabular-nums; }
.ip-chip img { width: 20px; height: 15px; border-radius: 2px; }
.ip-chip:hover { border-color: var(--gold); }

/* ───────── حالت اپ (PWA) ───────── */
html { -webkit-tap-highlight-color: transparent; }
html.standalone body { overscroll-behavior-y: none; }
html.standalone button, html.standalone .btn, html.standalone .ctl, html.standalone nav { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.standalone #toasts { inset-block-start: max(16px, env(safe-area-inset-top)); }
.install-sheet { display: grid; justify-items: center; text-align: center; gap: 8px; }
.install-sheet h2 { margin: 6px 0 0; }
.install-icon { width: 64px; height: 64px; color: var(--gold); padding: 10px; background: var(--lapis); border-radius: 18px; }
.install-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; width: 100%; text-align: start; counter-reset: s; }
.install-steps li { display: flex; gap: 12px; align-items: center; background: var(--gach); border-radius: 12px; padding: 10px 12px; counter-increment: s; }
.install-steps li::before { content: counter(s, persian); font-weight: 700; color: var(--firuzeh-deep); width: 18px; flex: none; }
.install-steps .ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: var(--paper); border-radius: 10px; color: #2563A8; }
.install-steps .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.install-banner { position: fixed; z-index: 950; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--lapis); color: var(--mist); border-radius: 18px; border-top: 3px solid var(--gold); box-shadow: 0 18px 50px rgb(8 14 30 / .45); animation: rise .35s ease-out; max-width: 520px; margin-inline: auto; }
.install-banner img { border-radius: 12px; flex: none; }
.install-banner div { display: grid; flex: 1; line-height: 1.5; }
.install-banner b { color: #fff; }
.install-banner span { font-size: 12.5px; color: var(--mist-2); }
.install-banner .x { background: none; border: 0; color: var(--mist-2); font-size: 16px; cursor: pointer; padding: 6px; }
@keyframes rise { from { transform: translateY(120%); } }
/* لوگوی میت‌بان: نشان + نوشته */
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup .lk-word { height: 46px; width: auto; flex: none; }
.lockup [hidden] { display: none !important; }
.pasargad .foot-logo { height: 48px; width: auto; align-self: center; }
.install-icon { border-radius: 16px; box-shadow: 0 6px 18px rgba(18, 32, 61, .18); }
.lockup .lk-word.notice-logo, .lockup .lk-word.gate-logo { height: auto; }
/* نمودارهای گزارش */
.hc { width: 100%; height: auto; display: block; overflow: visible; }
.hc text { font: 10.5px var(--font, Vazirmatn, sans-serif); fill: var(--ink-2); }
.hc text.t2 { fill: var(--brick); }
.hc .gl { stroke: var(--line); stroke-dasharray: 2 3; }
.hc-legend { display: flex; gap: 16px; justify-content: center; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.hc-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.hc-legend i.ln { height: 3px; vertical-align: 3px; }
.hc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.hc-list li { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto 38px; gap: 8px; align-items: center; font-size: 13.5px; }
.hc-list .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-list i { height: 9px; border-radius: 5px; background: var(--gach-2); position: relative; overflow: hidden; }
.hc-list i::after { content: ''; position: absolute; inset: 0 auto 0 0; inset-inline-start: 0; width: var(--w); background: var(--c); border-radius: 5px; }
.hc-list b { font-variant-numeric: tabular-nums; font-weight: 600; }
.hc-list small { color: var(--ink-2); font-size: 11.5px; }
.hc-donut { display: flex; align-items: center; gap: 14px; }
.hc-donut svg { width: 128px; height: 128px; flex: none; }
.hc-donut text.big { font: 700 18px var(--font, Vazirmatn); fill: var(--ink); }
.hc-donut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; flex: 1; }
.hc-donut li { display: flex; align-items: center; gap: 7px; }
.hc-donut li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.hc-donut li b { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.hc-meter { display: grid; gap: 6px; }
.hc-meter .t { display: flex; justify-content: space-between; font-size: 13.5px; }
.hc-meter .t small { color: var(--ink-2); font-weight: 400; }
.hc-meter i { height: 8px; border-radius: 5px; background: var(--gach-2); overflow: hidden; display: block; }
.hc-meter i span { display: block; height: 100%; background: var(--firuzeh); border-radius: 5px; }
.hc-meter.warn i span { background: var(--gold); }
.hc-meter.full i span { background: var(--brick); }

/* ───────── میت‌بان: لوگوی هر پوسته، پوسته تیره، نشان زنده ───────── */
.lk-d { display: none !important; }
html[data-theme="dark"] .lk-l, .on-dark .lk-l { display: none !important; }
html[data-theme="dark"] .lk-d, .on-dark .lk-d { display: block !important; }
/* پوسته تیره: گچ و کاغذ جایشان را به لاجورد شب می‌دهند؛ نقش‌ها و رنگ‌های کاشی همان می‌مانند */
html[data-theme="dark"] {
  color-scheme: dark;
  --gach: #0B1430;
  --gach-2: #18284D;
  --paper: #111D3D;
  --ink: #E6ECF7;
  --ink-2: #A3B2CF;
  --line: #2A3D6A;
  --firuzeh-deep: #45BDB5;
}
html[data-theme="dark"] .error-text { color: #F08A7C; }
html[data-theme="dark"] .ip-chip { background: var(--paper); }
/* دکمه پوسته روشن و تیره */
.theme-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; padding: 0; flex: none; }
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn:hover { border-color: var(--gold); }
.theme-btn .moon { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .moon { display: block; }
.on-dark .theme-btn { background: rgb(255 255 255 / .06); border-color: var(--lapis-line); color: var(--mist); }
/* نشان «زنده» */
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #E8663A; flex: none; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #E8663A; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
/* جزئیات حرفه‌ای‌تر: سایه‌ها و حرکت نرم دکمه‌ها و پنجره‌ها */
.btn { transition: background .15s, transform .1s, box-shadow .2s; }
.btn.primary, .btn.saffron { box-shadow: 0 8px 20px -12px rgb(42 157 151 / .9); }
.btn.primary:hover, .btn.saffron:hover { box-shadow: 0 10px 26px -10px rgb(42 157 151 / .9); }
.modal-back { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal { animation: pop .22s cubic-bezier(.2,.9,.3,1.15); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.captcha-ext { display: block; min-height: 0; }
.captcha-ext > .input { display: none; }
.captcha-ext .cap-widget { min-height: 30px; }
/* ورود دومرحله‌ای */
.tfa-qr { width: 200px; margin: 6px auto; background: #fff; border-radius: 12px; padding: 6px; }
.tfa-qr svg { width: 100%; height: auto; }
.tfa-methods { display: flex; gap: 4px; flex-wrap: wrap; background: var(--gach); padding: 4px; border-radius: 12px; margin-bottom: 8px; }
.tfa-methods button { flex: 1; border: 0; background: transparent; padding: 7px 10px; border-radius: 9px; cursor: pointer; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.tfa-methods button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.tfa-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding: 14px 34px; background: var(--gach); border-radius: 12px; font-size: 15px; }
.tfa-codes code { font-weight: 700; letter-spacing: 1px; }
.otp-input { direction: ltr; text-align: center; font-size: 22px !important; letter-spacing: 6px; font-weight: 700; }
/* نقشه محل برگزارکنندگان */
.geo-map .geo-canvas { height: 380px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); direction: ltr; }
.geo-map .leaflet-popup-content { direction: rtl; text-align: right; font-family: var(--font); }
.host-loc { display: grid; gap: 2px; }
.host-loc .mono { font-size: 12.5px; }
.host-loc small { color: var(--ink-2); }
.loc-btn { border: 0; background: none; color: var(--firuzeh-deep); cursor: pointer; padding: 0; font: inherit; font-size: 12.5px; text-decoration: underline; }
/* تقویم شمسی */
.jd-field { display: flex; align-items: center; gap: 8px; text-align: start; cursor: pointer; width: 100%; font: inherit; color: var(--ink); }
.jd-field svg { width: 18px; height: 18px; flex: none; color: var(--firuzeh-deep); }
.jd-field.empty span { color: var(--ink-2); }
.jd-field:disabled { opacity: .6; cursor: not-allowed; }
.jd-pop { position: fixed; z-index: 1200; width: 300px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 24px 60px -20px rgb(10 20 50 / .45); direction: rtl; animation: pop .18s ease-out; }
.jd-pop.sheet { inset: auto 0 0 0; width: auto; border-radius: 20px 20px 0 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.jd-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.jd-head > button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--gach); color: var(--ink); font-size: 20px; cursor: pointer; line-height: 1; }
.jd-title { flex: 1; display: flex; gap: 6px; justify-content: center; }
.jd-title select, .jd-time select { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 9px; padding: 5px 8px; font: inherit; font-weight: 600; }
.jd-week, .jd-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.jd-week span { font-size: 12px; color: var(--ink-2); padding: 4px 0; }
.jd-days button { aspect-ratio: 1; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.jd-days button:hover:not(:disabled) { background: var(--gach); }
.jd-days button.fri { color: var(--brick); }
.jd-days button.today { box-shadow: inset 0 0 0 1.5px var(--firuzeh); }
.jd-days button.sel { background: var(--firuzeh); color: #fff; font-weight: 700; }
.jd-days button:disabled { opacity: .3; cursor: default; }
.jd-time { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); direction: ltr; }
.jd-time span { direction: rtl; color: var(--ink-2); font-size: 13px; margin-inline-end: 6px; order: 9; }
.jd-foot { display: flex; gap: 6px; margin-top: 12px; }
.jd-foot .btn { flex: 1; }
