/* هوية موافَق — تُحمَّل بعد style.css وتعلو عليه */
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@500;600;700&display=swap');

:root {
  --ink: #0B2E33;
  --ink-2: #4A5F63;
  --ink-3: #7D8E91;
  --line: #E3E0D8;
  --bg: #F6F4EF;
  --brand: #0E6E6A;
  --brand-2: #0A5652;
  --brand-soft: #E2F0EE;
  --mint: #34C38F;
  --mint-soft: #E3F6EE;
  --ok: #1E9E6E;
  --ok-soft: #E3F6EE;
}

h1, h2, h3, .btn, .kpi b, .verdict h2 { font-family: 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif; }
h2 { font-weight: 600; }

/* ---------- الشعار ---------- */
.mk { display: block; flex: none; }
.wm { font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif; font-weight: 600; line-height: 1; white-space: nowrap; }
.fa { position: relative; display: inline; }
.fatha { position: absolute; width: .42em; height: .28em; top: -.2em; left: 50%; transform: translateX(-50%); overflow: visible; }
.lockup { display: inline-flex; align-items: center; gap: .14em; text-decoration: none; color: inherit; }
.lockup .mk { width: 1.9em; height: 1.9em; }
.lockup .lk-sub { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 600; font-size: max(.2em, 8.5px); letter-spacing: .42em; opacity: .65; display: block; direction: ltr; text-align: center; margin-top: .55em; padding-left: .42em; }

/* ---------- الهيكل الداخلي ---------- */
.layout { grid-template-columns: 248px 1fr; }
.side { background: var(--ink); padding: 22px 14px; }
.side .brand { display: block; padding: 6px 10px 26px; color: #fff; font-size: 25px; }
.side .brand .lockup { gap: .1em; }
.nav button { color: #BFD0D2; }
.nav button.on { background: var(--brand); color: #fff; box-shadow: inset -3px 0 0 var(--mint); }
.side .who { border-top-color: rgba(255, 255, 255, .08); }
.side .who button { color: var(--mint); }

.content { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 34px; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.topbar .lockup { font-size: 19px; color: var(--ink); }
.topbar .tagline { color: var(--ink-2); font-size: .9rem; }
.topbar .tagline b { color: var(--brand); font-weight: 600; }
.topbar-brand { display: none; }
.content main { flex: 1; }
.foot-brand {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 34px 26px; color: var(--ink-3); font-size: .8rem; border-top: 1px solid var(--line); margin-top: 10px;
}
.foot-brand .lockup { font-size: 12px; color: var(--ink-2); }

.card { border-color: var(--line); }
.head h2 { font-size: 1.4rem; }
.head h2::after { content: ''; display: block; width: 34px; height: 3px; border-radius: 3px; background: var(--mint); margin-top: 8px; }

.btn { background: var(--brand); }
.btn:hover { background: var(--brand-2); }
.btn.big { background: var(--ink); }
.btn.big:hover { background: #072226; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.v-ok { background: var(--ok-soft); } .v-ok .ic { background: var(--mint); color: var(--ink); } .v-ok h2 { color: var(--ok); }
.bars .b i { background: linear-gradient(180deg, var(--brand), var(--brand-2)); }
.chip { background: var(--brand-soft); color: var(--brand-2); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.empty .mk { width: 64px; height: 64px; margin: 0 auto 12px; opacity: .9; }

/* ---------- شاشة الدخول ---------- */
.login-wrap { grid-template-columns: 1.1fr 1fr; background: var(--bg); }
.login-art {
  background:
    radial-gradient(circle at 15% 85%, rgba(52, 195, 143, .16), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(14, 110, 106, .35), transparent 50%),
    var(--ink);
  position: relative; overflow: hidden;
}
.login-art .ghost { position: absolute; width: 520px; height: 520px; left: -140px; bottom: -160px; opacity: .07; pointer-events: none; }
.login-art .lockup { font-size: 52px; color: #fff; }
.login-art h1 { font-family: 'Readex Pro', sans-serif; font-weight: 600; font-size: 2.3rem; margin-top: 46px; }
.login-art h1 em { font-style: normal; color: var(--mint); }
.login-art p { color: #B5C8CB; }
.login-art .steps i { color: #fff; }
.login-art .steps .s-ok { background: var(--mint); color: var(--ink); }
.login-art .steps .s-warn { background: #D9932B; }
.login-art .steps .s-bad { background: #D2483F; }
.login-art small { color: #8FA6AA; position: relative; }
.login-form { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.login-form .card { width: 100%; }
.login-form > .lockup { font-size: 34px; color: var(--ink); display: inline-flex; }
.login-form .card { border-top: 4px solid var(--mint); }
.login-form .card h2::after { content: ''; display: block; width: 30px; height: 3px; border-radius: 3px; background: var(--mint); margin-top: 8px; }
.login-foot { color: var(--ink-3); font-size: .8rem; text-align: center; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side .brand { display: none; }
  .topbar { padding: 12px 18px; }
  .topbar .tagline { display: none; }
  .topbar-brand { display: inline-flex; }
  .foot-brand { padding: 14px 18px 22px; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-form > .lockup { display: inline-flex; }
}
@media (min-width: 901px) {
  .topbar .lockup.topbar-brand { display: none; }
}

@media print {
  .topbar { position: static; border: 0; }
  .topbar-brand { display: inline-flex !important; }
  .content { display: block; }
}
