:root { --bg:#f8f4ee; --card:#fff; --ink:#1b2430; --muted:#6b7686; --brand:#4B0E6A; --brand2:#8A3FFC; --accent:#FF7A2E; --deep:#2d0232; --cream:#F6EFE6; --line:#e3e8ee; --err:#b3261e; }
* { box-sizing: border-box; }
body { margin:0; font-family:'Inter','Tajawal',system-ui,sans-serif; background:var(--bg); color:var(--ink); }
h1 { font-size:1.4rem; margin:0 0 1rem; }
.center { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:18px; }
.login { width:100%; max-width:380px; display:flex; flex-direction:column; gap:12px; }
label { display:flex; flex-direction:column; gap:6px; font-size:.9rem; color:var(--muted); }
input { padding:10px 12px; border:1px solid var(--line); border-radius:8px; font:inherit; }
button { font:inherit; cursor:pointer; }
button.primary { background:var(--brand); color:#fff; border:0; padding:11px; border-radius:8px; font-weight:600; }
button.primary:disabled { opacity:.6; }
button.link { background:none; border:0; color:var(--brand); padding:6px; text-align:start; }
.brand { font-weight:700; font-size:1.15rem; color:var(--brand); }
.error { color:var(--err); background:#fdecea; padding:10px; border-radius:8px; margin-bottom:10px; }
.muted { color:var(--muted); }
.layout { display:flex; min-height:100vh; }
aside { width:230px; background:linear-gradient(180deg,#3a0645,#2d0232); color:#fff; border-inline-end:0; padding:16px; display:flex; flex-direction:column; gap:10px; }
nav { display:flex; flex-direction:column; gap:4px; margin-top:12px; }
nav a { padding:10px 12px; border-radius:8px; color:var(--ink); text-decoration:none; }
nav a.active { background:#efe3f6; color:var(--brand); font-weight:700; }
.spacer { flex:1; }
main { flex:1; padding:24px; max-width:1000px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; }
.kpi .num { font-size:2rem; font-weight:700; color:var(--brand); }
@media (max-width:720px) {
  .layout { flex-direction:column; }
  aside { width:100%; flex-direction:row; flex-wrap:wrap; align-items:center; border-inline-end:0; border-bottom:1px solid var(--line); }
  nav { flex-direction:row; flex-wrap:wrap; margin:0; }
  .spacer { display:none; }
  main { padding:14px; }
}
h2 { font-size:1.1rem; margin:18px 0 10px; }
.head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:6px; }
.head h1, .head h2 { margin:0; }
.small { font-size:.85rem; }
button.small { padding:7px 12px; }
button.secondary { background:#fff; color:var(--brand); border:1px solid var(--brand); padding:9px 12px; border-radius:8px; }
.search { width:100%; margin:10px 0; }
.list { display:flex; flex-direction:column; gap:8px; }
.item { display:flex; align-items:center; justify-content:space-between; gap:10px; text-decoration:none; color:inherit; }
a.card.item:hover { border-color:var(--brand); }
.card + .card, .form + .card { margin-top:8px; }
.form { display:flex; flex-direction:column; gap:12px; margin-top:8px; }
.row { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px; }
select { padding:10px 12px; border:1px solid var(--line); border-radius:8px; font:inherit; background:#fff; }
.badge { display:inline-block; padding:2px 10px; border-radius:999px; font-size:.8rem; background:#eef1f4; color:var(--ink); }
.badge.ok { background:#e2f4ea; color:#14683a; } .badge.warn { background:#fff3d6; color:#8a5a00; } .badge.bad { background:#fdecea; color:var(--err); }
.ok-msg { background:#e2f4ea; color:#14683a; padding:10px; border-radius:8px; margin-bottom:10px; }
.tabs { display:flex; gap:8px; margin:8px 0 12px; flex-wrap:wrap; }
.tab { background:#fff; border:1px solid var(--line); border-radius:999px; padding:7px 14px; }
.tab.on { background:var(--brand); color:#fff; border-color:var(--brand); }
textarea { padding:10px 12px; border:1px solid var(--line); border-radius:8px; font:inherit; width:100%; }
.btns { display:flex; gap:8px; flex-wrap:wrap; }
.btns button { padding:10px 14px; border-radius:8px; }
button.danger { background:#fff; color:var(--err); border:1px solid var(--err); }
.check { flex-direction:row; align-items:flex-start; gap:8px; color:var(--ink); }
.check input { margin-top:5px; }
.pre { background:#f4f6f8; padding:10px; border-radius:8px; overflow:auto; font-size:.8rem; white-space:pre-wrap; }
.chips { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin:8px 0; }
button.primary.small, button.danger.small, button.secondary.small { padding:7px 12px; }

/* notifications */
a.bell { position:relative; display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:8px; color:var(--ink); text-decoration:none; background:#f3f6f8; }
a.bell.active { background:#e6f4f1; color:var(--brand); font-weight:600; }
.bell-badge { position:absolute; inset-inline-end:8px; top:50%; transform:translateY(-50%); min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:var(--err); color:#fff; font-size:.75rem; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
h1 .bell-badge { position:static; transform:none; vertical-align:middle; }
.notif { cursor:pointer; }
.notif.unread { border-inline-start:4px solid var(--brand); background:#f2faf8; }
.toast { position:fixed; top:16px; inset-inline-end:16px; z-index:50; max-width:340px; background:#fff; border:1px solid var(--brand); border-inline-start:6px solid var(--brand); border-radius:10px; padding:12px 14px; box-shadow:0 8px 24px rgba(0,0,0,.18); cursor:pointer; animation:toastin .25s ease-out; }
.toast-title { font-weight:700; margin-bottom:4px; }
@keyframes toastin { from { transform:translateY(-12px); opacity:0; } to { transform:none; opacity:1; } }
@media (max-width:760px) { .toast { inset-inline-start:16px; max-width:none; } }

/* ---- More Vexoria brand ---- */
aside nav a { color:#e9dcf2; }
aside nav a:hover { background:rgba(255,255,255,.08); }
aside nav a.active { background:rgba(255,255,255,.12); color:#fff; box-shadow:inset 3px 0 0 var(--accent); }
[dir=rtl] aside nav a.active { box-shadow:inset -3px 0 0 var(--accent); }
aside button.link { color:#e9dcf2; }
aside .bell { color:#e9dcf2; }
aside .bell.active { color:#fff; }
.brand-logo { display:block; width:100%; max-width:190px; height:auto; border-radius:10px; margin:0 auto 4px; }
.login-logo { display:block; width:100%; height:auto; border-radius:12px; margin-bottom:6px; }
body.auth-bg { background:radial-gradient(circle at 20% 0%,#5b0f7a 0%,#2d0232 60%); }
.center .card.login { box-shadow:0 18px 50px rgba(0,0,0,.35); border:0; }
button.primary:hover { background:var(--brand2); }
input:focus, select:focus, textarea:focus { outline:2px solid var(--accent); outline-offset:0; border-color:var(--accent); }
.kpi .num { color:var(--brand); }
h1 { color:var(--brand); }
a.card.item:hover { border-color:var(--accent); }
@media (max-width:720px) { .brand-logo { max-width:130px; margin:0; } aside { padding:10px 12px; } }
/* bell in sidebar */
aside a.bell { background:rgba(255,255,255,.10); color:#fff; font-weight:600; border:1px solid rgba(255,255,255,.14); }
aside a.bell:hover { background:rgba(255,255,255,.18); }
aside a.bell.active { background:rgba(255,255,255,.20); color:#fff; box-shadow:inset 3px 0 0 var(--accent); }
[dir=rtl] aside a.bell.active { box-shadow:inset -3px 0 0 var(--accent); }
aside a.bell .bell-badge { background:var(--accent); color:#fff; box-shadow:0 0 0 2px #3a0645; }
