/* =====================================================================
   نظام التصميم — شريط الراتب (هوية وزارة الكهرباء)
   ===================================================================== */
:root {
  --navy-950: #041a33; --navy-900: #062a52; --navy: #07315d; --blue: #0c539e; --sky: #5b8eba; --sky-100: #e7f0f9;
  --slate: #4a576d; --red: #b82525; --red-2: #e61f2f; --red-50: #fdecee;
  --bg: #f1f4f9; --card: #ffffff; --ink: #0f2238; --muted: #5d6b7c; --line: #e2e8f0; --line-2: #cfd9e6;
  --ok: #0f8a5f; --ok-bg: #e3f6ee; --warn: #9a5b06; --warn-bg: #fff3d6; --err: #b42318; --err-bg: #feeceb;
  --r: 16px; --r-sm: 11px;
  --sh-1: 0 1px 2px rgba(7, 49, 93, .06), 0 4px 14px rgba(7, 49, 93, .06);
  --sh-2: 0 2px 4px rgba(7, 49, 93, .06), 0 18px 48px rgba(4, 26, 51, .16);
  --font: "Tajawal", "Cairo", system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 17px; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }
p { margin: 0; }
button { font-family: inherit; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: plaintext; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: plaintext; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.2em; }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none !important;
  background: var(--navy); color: #fff; transition: transform .08s, box-shadow .2s, background .2s, filter .2s;
  box-shadow: 0 6px 16px rgba(7, 49, 93, .25);
}
.btn:hover { background: var(--blue); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.red { background: var(--red); box-shadow: 0 6px 16px rgba(184, 37, 37, .28); }
.btn.red:hover { background: var(--red-2); }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--sky-100); border-color: var(--sky); }
.btn.light { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn.light:hover { background: rgba(255, 255, 255, .24); }
.btn.danger { background: transparent; color: var(--err); border: 1.5px solid #f2c6c2; box-shadow: none; }
.btn.danger:hover { background: var(--err-bg); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.lg { min-height: 54px; font-size: 16.5px; padding: 0 30px; }
.btn .spin { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- حقول ---------- */
.field { display: block; margin-top: 16px; }
.field > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 12.5px; }
.input, select.input {
  width: 100%; min-height: 50px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-2); border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(12, 83, 158, .14); }
.input::placeholder { color: #9aa8b8; }
.input-wrap { position: relative; }
.input-wrap .input { padding-left: 48px; padding-right: 14px; }
.input-wrap .toggle { position: absolute; top: 0; bottom: 0; left: 6px; width: 40px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 10px; }
.input-wrap .toggle:hover { color: var(--navy); background: var(--sky-100); }
.strength { display: flex; gap: 5px; margin-top: 8px; align-items: center; }
.strength b { flex: 1; height: 5px; border-radius: 4px; background: var(--line); transition: background .2s; }
.strength span { font-size: 12px; color: var(--muted); min-width: 52px; text-align: end; }
.strength[data-s="1"] b:nth-child(-n+1) { background: var(--red-2); }
.strength[data-s="2"] b:nth-child(-n+2) { background: #e08a00; }
.strength[data-s="3"] b:nth-child(-n+3) { background: #5aa300; }
.strength[data-s="4"] b:nth-child(-n+4) { background: var(--ok); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-top: 14px; }
.alert.err { background: var(--err-bg); color: var(--err); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.info { background: var(--sky-100); color: var(--navy); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--sky-100); color: var(--navy); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.red { background: var(--red-50); color: var(--red); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); padding: 22px; }
.card + .card { margin-top: 18px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h3 { font-size: 17px; }

/* =====================================================================
   بوابة الموظف — الواجهة الافتتاحية
   ===================================================================== */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(91, 142, 186, .55), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(230, 31, 47, .22), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy) 48%, #0b4382 100%);
  min-height: 100vh; display: flex; flex-direction: column; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
.hero-lines { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 300px; object-fit: cover; object-position: bottom; z-index: -1; pointer-events: none; }
.glow { position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; filter: blur(70px); opacity: .35; pointer-events: none; animation: breathe 7s ease-in-out infinite; }
.glow.a { background: #2a7fd6; top: -160px; inset-inline-start: -120px; }
.glow.b { background: var(--red-2); bottom: -240px; inset-inline-end: 8%; opacity: .22; animation-delay: -3s; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .5; } }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 52px; height: 52px; border-radius: 14px; background: #fff; padding: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); flex: none; }
.brand b { display: block; font-size: 17px; line-height: 1.25; }
.brand small { display: block; font-size: 12.5px; opacity: .82; line-height: 1.35; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

.hero-grid { flex: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 28px 0 150px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-size: 13.5px; font-weight: 700; }
.eyebrow .dot { color: #ff6671; box-shadow: 0 0 0 4px rgba(255, 102, 113, .25); }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 700; margin: 18px 0 14px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #8fc3ff, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(15.5px, 1.6vw, 18.5px); opacity: .9; max-width: 560px; }
.points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.points li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.points .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .2); font-size: 18px; flex: none; }

.auth { background: rgba(255, 255, 255, .98); color: var(--ink); border-radius: 22px; padding: 26px; box-shadow: var(--sh-2); position: relative; }
.auth::before { content: ""; position: absolute; inset-inline: 26px; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--red-2), var(--red)); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 13px; padding: 5px; gap: 4px; margin-bottom: 8px; }
.tab { border: 0; background: transparent; padding: 11px 8px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; transition: .15s; }
.tab[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(7, 49, 93, .14); }
.auth h2 { font-size: 21px; margin-top: 16px; }
.auth .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.auth .foot { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--muted); }
.auth .foot a { font-weight: 700; cursor: pointer; }
.code-input { text-transform: uppercase; letter-spacing: 3px; font-weight: 700; text-align: center; direction: ltr; }

.section { padding: 76px 0; }
.section.alt { background: #fff; }
.sec-h { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.sec-h .tag { color: var(--red); font-weight: 800; font-size: 14px; }
.sec-h h2 { font-size: clamp(25px, 3.2vw, 34px); margin: 6px 0 8px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px 24px; box-shadow: var(--sh-1); transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.step .n { position: absolute; top: -18px; inset-inline-start: 22px; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--blue)); box-shadow: 0 8px 18px rgba(7, 49, 93, .3); }
.step h3 { font-size: 18px; margin: 8px 0 6px; }
.step p { color: var(--muted); font-size: 14.5px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: var(--bg); }
.feat .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--blue); font-size: 22px; box-shadow: var(--sh-1); flex: none; }
.feat h4 { font-size: 16px; margin-bottom: 2px; }
.feat p { font-size: 13.8px; color: var(--muted); }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 13px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 14px; font-size: 14.5px; }

