/* ناویار امین (سامانه GRC) - پوسته راست‌به‌چپ. همه فایل‌ها داخل بسته؛ بدون CDN. */
@font-face {
    font-family: "Vazirmatn";
    src: url("/vendor/vazirmatn/Vazirmatn-Variable-f6d31671339db80142ceaf6382570e79.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e3e8ef;
    --text: #1b2533;
    --muted: #6b778a;
    --primary: #0f7a83;
    --primary-dark: #0b5f66;
    --primary-soft: #e3f3f4;
    --nav: #10243a;
    --nav-2: #18324f;
    --nav-text: #c9d5e3;
    --red: #dc3b3b;
    --orange: #ef8a2c;
    --yellow: #e5b62a;
    --green: #2e9e5b;
    --blue: #2f6fdb;
    --purple: #7c4ddb;
    --teal: #13968f;
    --gray: #8a94a6;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 36, 58, .06), 0 1px 8px rgba(16, 36, 58, .04);
    color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 13.5px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: 0; }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
small, .muted { color: var(--muted); }
code, .ltr { direction: ltr; unicode-bidi: embed; font-family: Consolas, monospace; font-size: 12px; }

/* ---------- قاب اصلی ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 250px; flex: 0 0 250px; background: var(--nav); color: var(--nav-text);
    position: sticky; top: 0; height: 100vh; overflow-y: auto; padding-bottom: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #19a7b0, #2f6fdb); display: grid; place-items: center; font-weight: 800; }
/* نشان امین رای روی کاشی سفید، چون خطوط نشان تیره‌اند و روی سربرگ تیره دیده نمی‌شوند */
.brand-logo.mark { background: #fff; padding: 4px; }
.brand-logo.mark img { width: 100%; height: 100%; display: block; }
.login-logo { width: 240px; max-width: 75%; margin-bottom: 6px; }
.brand strong { font-size: 16px; display: block; }
.nav-ro { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: rgba(220,59,59,.2); color: #ffb4b4; margin-inline-start: 6px; white-space: nowrap; }
.brand small { color: #8fa3b8; font-size: 11px; }
.nav-group { padding: 4px 10px; }
.nav-group > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px; color: #dde6f0; font-weight: 600;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { background: var(--nav-2); }
.nav-group[open] > summary { color: #fff; }
.nav-group > summary .chev { margin-inline-start: auto; transition: transform .15s; opacity: .6; }
.nav-group[open] > summary .chev { transform: rotate(-90deg); }
.nav-group a {
    display: block; padding: 6px 42px 6px 12px; color: var(--nav-text); border-radius: 7px; font-size: 13px;
}
.nav-group a.nav-single { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: #dde6f0; font-weight: 600; font-size: 13.5px; }
.nav-group a:hover { background: var(--nav-2); text-decoration: none; color: #fff; }
.nav-group a.active { background: var(--primary); color: #fff; }
.icon { width: 18px; height: 18px; flex: 0 0 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    height: 60px; background: var(--surface); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 16px; padding: 0 24px; position: sticky; top: 0; z-index: 20;
}
.topbar .company-select { display: flex; align-items: center; gap: 8px; }
.topbar select { min-width: 240px; }
.topbar .spacer { flex: 1; }
.topbar .today { color: var(--muted); font-size: 12.5px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; font-weight: 800; }
.user-chip .who { line-height: 1.3; }
.user-chip .who small { display: block; font-size: 11px; }
.content { padding: 20px 24px 40px; }

.licence-banner { background: #fff4e5; border-bottom: 1px solid #f5d3a3; color: #8a4b00; padding: 8px 24px; font-size: 13px; }
.licence-banner.danger { background: #fdecec; border-color: #f3b9b9; color: #9b1c1c; }

/* ---------- سرصفحه ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.crumbs { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.crumbs a { color: var(--muted); }
.crumbs span + span::before { content: " / "; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- کارت و شاخص ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.card-body { padding: 16px; }
.card + .card, .card + .grid-2, .grid-2 + .card, .kpis + .card, .card + .grid-3, .grid-3 + .card { margin-top: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.kpi .kpi-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.kpi .kpi-icon.red { background: #fdecec; color: var(--red); }
.kpi .kpi-icon.orange { background: #fff1e3; color: var(--orange); }
.kpi .kpi-icon.green { background: #e7f6ed; color: var(--green); }
.kpi .kpi-icon.blue { background: #e8effc; color: var(--blue); }
.kpi .kpi-icon.purple { background: #f0eafc; color: var(--purple); }
.kpi strong { font-size: 22px; display: block; line-height: 1.2; }
.kpi span { color: var(--muted); font-size: 12.5px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 > .card + .card, .grid-3 > .card + .card { margin-top: 0; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.split > .card + .card { margin-top: 0; }

/* ---------- جدول ---------- */
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th { background: var(--surface-2); color: #415066; font-weight: 600; text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.grid td { padding: 8px 10px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
table.grid tr:hover td { background: #fafcfd; }
table.grid tr.selected td { background: var(--primary-soft); }
table.grid td.num, table.grid th.num { text-align: center; }
table.grid .row-actions { white-space: nowrap; text-align: left; }
table.grid.compact td { padding: 5px 8px; }
.tree-indent { display: inline-block; }

/* ---------- برچسب وضعیت ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #eef1f5; color: #4a5568; }
.chip.gray { background: #eef1f5; color: #4a5568; }
.chip.blue { background: #e6eefc; color: #2459b8; }
.chip.green { background: #e3f5ea; color: #1f7a45; }
.chip.yellow { background: #fbf3d3; color: #8a6a00; }
.chip.orange { background: #fdeedd; color: #b55a00; }
.chip.red { background: #fde6e6; color: #b42323; }
.chip.purple { background: #efe8fc; color: #5b34b0; }
.chip.teal { background: #dff4f2; color: #0d6f69; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--gray); }
.score { display: inline-block; min-width: 34px; text-align: center; padding: 1px 8px; border-radius: 6px; color: #fff; font-weight: 700; }
.awaiting { display: inline-flex; gap: 6px; align-items: center; padding: 2px 10px; border-radius: 6px; background: #fff7e0; color: #8a6200; border: 1px dashed #e5b62a; font-size: 12px; font-weight: 600; }
.temp { background: #fff1f1; color: #9b1c1c; border-color: #e99; }

/* ---------- دکمه و فرم ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-danger { color: var(--red); border-color: #f1c4c4; }
.btn-sm { padding: 2px 10px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
input, select, textarea { font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid #d3dae4; border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
textarea { min-height: 80px; resize: vertical; }
label { display: block; font-size: 12.5px; color: #415066; margin-bottom: 4px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; margin-top: 18px; }
.field-hint { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form > div { min-width: 160px; }
.check-row { display: flex; align-items: center; gap: 6px; font-weight: 400; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-weight: 600; }
.flash.ok { background: #e3f5ea; color: #1f7a45; border: 1px solid #bfe6cd; }
.flash.error { background: #fde6e6; color: #9b1c1c; border: 1px solid #f3b9b9; }
.note { background: #f0f7ff; border: 1px solid #cfe0fb; color: #23436f; padding: 10px 14px; border-radius: 8px; }
.note.warn { background: #fff7e0; border-color: #f0d68a; color: #6b5000; }

/* ---------- تب ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 12px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- نوار پیشرفت ---------- */
.progress { height: 7px; background: #e9edf2; border-radius: 99px; overflow: hidden; min-width: 70px; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.progress.green > span { background: var(--green); }
.progress.orange > span { background: var(--orange); }

/* ---------- جزئیات ---------- */
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.tree-list { list-style: none; margin: 0; padding: 0; }
.tree-list ul { list-style: none; margin: 0; padding-right: 22px; border-right: 1px dashed #cfd8e3; }
.tree-list li { padding: 3px 0; }
.heatmap { display: grid; gap: 3px; }
.heatmap div { border-radius: 4px; display: grid; place-items: center; font-weight: 700; color: #fff; min-height: 38px; font-size: 13px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 4px; vertical-align: -2px; }
.matrix-table th { writing-mode: initial; }
.matrix-table td { text-align: center; }
.sep { height: 1px; background: var(--border); margin: 14px 0; }

/* ---------- ورود ---------- */
/* RTL: ستون اول سمت راست است؛ فرم ورود سمت راست و معرفی سامانه سمت چپ */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 460px 1fr; background: var(--bg); }
/* هم‌قد صفحه نمایش و ثابت هنگام اسکرول ستون ورود (فهرست کاربران نمایشی بلند است)، تا رادار و متن وسط دید بمانند */
.login-hero { position: sticky; top: 0; height: 100vh; align-self: start; overflow: hidden; color: #e8f1f8; padding: 40px 60px; display: flex; flex-direction: column; justify-content: center; gap: 16px;
    background: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 34px 34px,
                linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 34px 34px,
                linear-gradient(160deg, #10243a 0%, #0f5a67 100%); }
/* خط پویش که آرام از بالا به پایین بخش معرفی می‌گذرد */
.login-hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(52,179,182,.10), transparent); animation: hv-scan 9s linear infinite; }
.login-hero h1 { font-size: 30px; color: #fff; }
.login-hero p { max-width: 520px; color: #bcd0e2; }
.login-box { order: -1; background: #fff; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.countdown { background: #fff4e5; border: 1px solid #f5d3a3; color: #8a4b00; border-radius: 8px; padding: 10px 14px; }
.demo-users { font-size: 12px; }
.demo-users td { padding: 3px 6px; border-bottom: 1px solid #eef1f5; cursor: pointer; }
.demo-users tr:hover td { background: var(--primary-soft); }

@media (max-width: 1100px) {
    .grid-2, .grid-3, .split { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .login-page { grid-template-columns: 1fr; }
    .login-hero { display: none; }
}
@media (max-width: 800px) {
    .sidebar { display: none; }
}
@media print {
    .sidebar, .topbar, .actions, .btn { display: none !important; }
}
.kpi-link { text-decoration: none !important; color: inherit; display: block; }
.kpi-link .kpi { height: 100%; }
.grid-2 + .grid-2, .grid-3 + .grid-2, .grid-2 + .grid-3, .grid-3 + .grid-3, .kpis + .grid-2, .kpis + .grid-3 { margin-top: 16px; }
.report-card { text-decoration: none !important; color: inherit; }
.report-card:hover { border-color: var(--primary); }
.report-card p { color: var(--muted); margin: 6px 0 0; font-size: 13px; }

/* ------------------------------------------------------------------ نقشه وابستگی فرآیند و دارایی (js/asset-graph.js) */
.ag { padding: 0 0 4px; }
.ag-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.ag-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.ag-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.ag-hint { font-size: 11px; margin-inline-start: auto; }
.ag-swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 10px; }
.ag-swatch.big { width: 13px; height: 13px; flex-basis: 13px; box-shadow: 0 0 0 2px #34b3b6; }
.ag-stage { position: relative; display: grid; grid-template-columns: 1fr 270px; height: 540px; }
.ag-svg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none;
    background: radial-gradient(circle, #d9e1ea 1px, transparent 1.2px) 0 0 / 22px 22px, #fbfcfe; }
.ag-svg:active { cursor: grabbing; }
.ag-link { stroke: #c3ccd8; stroke-width: 1.2; transition: stroke .15s, stroke-width .15s, opacity .15s; }
.ag-link.primary { stroke: #9fb0c3; }
.ag-link.hl { stroke: #0f7a83; stroke-width: 3; }
.ag-link.dim { opacity: .18; }
.ag-node { cursor: pointer; transition: opacity .15s; }
.ag-node text { font-size: 11px; fill: #334155; paint-order: stroke; stroke: #fbfcfe; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.ag-node.process text { font-size: 12.5px; font-weight: 700; fill: #10243a; }
.ag-node .ag-dot { stroke: #fff; stroke-width: 2; }
.ag-node.process .ag-halo { fill: none; stroke: #34b3b6; stroke-width: 2; opacity: .7; }
.ag-node.process.critical .ag-halo { stroke: var(--red); }
.ag-node.center .ag-dot { stroke: #f59e0b; stroke-width: 4; }
.ag-node .ag-center-ring { fill: none; stroke: #f59e0b; stroke-width: 2; stroke-dasharray: 4 3; opacity: .85; }
.ag-node .ag-center-badge { font-size: 10.5px; font-weight: 700; fill: #b45309; }
.ag-node.center text { font-size: 13.5px; font-weight: 800; fill: #10243a; }
.ag-node.far:not(.selected) { opacity: .75; }
.ag-panel-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-panel-actions .btn { margin-top: 8px; }
.ag.ag-full { background: var(--surface); display: flex; flex-direction: column; }
.ag.ag-full .ag-stage { flex: 1; height: auto !important; }
.split-handle { height: 14px; margin: 6px 0; display: flex; align-items: center; justify-content: center; cursor: row-resize;
    border-radius: 6px; touch-action: none; user-select: none; }
.split-handle span { width: 64px; height: 5px; border-radius: 3px; background: #c3ccd8; transition: background .15s, width .15s; }
.split-handle:hover span, .split-handle.dragging span { background: var(--primary); width: 96px; }
.split-handle + .card { margin-top: 0; }
.split-collapsed { margin-bottom: 0 !important; }
.ag-node.selected .ag-dot { stroke: #0f7a83; stroke-width: 4; }
.ag-node.selected text { font-weight: 800; }
.ag-node.dim { opacity: .22; }
.ag-node:hover .ag-dot { filter: brightness(1.15); }
.ag-panel { border-inline-start: 1px solid var(--border); padding: 14px; overflow-y: auto; background: var(--surface); font-size: 13px; }
.ag-panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ag-panel h4 { margin: 14px 0 6px; font-size: 12.5px; }
.ag-panel .btn { margin-top: 8px; }
.ag-list { list-style: none; margin: 0; padding: 0; }
.ag-list li { display: flex; align-items: center; gap: 7px; padding: 4px 0; border-bottom: 1px solid #f1f4f8; }
.ag-link-btn { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; text-align: start; font: inherit; }
.ag-link-btn:hover { text-decoration: underline; }
.ag-status { position: absolute; top: 14px; left: 300px; right: 14px; text-align: center; pointer-events: none; }
@media (max-width: 900px) {
    .ag-stage { grid-template-columns: 1fr; height: auto; }
    .ag-svg { height: 420px; }
    .ag-panel { border-inline-start: 0; border-top: 1px solid var(--border); max-height: 260px; }
    .ag-status { left: 14px; }
}

/* ------------------------------------------------------------------ نمای متحرک صفحه ورود (fragments/hero.html) */
/* رادار ۶۴۰×۶۰۰ با مرکز (320، 300)؛ پرتو در ۶ ثانیه یک دور می‌زند و هر هدف همان لحظه گذر پرتو روشن می‌شود */
.hv { position: relative; width: 640px; height: 600px; align-self: center; flex: 0 0 auto; transform-origin: 50% 0; }
.hv > * { position: absolute; }
.hv-glow { left: 20px; top: 0; width: 600px; height: 600px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(52,224,227,.16) 0%, rgba(52,179,182,.07) 38%, transparent 68%); }
.hv-grid { inset: 0; width: 100%; height: 100%; overflow: visible; }
.hv-grid circle, .hv-grid line { fill: none; stroke: rgba(127,224,227,.22); stroke-width: 1; }
.hv-grid circle.hv-edge { stroke: rgba(127,224,227,.5); stroke-width: 1.4; filter: drop-shadow(0 0 6px rgba(52,224,227,.45)); }
.hv-grid line.hv-diag { stroke-dasharray: 3 7; stroke: rgba(127,224,227,.14); }
.hv-ticks line { stroke: rgba(127,224,227,.35); }
.hv-ticks line.major { stroke: rgba(170,245,247,.75); stroke-width: 1.6; }
.hv-deg text { fill: rgba(190,240,242,.55); font: 600 11px/1 Tahoma, sans-serif; text-anchor: middle; letter-spacing: 1px; }
.hv-sweep { left: 84px; top: 64px; width: 472px; height: 472px; border-radius: 50%; pointer-events: none;
    background: conic-gradient(from 0deg, transparent 0deg 240deg, rgba(52,224,227,.05) 285deg, rgba(52,224,227,.18) 330deg,
                rgba(52,224,227,.42) 354deg, rgba(170,255,255,.6) 360deg);
    -webkit-mask: radial-gradient(circle, #000 0 68%, rgba(0,0,0,.85) 100%); mask: radial-gradient(circle, #000 0 68%, rgba(0,0,0,.85) 100%);
    animation: hv-spin 6s linear infinite; }
.hv-beam { position: absolute; left: calc(50% - 1px); top: 0; width: 2px; height: 50%; border-radius: 2px; transform-origin: 50% 100%;
    background: linear-gradient(180deg, rgba(220,255,255,.95), rgba(52,224,227,.15));
    box-shadow: 0 0 10px 2px rgba(120,250,252,.55); }
.hv-blip { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--c); opacity: .12;
    box-shadow: 0 0 14px 2px var(--c); animation: hv-blip 6s linear infinite; animation-delay: var(--d); }
.hv-blip::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--c); opacity: 0;
    animation: hv-ping 6s ease-out infinite; animation-delay: var(--d); }
.hv-orbit { width: 412px; height: 412px; left: 114px; top: 94px; animation: hv-spin 70s linear infinite; }
.hv-item { position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px;
    transform: rotate(var(--a)) translate(206px) rotate(calc(-1 * var(--a))); }
.hv-badge { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #9cf2f4;
    background: radial-gradient(circle at 35% 30%, rgba(30,70,96,.95), rgba(12,30,48,.95));
    border: 1px solid rgba(52,224,227,.55); box-shadow: 0 0 0 4px rgba(52,179,182,.08), 0 0 18px rgba(52,224,227,.3);
    animation: hv-spin 70s linear infinite reverse; }
.hv-badge .icon { width: 23px; height: 23px; flex-basis: 23px; }
.hv-core { width: 132px; height: 132px; left: 254px; top: 234px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 35% 30%, #3fe0e2, #0f8a93 52%, #0a4650);
    box-shadow: 0 0 0 8px rgba(52,224,227,.08), 0 0 50px rgba(52,224,227,.5), inset 0 -10px 24px rgba(0,0,0,.25); }
.hv-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(80,230,233,.75); animation: hv-pulse 3.2s ease-out infinite; }
.hv-pulse.hv-d2 { animation-delay: 1.6s; }
.hv-shield { width: 70px; height: 70px; fill: none; stroke-linecap: round; stroke-linejoin: round; position: relative;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.hv-shield-body { stroke: #fff; stroke-width: 1.6; fill: rgba(255,255,255,.1); }
.hv-check { stroke: #c8fbfc; stroke-width: 2.2; stroke-dasharray: 14; stroke-dashoffset: 14; animation: hv-draw 4s ease-in-out infinite; }
.hv-tag { font: 600 11.5px/1 Tahoma, sans-serif; direction: ltr; color: #dff6f7; padding: 7px 12px; border-radius: 999px;
    background: rgba(16,36,58,.55); border: 1px solid rgba(127,224,227,.35); box-shadow: 0 4px 14px rgba(0,0,0,.18);
    backdrop-filter: blur(3px); animation: hv-float 6s ease-in-out infinite; }
.hv-t1 { left: 18px; top: 40px; }
.hv-t2 { right: 6px; top: 86px; animation-delay: -1s; }
.hv-t3 { left: 0; bottom: 170px; animation-delay: -2s; }
.hv-t4 { right: 0; bottom: 200px; animation-delay: -3s; }
.hv-t5 { left: 150px; top: 0; animation-delay: -4s; }
.hv-t6 { right: 70px; bottom: 26px; animation-delay: -5s; }
.hv-heat { left: 6px; bottom: 6px; display: grid; grid-template-columns: repeat(5, 13px); gap: 3px; padding: 8px;
    border-radius: 9px; background: rgba(16,36,58,.5); border: 1px solid rgba(127,224,227,.18); }
.hv-heat span { width: 13px; height: 13px; border-radius: 3px; background: var(--c); opacity: .3; animation: hv-blink 4.25s ease-in-out infinite; animation-delay: var(--d); }

@keyframes hv-spin { to { transform: rotate(360deg); } }
@keyframes hv-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes hv-draw { 0%, 15% { stroke-dashoffset: 14; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 14; } }
@keyframes hv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes hv-blink { 0%, 100% { opacity: .3; } 12% { opacity: 1; } 30% { opacity: .3; } }
@keyframes hv-blip { 0% { opacity: 1; transform: scale(1.5); } 6% { transform: scale(1); } 55% { opacity: .35; } 100% { opacity: .12; } }
@keyframes hv-ping { 0% { opacity: .9; transform: scale(1); } 35% { opacity: 0; transform: scale(3.2); } 100% { opacity: 0; } }
@keyframes hv-scan { 0% { transform: translateY(-140px); } 100% { transform: translateY(110vh); } }
/* تا جای ممکن بزرگ، ولی متن معرفی زیر رادار بدون اسکرول دیده شود */
@media (max-width: 1360px) { .hv { transform: scale(.8); margin-bottom: -120px; } }
@media (max-height: 1079px) { .hv { transform: scale(.82); margin-bottom: -108px; } }
@media (max-height: 900px) { .hv { transform: scale(.7); margin-bottom: -180px; } }
@media (max-height: 760px) { .hv { transform: scale(.58); margin-bottom: -252px; } }
@media (prefers-reduced-motion: reduce) {
    .hv, .hv *, .hv *::after, .login-hero::after { animation: none !important; }
    .hv-check { stroke-dashoffset: 0; }
    .hv-blip { opacity: .7; }
}

/* تاریخچه تغییرات: بندهای هر نسخه */
.changelog { margin: 0; padding-inline-start: 20px; }
.changelog li { margin-bottom: 8px; line-height: 1.9; }
.changelog code { font-size: .92em; }

/* داشبوردها و داشبوردساز (ANALYSIS بخش ۱۰.۱۲) */
.dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.dash-cards > .card + .card { margin-top: 0; }
.dash-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.dash-card-head .icon { color: var(--primary); }
.dash-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dash-grid > .card + .card { margin-top: 0; }
.dash-widget { min-width: 0; }
.dash-widget.w-3 { grid-column: span 3; }
.dash-widget.w-4 { grid-column: span 4; }
.dash-widget.w-6 { grid-column: span 6; }
.dash-widget.w-8 { grid-column: span 8; }
.dash-widget.w-9 { grid-column: span 9; }
.dash-widget.w-12 { grid-column: span 12; }
.dash-widget .card-head strong { font-size: 13.5px; }
.widget-chart { position: relative; }
.widget-kpi { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; text-align: center; }
.widget-kpi strong { font-size: 34px; line-height: 1.2; color: var(--primary); }
.widget-kpi span { color: var(--muted); font-size: 12.5px; }
.widget-table { overflow: auto; }
.widget-tools { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.widget-tools form { display: inline; }
.muted { color: var(--muted); }
.builder-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }
.builder-preview { position: sticky; top: 12px; align-self: start; }
.builder-preview .dash-widget { grid-column: span 12; }
.code-input { font-family: Consolas, "Courier New", monospace; font-size: 13px; direction: ltr; text-align: left; }
.insert-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.insert-chips .chip { border: 0; cursor: pointer; font: inherit; font-size: 12px; }
.field-ref { margin-top: 12px; }
.field-ref summary { cursor: pointer; font-weight: 600; margin-bottom: 6px; }
.field-ref table { font-size: 12px; }
table.drill .drill-row td { padding: 0; border-bottom: 0; }
table.drill .drill-row td:not(:empty) { padding: 6px 28px 12px 6px; background: var(--surface-2); }
.drill-panel table.grid { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.drill-panel .drill-row td:not(:empty) { padding: 6px 28px 10px 6px; background: #f3f6fa; }
tr.drill-top td { background: #fff4f4; }
.drill-toggle.open { background: var(--primary-soft); }
@media (max-width: 1100px) {
    .dash-widget.w-3, .dash-widget.w-4 { grid-column: span 6; }
    .dash-widget.w-8, .dash-widget.w-9 { grid-column: span 12; }
    .builder-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) { .dash-widget { grid-column: span 12 !important; } }
