/* نبض نمرين — الأنماط */
:root {
  --red: #b0122d;
  --red-d: #7d0b1f;
  --red-dd: #4a0612;
  --red-l: #f9e3e6;
  --rose: #fdf6f6;
  --ink: #2a1215;
  --ink-2: #6d5458;
  --line: #eedcdf;
  --card: #ffffff;
  --ok: #1d7a4a;  --ok-bg: #e3f4ea;
  --warn: #9a5b00; --warn-bg: #fff1d6;
  --info: #1f5a96; --info-bg: #e3eefa;
  --bad: #a3122a; --bad-bg: #fde4e7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(74, 6, 18, .06), 0 8px 24px -12px rgba(74, 6, 18, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--rose); color: var(--ink);
  font: 16px/1.75 "Tajawal", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, legend, .btn, .brand strong, .bt { font-family: "Cairo", "Tajawal", sans-serif; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; direction: ltr; unicode-bidi: embed; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.section { padding-block: 48px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- الشريط العلوي ---------- */
.topbar { background: var(--red-d); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-logo { background: #fff; border-radius: 50%; padding: 3px; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.brand-logo img { width: 44px; height: 44px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.3rem; font-weight: 800; }
.brand-text small { opacity: .8; font-size: .8rem; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 500; opacity: .88; }
.nav a:hover, .nav a.on { background: rgba(255,255,255,.12); opacity: 1; text-decoration: none; }
.nav a.nav-cta { background: #fff; color: var(--red-d); font-weight: 700; opacity: 1; font-family: "Cairo"; }
.nav a.nav-cta.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.nav a.nav-cta.ghost:hover { background: rgba(255,255,255,.12); }
.nav a.nav-out { opacity: .7; font-size: .9rem; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- البطل ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 85% -10%, #d61f3d 0%, transparent 60%),
              linear-gradient(160deg, var(--red) 0%, var(--red-d) 55%, var(--red-dd) 100%);
}
.ecg { position: absolute; inset: auto 0 22% 0; width: 100%; height: 120px; opacity: .22; }
.ecg path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: ecg 4s linear infinite; }
@keyframes ecg { 0% { stroke-dashoffset: 1600; } 70%, 100% { stroke-dashoffset: 0; } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-block: 72px 80px; }
.eyebrow { display: inline-block; background: rgba(255,255,255,.14); padding: 4px 14px; border-radius: 999px; font-size: .9rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #ffd5db; }
.hero p { font-size: 1.12rem; max-width: 560px; opacity: .93; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.hero-facts b { display: block; font: 800 2rem/1 "Cairo"; }
.hero-facts span { font-size: .9rem; opacity: .8; }
.hero-drop { display: grid; place-items: center; }
.drop {
  width: 240px; height: 240px; background: linear-gradient(145deg, #ff5a72, #c3132f 60%, #8a0b20);
  border-radius: 0 50% 50% 50%; transform: rotate(45deg);
  box-shadow: inset -14px -14px 40px rgba(0,0,0,.25), 0 30px 60px -20px rgba(0,0,0,.5);
  display: grid; place-items: center; animation: beat 1.6s ease-in-out infinite;
}
.drop span { transform: rotate(-45deg); font: 800 2.4rem "Cairo"; color: rgba(255,255,255,.92); }
@keyframes beat { 0%, 100% { scale: 1; } 12% { scale: 1.06; } 24% { scale: .98; } 36% { scale: 1.04; } 50% { scale: 1; } }
@media (prefers-reduced-motion: reduce) { .drop, .ecg path { animation: none; } .ecg path { stroke-dashoffset: 0; } }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; border: 0; cursor: pointer;
  font-size: 1rem; font-weight: 700; line-height: 1.4; transition: transform .08s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 28px; font-size: 1.08rem; border-radius: 12px; }
.btn-sm { padding: 5px 12px; font-size: .85rem; border-radius: 8px; }
.btn.block { display: flex; width: 100%; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px -8px var(--red); }
.btn-primary:hover { background: var(--red-d); }
.btn-light { background: #fff; color: var(--red-d); }
.btn-light:hover { background: #ffecef; }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-soft { background: var(--red-l); color: var(--red-d); }
.btn-soft:hover { background: #f3cfd5; }
.btn-danger { background: #fff; color: var(--bad); box-shadow: inset 0 0 0 1.5px #e9a5b0; }
.btn-danger:hover { background: var(--bad-bg); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #178a45; }

/* ---------- البطاقات والعناوين ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card + .card, .card + form, form + .card { margin-top: 20px; }
.card-title { font-size: 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-size: 1.9rem; font-weight: 800; position: relative; padding-inline-start: 18px; }
.sec-head h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .2em; bottom: .2em; width: 6px; border-radius: 4px; background: var(--red); }
.page-head { background: linear-gradient(160deg, var(--red), var(--red-d)); color: #fff; padding: 48px 0 64px; }
.page-head-dark { background: linear-gradient(160deg, var(--red-d), var(--red-dd)); }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.page-head p { max-width: 680px; opacity: .92; margin: 0; }
.page-head .tel { color: #fff; font-weight: 800; text-decoration: underline; }
.page-head + .wrap.section { padding-top: 0; }
.page-head + .wrap.section > :first-child { margin-top: -40px; position: relative; }
.empty { text-align: center; color: var(--ink-2); padding: 28px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.band { background: #fff; border-block: 1px solid var(--line); }

/* ---------- شارة فئة الدم ---------- */
.bt { display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 8px;
      background: var(--red); color: #fff; font-weight: 800; font-size: .95rem; direction: ltr; letter-spacing: .5px; }
.bt-sm { min-width: 34px; height: 24px; font-size: .78rem; border-radius: 6px; background: var(--red-l); color: var(--red-d); }
.bt-lg { min-width: 58px; height: 52px; font-size: 1.3rem; border-radius: 12px; }
.bt-xl { min-width: 84px; height: 84px; font-size: 1.9rem; border-radius: 18px; }

/* ---------- الحاجات الحالية ---------- */
.needs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.need { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-top: 5px solid #e3a3ae; }
.need-critical { border-top-color: var(--red); }
.need-urgent { border-top-color: #e06a2c; }
.need-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.need h3 { font-size: 1.05rem; margin: 0; }
.urg { font-size: .85rem; color: var(--ink-2); }
.need-critical .urg { color: var(--red); font-weight: 700; }
.need dl { margin: 0 0 12px; display: grid; gap: 4px; }
.need dl div { display: flex; gap: 8px; font-size: .92rem; }
.need dt { color: var(--ink-2); min-width: 70px; }
.need dd { margin: 0; font-weight: 500; }
.need-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .85rem; }
.ref { position: absolute; top: 14px; inset-inline-end: 16px; font: .75rem ui-monospace, monospace; color: #b99aa0; }
.progress { height: 8px; background: var(--red-l); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; background: var(--red); border-radius: 99px; }

/* ---------- التوافق ---------- */
.compat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.compat-cell { background: var(--rose); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.compat-cell small { display: block; color: var(--ink-2); margin-top: 10px; }
.compat-list { direction: ltr; font-weight: 700; font-family: "Cairo"; color: var(--red-d); min-height: 1.6em; }
.compat-cell .count { font-size: .82rem; color: var(--ink-2); margin-top: 6px; }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.how-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.how-step span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; font: 800 1.1rem "Cairo"; margin-bottom: 10px; }
.how-step h3 { font-size: 1.1rem; }
.how-step p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- النماذج ---------- */
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.form legend { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.form legend span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red-l); color: var(--red); font-size: .95rem; }
.form label, .field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.form label small { font-weight: 400; color: var(--ink-2); }
.lbl { font-weight: 600; font-size: .95rem; display: block; margin: 6px 0 8px; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  border: 1.5px solid #e6d3d6; border-radius: 10px; padding: 10px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(176, 18, 45, .12); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--red); }
input[dir=ltr] { text-align: left; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.span2 { grid-column: 1 / -1; }
.field-err { color: var(--bad); font-size: .85rem; font-weight: 500; }
.form label.check, .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; margin-bottom: 8px; cursor: pointer; }
.check input { margin-top: .45em; flex: none; }
.checks { justify-content: center; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 16px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.qgroup { background: var(--rose); border-radius: 12px; padding: 16px 18px 8px; margin-bottom: 16px; }
.qgroup h4 { margin: 0 0 10px; font-size: 1rem; }
.consent { background: var(--red-l); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }

.bt-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; margin-bottom: 8px; }
.bt-opt input, .prod-opt input, .seg input, .radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.bt-opt span {
  display: grid; place-items: center; height: 62px; border-radius: 12px; border: 2px solid #ecd4d8; background: #fff;
  font: 800 1.35rem "Cairo"; color: var(--red-d); direction: ltr; cursor: pointer; transition: all .15s;
}
.bt-any span { font-size: .95rem; direction: rtl; }
.bt-opt span:hover { border-color: var(--red); }
.bt-opt input:checked + span { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 18px -8px var(--red); transform: translateY(-2px); }
.bt-opt input:focus-visible + span, .seg input:focus-visible + span, .prod-opt input:focus-visible + span { outline: 3px solid rgba(176,18,45,.35); outline-offset: 2px; }
.form label.bt-opt, .form label.prod-opt, .seg label, .form label.radio-row { margin: 0; position: relative; }

.product-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.prod-opt span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 2px solid #ecd4d8; border-radius: 12px; background: #fff; cursor: pointer; text-align: center; font-weight: 700; font-size: .92rem; }
.prod-opt i { font-style: normal; font-size: 1.5rem; }
.prod-opt input:checked + span { border-color: var(--red); background: var(--red-l); color: var(--red-d); }

.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.seg span { display: block; padding: 9px 18px; border: 2px solid #ecd4d8; border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; }
.seg input:checked + span { border-color: var(--red); background: var(--red); color: #fff; }
.seg-urg { margin-bottom: 4px; }
.seg-urg .u-critical input:checked + span { background: var(--red-dd); border-color: var(--red-dd); }
.seg-urg .u-normal input:checked + span { background: #8a6a70; border-color: #8a6a70; }

.radio-list { display: grid; gap: 8px; }
.radio-row span { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 2px solid #ecd4d8; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 500; }
.radio-row span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d9b7bd; flex: none; }
.radio-row input:checked + span { border-color: var(--red); background: var(--red-l); }
.radio-row input:checked + span::before { border: 6px solid var(--red); }

/* ---------- النتائج والتنبيهات ---------- */
.alert { padding: 14px 18px; border-radius: 12px; margin: 18px 0; font-weight: 500; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-bad { background: var(--bad-bg); color: var(--bad); }
.result { text-align: center; padding: 40px 28px; }
.result-icon { font-size: 3rem; width: 84px; height: 84px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--red-l); }
.result-ok .result-icon { background: var(--ok-bg); color: var(--ok); }
.reasons { text-align: start; display: inline-block; margin: 8px auto 16px; color: var(--ink-2); }
.pill { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-mute { background: #eee; color: #666; }
.tag { display: inline-block; font-size: .72rem; padding: 0 8px; border-radius: 6px; background: var(--info-bg); color: var(--info); font-weight: 700; }

/* ---------- التذييل ---------- */
.foot { background: var(--red-dd); color: rgba(255,255,255,.85); padding: 28px 0; font-size: .92rem; margin-top: 40px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.foot .muted { color: rgba(255,255,255,.6); margin-inline-start: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.foot a { color: #ffd5db; }

/* ---------- الإدارة ---------- */
body.admin { background: #f7f1f2; }
body.admin .topbar { background: var(--red-dd); }
.auth-bg { background: linear-gradient(160deg, var(--red), var(--red-dd)); min-height: 100vh; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 4px; }
.auth-card.wide { width: min(680px, 100%); }
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; margin-bottom: 14px; }
.auth-head { text-align: center; margin-bottom: 12px; }
.auth-head h1 { font-size: 1.6rem; margin: 8px 0 0; color: var(--red-d); }
.center-link { text-align: center; margin-top: 12px; display: block; }
.sec-title { font-size: 1.05rem; margin: 18px 0 12px; color: var(--red-d); }
.sec-title small { font-weight: 400; color: var(--ink-2); font-size: .82rem; }
.steps-list li { margin-bottom: 8px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.dash-head h1 { margin: 0; font-size: 1.7rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); color: var(--ink); border-inline-start: 5px solid var(--red-l); }
.stat:hover { text-decoration: none; border-inline-start-color: var(--red); }
.stat b { display: block; font: 800 2.2rem/1.1 "Cairo"; color: var(--red-d); }
.stat span { color: var(--ink-2); font-size: .92rem; }
.stat-ok { border-inline-start-color: #9fd9b8; } .stat-ok b { color: var(--ok); }
.stat-hot { border-inline-start-color: var(--red); background: #fff7f8; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
.dash-grid.three { grid-template-columns: repeat(3, 1fr); }
.dash-grid > .card, .dash-grid > form.card { margin-top: 0; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 50px 1fr 64px; align-items: center; gap: 12px; color: var(--ink); }
.bar-row:hover { text-decoration: none; }
.bar { position: relative; height: 22px; background: #f6eced; border-radius: 6px; overflow: hidden; }
.bar span { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 6px; }
.bar-all { background: #efc4cb; }
.bar-ready { background: var(--red); }
.legend { font-size: .82rem; color: var(--ink-2); margin: 14px 0 0; display: flex; gap: 6px; align-items: center; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-inline-start: 10px; }
.lg-ready { background: var(--red); } .lg-all { background: #efc4cb; }
.req-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req-mini a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); }
.req-mini a:hover { background: var(--rose); text-decoration: none; }
.req-mini small { display: block; color: var(--ink-2); }
.req-mini li.u-critical a { border-inline-start: 4px solid var(--red); }
.urg-tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 6px; background: #f1e6e8; color: var(--ink-2); }
.urg-tag.u-critical { background: var(--red); color: #fff; }
.urg-tag.u-urgent { background: #fde3d3; color: #a2400e; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; padding: 16px; }
.filters input, .filters select { width: auto; flex: 1 1 160px; padding: 8px 12px; }
.filters .check { margin: 0; white-space: nowrap; }
.table-wrap { overflow-x: auto; padding: 0; }
.card.table-wrap { padding: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tbl th { text-align: start; font-weight: 700; color: var(--ink-2); font-size: .82rem; padding: 12px 14px; background: #fbf5f6; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid #f3e7e9; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #fffafa; }
.tbl tr.dim td { opacity: .5; }
.tbl .empty { border: 0; }
.inline { display: inline; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pager a { padding: 4px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.pager a.on { background: var(--red); color: #fff; border-color: var(--red); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs a { padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; }
.tabs a.on { background: var(--red); border-color: var(--red); color: #fff; }
.tabs a:hover { text-decoration: none; }
.back { display: inline-block; margin-bottom: 14px; font-weight: 600; }
.donor-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-bottom: 20px; }
.donor-head h1 { font-size: 1.6rem; margin: 0 0 6px; }
.dh-main { flex: 1 1 280px; }
.dh-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--ink-2); font-size: .92rem; }
.dh-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dh-actions .btn { direction: ltr; }
.u-border-critical { border-inline-start: 6px solid var(--red); }
.u-border-urgent { border-inline-start: 6px solid #e06a2c; }
.kv { margin: 0; display: grid; gap: 0; }
.kv div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #f0e2e4; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-2); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 500; }
.form form { margin-bottom: 10px; }
.card.form form + form { margin-top: 10px; }
details.card summary { cursor: pointer; list-style: none; margin: 0; }
details.card summary::after { content: "＋"; color: var(--red); }
details[open].card summary { margin-bottom: 16px; }
details[open].card summary::after { content: "－"; }
.note { margin-top: 18px; padding: 14px 16px; background: var(--rose); border-radius: 12px; border: 1px solid var(--line); }
.note p { margin: 6px 0 0; color: var(--ink-2); }
.compact .grid2 { gap: 0 12px; }

/* ---------- الجوال ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 48px 56px; }
  .hero-drop { display: none; }
  .compat, .how, .stats { grid-template-columns: repeat(2, 1fr); }
  .dash-grid, .dash-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; background: var(--red-d); padding: 12px 16px 18px; gap: 6px; box-shadow: 0 12px 24px rgba(0,0,0,.2); }
  body.admin .nav { background: var(--red-dd); }
  .nav-open .nav { display: flex; }
  .nav a { text-align: center; }
  .topbar-inner { position: relative; }
  .grid2, .check-grid { grid-template-columns: 1fr; }
  .product-picker { grid-template-columns: repeat(2, 1fr); }
  .bt-picker { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 18px; }
  .kv div { grid-template-columns: 1fr; gap: 0; }
  .section { padding-block: 36px; }
  .hero-facts { gap: 20px; }
  .sec-head h2 { font-size: 1.5rem; }
}
@media (max-width: 420px) {
  .compat, .how, .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brand-text small { display: none; }
}
.wrap:has(> .alert) + .section, .wrap:has(> .alert) + .wrap.section { padding-top: 12px; }