.footer { background: var(--navy-950); color: rgba(255, 255, 255, .8); padding: 34px 0; font-size: 14px; }
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer .brand .logo { width: 44px; height: 44px; }

/* ---------- لوحة الموظف بعد الدخول ---------- */
.app-top { background: linear-gradient(135deg, var(--navy-950), var(--navy) 60%, var(--blue)); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 6px 22px rgba(4, 26, 51, .25); }
.app-top .nav { padding: 12px 0; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-weight: 700; font-size: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-weight: 800; }
.app-main { padding: 26px 0 60px; }
.welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.welcome h1 { font-size: clamp(22px, 3vw, 30px); }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.chip { flex: none; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--sky); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 14px rgba(7, 49, 93, .25); }
.kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.kpi { border-radius: 18px; padding: 20px 22px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--sh-1); }
.kpi::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.kpi small { display: block; opacity: .85; font-weight: 600; font-size: 13.5px; }
.kpi b { display: block; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.25; font-weight: 800; }
.kpi i { font-style: normal; font-size: 13px; opacity: .85; margin-inline-start: 6px; font-weight: 600; }
.kpi.net { background: linear-gradient(135deg, var(--navy), var(--blue)); }
.kpi.earn { background: linear-gradient(135deg, #2b6aa8, var(--sky)); }
.kpi.ded { background: linear-gradient(135deg, #8f1a1a, var(--red-2)); }

.slip { padding: 0; overflow: hidden; }
.slip-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; background: linear-gradient(180deg, #f7fafd, #fff); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.slip-head .brand .logo { width: 46px; height: 46px; box-shadow: none; border: 1px solid var(--line); }
.slip-head .brand b { color: var(--navy); font-size: 15.5px; }
.slip-head .brand small { color: var(--muted); opacity: 1; }
.slip-period { text-align: end; }
.slip-period small { display: block; color: var(--muted); font-size: 12.5px; }
.slip-period b { color: var(--red); font-size: 19px; }
.slip-who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 18px; padding: 16px 22px; border-bottom: 1px dashed var(--line-2); }
.slip-who div small { display: block; color: var(--muted); font-size: 12.5px; }
.slip-who div b { font-size: 14.8px; }
.slip-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.slip-tables > div { padding: 18px 22px; }
.slip-tables > div + div { border-inline-start: 1px dashed var(--line-2); }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th { text-align: start; font-size: 12.8px; color: var(--muted); font-weight: 700; padding: 8px 4px; border-bottom: 2px solid var(--line); }
table.t th.num, table.t td.num { text-align: end; }
table.t td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
table.t tr.total td { font-weight: 800; border-bottom: 0; padding-top: 14px; color: var(--navy); }
.slip-net { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; flex-wrap: wrap; }
.slip-net span { font-weight: 700; opacity: .92; }
.slip-net b { font-size: 28px; font-weight: 800; }
.slip-net b i { font-style: normal; font-size: 14px; font-weight: 600; opacity: .85; margin-inline-start: 6px; }
.slip-note { margin: 16px 22px 20px; padding: 12px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 14px; font-weight: 600; }
.app-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.trend h3 { font-size: 17px; margin-bottom: 4px; }
.bars { display: flex; align-items: flex-end; justify-content: safe center; gap: 12px; height: 190px; padding: 14px 4px 0; overflow-x: auto; }
.bar { flex: 1; min-width: 44px; max-width: 90px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; cursor: pointer; }
.bar i { display: block; width: 100%; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--sky), var(--blue)); min-height: 6px; transition: .25s; }
.bar.on i { background: linear-gradient(180deg, var(--red-2), var(--red)); }
.bar:hover i { filter: brightness(1.1); }
.bar small { font-size: 11.5px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.bar em { font-style: normal; font-size: 11px; color: var(--muted); }

/* ---------- نافذة + إشعار ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(4, 26, 51, .55); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: #fff; width: min(520px, 100%); max-height: 92vh; overflow: auto; border-radius: 20px; padding: 24px; box-shadow: var(--sh-2); animation: pop .18s; }
.modal.wide { width: min(860px, 100%); }
.modal h3 { font-size: 19px; margin-bottom: 6px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.toasts { position: fixed; inset-inline: 0; bottom: 18px; display: grid; gap: 8px; justify-items: center; z-index: 200; pointer-events: none; padding: 0 12px; }
.toast { pointer-events: auto; background: var(--navy-950); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px; box-shadow: var(--sh-2); animation: pop .2s; max-width: 520px; }
.toast.err { background: var(--err); } .toast.ok { background: var(--ok); }

/* =====================================================================
   لوحة الإدارة
   ===================================================================== */
.gate { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--bg); }
.gate-side { position: relative; overflow: hidden; color: #fff; isolation: isolate; padding: 44px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(700px 400px at 90% 0%, rgba(91, 142, 186, .5), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy) 55%, #0b4382); }
.gate-side h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 14px 0 10px; }
.gate-side .lead { opacity: .88; max-width: 420px; }
.gate-form { display: grid; place-items: center; padding: 28px; }
.gate-card { width: min(430px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--sh-2); }
.gate-card h2 { font-size: 22px; }

.shell { display: grid; grid-template-columns: 276px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, var(--navy)); color: #fff; padding: 20px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.side .brand { padding: 4px 8px 18px; border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 10px; }
.side .brand .logo { width: 46px; height: 46px; }
.side .brand b { font-size: 15.5px; }
.nav-sec { font-size: 11.5px; letter-spacing: .5px; opacity: .55; padding: 14px 12px 4px; font-weight: 700; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: rgba(255, 255, 255, .78); font-weight: 600; font-size: 14.8px; cursor: pointer; border: 0; background: transparent; width: 100%; text-align: start; transition: .15s; position: relative; }
.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-item.on { background: linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)); color: #fff; box-shadow: inset 3px 0 0 var(--red-2); }
[dir="rtl"] .nav-item.on { box-shadow: inset -3px 0 0 var(--red-2); }
.nav-item .i { font-size: 19px; }
.nav-item .count { margin-inline-start: auto; background: var(--red-2); color: #fff; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; }
.side .grow { flex: 1; }
.me { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.me .avatar { background: linear-gradient(135deg, var(--red-2), var(--red)); color: #fff; }
.me small { display: block; opacity: .65; font-size: 12px; line-height: 1.3; }
.me b { font-size: 14px; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 28px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-size: 21px; }
.topbar .crumb { color: var(--muted); font-size: 13px; }
.menu-btn { display: none; }
.page { padding: 26px 28px 70px; max-width: 1280px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: 1.4fr 1fr; }
.stat { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--sh-1); }
.stat .ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 23px; flex: none; }
.stat .ic.b { background: var(--sky-100); color: var(--blue); } .stat .ic.g { background: var(--ok-bg); color: var(--ok); }
.stat .ic.r { background: var(--red-50); color: var(--red); } .stat .ic.a { background: var(--warn-bg); color: var(--warn); }
.stat small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat b { font-size: 25px; line-height: 1.2; }
.ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 10px;
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--line) 0); }
.ring div { width: 98px; height: 98px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; line-height: 1.2; }
.ring b { font-size: 24px; } .ring small { display: block; color: var(--muted); font-size: 11.5px; }
.legend { display: flex; justify-content: center; gap: 16px; font-size: 13px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-inline-end: 6px; background: var(--ok); }
.legend span + span::before { background: var(--line-2); }
table.list { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.list th { text-align: start; background: #f6f8fc; color: var(--muted); font-size: 12.8px; font-weight: 700; padding: 11px 14px; border-block: 1px solid var(--line); white-space: nowrap; }
table.list th:first-child { border-start-start-radius: 11px; border-end-start-radius: 11px; } table.list th:last-child { border-start-end-radius: 11px; border-end-end-radius: 11px; }
table.list td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:hover td { background: #fafcff; }
.tw { overflow-x: auto; }
.empty { text-align: center; padding: 38px 16px; color: var(--muted); }
.empty .ic { font-size: 40px; color: var(--line-2); display: block; margin: 0 auto 8px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input { min-height: 44px; font-size: 15px; }
.toolbar .grow { flex: 1; min-width: 200px; position: relative; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

.stepper { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.stepper .s { flex: 1; min-width: 150px; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--muted); }
.stepper .s b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: 13px; }
.stepper .s.on { color: var(--navy); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(12, 83, 158, .1); }
.stepper .s.on b { background: var(--blue); color: #fff; }
.stepper .s.done b { background: var(--ok); color: #fff; }
.drop { border: 2px dashed var(--line-2); border-radius: 18px; padding: 34px 18px; text-align: center; background: #fafcff; transition: .15s; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--blue); background: var(--sky-100); }
.drop .ic { font-size: 40px; color: var(--blue); display: block; margin: 0 auto 6px; }
.drop b { display: block; font-size: 16px; }
.file-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 14px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: 14px; }
.mini-stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.mini { background: var(--bg); border-radius: 14px; padding: 10px 16px; min-width: 130px; }
.mini small { display: block; color: var(--muted); font-size: 12.5px; }
.mini b { font-size: 19px; }
ul.issues { margin: 10px 0 0; padding-inline-start: 20px; font-size: 14px; max-height: 190px; overflow: auto; }
ul.issues.e { color: var(--err); } ul.issues.w { color: var(--warn); }
.progress { height: 12px; border-radius: 8px; background: var(--line); overflow: hidden; margin: 14px 0 6px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--sky)); transition: width .25s; border-radius: 8px; }
.codes-note { border: 1.5px solid #f3d9a6; background: var(--warn-bg); color: var(--warn); padding: 14px 16px; border-radius: 14px; font-weight: 600; font-size: 14.5px; margin: 14px 0; }
.months-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--sh-1); }
.mcard h4 { font-size: 17px; color: var(--navy); }
.mcard .v { font-size: 13px; color: var(--muted); margin-top: 6px; }
.mcard .v b { color: var(--ink); }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.2px; align-items: flex-start; }
.log li:last-child { border: 0; }
.log .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--sky-100); color: var(--blue); display: grid; place-items: center; flex: none; }
.log small { color: var(--muted); display: block; font-size: 12.3px; }
.code-box { font-size: 30px; font-weight: 800; letter-spacing: 6px; text-align: center; background: var(--bg); border: 2px dashed var(--line-2); border-radius: 16px; padding: 18px; margin: 14px 0; direction: ltr; color: var(--navy); user-select: all; }

