:root {
  --bg: #07080d;
  --panel: #10131b;
  --card: #161b26;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --muted: #9aa3b5;
  --lime: #d6ff3f;
  --lime-ink: #11140a;
  --violet: #8b7cff;
  --danger: #ff6b7a;
  --ok: #3ee0a0;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 400px at 100% -10%, rgba(139, 124, 255, 0.18), transparent 55%),
    radial-gradient(700px 320px at -10% 0%, rgba(214, 255, 63, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side {
  border-left: 1px solid var(--line);
  background: rgba(10, 12, 18, 0.92);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 6px 8px 14px; }
.mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(160deg, #7a5cff, #2a2158);
  border: 1px solid rgba(214, 255, 63, 0.45);
  display: grid; place-items: center;
  color: var(--lime); font-weight: 700;
}
.brand b { display: block; font-size: 15px; }
.brand span { color: var(--muted); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav a {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}
.side .logout { margin-top: auto; color: var(--muted); padding: 11px 12px; }

.main { padding: 28px 32px 48px; }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.kicker { color: var(--lime); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 6px; }
h1 { margin: 0; font-size: 28px; font-weight: 650; }
.role {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 13px;
}

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.card .num { font-size: 30px; font-weight: 700; }
.card p { color: var(--muted); line-height: 1.6; margin: 8px 0 0; }

.btn, button {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--lime-ink);
  border: 0; border-radius: 12px;
  padding: 12px 16px; font-weight: 700; cursor: pointer;
}
.btn.ghost, button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

form .card { margin-bottom: 14px; }
label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 13px; }
input[type="text"], input[type="number"], input[type="password"], input:not([type]) {
  width: 100%;
  background: #0c0f16;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
input:focus { outline: 2px solid rgba(214, 255, 63, 0.35); border-color: transparent; }
.check { display: flex; gap: 8px; align-items: center; margin: 14px 0; color: var(--text); }
.check input { width: auto; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: right; padding: 12px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
.ok { color: var(--ok); }
.err { color: var(--danger); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.login h1 { margin-bottom: 6px; }
.login p { color: var(--muted); margin-top: 0; }
.login button { width: 100%; margin-top: 8px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { border-left: 0; border-bottom: 1px solid var(--line); }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .side .logout { margin-top: 0; }
  .grid { grid-template-columns: 1fr; }
  .main { padding: 18px; }
}
