/* ==========================================================================
   استایل‌های اختصاصی صفحات
   ========================================================================== */

/* ---------- صفحه اصلی ---------- */
.mc__wd, .mc__grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 3px; }
.mc__wd span { font-size: 12px; color: var(--mute); font-weight: 700; }
.mc__wd span:last-child { color: var(--err); }
.mc__d { height: 34px; display: grid; place-items: center; border-radius: 9px; font-size: 13.5px; font-weight: 600; position: relative; cursor: default; }
.mc__d.is-off { color: var(--err); }
.mc__d.is-today { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px var(--brand); }
.mc__d.has-ev::after { content: ''; position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.mc__list { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); }
.mc__list li { display: flex; gap: 10px; font-size: 13px; padding: 5px 0; align-items: baseline; }
.mc__list b { color: var(--accent); white-space: nowrap; min-width: 62px; }
.pulse__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; text-align: center; }
.pulse__nums div { background: var(--bg); border-radius: 12px; padding: 8px 4px; }
.pulse__nums b { display: block; font-size: 20px; font-weight: 900; line-height: 1.4; }
.pulse__nums span { font-size: 11.5px; color: var(--mute); }
.pulse__row { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.pulse__row b { font-size: 12px; text-align: left; }
.com-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.com-mini { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: .25s; border-top: 3px solid var(--c); }
.com-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.com-mini__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.com-mini b { font-size: 14.5px; line-height: 1.6; min-height: 46px; }
.com-mini__nums { display: flex; gap: 12px; font-size: 12px; color: var(--mute); }
.com-mini__nums em { font-style: normal; font-weight: 900; font-size: 17px; color: var(--ink); margin-left: 4px; }
.com-mini small { font-size: 11.5px; color: var(--mute); }
.finder { margin-top: 34px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr 1fr; overflow: hidden; }
.finder__txt { padding: 36px; }
.finder__txt h2 { font-family: var(--f-head); font-weight: 400; font-size: 28px; margin: 6px 0; }
.finder__txt p { color: var(--ink-2); margin: 0 0 18px; }
.finder__form { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 16px; padding: 6px 14px 6px 6px; }
.finder__form:focus-within { border-color: var(--brand); }
.finder__form input { flex: 1; border: 0; background: none; outline: none; height: 44px; }
.finder__form svg { color: var(--mute); }
.finder__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.finder__art { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--card)), color-mix(in srgb, var(--accent) 10%, var(--card))); color: var(--brand); display: grid; place-items: center; padding: 20px; }
.finder__art svg { width: 100%; max-width: 360px; }
.route { animation: dash 2.5s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } }

/* ---------- خبر ---------- */
.article { padding: 30px; }
.article__kicker { color: var(--accent); font-weight: 700; font-size: 15px; }
.article h1 { font-family: var(--f-head); font-weight: 400; font-size: clamp(24px, 3vw, 34px); line-height: 1.6; margin: 6px 0 12px; text-wrap: balance; }
.article__meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--mute); font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article__meta span { display: inline-flex; gap: 6px; align-items: center; }
.article__meta svg { width: 15px; height: 15px; }
.article__lead { background: var(--bg); border-right: 4px solid var(--accent); padding: 16px 20px; border-radius: 12px; margin: 20px 0; font-weight: 600; line-height: 2.1; }
.article__img { border-radius: 16px; overflow: hidden; margin: 20px 0; aspect-ratio: 16/9; background: var(--bg-2); }
.article__img img { width: 100%; height: 100%; object-fit: cover; }
.article__body { font-family: var(--f-read); font-size: 16.5px; line-height: 2.25; color: var(--ink); }
.article__body p { margin: 0 0 18px; text-align: justify; }
.article__tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); align-items: center; }
.article__tools .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-inline-end: auto; }
.font-ctrl { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.font-ctrl button { border: 0; background: none; width: 36px; height: 34px; font-weight: 800; }
.font-ctrl button:hover { background: var(--bg); }
.read-progress { position: fixed; top: 0; right: 0; height: 3px; background: var(--accent); z-index: 100; width: 0; transition: width .1s; }

/* نظرات هوشمند */
.cm-form { position: relative; }
.cm-form .textarea { min-height: 110px; }
.cm-live { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; font-size: 12.5px; min-height: 28px; }
.cm-summary { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; padding: 18px; border-radius: 16px; background: var(--bg); margin-bottom: 18px; }
.donut { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; position: relative; margin: auto; }
.donut::after { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: var(--bg); }
.donut b { position: relative; z-index: 1; text-align: center; font-size: 22px; line-height: 1.3; font-weight: 900; }
.donut b small { display: block; font-size: 11px; color: var(--mute); font-weight: 600; }
.cm-legend { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.cm-legend span { display: flex; align-items: center; gap: 8px; }
.cm-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.cm-insight { margin-top: 10px; font-size: 13px; color: var(--ink-2); line-height: 2; }
.cm-sort { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.cm { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); animation: fade .4s; }
.cm__av { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; }
.cm__b { flex: 1; min-width: 0; }
.cm__h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.cm__h b { font-size: 14px; }
.cm__h small { color: var(--mute); }
.cm__t { margin: 6px 0; font-size: 14.5px; line-height: 2; }
.cm__a { display: flex; gap: 14px; font-size: 12.5px; color: var(--mute); }
.cm__a button { border: 0; background: none; display: inline-flex; gap: 5px; align-items: center; color: inherit; padding: 0; font-size: 12.5px; }
.cm__a button:hover, .cm__a button.on { color: var(--brand); }
.cm__a svg { width: 15px; height: 15px; }
.cm__reply { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 6%, var(--card)); border-right: 3px solid var(--brand); font-size: 14px; }
.cm__reply b { color: var(--brand); font-size: 13px; display: flex; gap: 6px; align-items: center; }
.cm.is-pending { opacity: .75; }
.cm--top { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 6%, transparent)); border-radius: 12px; padding-inline: 10px; }

