:root {
  color-scheme: dark;
  --base: #07111f;
  --surface: #0e1b2d;
  --surface-2: #13243a;
  --line: #243950;
  --text: #e9f0f7;
  --muted: #93a4b8;
  --green: #38d996;
  --red: #ff5e6c;
  --amber: #f3b84b;
  --blue: #66a8ff;
}
* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { background: var(--base); }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 15% -20%, #18395e 0, transparent 36%), var(--base); font-family: Vazirmatn, IRANSansX, Tahoma, Arial, sans-serif; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 18px max(24px, calc((100vw - 1180px) / 2)); background: rgba(7,17,31,.84); border-bottom: 1px solid rgba(147,164,184,.16); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #427db3; border-radius: 10px; color: var(--blue); font: 800 19px/1 Arial; box-shadow: inset 0 0 18px rgba(102,168,255,.12); }
.brand strong,.brand small { display: block; }.brand strong { font: 750 17px/1.4 Arial,sans-serif; direction: ltr; }.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.freshness { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(243,184,75,.1); }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 80px; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: 42px; }.kicker { margin: 0 0 7px; color: var(--muted); font-size: 13px; }.hero h1 { max-width: 760px; margin: 0; font-size: clamp(30px,5vw,62px); line-height: 1.15; letter-spacing: -.03em; }.hero-copy { margin: 16px 0 0; color: var(--muted); font-size: 16px; }
.overall-badge { flex: none; display: flex; align-items: center; gap: 10px; min-width: 142px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; }.overall-badge span { width: 11px; height: 11px; border-radius: 50%; background: var(--amber); }.overall-badge.operational span { background: var(--green); box-shadow: 0 0 18px var(--green); }.overall-badge.degraded span,.overall-badge.offline span { background: var(--red); box-shadow: 0 0 18px var(--red); }
.overall-badge.fallback span { background: var(--amber); box-shadow: 0 0 18px var(--amber); }
.signal-panel { display: grid; grid-template-columns: 1fr 92px 1fr 92px 1fr; align-items: center; padding: 26px; background: rgba(14,27,45,.88); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 26px 80px rgba(0,0,0,.18); }.node { display: flex; align-items: center; gap: 15px; min-width: 0; }.node-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font: 700 12px Arial; }.node.online .node-icon { color: var(--green); border-color: rgba(56,217,150,.55); box-shadow: inset 0 0 18px rgba(56,217,150,.12); }.node.offline .node-icon { color: var(--red); border-color: rgba(255,94,108,.55); }.node-state { color: var(--muted); font-size: 12px; }.node.online .node-state { color: var(--green); }.node.offline .node-state { color: var(--red); }.node h2 { margin: 3px 0 5px; font-size: 17px; }.node p { margin: 0; color: var(--muted); font-size: 12px; }.link-line { position: relative; height: 22px; text-align: center; color: var(--muted); font: 10px Arial; direction: ltr; }.link-line i { position: absolute; top: 5px; left: 7px; right: 7px; height: 1px; background: var(--line); }.link-line i::after { content: ''; position: absolute; width: 7px; height: 7px; top: -3px; left: 0; border-radius: 50%; background: var(--green); animation: travel 2s linear infinite; }.link-line span { position: relative; top: 10px; padding: 0 5px; background: var(--surface); }
@keyframes travel { from { left: 0; } to { left: calc(100% - 7px); } }
.routing-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: center; margin-top: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg,rgba(14,27,45,.96),rgba(19,36,58,.82)); }
.routing-panel.prefilter { border-color: rgba(102,168,255,.48); box-shadow: inset 3px 0 0 var(--blue); }
.routing-panel.fallback { border-color: rgba(243,184,75,.45); box-shadow: inset 3px 0 0 var(--amber); }.routing-panel.unavailable { border-color: rgba(255,94,108,.45); box-shadow: inset 3px 0 0 var(--red); }.routing-summary h2 { margin: 0; font-size: 22px; }.routing-summary>p:last-of-type { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.route-options { display: grid; gap: 8px; }.route-option { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(7,17,31,.56); }.route-option.active { border-color: rgba(56,217,150,.5); background: rgba(56,217,150,.06); }.routing-panel.fallback .route-option.active { border-color: rgba(243,184,75,.55); background: rgba(243,184,75,.07); }.route-symbol { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; color: var(--blue); font: 700 10px Arial; }.route-option strong,.route-option small { display: block; }.route-option strong { font-size: 13px; }.route-option small { margin-top: 4px; color: var(--muted); font-size: 10px; direction: ltr; text-align: right; }.route-state { color: var(--muted); font-size: 11px; white-space: nowrap; }.route-option.active .route-state { color: var(--green); }.routing-panel.fallback .route-option.active .route-state { color: var(--amber); }
.fallback-overview { margin-top: 12px; }.service-badge { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }.service-badge.online { color: var(--green); border-color: rgba(56,217,150,.4); background: rgba(56,217,150,.07); }.service-badge.offline { color: var(--red); border-color: rgba(255,94,108,.4); background: rgba(255,94,108,.07); }.fallback-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }.fallback-grid>div { padding: 17px; background: #0b1828; }.fallback-grid span,.fallback-grid small,.last-decision span { display: block; color: var(--muted); font-size: 11px; }.fallback-grid strong { display: block; margin: 11px 0 7px; font: 750 30px/1 Arial; direction: ltr; text-align: right; }.last-decision { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }.last-decision strong { display: block; margin-top: 7px; font-size: 12px; line-height: 1.7; }
.resource-strip { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 10px 18px; align-items: center; margin-top: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px; background: rgba(7,17,31,.45); }.resource-strip span { color: var(--muted); font-size: 11px; }.resource-strip strong { font-size: 12px; line-height: 1.6; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin: 70px 0 22px; }.section-heading h2,.panel-title h2 { margin: 0; font-size: 24px; }.section-heading>p { max-width: 470px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.metrics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }.metric { min-height: 150px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.metric span,.metric small { display: block; color: var(--muted); font-size: 13px; }.metric strong { display: block; margin: 18px 0 12px; font: 750 clamp(28px,4vw,44px)/1 Arial; direction: ltr; text-align: right; }.metric.safe strong { color: var(--green); }.metric.danger strong { color: var(--red); }.metric.primary strong { color: var(--blue); }
.error-panel { margin-top: 12px; }.error-panel .panel-title>p { max-width: 340px; margin: 2px 0 0; color: var(--muted); font-size: 12px; }.error-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 1px; margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }.error-grid>div { min-width: 0; padding: 16px; background: #0b1828; }.error-grid span,.error-grid small { display: block; color: var(--muted); font-size: 11px; }.error-grid strong { display: block; margin: 10px 0 7px; font: 750 28px/1 Arial; direction: ltr; text-align: right; }.error-grid .critical strong { color: var(--red); }
.analytics-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px; margin-top: 12px; }.panel { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(14,27,45,.88); }.panel-title { display: flex; justify-content: space-between; align-items: start; gap: 20px; }.unit { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font: 11px Arial; }.latency-number { display: flex; align-items: baseline; gap: 12px; margin: 38px 0 24px; }.latency-number strong { font: 750 clamp(46px,7vw,78px)/.8 Arial; direction: ltr; }.latency-number span,.latency-sub span { color: var(--muted); font-size: 13px; }.latency-sub { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }.latency-sub strong { font: 700 18px Arial; direction: ltr; }.capacity { margin-top: 18px; }.capacity>span { color: var(--muted); font-size: 12px; }.capacity>div { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 9px; background: #07111f; }.capacity i { display: block; width: 0; height: 100%; background: var(--blue); transition: width .35s ease; }
.model-usage { display: grid; gap: 18px; margin-top: 32px; }.model-row header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }.model-row header strong { font: 700 13px Arial; direction: ltr; }.model-bar { height: 8px; overflow: hidden; border-radius: 10px; background: #07111f; }.model-bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .5s ease; }.model-row:nth-child(2) .model-bar i { background: var(--amber); }.model-row:nth-child(3) .model-bar i { background: #a989ff; }.model-row:nth-child(4) .model-bar i { background: var(--green); }.panel-note { margin: 24px 0 0; color: var(--muted); font-size: 12px; }
.availability { margin-top: 12px; }.legend { display: flex; gap: 13px; color: var(--muted); font-size: 11px; }.legend span { display: flex; align-items: center; gap: 5px; }.legend i { width: 7px; height: 7px; border-radius: 2px; }.up { background: var(--green); }.down { background: var(--red); }.unknown { background: #34465a; }.availability-row { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; margin-top: 24px; }.availability-row>strong { font-size: 13px; }.history-strip { display: grid; grid-template-columns: repeat(48,1fr); gap: 3px; direction: ltr; }.history-strip i { height: 28px; border-radius: 3px; background: #34465a; }.history-strip i.up { background: rgba(56,217,150,.8); }.history-strip i.down { background: var(--red); }.time-axis { display: flex; justify-content: space-between; margin: 8px 0 0 104px; color: var(--muted); font-size: 10px; }
.events { margin-top: 12px; }.panel-title button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface-2); cursor: pointer; }.panel-title button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }.table-wrap { overflow-x: auto; margin-top: 22px; }table { width: 100%; border-collapse: collapse; min-width: 620px; }th,td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: right; font-size: 13px; }th { color: var(--muted); font-weight: 500; }td time { direction: ltr; unicode-bidi: embed; }.event-status { display: inline-flex; align-items: center; gap: 6px; }.event-status i { width: 7px; height: 7px; border-radius: 50%; }.event-status.online { color: var(--green); }.event-status.online i { background: var(--green); }.event-status.offline { color: var(--red); }.event-status.offline i { background: var(--red); }.empty { padding: 30px; color: var(--muted); text-align: center; }
footer { display: flex; justify-content: space-between; width: min(1180px,calc(100% - 40px)); margin: 0 auto; padding: 22px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
@media (max-width: 850px) { .signal-panel { grid-template-columns: 1fr; gap: 15px; }.link-line { width: 50px; transform: rotate(90deg); margin: 5px auto; }.routing-panel { grid-template-columns: 1fr; }.metrics-grid { grid-template-columns: repeat(2,1fr); }.fallback-grid { grid-template-columns: repeat(2,1fr); }.resource-strip { grid-template-columns: auto 1fr; }.last-decision { grid-template-columns: 1fr; }.error-grid { grid-template-columns: repeat(3,1fr); }.analytics-grid { grid-template-columns: 1fr; }.section-heading { align-items: start; flex-direction: column; }.availability-row { grid-template-columns: 1fr; }.time-axis { margin-right: 0; }.history-strip { gap: 2px; }.history-strip i { height: 22px; } }
@media (max-width: 560px) { .topbar { padding: 14px 18px; }.brand small { display: none; }.freshness { font-size: 11px; } main { width: min(100% - 28px,1180px); padding-top: 42px; }.hero { align-items: start; flex-direction: column; }.hero h1 { font-size: 34px; }.overall-badge { min-width: 0; }.routing-panel { padding: 18px; }.route-option { grid-template-columns: 36px 1fr; }.route-state { grid-column: 2; }.metrics-grid { grid-template-columns: 1fr 1fr; }.metric { min-height: 126px; padding: 16px; }.metric strong { margin-top: 15px; }.panel { padding: 18px; }.fallback-grid { grid-template-columns: 1fr 1fr; }.error-panel .panel-title { flex-direction: column; }.error-grid { grid-template-columns: repeat(2,1fr); }.legend { display: none; }.history-strip { grid-template-columns: repeat(24,1fr); }.history-strip i:nth-child(odd) { display: none; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; } }