/* بطاقات رموز التفعيل للطباعة */
#print-area { display: none; }

/* ---------- تجاوب ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 130px; }
  .steps, .features { grid-template-columns: 1fr; }
  .steps { gap: 30px; }
  .kpis { grid-template-columns: 1fr 1fr; } .kpis .net { grid-column: 1 / -1; }
  .slip-who { grid-template-columns: 1fr 1fr; }
  .gate { grid-template-columns: 1fr; } .gate-side { padding: 28px; min-height: 260px; }
  .shell { grid-template-columns: minmax(0, 1fr); } html, body { overflow-x: hidden; } .page > *, .card { min-width: 0; } .card:has(table) { overflow-x: auto; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 276px; z-index: 60; transform: translateX(100%); transition: transform .25s; box-shadow: var(--sh-2); }
  [dir="ltr"] .side { transform: translateX(-100%); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(4, 26, 51, .5); z-index: 55; }
  .menu-btn { display: inline-flex; }
  .g4 { grid-template-columns: 1fr 1fr; } .g2 { grid-template-columns: 1fr; }
  .topbar, .page { padding-inline: 16px; }
}
@media (max-width: 640px) {
  .slip-tables { grid-template-columns: 1fr; } .slip-tables > div + div { border-inline-start: 0; border-top: 1px dashed var(--line-2); }
  .kpis { grid-template-columns: 1fr; }
  .auth { padding: 20px; border-radius: 20px; }
  .brand small { font-size: 11.5px; }
  .g4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .user-chip span.nm { display: none; }
  .hero-text .points { display: none; }
  .hero-grid { gap: 22px; padding-top: 6px; }
  .hero h1 { margin: 12px 0 8px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- الطباعة ---------- */
