/* X-HR — Jaber X look: black & white with a neon tech blue accent (company brand color overrides --xa). */
:root { --xa: #00b4ff; --xa-ink: #003a52; --jx-ease: cubic-bezier(.2,.8,.2,1); --bg: #f4f5f7; --ink: #111; }
@keyframes jxRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
html, body { background: var(--bg); color: var(--ink); }
body { font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; font-size: 15px; }
a { color: inherit; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.x-top { position: sticky; top: 0; z-index: 1030; background: #0b0b0c; color: #fff; border-bottom: 1px solid #1d1d20; }
.x-top .wrap { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px 14px; }
.x-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; }
.x-brand img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; background: #fff; }
.x-brand .mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #111; border: 1px solid #2a2a2e; box-shadow: 0 0 0 1px rgba(0,180,255,.25), 0 0 18px rgba(0,180,255,.25); color: var(--xa); font-weight: 900; }
.x-brand small { display: block; font-weight: 500; color: #8f8f96; font-size: .72rem; line-height: 1; }
.x-top .spacer { flex: 1; }
.x-icon-btn { position: relative; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #ddd; background: #161618; border: 1px solid #242428; text-decoration: none; }
.x-icon-btn:hover { color: #fff; border-color: var(--xa); }
.x-icon-btn .badge { position: absolute; top: -4px; left: -4px; background: var(--xa); color: #001018; font-size: .65rem; }
.x-top .dropdown-menu { border-radius: 14px; border: 1px solid #ececec; box-shadow: 0 18px 40px rgba(0,0,0,.12); padding: 6px; min-width: 220px; }
.x-top .dropdown-item { border-radius: 10px; padding: 8px 10px; display: flex; gap: 10px; align-items: center; }
.x-top .dropdown-item i { width: 18px; text-align: center; color: #666; }
.x-user { display: flex; align-items: center; gap: 8px; color: #eee; text-decoration: none; background: #161618; border: 1px solid #242428; border-radius: 999px; padding: 4px 6px 4px 12px; }
.x-user .ava { width: 30px; height: 30px; border-radius: 50%; background: var(--xa); color: #001018; display: grid; place-items: center; font-weight: 800; }
.x-flash { max-width: 1320px; margin: 12px auto 0; padding: 0 14px; }
.x-flash .alert { border-radius: 14px; border: 0; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.x-banner { background: #fff7e0; color: #6b4e00; text-align: center; padding: 6px 12px; font-size: .85rem; border-bottom: 1px solid #f1dfa6; }
.x-banner.bad { background: #ffe8e8; color: #7a1010; border-color: #f3c0c0; }
.x-page { max-width: 1320px; margin: 0 auto; padding: 18px 14px 60px; }
.x-card { background: #fff; border: 1px solid #ececec; border-radius: 20px; padding: 18px; margin-bottom: 14px; animation: jxRise .45s var(--jx-ease) both; }
.x-card h2, .x-card h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 12px; }
.x-help { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #eef9ff; color: #0077aa; border: 1px solid #bfe9ff; font-size: .7rem; font-weight: 800; cursor: help; margin-inline-start: 4px; vertical-align: middle; position: relative; }
.x-help:hover::after, .x-help:focus::after { content: attr(data-tip); position: absolute; bottom: 130%; inset-inline-start: 50%; transform: translateX(50%); width: max-content; max-width: 280px; background: #111; color: #fff; font-weight: 500; font-size: .78rem; line-height: 1.6; padding: 8px 10px; border-radius: 10px; z-index: 50; white-space: normal; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.btn { border-radius: 12px; font-weight: 700; }
.btn-xa { background: var(--xa); color: #001018; border-color: var(--xa); }
.btn-xa:hover { filter: brightness(1.05); color: #001018; box-shadow: 0 0 0 4px rgba(0,180,255,.18); }
.form-control, .form-select { border-radius: 12px; min-height: 42px; font-size: 16px; }
.form-control:focus, .form-select:focus { border-color: var(--xa); box-shadow: 0 0 0 .2rem rgba(0,180,255,.18); }
.table { --bs-table-bg: transparent; }
.x-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.x-table th { font-size: .78rem; color: #777; font-weight: 700; padding: 8px 10px; border-bottom: 1px solid #eee; white-space: nowrap; text-align: start; }
.x-table td { padding: 10px; border-bottom: 1px solid #f2f2f2; vertical-align: middle; }
.x-table tr:hover td { background: #fafafa; }
.x-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.x-kpi { background: #fff; border: 1px solid #ececec; border-radius: 18px; padding: 14px 16px; }
.x-kpi b { display: block; font-size: 1.6rem; font-weight: 900; }
.x-kpi span { color: #777; font-size: .82rem; }
.x-code { font-family: ui-monospace, Menlo, Consolas, monospace; direction: ltr; unicode-bidi: isolate; background: #0f0f10; color: #c8f1ff; border-radius: 12px; padding: 10px 12px; display: block; white-space: pre-wrap; word-break: break-all; font-size: .85rem; }
.x-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #f1f1f1; }
.x-pill.ok { background: #e6f8ee; color: #0b6b34; } .x-pill.warn { background: #fff4dc; color: #8a5a00; } .x-pill.bad { background: #ffe8e8; color: #a01414; } .x-pill.info { background: #e7f6ff; color: #005f87; } .x-pill.dark { background: #111; color: #fff; }
/* auth pages */
.x-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 14px; background: radial-gradient(900px 500px at 85% -10%, rgba(0,180,255,.18), transparent 60%), #0b0b0c; }
.x-auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 26px; padding: 28px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: jxRise .5s var(--jx-ease) both; }
.x-auth-card.wide { max-width: 640px; }
.x-auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.x-auth-brand img, .x-auth-brand .mark { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.x-auth-brand .mark { display: grid; place-items: center; background: #0b0b0c; color: var(--xa); font-weight: 900; font-size: 1.3rem; box-shadow: 0 0 22px rgba(0,180,255,.35); }
.x-auth-brand h1 { font-size: 1.25rem; font-weight: 900; margin: 0; }
.x-auth-brand p { margin: 0; color: #777; font-size: .85rem; }
.x-auth-foot { text-align: center; color: #8f8f96; font-size: .8rem; margin-top: 16px; }
.x-auth-foot a { color: #cfefff; }
/* platform */
.p-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.p-side { background: #0b0b0c; color: #ddd; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.p-side a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; color: #cfcfd4; text-decoration: none; margin-bottom: 2px; }
.p-side a:hover, .p-side a.on { background: #1a1a1d; color: #fff; }
.p-side a.on i { color: var(--xa); }
.p-side .t { color: #6f6f76; font-size: .72rem; margin: 14px 12px 6px; }
.p-main { padding: 20px; min-width: 0; }
.p-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.p-head h1 { font-size: 1.4rem; font-weight: 900; margin: 0; }
@media (max-width: 900px) { .p-shell { grid-template-columns: 1fr; } .p-side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; } .p-side .t { display: none; } }
@media (max-width: 600px) { .x-top .wrap { gap: 6px; } .x-brand small { display: none; } .x-hide-sm { display: none !important; } }
