/* هوية بلو كلينك: أزرق الشعار الداكن والفاتح، خلفية فاتحة، منحنيات مستوحاة من خط الشعار. */
:root {
  --navy: #07508c; --navy-2: #0a3f6e; --sky: #1e9bd7; --sky-soft: #e6f4fb; --ice: #f3f8fc;
  --ink: #12263a; --muted: #5a6b7c; --line: #dbe6ef; --card: #ffffff;
  --ok: #1b7a43; --ok-bg: #e7f5ec; --warn: #9a5b00; --warn-bg: #fff3dd; --bad: #b42318; --bad-bg: #fdecea;
  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(7, 80, 140, .06), 0 8px 24px rgba(7, 80, 140, .08);
  --shadow-lg: 0 2px 6px rgba(7, 80, 140, .08), 0 22px 48px rgba(7, 80, 140, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--ice); font: 16px/1.65 "Plex Arabic", "Segoe UI", Tahoma, sans-serif; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

/* منحنيات الخلفية */
.bg-swoosh { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.bg-swoosh path { fill: none; stroke: var(--sky); stroke-width: 2; opacity: .12; }
.bg-swoosh path + path { stroke: var(--navy); opacity: .07; stroke-width: 26; }
.bg-swoosh.light path { stroke: #fff; opacity: .18; }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 12px;
  font: 500 15px/1 inherit; font-family: inherit; cursor: pointer; text-decoration: none; border: 1.5px solid transparent;
  transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease); touch-action: manipulation; }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, var(--navy), var(--sky)); color: #fff; box-shadow: 0 6px 18px rgba(30, 155, 215, .35); }
.btn.primary:hover { box-shadow: 0 10px 26px rgba(30, 155, 215, .45); }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--sky); background: var(--sky-soft); }
.btn.sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: wait; }

/* ===== الصفحة الرئيسية ===== */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 10px 24px;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar-logo { height: 52px; width: auto; }
.bar-title { display: flex; flex-direction: column; line-height: 1.35; }
.bar-title strong { color: var(--navy); font-size: 17px; font-weight: 700; }
.bar-title span { color: var(--muted); font-size: 13px; }
.bar .btn { margin-inline-start: auto; }

.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 24px 20px 8px; }


canvas.dots { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 19px; color: var(--navy); font-weight: 700; }
.num, .badge-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--navy), var(--sky)); color: #fff; font-weight: 700; }
.steps { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.field input { font: inherit; font-size: 16px; color: var(--ink); min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s; width: 100%; }
.field input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(30, 155, 215, .15); }
.hint { color: var(--muted); font-size: 13.5px; margin: 8px 0; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }

.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 18px; text-align: center; cursor: pointer;
  border: 2px dashed #a9cfe6; border-radius: var(--r-md); background: linear-gradient(180deg, #fafdff, var(--sky-soft)); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.drop:hover, .drop.over { border-color: var(--sky); background: var(--sky-soft); }
