:root{--bg:#060a1c;--ink:#eef1ff;--mut:#9aa7d6;--dim:#6f7cab;--glass:rgba(255,255,255,.055);--glass2:rgba(255,255,255,.09);--line:rgba(255,255,255,.12);--a:#6366f1;--b:#22d3ee;--g:#fbbf24;--ok:#34d399;--err:#fb7185;--warn:#fbbf24;color-scheme:dark}
*{box-sizing:border-box;margin:0}
body{background:radial-gradient(1100px 650px at 85% -10%,#161e55,transparent 60%),radial-gradient(800px 500px at 0 110%,#0a2a4a,transparent 55%),var(--bg);color:var(--ink);font-family:"Alexandria","Segoe UI",Tahoma,"Noto Sans Arabic",Arial,sans-serif;line-height:1.7;min-height:100vh;-webkit-font-smoothing:antialiased}
a{color:var(--b);text-decoration:none}a:hover{color:var(--g)}
.aurora{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:0}.aurora i{position:absolute;border-radius:50%;filter:blur(90px);opacity:.4}
.aurora i:nth-child(1){width:480px;height:480px;background:#4f46e5;top:-160px;right:-80px}.aurora i:nth-child(2){width:420px;height:420px;background:#0891b2;bottom:-160px;left:-100px}
.shell{position:relative;z-index:1;display:grid;grid-template-columns:250px 1fr;min-height:100vh}
.side{padding:22px 16px;border-inline-end:1px solid var(--line);background:rgba(8,13,38,.55);backdrop-filter:blur(14px);display:flex;flex-direction:column;gap:18px;position:sticky;top:0;height:100vh}
.brand{display:flex;gap:11px;align-items:center}.brand b{display:block;font-size:15px;line-height:1.3}.brand small{font-size:11.5px;background:linear-gradient(90deg,var(--b),var(--g));-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:700}
.logo{width:42px;height:42px;border-radius:13px;box-shadow:0 8px 22px rgba(79,70,229,.45);flex:none}.logo.big{width:64px;height:64px;margin:0 auto 10px;display:block}
nav{display:flex;flex-direction:column;gap:4px}
nav a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;color:var(--mut);font-size:14px;transition:.2s}
nav a svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
nav a:hover{background:rgba(255,255,255,.07);color:#fff}nav a.on{background:linear-gradient(135deg,rgba(99,102,241,.35),rgba(34,211,238,.14));color:#fff;box-shadow:inset 0 0 0 1px rgba(129,140,248,.55)}
.out{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:12px;font-size:13px;font-weight:600;color:#fda4af;background:rgba(251,113,133,.1);border:1px solid rgba(251,113,133,.28);transition:.2s}
.out::before{content:"";width:15px;height:15px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") center/contain no-repeat}
.out:hover{background:rgba(251,113,133,.22);color:#fecdd3;border-color:rgba(251,113,133,.45)}
.main{padding:24px 28px 50px;min-width:0}
.bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.bar h1{font-size:24px}.clock{color:var(--dim);font-size:13px}
.flash{padding:11px 16px;border-radius:12px;margin-bottom:16px;font-size:14px;border:1px solid}.flash.ok{background:rgba(52,211,153,.12);border-color:rgba(52,211,153,.35);color:#a7f3d0}.flash.err{background:rgba(251,113,133,.12);border-color:rgba(251,113,133,.4);color:#fecdd3}.flash.info{background:rgba(99,102,241,.13);border-color:rgba(99,102,241,.4);color:#c7d2fe}.flash.info b{color:#eef1ff}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:16px}
.kpi{padding:16px 18px;border-radius:18px;background:linear-gradient(180deg,var(--glass2),var(--glass));border:1px solid var(--line)}.kpi small{color:var(--mut);font-size:12.5px}.kpi b{display:block;font-size:30px;line-height:1.2;margin:2px 0}.kpi span{font-size:11.5px;color:var(--dim)}
.card{background:linear-gradient(180deg,var(--glass2),var(--glass));border:1px solid var(--line);border-radius:20px;padding:18px;margin-bottom:16px;backdrop-filter:blur(14px)}
.card.flush{padding:0;overflow:hidden}.card-h{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.card-h.pad{padding:16px 18px 0}.card h2{font-size:16px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.two.wide{grid-template-columns:1.5fr 1fr}.stack-col{display:flex;flex-direction:column}
.chart{display:flex;align-items:flex-end;gap:8px;height:190px;padding-top:10px}
.col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;font-size:11px;color:var(--dim)}
.stack{width:100%;max-width:34px;display:flex;flex-direction:column-reverse;border-radius:8px 8px 3px 3px;overflow:hidden;min-height:3px;background:rgba(255,255,255,.05)}.stack i{display:block;min-height:3px}
.col em{font-style:normal;color:var(--ink);font-size:11.5px;min-height:16px}
.c1{background:#818cf8}.c2{background:#22d3ee}.c3{background:#fbbf24}.c4{background:#34d399}
.legend{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--mut)}.legend i,.cnts i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-inline:3px 5px}.legend.lg{margin-top:8px}
.tw{overflow:auto}.tbl{width:100%;border-collapse:collapse;font-size:13.5px}.tbl th{padding:11px 14px;text-align:start;color:var(--dim);font-weight:600;font-size:12px;border-bottom:1px solid var(--line);white-space:nowrap}
.tbl td{padding:11px 14px;border-bottom:1px solid rgba(255,255,255,.06);vertical-align:middle}.tbl tr:hover td{background:rgba(255,255,255,.03)}
.tbl small{display:block;color:var(--dim);font-size:11.5px}.tbl .num{text-align:center;font-weight:700}.tbl .fn{max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cnts{white-space:nowrap}.cnts span{margin-inline-end:12px}
.bd{display:inline-block;padding:1px 10px;border-radius:999px;font-size:11.5px;font-weight:600}.bd.ok{background:rgba(52,211,153,.14);color:#a7f3d0}.bd.err{background:rgba(251,113,133,.15);color:#fecdd3}.bd.warn{background:rgba(251,191,36,.15);color:#fde68a}.bd.info{background:rgba(99,102,241,.25);color:#c7d2fe;margin-inline-start:6px}
.empty{color:var(--dim);text-align:center;padding:22px}
.filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:14px}
input,select,textarea{font:inherit;color:var(--ink);background:rgba(255,255,255,.06);border:1px solid var(--line);border-radius:11px;padding:9px 12px;width:100%}
.filters input,.filters select{width:auto;min-width:150px}.filters input[type=search]{min-width:260px}
select option{background:#0d1433}input:focus,select:focus,textarea:focus{outline:2px solid var(--b);outline-offset:1px}input[readonly]{opacity:.6}
.muted{color:var(--dim);font-size:13px}
.btn{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 16px;border-radius:11px;font-weight:700;font-size:13.5px;transition:.2s;white-space:nowrap}
.btn.sm{padding:5px 12px;font-size:12.5px}.btn.p{background:linear-gradient(135deg,#4f46e5,#0891b2);color:#fff;box-shadow:0 10px 22px -10px rgba(34,211,238,.7)}
.btn.s{background:rgba(255,255,255,.08);border:1px solid var(--line)}.btn.d{background:rgba(251,113,133,.16);border:1px solid rgba(251,113,133,.45);color:#fecdd3}.btn.g{background:rgba(52,211,153,.16);border:1px solid rgba(52,211,153,.45);color:#a7f3d0}
.btn:hover{filter:brightness(1.18)}.btn:focus-visible{outline:2px solid var(--b);outline-offset:2px}
.acts{white-space:nowrap}.acts .inl{display:inline}.acts>*{margin-inline-end:6px}
.pager{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin:14px 0}.pager a{padding:5px 12px;border-radius:9px;background:var(--glass);border:1px solid var(--line);color:var(--ink)}.pager a.on{background:var(--a);border-color:var(--a)}
.form label{display:block;font-size:13px;color:var(--mut);margin-bottom:12px}.form label>input,.form label>select,.form label>textarea{margin-top:5px}
.form h3{font-size:14px;margin:6px 0 10px}.form h3 small{color:var(--dim);font-weight:400;margin-inline-start:6px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.row-end{display:flex;gap:8px;justify-content:flex-end;margin-top:8px;flex-wrap:wrap}.row-end form{display:inline}
label.chk{display:flex;gap:10px;align-items:flex-start;color:var(--ink);background:rgba(251,191,36,.07);border:1px dashed rgba(251,191,36,.4);padding:10px 12px;border-radius:12px}.chk input{width:auto;margin-top:6px}
label.switch{display:flex;align-items:center;gap:12px;color:var(--ink);font-size:14px;padding:6px 0}.switch input{position:absolute;opacity:0;width:0}
.switch i{width:42px;height:24px;border-radius:999px;background:rgba(255,255,255,.18);position:relative;flex:none;transition:.2s}.switch i::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:.2s}
.switch input:checked+i{background:linear-gradient(90deg,#4f46e5,#22d3ee)}.switch input:checked+i::after{inset-inline-start:21px}.switch input:focus-visible+i{outline:2px solid var(--g);outline-offset:2px}
.meter{display:flex;justify-content:space-between;gap:10px;padding:6px 0;font-size:13.5px;color:var(--mut)}.meter b{color:var(--ink)}.meter b.sm{font-size:12.5px;font-weight:500}hr{border:0;border-top:1px solid var(--line);margin:8px 0}
.kv{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:6px 0;font-size:13px;color:var(--mut)}code{background:rgba(255,255,255,.08);padding:2px 8px;border-radius:7px;font-size:12.5px;color:#c7d2fe;word-break:break-all}
.lnk{font-size:13px}
body.login{display:grid;place-items:center;padding:20px}.login-card{position:relative;z-index:1;width:min(380px,100%);padding:30px;border-radius:26px;background:linear-gradient(180deg,var(--glass2),var(--glass));border:1px solid var(--line);backdrop-filter:blur(18px);box-shadow:0 30px 80px -30px #000}
.login-card h1{text-align:center;font-size:22px}.sub{text-align:center;color:var(--mut);font-size:13px;margin-bottom:18px}.sub b{background:linear-gradient(90deg,var(--b),var(--g));-webkit-background-clip:text;background-clip:text;color:transparent}
.login-card label{display:block;font-size:13px;color:var(--mut);margin-bottom:12px}.login-card label input{margin-top:5px}.login-card .btn{width:100%;padding:11px}
@media(max-width:900px){.shell{grid-template-columns:1fr}.side{position:static;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center}nav{flex-direction:row;flex-wrap:wrap}.out{margin:0}.two,.two.wide,.grid2,.grid3{grid-template-columns:1fr}.main{padding:18px 14px}}
