/* ============================================================
   منظومة أَناة البيت — نظام التصميم (Design tokens from handoff §11)
   ============================================================ */
:root {
  --maroon: #930909;
  --maroon-d: #6F0707;
  --navy: #16384B;
  --navy-2: #526B7B;
  --gold: #C8963E;
  --gold-l: #F3E7D2;
  --gold-t: #8A5F1C;
  --bg: #F7F5F1;
  --app-bg: #F4F6F8;
  --paper: #FFFFFF;
  --line: #E3DED5;
  --app-line: #E5E9EC;
  --ink: #1C2A33;
  --mute: #6B7780;
  --blue-bg: #E3EEF5; --blue-t: #16384B;
  --red-bg: #FBE7E7; --red-t: #930909;
  --green-bg: #E5F2EA; --green-t: #2F6B47;
  --thead: #EEF2F4;
  --kufi: 'Noto Kufi Arabic', system-ui, sans-serif;
  --plex: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --sh-screen: 0 40px 90px rgba(22,56,75,.14);
  --r-card: 18px; --r-btn: 10px; --r-pill: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--plex);
  color: var(--ink);
  background: var(--app-bg);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
h1,h2,h3,h4,h5 { font-family: var(--kufi); color: var(--navy); margin: 0; font-weight: 700; }
a { color: var(--navy); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.hidden { display: none !important; }
.muted { color: var(--mute); }
.eyebrow { font-family: var(--kufi); color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .3px; }
.num { font-family: var(--kufi); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--maroon); color: #fff; border: none; cursor: pointer;
  padding: 11px 18px; border-radius: var(--r-btn); font-weight: 600; font-size: 15px;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--maroon-d); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn.ghost:hover { background: #fff; }
.btn.navy { background: var(--navy); } .btn.navy:hover { background: #0f2a39; }
.btn.gold { background: var(--gold); } .btn.gold:hover { background: #b2852f; }
.btn.sm { padding: 8px 13px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.blue { background: var(--blue-bg); color: var(--blue-t); }
.pill.red { background: var(--red-bg); color: var(--red-t); }
.pill.green { background: var(--green-bg); color: var(--green-t); }
.pill.gold { background: var(--gold-l); color: var(--gold-t); }
.pill.grey { background: #EEF2F4; color: var(--navy-2); }

/* ---------- cards ---------- */
.card { background: var(--paper); border: 1px solid var(--app-line); border-radius: var(--r-card); padding: 20px; }
.card.pad-lg { padding: 28px; }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field .hint { font-size: 12px; color: var(--mute); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-btn);
  background: #fff; color: var(--ink); outline: none; transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22,56,75,.10); }
textarea { min-height: 90px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--bg); }
.login-hero { background: linear-gradient(160deg, var(--navy) 0%, #0f2a39 100%); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.login-hero h1 { color: #fff; font-size: 40px; line-height: 1.35; margin-bottom: 14px; }
.login-hero .eyebrow { color: var(--gold); }
.login-hero p { color: #C9D6DE; font-size: 18px; line-height: 1.9; max-width: 520px; }
.login-hero .brandline { display:flex; align-items:center; gap:14px; margin-bottom: 34px; }
.login-hero img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background:#fff; padding:4px; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--sh-screen); }
.login-card h2 { font-size: 26px; margin-bottom: 6px; }
.demo-creds { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.demo-creds .row { display:flex; justify-content:space-between; font-size:13px; padding:5px 0; cursor:pointer; border-radius:6px; }
.demo-creds .row:hover { background: var(--bg); }
.demo-creds .row b { font-family: var(--kufi); color: var(--navy); }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; } .login-hero { display:none; } }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 96px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); display: flex; flex-direction: column; align-items: center; padding: 18px 0; gap: 10px; position: sticky; top: 0; height: 100vh; }
.sidebar .logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: #fff; padding: 3px; margin-bottom: 8px; }
.sidebar .nav-item { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #9FB3BF; cursor: pointer; font-size: 22px; transition: .15s; position: relative; }
.sidebar .nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar .nav-item.active { background: var(--gold); color: var(--navy); }
.sidebar .nav-item .tip { position: absolute; right: 66px; background: var(--navy); color:#fff; font-size:12px; padding:5px 10px; border-radius:8px; white-space:nowrap; opacity:0; pointer-events:none; transition:.15s; font-family: var(--plex); }
.sidebar .nav-item:hover .tip { opacity: 1; }
.sidebar .spacer { flex: 1; }
.main-area { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--app-line); position: sticky; top: 0; z-index: 20; }
.topbar .t { font-family: var(--kufi); font-weight: 700; font-size: 24px; color: var(--navy); }
.topbar .tools { display: flex; align-items: center; gap: 10px; }
.content { padding: 26px 28px 60px; }

/* ---------- kpi cards ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--app-line); border-radius: 16px; padding: 18px 20px; }
.kpi small { display: block; color: var(--mute); font-size: 14px; margin-bottom: 8px; }
.kpi b { font-family: var(--kufi); font-size: 34px; color: var(--navy); line-height: 1; }
.kpi.r b { color: var(--maroon); }
.kpi.g b { color: var(--green-t); }
.kpi .sub { font-size: 12px; color: var(--mute); margin-top: 6px; }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }

/* ---------- table ---------- */
.table-card { background:#fff; border:1px solid var(--app-line); border-radius: 16px; overflow: hidden; }
table.cases { width: 100%; border-collapse: collapse; }
table.cases th { background: var(--thead); color: var(--navy); font-family: var(--kufi); font-size: 13px; text-align: right; padding: 13px 14px; font-weight: 700; }
table.cases td { padding: 13px 14px; border-top: 1px solid var(--app-line); font-size: 14.5px; }
table.cases tr:hover td { background: #FAFBFC; cursor: pointer; }
table.cases .cn { font-family: var(--kufi); font-weight: 700; color: var(--navy); }
.bar { height: 8px; background: #E9EDF0; border-radius: 999px; overflow: hidden; min-width: 80px; }
.bar span { display:block; height:100%; background: var(--navy); border-radius: 999px; }
.bar span.late { background: var(--maroon); }
.bar span.done { background: var(--green-t); }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters select, .filters input { width: auto; min-width: 140px; padding: 9px 11px; }
.searchbox { flex: 1; min-width: 220px; }

/* ---------- case file ---------- */
.case-head { display:flex; align-items:center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.case-head .id { font-family: var(--kufi); font-size: 26px; color: var(--navy); font-weight: 700; }
.stepper { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 16px 0 22px; }
.stepper .step { text-align: center; }
.stepper .seg { height: 8px; border-radius: 999px; background: #E1E6EA; margin-bottom: 8px; }
.stepper .step.done .seg { background: var(--navy); }
.stepper .step.current .seg { background: var(--maroon); }
.stepper .lbl { font-size: 12.5px; color: var(--navy-2); font-family: var(--kufi); }
.stepper .step.current .lbl { color: var(--maroon); font-weight: 700; }
@media (max-width: 800px) { .stepper .lbl { font-size: 10px; } }
.pane { background:#fff; border:1px solid var(--app-line); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.pane h5 { font-size: 15px; color: var(--navy-2); margin-bottom: 14px; font-weight: 700; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kv > div span { color: var(--mute); font-size: 13px; display:block; margin-bottom: 4px; }
.kv > div b { color: var(--ink); font-size: 15px; }
@media (max-width: 800px) { .kv { grid-template-columns: 1fr 1fr; } }
.insp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.insp > div { border: 1px solid var(--app-line); border-radius: 12px; padding: 12px; display:flex; flex-direction: column; gap: 8px; }
.insp > div b { font-size: 14px; }
@media (max-width: 800px) { .insp { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--green-bg); color: var(--green-t); }
.chip.miss { background: var(--red-bg); color: var(--red-t); }
.chip.gold { background: var(--gold-l); color: var(--gold-t); }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-right: 26px; }
.timeline::before { content:''; position:absolute; right: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--app-line); }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-item .dot { position:absolute; right: -26px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--app-line); }
.tl-item.exc .dot { background: var(--maroon); }
.tl-item.pend .dot { background: var(--gold); }
.tl-item .ttl { font-weight: 700; color: var(--navy); font-size: 15px; }
.tl-item .meta { color: var(--mute); font-size: 13px; margin-top: 3px; }
.tl-item .rsn { font-size: 13px; color: var(--maroon); margin-top: 4px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--app-line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: none; border: none; padding: 11px 14px; cursor: pointer; color: var(--navy-2); font-weight: 600; border-bottom: 3px solid transparent; font-family: var(--kufi); font-size: 14px; }
.tabs button.active { color: var(--maroon); border-bottom-color: var(--maroon); }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(22,56,75,.45); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 100; overflow-y: auto; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 720px; padding: 26px; box-shadow: var(--sh-screen); }
.modal.wide { max-width: 940px; }
.modal-head { display:flex; align-items:center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { font-size: 21px; }
.x { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--mute); line-height: 1; }

/* ---------- misc ---------- */
.toast { position: fixed; bottom: 24px; left: 24px; background: var(--navy); color:#fff; padding: 13px 18px; border-radius: 12px; z-index: 300; box-shadow: var(--sh-screen); font-size: 14px; max-width: 360px; }
.toast.err { background: var(--maroon); }
.toast.ok { background: var(--green-t); }
.badge-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background: var(--maroon); margin-inline-start:4px; }
.empty { text-align:center; padding: 50px 20px; color: var(--mute); }
.spinner { width: 26px; height: 26px; border: 3px solid var(--app-line); border-top-color: var(--maroon); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-card { background:#fff; border:1px solid var(--app-line); border-radius: 16px; padding: 20px; }
.chart-card h5 { margin-bottom: 14px; font-size: 15px; }
.hbar { display:flex; align-items:center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.hbar .lab { width: 120px; color: var(--navy-2); }
.hbar .track { flex:1; height: 12px; background: #EEF2F4; border-radius: 999px; overflow:hidden; }
.hbar .track span { display:block; height:100%; background: var(--navy); }
.hbar .val { width: 46px; text-align: left; font-family: var(--kufi); color: var(--navy); }
.mono { font-family: ui-monospace, monospace; direction: ltr; }

/* notification bell */
.bell { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--app-line); background:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size: 18px; }
.bell .cnt { position:absolute; top:-6px; left:-6px; background: var(--maroon); color:#fff; font-size:11px; min-width:18px; height:18px; border-radius:9px; display:flex; align-items:center; justify-content:center; padding:0 4px; }
.notif-panel { position:absolute; top: 56px; left: 28px; width: 340px; background:#fff; border:1px solid var(--app-line); border-radius: 14px; box-shadow: var(--sh-screen); z-index: 60; max-height: 420px; overflow-y:auto; }
.notif-panel .n { padding: 12px 14px; border-bottom: 1px solid var(--app-line); }
.notif-panel .n.unread { background: #FBF7F0; }
.notif-panel .n b { font-size: 14px; color: var(--navy); }
.notif-panel .n p { margin: 4px 0 0; font-size: 13px; color: var(--mute); }

/* ---------- technician mobile app ---------- */
body.tech { background: #E9EDF0; }
.phone { max-width: 480px; margin: 0 auto; background: #fff; min-height: 100vh; display: flex; flex-direction: column; box-shadow: var(--sh-screen); }
.phone .hd { background: var(--navy); color: #fff; padding: 20px 22px; }
.phone .hd small { color: #B9CBD6; font-size: 13px; display:block; }
.phone .hd b { font-family: var(--kufi); font-size: 22px; }
.phone .bd { padding: 18px; flex: 1; }
.visit-card { border: 1px solid var(--app-line); border-radius: 16px; padding: 16px; margin-bottom: 12px; background:#fff; }
.visit-card.urgent { border-right: 5px solid var(--maroon); }
.visit-card b { font-family: var(--kufi); font-size: 17px; color: var(--navy); }
.visit-card .meta { color: var(--mute); font-size: 13.5px; margin-top: 5px; }
.chk { display:flex; align-items:center; justify-content: space-between; padding: 13px 14px; border: 1px solid var(--app-line); border-radius: 12px; margin-bottom: 10px; font-weight: 600; }
.chk .seg { display:flex; gap:6px; }
.segbtn { border: 1px solid var(--line); background:#fff; padding: 8px 14px; border-radius: 999px; cursor:pointer; font-size: 13px; font-weight: 600; color: var(--navy-2); }
.segbtn.on-ok { background: var(--navy); color:#fff; border-color: var(--navy); }
.segbtn.on-bad { background: var(--maroon); color:#fff; border-color: var(--maroon); }
.ph-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 10px; }
.ph-grid .ph { aspect-ratio: 1; border-radius: 12px; background: #EEF2F4; display:flex; align-items:center; justify-content:center; color: var(--navy-2); font-size: 13px; overflow:hidden; position:relative; }
.ph-grid .ph img { width:100%; height:100%; object-fit: cover; }
.ph-grid .ph.add { border: 2px dashed var(--line); cursor: pointer; font-size: 26px; color: var(--gold); }
.sync-badge { display:inline-flex; align-items:center; gap:6px; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.sync-badge.on { background: var(--green-bg); color: var(--green-t); }
.sync-badge.off { background: var(--red-bg); color: var(--red-t); }
.tabbar { display:flex; border-top: 1px solid var(--app-line); background:#fff; position: sticky; bottom: 0; }
.tabbar button { flex:1; background:none; border:none; padding: 12px 6px; cursor:pointer; color: var(--navy-2); font-size: 12px; display:flex; flex-direction:column; align-items:center; gap:4px; font-weight:600; }
.tabbar button.active { color: var(--maroon); }
.tabbar button .ic { font-size: 19px; }

/* ---------- portal: welcome message + services grid ---------- */
.welcome-card { background: linear-gradient(135deg, var(--navy) 0%, #1E4A61 100%); border-radius: var(--r-card); padding: 26px 28px; margin-bottom: 20px; color: #fff; box-shadow: var(--sh-screen); }
.welcome-card .wc-head { margin-bottom: 18px; }
.welcome-card .wc-title { font-family: var(--kufi); font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 8px; }
.welcome-card .wc-body { margin: 0; font-size: 15px; line-height: 1.9; color: #D5E2EA; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.service-card { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 14px 16px; }
.service-card .sc-ic { font-size: 24px; line-height: 1; flex: 0 0 auto; }
.service-card .sc-body b { display: block; font-family: var(--kufi); font-size: 15px; color: #fff; font-weight: 700; }
.service-card .sc-body small { display: block; color: #AFC4D0; font-size: 12px; margin-top: 3px; line-height: 1.5; }
.welcome-card .wc-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); }
.welcome-card .wc-foot span { font-size: 15px; color: var(--gold-l); font-weight: 600; }
.welcome-card .wc-foot .btn { background: var(--gold); color: #3A2A08; }
.welcome-card .wc-foot .btn:hover { background: #D9A64E; }
@media (max-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } .welcome-card { padding: 20px 18px; } }

/* ---------- donor report (public) ---------- */
.donor-body { background: var(--bg); }
.donor-head { background: var(--navy); color: #fff; }
.dh-inner { max-width: 1080px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.donor-head .brandline { display: flex; align-items: center; gap: 14px; }
.donor-head .brandline img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.donor-tag { background: var(--gold); color: #3A2A08; font-weight: 700; font-family: var(--kufi); padding: 6px 16px; border-radius: 999px; font-size: 14px; }
.donor-main { max-width: 1080px; margin: 0 auto; padding: 26px 24px 60px; }
.donor-hero { margin-bottom: 22px; }
.donor-hero h1 { font-size: 30px; margin: 6px 0 8px; }
.donor-note { color: var(--mute); font-size: 15px; line-height: 1.9; margin: 0 0 8px; }
.donor-meta { color: var(--mute); font-size: 13px; }
.donor-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.dk { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; text-align: center; box-shadow: 0 2px 10px rgba(22,56,75,.04); }
.dk .dk-ic { font-size: 24px; margin-bottom: 8px; }
.dk b { display: block; font-family: var(--kufi); font-size: 26px; color: var(--navy); }
.dk small { color: var(--mute); font-size: 13px; }
.dk.g b { color: var(--green-t); }
.dk.gold b { color: var(--gold-t); }
.donor-highlight { display: flex; align-items: center; gap: 20px; background: linear-gradient(135deg, var(--navy), #1E4A61); color: #fff; border-radius: 18px; padding: 22px 26px; margin-bottom: 20px; }
.donor-highlight .hl-num { font-family: var(--kufi); font-size: 44px; font-weight: 800; color: var(--gold); line-height: 1; }
.donor-highlight .hl-txt { font-size: 15px; color: #D5E2EA; line-height: 1.7; }
.donor-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.donor-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 2px 10px rgba(22,56,75,.04); }
.donor-card h4 { font-size: 17px; margin-bottom: 16px; }
.donor-funnel .fn-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.donor-funnel .fn-lbl { width: 74px; font-size: 14px; color: var(--navy-2); flex: 0 0 auto; }
.donor-funnel .fn-bar { flex: 1; height: 12px; background: var(--thead); border-radius: 999px; overflow: hidden; }
.donor-funnel .fn-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--gold)); border-radius: 999px; }
.donor-funnel b { width: 34px; text-align: left; font-family: var(--kufi); color: var(--navy); }
.donor-list .dl-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--thead); font-size: 15px; }
.donor-list .dl-row:last-child { border-bottom: none; }
.donor-list .dl-row span { flex: 1; color: var(--navy); }
.donor-list .dl-row b { color: var(--navy-2); font-size: 14px; }
.donor-list .dl-row em { color: var(--gold-t); font-style: normal; font-size: 13px; }
.donor-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; height: 150px; padding-top: 10px; }
.donor-chart .ch-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.donor-chart .ch-bars { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.donor-chart .ch-bars span { width: 14px; border-radius: 4px 4px 0 0; min-height: 2px; }
.donor-chart .ch-open { background: var(--navy-2); }
.donor-chart .ch-close { background: var(--green-t); }
.donor-chart small { color: var(--mute); font-size: 12px; }
.ch-legend { display: flex; gap: 18px; justify-content: center; margin-top: 14px; font-size: 13px; color: var(--mute); }
.ch-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.ch-legend .lg-open { background: var(--navy-2); }
.ch-legend .lg-close { background: var(--green-t); }
.donor-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.st-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #FCFBF9; }
.st-card .st-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.st-card .st-meta { font-size: 13.5px; color: var(--navy-2); }
.donor-footer-note { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.donor-footer-note img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.donor-footer-note b { font-family: var(--kufi); color: var(--navy); font-size: 16px; }
.donor-error { text-align: center; padding: 70px 20px; }
.donor-error .de-ic { font-size: 52px; margin-bottom: 14px; }
.donor-foot { text-align: center; padding: 24px; color: var(--mute); font-size: 13px; }
@media (max-width: 720px) { .donor-grid2 { grid-template-columns: 1fr; } .donor-hero h1 { font-size: 23px; } .dh-inner { flex-direction: column; align-items: flex-start; } }