.drop.over { transform: scale(1.01); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid var(--sky); outline-offset: 2px; }
.drop-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--sky); box-shadow: var(--shadow); margin-bottom: 6px; }
.drop-ic .ic { width: 26px; height: 26px; animation: bob 2.4s var(--ease) infinite; }
.drop strong { color: var(--navy); font-weight: 700; }
.drop-sub { color: var(--muted); font-size: 13px; direction: rtl; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.files { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; animation: rise .35s var(--ease) both; }
.files li.bad { border-color: #f3c3bd; background: var(--bad-bg); }
.file-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); flex: none; }
.files li.bad .file-ic { background: #fff; color: var(--bad); }
.file-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.file-txt b { font-weight: 500; font-size: 14.5px; overflow-wrap: anywhere; }
.file-txt small { color: var(--muted); font-size: 13px; }
.rm { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.rm:hover { background: var(--bad-bg); color: var(--bad); }
#dlX2 { margin-top: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* النتيجة */
.result { margin-bottom: 22px; border: 0; box-shadow: var(--shadow-lg); animation: rise .45s var(--ease) both; }
.result::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(90deg, var(--sky), var(--navy)); }
.wait { color: var(--muted); margin: 0; }
.msg { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); }
.dl { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

.issuesbox h3 { margin: 4px 0 10px; color: var(--navy); font-size: 17px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tabs button { font: inherit; font-size: 13.5px; min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.scroll { max-height: 440px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { position: sticky; top: 0; text-align: right; background: #f7fbfe; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl.issues td:first-child { white-space: nowrap; }
.lv { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.lv.error { background: var(--bad-bg); color: var(--bad); }
.lv.missing { background: var(--warn-bg); color: var(--warn); }
.lv.excluded { background: #edf1f5; color: #46586a; }
.lv.info { background: var(--sky-soft); color: var(--navy); }
.empty { color: var(--muted); }

.privacy { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--navy); font-size: 14px; margin: 22px 0 6px; }
.privacy .ic { color: var(--ok); }
.privacy.small { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 12.5px; padding: 18px 16px 28px; }
.foot img { height: 34px; width: auto; opacity: .85; }

/* ===== صفحة الدخول ===== */
body.login { min-height: 100vh; min-height: 100dvh; background: var(--ice); }
.login-split { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 100vh; min-height: 100dvh; }
.login-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(90% 70% at 100% 0%, #2bb0ea 0%, transparent 60%), linear-gradient(160deg, var(--navy-2), var(--navy) 50%, #1479b8); }
.login-art canvas.dots { inset: 6% 8% 30% 8%; width: 84%; height: 64%; }
.login-art::before { content: ""; position: absolute; inset: 6% 8% 30% 8%; border-radius: 28px; background: rgba(255, 255, 255, .96); box-shadow: 0 30px 60px rgba(0, 0, 0, .18); }
.login-art-text { position: relative; padding: 0 8% 8%; color: #e3f3fb; }
.login-mark { display: none; }
.login-art-text p { font-size: 20px; font-weight: 500; margin: 0; max-width: 30ch; }
.login-box { align-self: center; justify-self: center; width: min(420px, 100% - 32px); display: flex; flex-direction: column; gap: 16px; padding: 34px 30px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); margin: 24px 0; }
.login-logo-sm { height: 76px; width: auto; align-self: center; }
.login-box h1 { color: var(--navy); font-size: 22px; text-align: center; }
.login-box .sub { margin: -8px 0 4px; text-align: center; color: var(--muted); font-size: 14px; }
.input-ic { position: relative; display: block; }
.input-ic > .ic { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-ic input { padding-inline-start: 44px; }
.input-ic input[name="p"] { padding-inline-end: 48px; }
.eye { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.eye:hover, .eye[aria-pressed="true"] { color: var(--navy); background: var(--sky-soft); }
.err { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-size: 14px; text-align: center; }

/* ===== الجوال ===== */
@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr; }
  .login-split { grid-template-columns: 1fr; }
  .login-art { min-height: 280px; }
  .login-art canvas.dots, .login-art::before { inset: 22px 16% 74px 16%; width: 68%; height: calc(100% - 96px); }
  .login-art-text { padding: 0 20px 22px; }
  .login-art-text p { font-size: 16px; }
  .login-logo-sm { display: none; }
}
@media (max-width: 600px) {
  .bar { padding: 8px 16px; gap: 10px; }
  .bar-logo { height: 42px; }
  .bar-title strong { font-size: 15px; }
  .wrap { padding: 16px 16px 8px; }
  .card { padding: 18px 16px; }
  .dl .btn { width: 100%; }
    .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .tbl td { border: 0; padding: 2px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.pill { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; }
.pill .ic { width: 18px; height: 18px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.bad { background: var(--bad-bg); color: var(--bad); }
.result .card-head { flex-wrap: wrap; }
.steps { grid-template-columns: 1fr; }
.lv.spell { background: #efe9fb; color: #5b3aa8; }
.fixbtn { margin-inline-start: 8px; font: inherit; font-size: 12.5px; min-height: 30px; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--sky); background: #fff; color: var(--navy); cursor: pointer; }
.fixbtn:hover { background: var(--sky-soft); }
.fixall { margin-bottom: 10px; }

/* ===== لوحة النتيجة — زجاج سائل (Liquid Glass) ===== */
.dash { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 16px;
  padding: 18px; margin-bottom: 20px; border-radius: 30px;
  background: linear-gradient(135deg, #e3ecf5 0%, #f2f5f9 50%, #e7eef6 100%); }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(46px); opacity: .5; animation: drift 14s ease-in-out infinite alternate; }
.blob.b1 { width: 340px; height: 340px; background: #8dbbe2; top: -110px; inset-inline-start: -60px; }
.blob.b2 { width: 300px; height: 300px; background: #a9bfd6; bottom: -120px; inset-inline-end: 18%; animation-delay: -5s; opacity: .45; }
.blob.b3 { width: 260px; height: 260px; background: #7aa7cf; top: 30%; inset-inline-end: -80px; animation-delay: -9s; opacity: .35; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.12); } }
.lg { position: relative; overflow: hidden; border-radius: 26px; color: var(--ink);
  background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.26));
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.4), inset 0 0 18px rgba(255,255,255,.35), 0 12px 32px -8px rgba(7,80,140,.22);
  transition: transform .45s cubic-bezier(.2,1.4,.4,1), box-shadow .3s; }
/* لمعة علوية + لمعة تتبع المؤشر */
.lg::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 38%); mix-blend-mode: soft-light; }
.lg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.65), transparent 70%); }
.lg:hover::after { opacity: 1; }
.lg h3 { font-size: 15px; font-weight: 500; color: var(--navy); margin: 0 0 6px; display: flex; gap: 8px; align-items: baseline; }
.lg h3 small { color: var(--muted); font-size: 13px; }

.donut-card { grid-row: span 2; padding: 18px 20px; display: grid; grid-template-columns: 200px 1fr; grid-template-rows: auto 1fr; column-gap: 18px; align-items: center; }
.donut-card h3 { grid-column: 1 / -1; }
.donut-wrap { position: relative; width: 200px; height: 200px; }
.donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 20; }
.donut .track { stroke: rgba(7,80,140,.08); }
.donut .seg { stroke-linecap: butt; transition: opacity .25s, stroke-width .25s; cursor: pointer; }
.donut .seg.dim { opacity: .25; }
.donut .seg:hover { stroke-width: 24; }
.dash:not(.drawn) .seg { opacity: 0; }
.dash.drawn .seg { animation: segin .8s var(--ease) both; }
@keyframes segin { from { opacity: 0; stroke-width: 6; } }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center b { font-size: 36px; font-weight: 700; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.donut-center span { font-size: 13px; color: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; font-size: 14px; transition: background .2s; }
.legend li:hover, .legend li.on { background: rgba(255,255,255,.6); }
.legend li.link { cursor: pointer; }
.legend .dot { width: 12px; height: 12px; border-radius: 4px; }
.legend b { font-variant-numeric: tabular-nums; }
.legend small { color: var(--muted); min-width: 34px; text-align: left; }

.gauge-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.gauge { width: 112px; height: 112px; transform: rotate(-90deg); flex: none; }
.gauge circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.gauge .track { stroke: rgba(27,122,67,.12); }
.gauge .val { transition: stroke-dasharray 1.1s var(--ease); }
.gauge-txt { display: flex; flex-direction: column; }
.gauge-txt b { font-size: 34px; color: #16733f; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gauge-txt > span { font-weight: 500; }
.gauge-txt small { color: var(--muted); font-size: 13px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: right; font: inherit; cursor: pointer; padding: 14px; }
.tile:hover { transform: translateY(-3px) scale(1.02); }
.tile:active { transform: scale(.98); }
.tile .tile-ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 14px -4px var(--tc); background: linear-gradient(135deg, var(--tc2), var(--tc)); }
.tile b { font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.tile .tile-t { font-size: 13px; color: var(--muted); }
.tile.missing { --tc: #d4a106; --tc2: #fcd34d; }
.tile.missing:not(.zero) .tile-ic { color: #4a3600; }
.tile.error   { --tc: #c81e1e; --tc2: #ef4444; }
.tile.spell   { --tc: #4a4787; --tc2: #6662a8; }
.tile.codes   { --tc: #0a3f6e; --tc2: #2f78b8; }
.tile.zero .tile-ic { background: rgba(27,122,67,.12); color: var(--ok); box-shadow: none; }
.tile.zero b { color: #9fb1c2; }
.tile.active { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), 0 0 0 3px #fff, 0 0 0 5px var(--tc), 0 12px 32px -8px rgba(7,80,140,.25); }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .donut-card { grid-row: auto; grid-template-columns: 1fr; justify-items: center; }
  .legend { width: 100%; }
}
@media (max-width: 480px) { .donut-wrap { width: 170px; height: 170px; } .tile { grid-template-columns: 1fr; row-gap: 6px; padding: 12px; } .tile .tile-ic { grid-row: auto; width: 36px; height: 36px; } .tile b { font-size: 22px; } }


/* لوحة النتيجة: حلقة مصغّرة + الشعار + المقياس في صف، والمربعات صف تحتها */
.dash { grid-template-columns: 1.15fr .85fr 1fr; grid-template-rows: auto auto; }
.donut-card { grid-row: auto; grid-template-columns: 128px 1fr; column-gap: 14px; padding: 14px 16px; }
.donut-wrap { width: 128px; height: 128px; }
.donut circle { stroke-width: 16; }
.donut .seg:hover { stroke-width: 19; }
.donut-center b { font-size: 26px; }
.donut-center span { font-size: 11.5px; }
.legend li { padding: 5px 8px; font-size: 13px; gap: 8px; }
.logo-glass { min-height: 170px; }
.gauge-card { padding: 14px 16px; }
.gauge { width: 96px; height: 96px; }
.gauge-txt b { font-size: 28px; }
.tiles { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr 1fr; }
  .donut-card { grid-column: 1 / -1; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .dash { grid-template-columns: 1fr; } .logo-glass { min-height: 140px; } }
.login-box .alt { margin: 0; text-align: center; font-size: 14px; }
.login-box .alt a { color: var(--navy); text-decoration: none; border-bottom: 1px dashed var(--sky); }
.okmsg { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-size: 14px; text-align: center; }

/* ===== صفحة الدخول — زجاج سائل (Liquid Glass) ===== */
body.login { background: linear-gradient(135deg, #dce8f5 0%, #eef2f9 45%, #e2eef7 100%); overflow-x: hidden; }
.page-blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.page-blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.page-blobs .pb1 { width: 520px; height: 520px; background: #6aa9dd; top: -160px; inset-inline-end: -120px; }
.page-blobs .pb2 { width: 460px; height: 460px; background: #9db6d6; bottom: -180px; inset-inline-start: -120px; animation-delay: -6s; }
.page-blobs .pb3 { width: 340px; height: 340px; background: #1e9bd7; top: 40%; inset-inline-start: 38%; opacity: .25; animation-delay: -11s; }
.page-blobs .pb4 { width: 280px; height: 280px; background: #c9d8ea; top: 8%; inset-inline-start: 8%; animation-delay: -3s; }
body.login .login-split { position: relative; z-index: 1; gap: 28px; padding: 28px; align-items: center; }
body.login .login-art, body.login .login-box {
  background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.24));
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.4), inset 0 0 22px rgba(255,255,255,.35), 0 18px 44px -14px rgba(7,80,140,.28); }
body.login .login-art { border-radius: 32px; min-height: min(640px, calc(100dvh - 56px)); justify-content: flex-end; }
body.login .login-art::before { display: none; }
body.login .login-art canvas.dots { inset: 8% 10% 22% 10%; width: 80%; height: 70%; }
body.login .login-art-text { color: var(--navy); }
body.login .login-art-text p { color: var(--navy); }
body.login .login-box { border-radius: 28px; margin: 0; }
body.login .login-box .field input { background: rgba(255,255,255,.7); border-color: rgba(7,80,140,.15); }
@media (max-width: 900px) {
  body.login .login-split { padding: 16px; gap: 16px; }
  body.login .login-art { min-height: 240px; }
  body.login .login-art canvas.dots { inset: 16px 16% 64px 16%; width: 68%; height: calc(100% - 80px); }
}

/* زجاج يتنفّس: يكبر ويصغر بهدوء */
body.login .login-box { animation: breathe 6s ease-in-out infinite; transform-origin: center; }
body.login .login-art { animation: breathe 7s ease-in-out infinite reverse; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018); } }
body.login .login-box:focus-within { animation-play-state: paused; }
/* خانات الرمز الثنائي */
.otp { display: flex; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.otp-d { width: 48px; height: 58px; text-align: center; font-family: inherit; font-size: 26px; font-weight: 700; line-height: 1; padding: 0; color: var(--navy); caret-color: var(--sky);
  border-radius: 14px; border: 1px solid rgba(255,255,255,.85); background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(255,255,255,.35));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1.5px 0 #fff, 0 8px 18px -10px rgba(7,80,140,.45); animation: wave 2.4s ease-in-out infinite; transition: box-shadow .2s, border-color .2s; }
.otp-d:nth-child(2) { animation-delay: .12s; } .otp-d:nth-child(3) { animation-delay: .24s; } .otp-d:nth-child(4) { animation-delay: .36s; }
.otp-d:nth-child(5) { animation-delay: .48s; } .otp-d:nth-child(6) { animation-delay: .6s; }
@keyframes wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.otp-d:focus { outline: none; border-color: var(--sky); box-shadow: inset 0 1.5px 0 #fff, 0 0 0 4px rgba(30,155,215,.2), 0 10px 22px -10px rgba(30,155,215,.6); }
.otp-d.filled { animation: none; background: linear-gradient(160deg, #fff, rgba(232,244,251,.9)); }
.otp-d.pop { animation: pop .32s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
.otp.done .otp-d { border-color: #34b36a; box-shadow: inset 0 1.5px 0 #fff, 0 0 0 3px rgba(52,179,106,.25); }
@media (max-width: 420px) { .otp { gap: 6px; } .otp-d { width: 42px; height: 52px; font-size: 22px; } }

/* صفحة الدخول: صندوق زجاجي واحد في الوسط، والشعار الصغير منقّط */
body.login .login-split { grid-template-columns: 1fr; justify-items: center; min-height: 100dvh; }
body.login .login-box { width: min(420px, 100%); }
.mini-dots { position: relative; width: 200px; height: 136px; align-self: center; margin-bottom: -4px; }

/* ===== تقرير المراجعة PDF (يظهر عند الطباعة فقط) ===== */
.print-report { display: none; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html, body { background: #fff !important; }
  body > *:not(.print-report) { display: none !important; }
  .print-report { display: block !important; color: #12263a; font-size: 11.5pt; line-height: 1.55; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-report * { animation: none !important; }
  .r-head { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 3px solid #1e9bd7; margin-bottom: 12px; }
  .r-head img { height: 52px; width: auto; }
  .r-head h1 { font-size: 16pt; color: #07508c; margin: 0; }
  .r-head p { margin: 2px 0 0; color: #5a6b7c; font-size: 10pt; }
  .kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 8px; }
  .k { border: 1px solid #dbe6ef; border-radius: 8px; padding: 6px 8px; background: #f3f8fc; text-align: center; }
  .k b { display: block; font-size: 16pt; color: #07508c; }
  .k small { font-size: 8.5pt; color: #5a6b7c; }
  .k.ok b { color: #16733f; } .k.warn b { color: #9a6b00; } .k.bad b { color: #c81e1e; } .k.spell b { color: #4a4787; }
  .check { margin: 0 0 10px; padding: 6px 10px; border-radius: 8px; font-size: 10pt; }
  .check.ok { background: #e7f5ec; color: #1b7a43; } .check.bad { background: #fdecea; color: #b42318; }
  .print-report section { margin-top: 12px; break-inside: auto; }
  .print-report h2 { font-size: 12.5pt; color: #07508c; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; break-after: avoid; }
  .print-report h2 span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 6px; background: #07508c; color: #fff; font-size: 9.5pt; }
  .print-report h2 em { font-style: normal; font-size: 10pt; color: #5a6b7c; background: #eef3f8; border-radius: 10px; padding: 0 8px; }
  .print-report table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  .print-report th { background: #eef4fa; color: #3d4f62; font-weight: 600; text-align: right; padding: 5px 7px; border: 1px solid #dbe6ef; }
  .print-report td { padding: 4px 7px; border: 1px solid #e3ebf2; vertical-align: top; overflow-wrap: anywhere; unicode-bidi: plaintext; text-align: right; }
  .r-head bdi { unicode-bidi: isolate; }
  .print-report tr { break-inside: avoid; }
  .print-report tbody tr:nth-child(even) td { background: #fafcfe; }
  .print-report .none { color: #1b7a43; margin: 0; font-size: 10pt; }
  .r-foot { margin-top: 14px; padding-top: 6px; border-top: 1px solid #dbe6ef; color: #5a6b7c; font-size: 9pt; text-align: center; }
}
.card-head .reset { margin-inline-start: auto; }