@media print {
  body { background: #fff; }
  .hero, .section, .footer, .app-top, .chips, .kpis, .app-actions, .trend, .toasts, .modal-back, .welcome, .side, .topbar, .no-print { display: none !important; }
  .app-main { padding: 0; } .container { width: 100%; }
  .slip { box-shadow: none; border: 1.5px solid #222; border-radius: 0; }
  .slip-net { background: #fff !important; color: #000 !important; border-top: 2px solid #000; }
  body.printing-codes > *:not(#print-area) { display: none !important; }
  body.printing-codes #print-area { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px; }
  .pcard { border: 1.5px dashed #444; border-radius: 10px; padding: 12px 14px; break-inside: avoid; font-size: 13px; }
  .pcard .h { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid #ccc; padding-bottom: 8px; margin-bottom: 8px; }
  .pcard .h img { width: 36px; height: 36px; }
  .pcard .c { font-size: 24px; font-weight: 800; letter-spacing: 4px; direction: ltr; text-align: center; margin: 8px 0; }
}


/* ===== واجهة بسيطة: شاشة واحدة بحركات ناعمة ===== */
#landing { min-height: 100vh; display: flex; flex-direction: column; }
#landing .hero { flex: 1; display: flex; flex-direction: column; justify-content: center; }
#landing .hero-grid { align-items: center; }
.hero-text h1 { font-size: clamp(38px, 5.2vw, 64px); }
.hero-text .lead { max-width: 440px; }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sheen { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.hero .nav { animation: fadeIn .8s both; }
.hero-text .eyebrow { animation: rise .7s .05s both; }
.hero-text h1 { animation: rise .8s .15s both; }
.hero-text .lead { animation: rise .8s .28s both; }
.auth { animation: rise .9s .25s both cubic-bezier(.2,.8,.2,1); }
.hero-text h1 em { background: linear-gradient(90deg, #9cc6ff, #fff, #9cc6ff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: sheen 6s linear infinite; }
.auth form:not([hidden]) { animation: fadeIn .35s both; }
.footer .alert { padding: 6px 12px; font-size: 13px; }
/* لوحة المنتسب */
.kpis.one { grid-template-columns: 1fr; }
.kpis.one .kpi.net { text-align: center; padding: 30px 20px; }
.kpis.one .kpi.net b { font-size: clamp(38px, 8vw, 58px); }
.slip, .kpis.one .kpi, .chips { animation: rise .6s both cubic-bezier(.2,.8,.2,1); }
.slip { animation-delay: .1s; }
.welcome { animation: fadeIn .6s both; }
.slip-net { display: none; }
@media print { .slip-net { display: flex; } .kpis.one { display: none; } }

/* ===================== طبقة الجمالية والحركة ===================== */
:root { --font-display: "Noto Kufi Arabic", "Tajawal", system-ui, sans-serif; --ease: cubic-bezier(.2, .8, .2, 1); }
h1, h2, .hero-text h1, .welcome h1, .gate-side h1, .auth h2, .gate-card h2 { font-family: var(--font-display); letter-spacing: 0; }
.hero-text h1 { font-weight: 700; line-height: 1.2; text-shadow: 0 6px 30px rgba(0, 0, 0, .25); }
.num, .kpi b, .stat b { font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }

/* خلفية حيّة */
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(30px, -24px, 0) scale(1.12); } }
.glow.a { animation: drift 14s ease-in-out infinite; }
.glow.b { animation: drift 18s ease-in-out -6s infinite reverse; }
@keyframes gridMove { to { background-position: 48px 48px; } }
.hero::before { animation: gridMove 22s linear infinite; }

/* بطاقة الدخول: تحرّك خفيف مع المؤشر + مؤشر منزلق للتبويب */
.auth { transform-style: preserve-3d; transition: box-shadow .4s var(--ease); will-change: transform; }
.auth:hover { box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .55); }
.tabs { position: relative; }
.tab { position: relative; z-index: 1; background: transparent !important; box-shadow: none !important; }
.tabs::before { content: ""; position: absolute; inset: 5px; inset-inline-start: 5px; width: calc(50% - 7px); background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(7, 49, 93, .16); transition: transform .45s var(--ease); }
.tabs:has(.tab:last-child[aria-selected="true"])::before { transform: translateX(calc(-100% - 4px)); }
[dir="ltr"] .tabs:has(.tab:last-child[aria-selected="true"])::before { transform: translateX(calc(100% + 4px)); }
.tab[aria-selected="true"] { color: var(--navy); }

/* حقول وأزرار */
.input { transition: border-color .2s, box-shadow .25s, transform .25s var(--ease), background .2s; }
.input:focus { transform: translateY(-1px); }
.btn { position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .25s, background .2s; }
.btn:not(.ghost):not(.danger)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(120%); transition: transform .7s var(--ease); }
.btn:not(.ghost):not(.danger):hover::after { transform: translateX(-120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.alert:not([hidden]) { animation: rise .35s var(--ease) both; }

/* الشريط: ظهور متتابع للصفوف */
.slip table.t tbody tr { animation: rowIn .5s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.slip table.t tbody tr:nth-child(1) { animation-delay: .15s; } .slip table.t tbody tr:nth-child(2) { animation-delay: .21s; }
.slip table.t tbody tr:nth-child(3) { animation-delay: .27s; } .slip table.t tbody tr:nth-child(4) { animation-delay: .33s; }
.slip table.t tbody tr:nth-child(5) { animation-delay: .39s; } .slip table.t tbody tr:nth-child(6) { animation-delay: .45s; }
.slip table.t tbody tr:nth-child(n+7) { animation-delay: .5s; }
.slip-who > div { animation: rise .6s var(--ease) both; }
.slip-who > div:nth-child(2) { animation-delay: .06s; } .slip-who > div:nth-child(3) { animation-delay: .12s; } .slip-who > div:nth-child(4) { animation-delay: .18s; }
.kpis.one .kpi.net { position: relative; overflow: hidden; }
.kpis.one .kpi.net::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%); transform: translateX(120%); animation: sweep 5s 1.2s ease-in-out infinite; }
@keyframes sweep { 0% { transform: translateX(120%); } 40%, 100% { transform: translateX(-120%); } }
.chip { transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s, border-color .2s; }
.chip:hover { transform: translateY(-2px); }
.chips .chip { animation: rise .5s var(--ease) both; }
.chips .chip:nth-child(2) { animation-delay: .06s; } .chips .chip:nth-child(3) { animation-delay: .12s; } .chips .chip:nth-child(4) { animation-delay: .18s; } .chips .chip:nth-child(n+5) { animation-delay: .24s; }

/* لوحة الإدارة */
.page > * { animation: rise .5s var(--ease) both; }
.page > *:nth-child(2) { animation-delay: .06s; } .page > *:nth-child(3) { animation-delay: .12s; } .page > *:nth-child(4) { animation-delay: .18s; }
.stat { transition: transform .3s var(--ease), box-shadow .3s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.grid.g4 > .stat { animation: rise .6s var(--ease) both; }
.grid.g4 > .stat:nth-child(2) { animation-delay: .07s; } .grid.g4 > .stat:nth-child(3) { animation-delay: .14s; } .grid.g4 > .stat:nth-child(4) { animation-delay: .21s; }
.nav-item { transition: background .2s, transform .25s var(--ease), padding .25s var(--ease); }
.nav-item:hover { transform: translateX(-4px); }
table.list tbody tr { animation: fadeIn .4s both; transition: background .15s; }
table.list tbody tr:hover { background: var(--sky-100); }
.bars .bar i, .ring circle { transition: height 1s var(--ease), stroke-dashoffset 1.2s var(--ease); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bars .bar i { transform-origin: bottom; animation: grow 1s var(--ease) both; }
.modal { animation: pop .35s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
.modal-back { animation: fadeIn .25s both; }
.toasts > * { animation: rise .4s var(--ease) both; }
.card.empty svg { animation: floaty 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) { .auth { transform: none !important; } .btn::after { display: none; } }

/* ===================== التنبيهات ===================== */
.notices { display: grid; gap: 10px; }
.notices:empty { display: none; }
.notice { --nc: #0c539e; --nb: #eaf3ff; display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 16px; background: var(--nb); border: 1px solid color-mix(in srgb, var(--nc) 22%, transparent); border-inline-start: 4px solid var(--nc); animation: rise .6s calc(var(--i, 0) * .09s + .1s) var(--ease) both; position: relative; overflow: hidden; }
.notice::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); transform: translateX(120%); animation: sweep 6s calc(var(--i, 0) * .6s + 1.5s) ease-in-out infinite; pointer-events: none; }
.notice .ni { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--nc); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--nc) 40%, transparent); }
.notice .ni .i { width: 18px; height: 18px; }
.notice b { display: block; color: var(--ink); font-weight: 700; line-height: 1.5; }
.notice b .pin { width: 14px; height: 14px; color: var(--nc); vertical-align: -2px; }
.notice p { margin: 2px 0 0; color: var(--ink-2, #3b4a5e); font-size: 14px; line-height: 1.7; }
.notice.success { --nc: #0f8a55; --nb: #e8f7ef; }
.notice.warn { --nc: #c27a06; --nb: #fff5df; }
.notice.urgent { --nc: #c0262d; --nb: #fdebec; }
.notice.urgent .ni { animation: ring 2.4s ease-in-out infinite; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 8%, 24% { transform: rotate(14deg); } 16%, 32% { transform: rotate(-14deg); } 40% { transform: rotate(0); } }
.notices.pub { margin-top: 22px; max-width: 520px; }
.notices.pub .notice { background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); border-color: rgba(255, 255, 255, .22); border-inline-start-color: var(--nc); }
.notices.pub .notice b, .notices.pub .notice p { color: #fff; }
.notices.pub .notice p { opacity: .85; }
#notices { margin-bottom: 14px; }
.bell { position: relative; padding-inline: 12px; }
.bell .bn { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(230, 31, 47, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(230, 31, 47, 0); } }
.modal .notices { max-height: 60vh; overflow: auto; padding: 2px; }

/* أدوات الأدمن الجديدة */
.seg { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 16px; cursor: pointer; transition: border-color .2s, background .2s, transform .25s var(--ease), box-shadow .25s; }
.opt:hover { transform: translateY(-2px); box-shadow: var(--sh-1); }
.opt input { margin-top: 5px; accent-color: var(--navy); width: 18px; height: 18px; }
.opt b { display: block; } .opt small { color: var(--muted); }
.opt:has(input:checked) { border-color: var(--navy); background: var(--sky-100); }
.kinds { display: flex; gap: 8px; flex-wrap: wrap; }
.kind { cursor: pointer; }
.kind input { position: absolute; opacity: 0; }
.kind span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); font-weight: 600; font-size: 14px; transition: .2s var(--ease); }
.kind input:checked + span { color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.kind.info input:checked + span { background: #0c539e; } .kind.success input:checked + span { background: #0f8a55; }
.kind.warn input:checked + span { background: #c27a06; } .kind.urgent input:checked + span { background: #c0262d; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.switch-row:last-of-type { border-bottom: 0; }
.sw { position: relative; width: 46px; height: 26px; flex: none; }
.sw input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; margin: 0; }
.sw i { position: absolute; inset: 0; border-radius: 13px; background: var(--line-2); transition: background .25s; }
.sw i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.sw input:checked + i { background: var(--navy); }
.sw input:checked + i::after { transform: translateX(-20px); }
.n-row { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); animation: fadeIn .4s both; }
.n-row:last-child { border-bottom: 0; }
.n-row .grow { flex: 1; min-width: 0; }
.n-row.off { opacity: .55; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: minmax(0, 1fr); } }
.sticky { position: sticky; top: 90px; }
.slip-mini { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); margin-bottom: 8px; animation: rise .4s var(--ease) both; }
.who { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.who .avatar { width: 54px; height: 54px; font-size: 22px; flex: none; }
.row-actions { flex-wrap: wrap; justify-content: flex-end; }
.ico-btn { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; }
.bell { overflow: visible; }
.who .avatar { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(7, 49, 93, .3); }
@media (max-width: 640px) { .notices.pub .notice:nth-child(n+3) { display: none; } }
h1, h2, .hero-text h1, .welcome h1, .gate-side h1, .auth h2, .gate-card h2 { word-spacing: 0; line-height: 1.45; font-weight: 700; }

/* ---------- لوحة المراقبة المباشرة ---------- */
.g2-1 { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 900px) { .g2-1 { grid-template-columns: 1fr; } }
.alert.trial { margin: 0 0 16px; }
.live-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.live-h h3 { margin: 0; font-family: var(--font-display, inherit); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 5px 12px; border-radius: 99px; }
.live i, .people .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; position: relative; }
.live i::after, .people .dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); animation: livepulse 1.6s ease-out infinite; }
@keyframes livepulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.stat.hot { background: linear-gradient(135deg, #fff, var(--ok-bg)); border-color: #bfe6cf; }
.live-grid .stat { animation: rise .6s both; } .live-grid .stat:nth-child(2) { animation-delay: .06s; } .live-grid .stat:nth-child(3) { animation-delay: .12s; } .live-grid .stat:nth-child(4) { animation-delay: .18s; }
.tchart { width: 100%; height: 220px; display: block; overflow: visible; }
.tchart .gl { stroke: var(--line); stroke-dasharray: 3 5; } .tchart .gt { fill: var(--muted); font-size: 11px; }
.tchart .ln1, .tchart .ln2 { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s .2s cubic-bezier(.3,.7,.2,1) forwards; vector-effect: non-scaling-stroke; }
.tchart .ln1 { stroke: #1d6fb8; } .tchart .ln2 { stroke: #c8102e; animation-delay: .5s; }
.tchart .d1 { fill: #fff; stroke: #1d6fb8; stroke-width: 2; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.legend-i { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.legend-i i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .legend-i .l1 { background: #1d6fb8; } .legend-i .l2 { background: #c8102e; margin-inline-start: 8px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 340px; overflow: auto; }
.people li { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; transition: background .2s; animation: rise .5s both; }
.people li:hover { background: var(--sky-100); }
.people .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--sky-100); color: var(--blue); flex: none; }
.people .av.on { background: var(--ok-bg); color: var(--ok); }
.people div { flex: 1; min-width: 0; } .people b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people small { color: var(--muted); font-size: 12.5px; }
.people em { font-style: normal; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.still *, .still { animation: none !important; } .still .ln1, .still .ln2 { stroke-dashoffset: 0 !important; }
