:root{
  --bg:#0b1220; --card:#0f1b33; --txt:#e5e7eb; --muted:#94a3b8;
  --pri:#0ea5e9; --ok:#22c55e; --warn:#f59e0b; --danger:#ef4444; --br:#1f2a44;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(14,165,233,.18), transparent),
              radial-gradient(900px 600px at 80% 20%, rgba(34,197,94,.14), transparent),
              var(--bg);
  color:var(--txt);
}
a{color:inherit; text-decoration:none}
.container{max-width:1100px; margin:0 auto; padding:18px}
.nav{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:14px 18px; border:1px solid var(--br); border-radius: var(--radius);
  background: rgba(15,27,51,.75); backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.brand{display:flex; gap:12px; align-items:center; flex-wrap:wrap}
.brand img{width:140px; height:auto}
.nav .links{display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.badge{padding:8px 12px; border:1px solid var(--br); border-radius:999px; color:var(--muted); background: rgba(11,18,32,.35)}
.btn{
  border:1px solid rgba(14,165,233,.35); background: rgba(14,165,233,.12);
  color:var(--txt); padding:10px 14px; border-radius:12px; cursor:pointer; display:inline-flex; gap:8px; align-items:center;
}
.btn:hover{background: rgba(14,165,233,.18)}
.btn.ok{border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.12)}
.btn.ok:hover{background: rgba(34,197,94,.18)}
.btn.warn{border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.12)}
.btn.warn:hover{background: rgba(245,158,11,.18)}
.btn.danger{border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.12)}
.btn.danger:hover{background: rgba(239,68,68,.18)}
.grid{display:grid; gap:18px}
.hero{margin-top:18px; grid-template-columns: 1.2fr .8fr}
@media (max-width:900px){ .hero{grid-template-columns:1fr} }
.card{
  border:1px solid var(--br); border-radius: var(--radius);
  background: rgba(15,27,51,.78); backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.card .pad{padding:18px}
h1{margin:0 0 8px; font-size:34px}
h2{margin:0 0 8px; font-size:20px}
p{margin:0 0 12px; color:var(--muted); line-height:1.6}
.form{display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin-top:10px}
.form .full{grid-column:1/-1}
label{display:block; font-size:12px; color:var(--muted); margin-bottom:6px}
input, select{
  width:100%; padding:12px 12px; border-radius:12px;
  border:1px solid var(--br); background: rgba(11,18,32,.75); color:var(--txt);
  outline:none;
}
input:focus, select:focus{border-color: rgba(14,165,233,.6)}
.table{width:100%; border-collapse:collapse}
.table th,.table td{padding:12px; border-bottom:1px solid var(--br); text-align:left; vertical-align:top}
.table th{color:#cbd5e1; font-weight:700; font-size:13px}
.table td{color:#e5e7eb}
.muted{color:var(--muted)}
.footer{margin:18px 0; color:var(--muted); font-size:12px; text-align:center}
.rtl{direction:rtl}
.rtl .table th,.rtl .table td{text-align:right}
.flash{margin-top:12px; padding:10px 12px; border-radius:14px; border:1px solid var(--br); background: rgba(11,18,32,.35)}
.flash.info{border-color: rgba(14,165,233,.4)}
.flash.ok{border-color: rgba(34,197,94,.4)}
.flash.warn{border-color: rgba(245,158,11,.4)}
.flash.danger{border-color: rgba(239,68,68,.4)}
.kpis{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; margin-top:12px}
@media (max-width:900px){ .kpis{grid-template-columns:1fr} }
.kpi{padding:14px; border:1px solid var(--br); border-radius:16px; background: rgba(11,18,32,.35)}
.kpi .n{font-size:22px; font-weight:800}
.kpi .l{color:var(--muted); font-size:12px}