/* ---------- شکایات ---------- */
.cp-tabs { display: flex; gap: 6px; padding: 8px; margin-bottom: 20px; overflow-x: auto; }
.cp-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border: 0; border-radius: 12px; background: none; font-weight: 700; color: var(--ink-2); white-space: nowrap; padding: 0 16px; transition: .2s; }
.cp-tab:hover { background: var(--bg); }
.cp-tab.is-on { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px var(--brand); }
.cp-tab.is-on .badge { background: rgba(255, 255, 255, .2); color: #fff; }
.cp-pane { display: none; animation: fade .35s; } .cp-pane.is-on { display: grid; } #pane-track.is-on, #pane-mine.is-on { display: block; }
.combo { position: relative; }
.combo__list { position: absolute; top: calc(100% + 4px); right: 0; left: 0; z-index: 30; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-3); max-height: 320px; overflow: auto; padding: 6px; }
.combo__list button { display: block; width: 100%; text-align: right; border: 0; background: none; padding: 9px 12px; border-radius: 10px; }
.combo__list button:hover { background: var(--bg); }
.combo__list b { display: block; font-size: 14px; } .combo__list small { color: var(--mute); font-size: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; margin: 4px 0 14px; }
.check input { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--brand); }
.review { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review > div { background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.review > div.full { grid-column: 1 / -1; }
.review span { display: block; font-size: 12px; color: var(--mute); }
.review b { font-size: 14px; line-height: 1.9; }
.rights { margin: 10px 0 0; padding-right: 18px; font-size: 13.5px; color: var(--ink-2); line-height: 2.1; }
.done { text-align: center; }
.done__ic { width: 76px; height: 76px; margin: 4px auto 14px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px var(--ok-soft); animation: pop .5s; }
.done__ic svg { width: 38px; height: 38px; }
@keyframes pop { 0% { transform: scale(.3); } 70% { transform: scale(1.1); } }
.done h3 { font-size: 20px; }
.done__code { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0; padding: 14px; border: 2px dashed var(--brand); border-radius: 16px; background: color-mix(in srgb, var(--brand) 5%, transparent); }
.done__code span { font-size: 13px; color: var(--mute); } .done__code b { font-size: 26px; font-weight: 900; color: var(--brand); letter-spacing: 1px; }
.track { max-width: 760px; margin: 26px auto 0; }
.track__head { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.track__head > div { background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.track__head span { display: block; font-size: 12px; } .track__head b { font-size: 15px; }
.rate { text-align: center; padding: 18px; background: var(--bg); border-radius: 16px; }
.stars { display: flex; justify-content: center; gap: 4px; direction: ltr; margin-top: 6px; }
.stars button { border: 0; background: none; font-size: 32px; color: var(--line-2); transition: .15s; }
.stars button:hover, .stars button.on { color: #f5b301; transform: scale(1.15); }
@media (max-width: 700px) { .track__head, .review { grid-template-columns: 1fr 1fr; } }

/* ---------- اتحادیه‌ها ---------- */
.un-bar { display: grid; grid-template-columns: 1fr 220px auto; gap: 10px; padding: 10px; }
.un-search { position: relative; display: flex; align-items: center; }
.un-search > svg { position: absolute; right: 14px; color: var(--mute); }
.un-search input { width: 100%; height: 50px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); padding: 0 44px; outline: none; font-size: 15px; }
.un-search input:focus { border-color: var(--brand); background: var(--card); }
.un-search .icon-btn { position: absolute; left: 6px; border: 0; background: none; }
.un-bar .select { height: 50px; }
.un-bar .btn { height: 50px; }
.select--sm { height: 36px; width: auto; font-size: 13px; padding: 0 10px; }
.un-cats { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0; scrollbar-width: thin; }
.un-cats .chip { flex: none; }
.un-cats .chip svg { width: 15px; height: 15px; color: var(--cc); }
.un-cats .chip.is-on svg { color: #fff; }
.un-layout { display: grid; grid-template-columns: 440px 1fr; gap: 16px; height: calc(100vh - 190px); min-height: 560px; }
.un-list-wrap { display: flex; flex-direction: column; overflow: hidden; }
.un-list-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.un-list { overflow-y: auto; flex: 1; padding: 8px; scrollbar-width: thin; }
.un-item { display: flex; gap: 12px; padding: 12px; border-radius: 14px; cursor: pointer; transition: .2s; border: 1px solid transparent; }
.un-item:hover { background: var(--bg); }
.un-item.is-sel { background: color-mix(in srgb, var(--c) 6%, var(--card)); border-color: color-mix(in srgb, var(--c) 35%, transparent); cursor: default; }
.un-item__ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.un-item__b { flex: 1; min-width: 0; }
.un-item h3 { font-size: 14.5px; line-height: 1.8; font-weight: 800; }
.un-item mark { background: color-mix(in srgb, var(--accent) 25%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
.un-item__meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--mute); }
.un-item__meta span { display: inline-flex; gap: 3px; align-items: center; }
.un-item__meta svg { width: 13px; height: 13px; }
.un-item__meta .dist { color: var(--brand); font-weight: 700; }
.un-item p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.un-detail { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; animation: fade .3s; }
.un-phones { display: flex; gap: 6px; flex-wrap: wrap; }
.un-phones .chip { height: 32px; font-size: 13px; }
.eta { display: flex; gap: 8px; flex-wrap: wrap; }
.eta span { display: inline-flex; gap: 5px; align-items: center; font-size: 12.5px; font-weight: 700; background: var(--bg); padding: 4px 10px; border-radius: 8px; }
.eta svg { width: 15px; height: 15px; color: var(--brand); }
.nav-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.nav-app { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; background: var(--card); transition: .2s; }
.nav-app:hover { border-color: var(--brand); transform: translateY(-2px); }
.nav-app b { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 14px; }
.un-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.un-empty { text-align: center; padding: 50px 20px; color: var(--mute); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.un-empty svg { width: 40px; height: 40px; }
.un-map { position: relative; overflow: hidden; }
#map { position: absolute; inset: 0; z-index: 1; background: var(--bg-2); }
#map.picking { cursor: crosshair; }
.un-map__note { position: absolute; z-index: 5; top: 12px; right: 12px; left: 12px; max-width: 520px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(6px); border-radius: 12px; padding: 8px 12px; font-size: 12.5px; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow-1); color: var(--ink-2); }
.un-map__note svg { width: 16px; height: 16px; color: var(--info); }
.route-card { position: absolute; z-index: 6; bottom: 16px; right: 16px; max-width: 360px; background: var(--card); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-3); display: flex; flex-direction: column; gap: 8px; }
.route-card .modal__x { width: 28px; height: 28px; top: 10px; left: 10px; }
.mpin { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--c); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); transition: .2s; }
.mpin.on { transform: rotate(-45deg) scale(1.35); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent), 0 4px 10px rgba(0, 0, 0, .3); }
.mepin { display: block; width: 22px; height: 22px; border-radius: 50%; background: #1a73e8; border: 4px solid #fff; box-shadow: 0 0 0 8px rgba(26, 115, 232, .25); animation: pulse 2s infinite; }
.leaflet-container { font-family: var(--f-ui); }
.leaflet-tooltip { font-family: var(--f-ui); font-size: 12.5px; font-weight: 700; border-radius: 8px; }
:root[data-theme="dark"] .leaflet-tile { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
@media (max-width: 1000px) { .un-layout { grid-template-columns: 1fr; height: auto; } .un-list { max-height: 60vh; } .un-map { height: 460px; } .un-bar { grid-template-columns: 1fr 1fr; } .un-search { grid-column: 1 / -1; } }

/* ---------- کمیسیون‌ها ---------- */
.com-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.com-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; transition: .25s; scroll-margin-top: 160px; }
.com-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.com-card:hover { box-shadow: var(--shadow-2); }
.com-card.flash { animation: flash 1.6s 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 35%, transparent); } }
.com-card__top { display: flex; gap: 12px; align-items: flex-start; }
.com-card__ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
.com-card__ic svg { width: 22px; height: 22px; }
.com-card h3 { font-size: 15.5px; } .com-card p { margin: 2px 0 0; font-size: 12.5px; color: var(--mute); line-height: 1.8; }
.com-card__top > div:nth-child(2) { flex: 1; }
.grade { flex: none; width: 52px; text-align: center; border-radius: 12px; padding: 4px 0; line-height: 1.3; }
.grade b { display: block; font-size: 20px; font-weight: 900; } .grade small { font-size: 11px; font-weight: 700; }
.grade--ok { background: var(--ok-soft); color: var(--ok); } .grade--warn { background: var(--warn-soft); color: var(--warn); } .grade--err { background: var(--err-soft); color: var(--err); }
.com-card__nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.com-card__nums div { background: var(--bg); border-radius: 10px; padding: 6px 2px; }
.com-card__nums b { display: block; font-size: 18px; font-weight: 900; line-height: 1.4; } .com-card__nums span { font-size: 11px; color: var(--mute); }
.com-card__bar { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; color: var(--mute); }
.com-card__bar b { color: var(--ink); }
.com-card__foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); padding-top: 12px; border-top: 1px dashed var(--line); }
.com-card__foot span { display: inline-flex; gap: 5px; align-items: center; } .com-card__foot svg { width: 15px; height: 15px; }
.com-card__foot .btn { margin-inline-start: auto; }
.res-filters { display: grid; grid-template-columns: 1fr 200px 160px; gap: 8px; margin-bottom: 14px; }
.res-filters .un-search input { height: 46px; }
.res-filters .select { height: 46px; }
.res-row { cursor: pointer; }
.res-open td { background: var(--bg); }
.res-detail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; animation: fade .3s; }
.res-detail span { display: block; font-size: 12px; color: var(--mute); } .res-detail b { font-size: 13.5px; }
.res-detail .full { grid-column: 1 / -1; margin: 0; font-size: 13.5px; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mc__d .dots { position: absolute; bottom: 3px; display: flex; gap: 2px; }
.mc__d .dots em { width: 5px; height: 5px; border-radius: 50%; }
.mc__d.is-today .dots em { box-shadow: 0 0 0 1px #fff; }
.ask { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: center; }
@media (max-width: 1000px) { .com-grid { grid-template-columns: 1fr 1fr; } .res-filters { grid-template-columns: 1fr; } .res-detail { grid-template-columns: 1fr 1fr; } .ask { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .com-grid { grid-template-columns: 1fr; } }

/* ---------- نمایشگاه ---------- */
.expo-hero { background: linear-gradient(120deg, var(--brand-deep), color-mix(in srgb, var(--ec, var(--accent)) 75%, var(--brand-deep))); padding-bottom: 80px; transition: background .5s; }
.expo-switch { display: inline-flex; gap: 6px; background: rgba(255, 255, 255, .1); padding: 5px; border-radius: 14px; margin-bottom: 14px; backdrop-filter: blur(6px); flex-wrap: wrap; }
.expo-switch button { border: 0; background: none; color: #fff; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 10px; font-weight: 700; }
.expo-switch button small { font-size: 11px; opacity: .75; font-weight: 500; }
.expo-switch button.is-on { background: #fff; color: var(--brand-ink); }
.expo-facts { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.expo-facts div { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .15); border-radius: 14px; padding: 10px 16px; display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; }
.expo-facts svg { grid-row: span 2; width: 26px; height: 26px; opacity: .85; }
.expo-facts b { font-size: 17px; } .expo-facts span { font-size: 12px; opacity: .8; }
.hall-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 4px; }
.hall-tabs button { flex: none; border: 1.5px solid var(--line-2); background: var(--card); border-radius: 12px; padding: 6px 14px; font-weight: 700; font-size: 13px; display: inline-flex; flex-direction: column; align-items: center; line-height: 1.6; }
.hall-tabs button small { font-size: 11px; color: var(--mute); font-weight: 500; }
.hall-tabs button svg { width: 14px; height: 14px; color: var(--accent); }
.hall-tabs button.is-on { border-color: var(--brand); background: var(--brand); color: #fff; } .hall-tabs button.is-on small { color: rgba(255, 255, 255, .8); }
.hall-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--mute); flex-wrap: wrap; }
.legend span { display: inline-flex; gap: 5px; align-items: center; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.b-free { background: var(--card); border: 1.5px solid var(--line-2); } .b-prem { background: var(--accent-soft); border: 1.5px solid var(--accent); } .b-taken { background: var(--line); } .b-sel { background: var(--brand); }
.hall { background: var(--bg); border-radius: 16px; padding: 16px; border: 1px solid var(--line); }
.hall__name { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; margin-bottom: 12px; flex-wrap: wrap; gap: 6px; }
.hall__name span { font-weight: 500; color: var(--mute); font-size: 12.5px; }
.hall__grid { display: grid; gap: 5px; }
.booth { aspect-ratio: 1; border-radius: 8px; border: 1.5px solid var(--line-2); background: var(--card); font-size: 11px; font-weight: 700; color: var(--ink-2); transition: .15s; padding: 0; min-width: 0; }
.booth:hover:not(:disabled) { border-color: var(--brand); transform: scale(1.08); z-index: 1; box-shadow: var(--shadow-2); }
.booth.is-prem { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.booth.is-taken { background: var(--line); border-color: transparent; color: var(--mute); cursor: not-allowed; opacity: .6; }
.booth.is-sel { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); transform: scale(1.08); }
.hall__grid.heat .booth:not(.is-taken):not(.is-sel) { background: color-mix(in srgb, #ff3d00 calc(var(--t) * 1%), #ffd54f); border-color: transparent; color: #4a1500; }
.hall__gate { margin: 12px auto 0; width: fit-content; display: flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 4px 14px; border-radius: 8px; }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.extra input { position: absolute; opacity: 0; }
.extra span { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line-2); cursor: pointer; transition: .2s; height: 100%; }
.extra span svg { color: var(--brand); }
.extra b { font-size: 13.5px; } .extra small { color: var(--mute); font-size: 12px; }
.extra input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); box-shadow: inset 0 0 0 1px var(--brand); }
.extra input:focus-visible + span { outline: 3px solid var(--accent); }
.sum-booth { background: var(--bg); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.sum-booth b { display: block; font-size: 16px; } .sum-booth span { font-size: 12.5px; color: var(--mute); }
.sum-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sum-row.disc b { color: var(--ok); }
.sum-total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--brand); color: #fff; }
.sum-total b { font-size: 20px; font-weight: 900; }
.crowd { display: flex; gap: 4px; align-items: flex-end; height: 120px; }
.crowd div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.crowd i { width: 100%; border-radius: 5px 5px 2px 2px; background: var(--c); min-height: 4px; }
.crowd span { font-size: 10px; color: var(--mute); }
.inv { border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.inv__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--brand); }
.inv__head b { display: block; font-size: 16px; } .inv__head span { font-size: 12.5px; color: var(--mute); }
.inv__head img { height: 46px; }
@media (max-width: 700px) { .extras { grid-template-columns: 1fr 1fr; } .booth { font-size: 9px; border-radius: 5px; } .hall__grid { gap: 3px; } .hall { padding: 10px; } }

/* ---------- داشبورد ---------- */
.dash { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; padding-top: 24px; align-items: start; }
.dash-nav { position: sticky; top: 140px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.dash-user { display: flex; gap: 10px; align-items: center; padding: 6px; }
.dash-user__av { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; display: grid; place-items: center; flex: none; }
.dash-user b { display: block; font-size: 14px; }
.dash-user .select { margin-top: 4px; width: 100%; }
#dashTabs { display: flex; flex-direction: column; gap: 2px; }
#dashTabs button { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 10px 12px; border-radius: 11px; font-weight: 600; font-size: 14px; color: var(--ink-2); text-align: right; transition: .2s; }
#dashTabs button .badge { margin-inline-start: auto; }
#dashTabs button:hover { background: var(--bg); }
#dashTabs button.is-on { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-weight: 800; }
#dashTabs button[hidden] { display: none; }
.dash-period { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line); }
.dash-view { display: none; flex-direction: column; gap: 18px; animation: fade .35s; }
.dash-view.is-on { display: flex; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.dash-head h1 { font-family: var(--f-head); font-weight: 400; font-size: 26px; }
.dash-head__tools { display: flex; gap: 8px; align-items: center; }
.live svg { animation: pulseo 1.4s infinite; }
@keyframes pulseo { 50% { opacity: .3; } }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: 1 / -1; }
.chart-box { height: 300px; position: relative; }
.insights { padding: 16px 18px; }
.ins-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.ins-head small { margin-inline-start: auto; font-size: 12px; }
.ins-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ins { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.95; align-items: flex-start; }
.ins svg { flex: none; margin-top: 4px; }
.ins--err { background: var(--err-soft); } .ins--err svg { color: var(--err); }
.ins--warn { background: var(--warn-soft); } .ins--warn svg { color: var(--warn); }
.ins--info { background: var(--info-soft); } .ins--info svg { color: var(--info); }
.ins--ok { background: var(--ok-soft); } .ins--ok svg { color: var(--ok); }
.risk { display: grid; grid-template-columns: 1fr 34px; gap: 8px; align-items: center; }
.risk b { font-size: 13px; text-align: left; }
.heat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.heat-grid div { border-radius: 10px; padding: 8px 10px; background: color-mix(in srgb, var(--err) calc(var(--h) * 85%), var(--bg)); color: var(--ink); display: flex; flex-direction: column; }
.heat-grid div b { font-size: 16px; font-weight: 900; } .heat-grid div span { font-size: 11px; line-height: 1.5; }
.q-item { display: flex; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); transition: .3s; }
.q-item.sent { opacity: .55; }
.q-rank { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 16px; color: #fff; background: var(--c); }
.q-b { flex: 1; min-width: 0; } .q-b b { font-size: 14px; display: block; line-height: 1.8; }
.q-why { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.q-act { display: flex; gap: 6px; align-items: center; flex: none; }
.insp { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.insp:last-child { border: 0; }
.insp__av { width: 38px; height: 38px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--brand); flex: none; }
.insp > div { flex: 1; } .insp b { font-size: 13.5px; display: block; } .insp small { font-size: 11.5px; color: var(--mute); display: block; margin-bottom: 4px; }
tr.is-new td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.warn-t { color: var(--warn); }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 24px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; right: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(-20px); }
.slider-t tr.off td { opacity: .5; }
.icon-btn.pinned { background: var(--accent); color: #fff; border-color: var(--accent); }
.input--sm { height: 36px; font-size: 13px; width: 120px; padding: 0 10px; }
.dp-wrap { position: relative; }
.mod-item { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mod-item p { margin: 4px 0 8px; font-size: 14px; }
.mod-act { display: flex; flex-direction: column; gap: 6px; flex: none; }
.checklist { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 16px; }
.ck { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg); border-radius: 12px; font-size: 14px; flex-wrap: wrap; }
.ck small { color: var(--mute); }
.ck .seg span { height: 34px; font-size: 13px; }
.ck .seg input[value="0"]:checked + span { border-color: var(--err); color: var(--err); background: var(--err-soft); }
.score-live { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.report { font-size: 15px; line-height: 2.1; }
.report__head { display: flex; gap: 16px; align-items: center; padding-bottom: 16px; border-bottom: 3px double var(--brand); margin-bottom: 18px; }
.report__head img { height: 60px; }
.report__head > div:nth-child(2) { flex: 1; } .report__head b { display: block; font-size: 17px; } .report__head span { font-size: 13px; color: var(--mute); }
.report__no { text-align: left; font-size: 12px; } .report__no span, .report__no b { display: block; }
.report h2 { font-size: 17px; margin-bottom: 4px; } .report h3 { font-size: 15.5px; margin: 20px 0 8px; color: var(--brand); }
.report__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.report__kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.report__kpis b { display: block; font-size: 24px; font-weight: 900; color: var(--brand); } .report__kpis span { font-size: 12.5px; color: var(--mute); }
.report__bars div { display: grid; grid-template-columns: 170px 1fr 40px; gap: 10px; align-items: center; font-size: 13.5px; }
.report__foot { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
@media (max-width: 1100px) { .dash { grid-template-columns: 1fr; } .dash-nav { position: static; } #dashTabs { flex-direction: row; overflow-x: auto; } #dashTabs button { white-space: nowrap; } .dash-grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } .ins-list { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .q-item { flex-wrap: wrap; } .report__kpis { grid-template-columns: 1fr 1fr; } .report__bars div { grid-template-columns: 110px 1fr 30px; } }

/* ---------- چاپ ---------- */
@media print {
  .topbar, .masthead, .ticker, .footer, .to-top, .dash-nav, .dash-head .btn, .article__tools, #comments, aside, .toasts { display: none !important; }
  body { background: #fff; color: #000; } .dash { display: block; } .card { box-shadow: none; border: 0; }
  .dash-view { display: none !important; } .dash-view.is-on { display: flex !important; }
}
